From 6feaebb4561711cf6b99f2e8b96715a9fc9b496b Mon Sep 17 00:00:00 2001 From: Chris Dragan Date: Thu, 8 Jan 2026 05:53:42 +0000 Subject: 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 --- runtime/queries/kos/highlights.scm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/queries/kos/highlights.scm b/runtime/queries/kos/highlights.scm index 0942b2b89..07757d2e3 100644 --- a/runtime/queries/kos/highlights.scm +++ b/runtime/queries/kos/highlights.scm @@ -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) + [ ";" ":" -- cgit v1.3