What steps will reproduce the problem? 1. open a .php file 2. copy int it:
// this shouldn't break everything function('observe')
What is the expected output? What do you see instead? The // doesn't comment correctly, including allowing the single quote to escape the comment.
What version of the product are you using? On what operating system? uploaded on May 22, 2007, emacs
Please provide any additional information below.
Comment #1
Posted on May 20, 2008 by Quick Wombatok, so if you insert:
(modify-syntax-entry ?\/ "< 124b" php-mode-syntax-table)
on line 2582 it seems to work.
i'm thinking that it's because line 2579 looks like this:
(modify-syntax-entry ?\/ ". 1456" php-mode-syntax-table)
specifically, the ' ?\/ ". 1456" ' part of it seems to define a forward slash as punctuation '.' instead of as a comment '< b'
I have no idea what i'm doing though, so use the attached modified file at your own risk.
- php-mode.el 366.55KB
Comment #2
Posted on Jul 4, 2008 by Helpful Lionquodlibetor's fix works for me; thanks!
Been trying to figure out how to fix this exact problem for months; wonder why I missed it on EmacsWiki.
Status: New
Labels:
Type-Defect
Priority-Medium