summaryrefslogtreecommitdiff
path: root/queries/php/highlights.scm
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2022-05-13 21:22:08 +0900
committerStephan Seitz <stephan.seitz@fau.de>2022-05-13 18:46:32 +0200
commit4d53ee5c052db67928f4433b2c2a641b1eb4d3b5 (patch)
tree410e14bcae4f8c75d5933623c18471ba0d22e20a /queries/php/highlights.scm
parent446a0538d6da3b5191397d112df4db199e9831b2 (diff)
highlights(php): improve highlight for attributes
Diffstat (limited to 'queries/php/highlights.scm')
-rw-r--r--queries/php/highlights.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/queries/php/highlights.scm b/queries/php/highlights.scm
index 16f47846..444cc417 100644
--- a/queries/php/highlights.scm
+++ b/queries/php/highlights.scm
@@ -103,6 +103,9 @@
(namespace_definition
name: (namespace_name) @namespace)
+; Attributes
+(attribute_list) @attribute
+
; Conditions ( ? : )
(conditional_expression) @conditional
; Basic tokens
@@ -222,6 +225,7 @@
"]"
"{"
"}"
+ "#["
] @punctuation.bracket
[