Skip to content

Commit 0a94905

Browse files
authored
Merge pull request #672 from emacs-php/fix/advice
Fix advice buffer local
2 parents ac9d796 + 0992f62 commit 0a94905

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lisp/php-mode.el

+4-6
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,7 @@ In that case set to `NIL'."
386386
php "\\s-*\\(<\\?(=\\|\\sw+)\\)")
387387

388388
(c-lang-defconst c-identifier-ops
389-
php '(
390-
(left-assoc "\\" "::" "->")
389+
php '((left-assoc "\\" "::" "->")
391390
(prefix "\\" "::")))
392391

393392
(c-lang-defconst c-operators
@@ -455,7 +454,7 @@ contains another declaration level that should be considered a class."
455454
"Keywords introducing declarations where the following block (if
456455
any) is a brace list.
457456
458-
PHP does not have an \"enum\"-like keyword."
457+
PHP does not have an C-like \"enum\" keyword."
459458
php nil)
460459

461460
(c-lang-defconst c-typeless-decl-kwds
@@ -500,8 +499,7 @@ PHP does not have an \"enum\"-like keyword."
500499
(c-lang-defconst c-other-kwds
501500
"Keywords not accounted for by any other `*-kwds' language constant."
502501
php
503-
'(
504-
"__halt_compiler"
502+
'("__halt_compiler"
505503
"and"
506504
"array"
507505
"as"
@@ -1203,7 +1201,7 @@ After setting the stylevars run hooks according to STYLENAME
12031201

12041202
(when (fboundp 'c-looking-at-or-maybe-in-bracelist)
12051203
(advice-add #'c-looking-at-or-maybe-in-bracelist
1206-
:override 'php-c-looking-at-or-maybe-in-bracelist))
1204+
:override 'php-c-looking-at-or-maybe-in-bracelist '(local)))
12071205
(advice-add #'fixup-whitespace :after #'php-mode--fixup-whitespace-after '(local))
12081206

12091207
(when (>= emacs-major-version 25)

0 commit comments

Comments
 (0)