File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1127,8 +1127,6 @@ After setting the stylevars run hooks according to STYLENAME
1127
1127
(modify-syntax-entry ?_ " _" table)
1128
1128
(modify-syntax-entry ?` " \" " table)
1129
1129
(modify-syntax-entry ?\" " \" " table)
1130
- (modify-syntax-entry ?# " < b" table)
1131
- (modify-syntax-entry ?\n " > b" table)
1132
1130
(modify-syntax-entry ?$ " _" table)
1133
1131
table))
1134
1132
@@ -1181,6 +1179,10 @@ After setting the stylevars run hooks according to STYLENAME
1181
1179
; ; PHP vars are case-sensitive
1182
1180
(setq case-fold-search t )
1183
1181
1182
+ (when php-mode-use-php7-syntax-table
1183
+ (modify-syntax-entry ?# " < b" php-mode-syntax-table)
1184
+ (modify-syntax-entry ?\n " > b" php-mode-syntax-table))
1185
+
1184
1186
(when php-mode-enable-project-local-variable
1185
1187
(add-hook 'hack-local-variables-hook #'php-mode-set-local-variable-delay t t ))
1186
1188
You can’t perform that action at this time.
0 commit comments