Skip to content

Commit 727072c

Browse files
committed
Modify syntax-entry $ to "_" from "'"
In practice, $ is just part of the variable name, which is more advantageous than considering it as “Expression prefixes”. If you want to be compatible with older syntax tables, add the following code to your own .emacs file (init.el): (with-eval-after-load "php-mode" (modify-syntax-entry ?$ "'" php-mode-syntax-table)) Past discussions are in the following issues: #320 #564
1 parent 7e630bf commit 727072c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: php-mode.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ After setting the stylevars run hooks according to STYLENAME
10731073
(modify-syntax-entry ?\" "\"" table)
10741074
(modify-syntax-entry ?# "< b" table)
10751075
(modify-syntax-entry ?\n "> b" table)
1076-
(modify-syntax-entry ?$ "'" table)
1076+
(modify-syntax-entry ?$ "_" table)
10771077
table))
10781078

10791079
;;;###autoload

0 commit comments

Comments
 (0)