diff --git a/queries/scala/highlights.scm b/queries/scala/highlights.scm index ffecefaf484..5f3936d2f9b 100644 --- a/queries/scala/highlights.scm +++ b/queries/scala/highlights.scm @@ -120,6 +120,9 @@ (binding name: (identifier) @variable.parameter) +(lambda_expression + parameters: (identifier) @variable.parameter) + ; expressions (field_expression field: (identifier) @variable.member) @@ -177,7 +180,6 @@ ; `macro` not implemented yet "object" "override" - "package" "val" "var" "with" @@ -211,6 +213,8 @@ (wildcard) @variable.parameter +(namespace_wildcard) @punctuation.special + (annotation) @attribute ; special keywords @@ -235,6 +239,7 @@ [ "." "," + ":" ] @punctuation.delimiter [ @@ -248,6 +253,9 @@ [ "=>" + "?=>" + "=" + "!" "<-" "@" ] @operator @@ -255,6 +263,7 @@ [ "import" "export" + "package" ] @keyword.import [ @@ -278,6 +287,10 @@ (case_clause "case" @keyword.conditional)) +(case_block + (case_clause + "=>" @punctuation.delimiter)) + (operator_identifier) @operator ((identifier) @type