Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/bitbake/highlights.scm')
| -rw-r--r-- | runtime/queries/bitbake/highlights.scm | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/runtime/queries/bitbake/highlights.scm b/runtime/queries/bitbake/highlights.scm new file mode 100644 index 00000000..6e8ab0cf --- /dev/null +++ b/runtime/queries/bitbake/highlights.scm @@ -0,0 +1,82 @@ + +; variables +(variable_assignment (identifier) @variable.other.member) +(variable_assignment (concatenation (identifier) @variable.other.member)) +(unset_statement (identifier) @variable.other.member) +(export_statement (identifier) @variable.other.member) +(variable_expansion (identifier) @variable.other.member) +(python_function_definition (parameters (python_identifier) @variable.other.member)) + +(variable_assignment (override) @keyword.storage.modifier) +(overrides_statement (identifier) @keyword.storage.modifier) +(flag) @keyword.storage.modifier + +[ + "=" + "?=" + "??=" + ":=" + "=+" + "+=" + ".=" + "=." + +] @operator + +(variable_expansion [ "${" "}" ] @punctuation.special) +[ "(" ")" "{" "}" "[" "]" ] @punctuation.bracket + +[ + "noexec" + "INHERIT" + "OVERRIDES" + "$BB_ENV_PASSTHROUGH" + "$BB_ENV_PASSTHROUGH_ADDITIONS" +] @variable.builtin + +; functions + +(python_function_definition (python_identifier) @function) +(anonymous_python_function (identifier) @function) +(function_definition (identifier) @function) +(export_functions_statement (identifier) @function) +(addtask_statement (identifier) @function) +(deltask_statement (identifier) @function) +(addhandler_statement (identifier) @function) +(function_definition (override) @keyword.storage.modifier) + +[ + "addtask" + "deltask" + "addhandler" + "unset" + "EXPORT_FUNCTIONS" + "python" + "def" +] @keyword.function + +[ + "append" + "prepend" + "remove" + + "before" + "after" +] @keyword.operator + +; imports + +[ + "inherit" + "include" + "require" + "export" + "import" +] @keyword.control.import + +(inherit_path) @namespace +(include_path) @namespace + + +(string) @string +(comment) @comment |