Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/php/highlights.scm')
| -rw-r--r-- | runtime/queries/php/highlights.scm | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/runtime/queries/php/highlights.scm b/runtime/queries/php/highlights.scm index 737e2d5f..b9429ae8 100644 --- a/runtime/queries/php/highlights.scm +++ b/runtime/queries/php/highlights.scm @@ -1,21 +1,6 @@ (php_tag) @tag "?>" @tag -; Variables - -(relative_scope) @variable.builtin - -(variable_name) @variable - -((name) @constant - (#match? @constant "^_?[A-Z][A-Z\\d_]+$")) - -((name) @constructor - (#match? @constructor "^[A-Z]")) - -((name) @variable.builtin - (#eq? @variable.builtin "this")) - ; Types [ (primitive_type) @@ -125,6 +110,21 @@ (member_access_expression name: (name) @variable.other.member) +; Variables + +(relative_scope) @variable.builtin + +((name) @constant + (#match? @constant "^_?[A-Z][A-Z\\d_]+$")) + +((name) @constructor + (#match? @constructor "^[A-Z]")) + +((name) @variable.builtin + (#eq? @variable.builtin "this")) + +(variable_name) @variable + ; Attributes (attribute_list) @attribute |