help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is this syntax for in php-mode.el


From: Lennart Borgman (gmail)
Subject: Re: What is this syntax for in php-mode.el
Date: Fri, 20 Apr 2007 18:16:29 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666

Stefan Monnier wrote:

Please tell the author that he doesn't need this gymnastics.
Just set # to comment-starter in the syntax-table and be done with it.
Make sure it has the comment-style (a or b) corresponding to the one of \n
(presumably it's b, if I read the problem-comment above correctly):

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


But as Ted pointed out before PHP has 3 comment styles, the two from C/C++ and then the shell comment style above. Is it really possible to handle this with the syntax table?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]