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 @@ -1124,8 +1124,6 @@ After setting the stylevars run hooks according to STYLENAME
1124
1124
(modify-syntax-entry ?_ " _" table)
1125
1125
(modify-syntax-entry ?` " \" " table)
1126
1126
(modify-syntax-entry ?\" " \" " table)
1127
- (modify-syntax-entry ?# " < b" table)
1128
- (modify-syntax-entry ?\n " > b" table)
1129
1127
(modify-syntax-entry ?$ " _" table)
1130
1128
table))
1131
1129
@@ -1171,6 +1169,10 @@ After setting the stylevars run hooks according to STYLENAME
1171
1169
; ; PHP vars are case-sensitive
1172
1170
(setq case-fold-search t )
1173
1171
1172
+ (when php-mode-use-php7-syntax-table
1173
+ (modify-syntax-entry ?# " < b" php-mode-syntax-table)
1174
+ (modify-syntax-entry ?\n " > b" php-mode-syntax-table))
1175
+
1174
1176
(when php-mode-enable-project-local-variable
1175
1177
(add-hook 'hack-local-variables-hook #'php-mode-set-local-variable-delay t t ))
1176
1178
You can’t perform that action at this time.
0 commit comments