aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/swift
diff options
context:
space:
mode:
author7ombie2024-02-12 01:17:44 +0000
committerGitHub2024-02-12 01:17:44 +0000
commit204c3707b070c0933366b7366d48744b1426abaa (patch)
treef3b96c7734c6893c1498e715deda9d29eae45b1f /runtime/queries/swift
parent13b9885084ed516276db17b730cb1d818fe95716 (diff)
Updated Swift grammar, adding 'any' and 'await' keywords. (#9586)
Diffstat (limited to 'runtime/queries/swift')
-rw-r--r--runtime/queries/swift/highlights.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/queries/swift/highlights.scm b/runtime/queries/swift/highlights.scm
index 5560010b..e7610e38 100644
--- a/runtime/queries/swift/highlights.scm
+++ b/runtime/queries/swift/highlights.scm
@@ -1,10 +1,10 @@
-; Upstream: https://github.com/alex-pinkus/tree-sitter-swift/blob/8d2fd80e3322df51e3f70952e60d57f5d4077eb8/queries/highlights.scm
+; Upstream: https://github.com/alex-pinkus/tree-sitter-swift/blob/1c586339fb00014b23d6933f2cc32b588a226f3b/queries/highlights.scm
(line_string_literal
["\\(" ")"] @punctuation.special)
["." ";" ":" "," ] @punctuation.delimiter
-["(" ")" "[" "]" "{" "}"] @punctuation.bracket ; TODO: "\\(" ")" in interpolations should be @punctuation.special
+["(" ")" "[" "]" "{" "}"] @punctuation.bracket
; Identifiers
(attribute) @variable
@@ -26,6 +26,7 @@
(function_declaration "init" @constructor)
(throws) @keyword
"async" @keyword
+"await" @keyword
(where_keyword) @keyword
(parameter external_name: (simple_identifier) @variable.parameter)
(parameter name: (simple_identifier) @variable.parameter)
@@ -48,6 +49,7 @@
"convenience"
"required"
"some"
+ "any"
] @keyword
[