diff options
Diffstat (limited to 'queries/devicetree/highlights.scm')
| -rw-r--r-- | queries/devicetree/highlights.scm | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/queries/devicetree/highlights.scm b/queries/devicetree/highlights.scm index 6236189bf..a81cf2c89 100644 --- a/queries/devicetree/highlights.scm +++ b/queries/devicetree/highlights.scm @@ -6,6 +6,7 @@ ] @keyword.import (preproc_def) @constant.macro + (preproc_function_def) @function.macro [ @@ -22,14 +23,39 @@ (integer_literal) @number (identifier) @variable -(node (identifier) @module) -(property (identifier) @property) -(labeled_item (identifier) @label) -(call_expression (identifier) @function.macro) + +(node + (identifier) @module) + +(property + (identifier) @property) + +(labeled_item + (identifier) @label) + +(call_expression + (identifier) @function.macro) (reference) @label ; referencing labeled_item.identifier + (unit_address) @constant -[ "=" ] @operator -[ "(" ")" "[" "]" "{" "}" "<" ">" ] @punctuation.bracket -[ ";" ":" "," "@" ] @punctuation.delimiter +"=" @operator + +[ + "(" + ")" + "[" + "]" + "{" + "}" + "<" + ">" +] @punctuation.bracket + +[ + ";" + ":" + "," + "@" +] @punctuation.delimiter |
