Emacs indents after a line starting with a hash in php-mode

0

I suspect this has to do something with the C/C++ indenting php-mode indenting is based on, however the hash symbol in PHP just indicates a single-line comment and is not a reason to indent the next line. What can I do about this?

user12932

Posted 2012-06-12T18:39:29.490

Reputation: 315

Answers

0

I solved this through altering php-mode-syntax-table via modify-syntax-entry:

(modify-syntax-entry ?# "< b" php-mode-syntax-table)
(modify-syntax-entry ?\n "> b" php-mode-syntax-table)

http://emacswiki.org/emacs/EmacsSyntaxTable

user12932

Posted 2012-06-12T18:39:29.490

Reputation: 315