Skip to content

Commit 04f2113

Browse files
authored
Merge pull request #630 from emacs-php/fix/font-lock-logical-op
Fix regexp where characters following logical negation are not font-locked
2 parents 80e3f38 + 809d2a4 commit 04f2113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php-mode.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@ a completion list."
15181518
("\\<\\(const\\)\\s-+\\(\\_<.+?\\_>\\)" (1 'php-keyword) (2 'php-constant-assign))
15191519

15201520
;; Logical operator (!)
1521-
("\\(![^=]\\)" 1 'php-logical-op)
1521+
("\\(!\\)[^=]" 1 'php-logical-op)
15221522

15231523
;; Highlight special variables
15241524
("\\(\\$\\)\\(this\\)\\>" (1 'php-$this-sigil) (2 'php-$this))

0 commit comments

Comments
 (0)