feat(kos): highlights improvements (#8404)

* Mark floats as number.float
* Mark function arguments as variable.parameter
* Mark _ placeholder as character.special
* Mark string interpolation delimiters as punctuation.special
This commit is contained in:
Chris Dragan 2026-01-08 05:53:42 +00:00 committed by GitHub
parent de878155ca
commit 6feaebb456
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 54 additions and 5 deletions

View file

@ -4,8 +4,13 @@
(number) @number
(float_number) @number.float
(identifier) @variable
(parameter
parameter: (identifier) @variable.parameter)
(property_identifier) @property
[
@ -57,8 +62,9 @@
"=>"
] @keyword.function
"_" @character.special
[
"_"
(line)
"assert"
;"async"
@ -96,6 +102,15 @@
"}"
] @punctuation.bracket
(string_literal_begin
"\\(" @punctuation.special)
(string_literal_continuation
"\\(" @punctuation.special)
(formatted_string
")" @punctuation.special)
[
";"
":"