diff options
| author | Michael Härtl <haertl.mike@gmail.com> | 2022-01-19 17:41:42 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-19 19:17:01 +0100 |
| commit | 983c46d55cb796fd623d43e3510bce7b21d0d1a6 (patch) | |
| tree | 07ec3ad5b6b105352b2191d6ede414f372b9d3e4 | |
| parent | 45d384eb3b6476c558f29a3b8b58c0bbad803279 (diff) | |
fix(php) match magic and single letter constants
| -rw-r--r-- | queries/php/highlights.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/queries/php/highlights.scm b/queries/php/highlights.scm index 1d8f0158..4188a35e 100644 --- a/queries/php/highlights.scm +++ b/queries/php/highlights.scm @@ -82,7 +82,9 @@ (relative_scope) @variable.builtin ((name) @constant - (#vim-match? @constant "^_?[A-Z][A-Z\d_]+$")) + (#vim-match? @constant "^_?[A-Z][A-Z\d_]*$")) +((name) @constant.builtin + (#vim-match? @constant.builtin "^__[A-Z][A-Z\d_]+__$")) (const_declaration (const_element (name) @constant)) |
