Skip to content

Commit 809d2a4

Browse files
committed
Fix regexp where characters following logical negation are not font-locked
1 parent a7687e4 commit 809d2a4

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)