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:
Akseli 2024-10-01 04:05:28 +03:00 committed by GitHub
parent cb9307bb03
commit 083bb0118f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,10 +4,13 @@
] @keyword.directive
[
"import"
"package"
"package"
] @namespace
[
"import"
] @keyword.control.import
[
"foreign"
"using"
@ -200,7 +203,7 @@
(struct . (identifier) @type)
(field_type . (identifier) "." (identifier) @type)
(field_type . (identifier) @keyword.storage.type "." (identifier) @type)
(bit_set_type (identifier) @type ";")
@ -248,6 +251,8 @@ (struct . (identifier) @type)
(using_statement (identifier) @namespace)
(import_declaration (identifier) @keyword.storage.type)
; Parameters
(parameter (identifier) @variable.parameter ":" "="? (identifier)? @constant)