mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-24 02:16:18 +04:00
9cdc6b2e8a
* 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>
27 lines
622 B
Scheme
27 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
|