mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Fix some odin highlights (#11804)
Some of the odin highlights seemed wrong or lacking, like the import names were not being matched: ```odin // color both "rl" here to same value import rl "vendor:raylib" ... rl.Vector3 ``` Import color was also not being used correctly
This commit is contained in:
parent
cb9307bb03
commit
083bb0118f
@ -4,10 +4,13 @@
|
|||||||
] @keyword.directive
|
] @keyword.directive
|
||||||
|
|
||||||
[
|
[
|
||||||
"import"
|
|
||||||
"package"
|
"package"
|
||||||
] @namespace
|
] @namespace
|
||||||
|
|
||||||
|
[
|
||||||
|
"import"
|
||||||
|
] @keyword.control.import
|
||||||
|
|
||||||
[
|
[
|
||||||
"foreign"
|
"foreign"
|
||||||
"using"
|
"using"
|
||||||
@ -200,7 +203,7 @@
|
|||||||
|
|
||||||
(struct . (identifier) @type)
|
(struct . (identifier) @type)
|
||||||
|
|
||||||
(field_type . (identifier) "." (identifier) @type)
|
(field_type . (identifier) @keyword.storage.type "." (identifier) @type)
|
||||||
|
|
||||||
(bit_set_type (identifier) @type ";")
|
(bit_set_type (identifier) @type ";")
|
||||||
|
|
||||||
@ -248,6 +251,8 @@ (struct . (identifier) @type)
|
|||||||
|
|
||||||
(using_statement (identifier) @namespace)
|
(using_statement (identifier) @namespace)
|
||||||
|
|
||||||
|
(import_declaration (identifier) @keyword.storage.type)
|
||||||
|
|
||||||
; Parameters
|
; Parameters
|
||||||
|
|
||||||
(parameter (identifier) @variable.parameter ":" "="? (identifier)? @constant)
|
(parameter (identifier) @variable.parameter ":" "="? (identifier)? @constant)
|
||||||
|
Loading…
Reference in New Issue
Block a user