helix-mods/runtime/queries/odin/highlights.scm
ap29600 9cdc6b2e8a
Change Odin grammar to ap29600/tree-sitter-odin (#6766)
* Change Odin grammar to `ap29600/tree-sitter-odin`

The previously adopted grammar, `MineBill/tree-sitter-odin`, is unmaintained and mentions my repository as an alternative source.

* update queries

* docgen

* fix queries

* Update runtime/queries/odin/highlights.scm

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>

* remove `ERROR` query for `odin`

* track the latest rev in `ap29600/tree-sitter-odin`

* runtime/queries/odin/highlights.scm: update rune highlight class

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>

---------

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2023-04-27 16:32:21 +02:00

26 lines
622 B
Scheme

(keyword) @keyword
(operator) @operator
(int_literal) @constant.numeric.integer
(float_literal) @constant.numeric.float
(rune_literal) @constant.character
(bool_literal) @constant.builtin.boolean
(nil) @constant.builtin
(type_identifier) @type
(package_identifier) @namespace
(label_identifier) @label
(interpreted_string_literal) @string
(raw_string_literal) @string
(escape_sequence) @constant.character.escape
(comment) @comment
(const_identifier) @constant
(compiler_directive) @keyword.directive
(calling_convention) @string.special.symbol
(identifier) @variable
(pragma_identifier) @keyword.directive