From a6121f014d2e75bd9eab23082d0f6e02b46ae092 Mon Sep 17 00:00:00 2001 From: Tomas Sandven Date: Mon, 19 Jul 2021 07:44:03 +0200 Subject: Add YANG parser --- queries/yang/highlights.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 queries/yang/highlights.scm (limited to 'queries') diff --git a/queries/yang/highlights.scm b/queries/yang/highlights.scm new file mode 100644 index 00000000..82ae8d5b --- /dev/null +++ b/queries/yang/highlights.scm @@ -0,0 +1,29 @@ + +(comment) @comment + +; Module / submodule +["module" "submodule"] @keyword + +; Keywords +(statement_keyword) @keyword +(extension_keyword) @string.escape + +; Arguments +(built_in_type) @type.builtin +(integer) @number +(boolean) @boolean +(date) @number +(range) @string.escape +(unquoted_range) @string.escape +(yang_version) @string.escape +(identifier) @variable +(node_identifier) @variable +(glob) @string +(string) @string +(unquoted_string) @string +(keypath) @string.escape + +; Punctuation +(plus_symbol) @punctuation.delimiter +["{" "}"] @punctuation.bracket +[";"] @punctuation.delimiter -- cgit v1.2.3