summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2022-01-16 14:59:22 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-01-18 22:09:21 +0100
commita3c86fe843b1056b3d02596711882719517a8f9f (patch)
tree04c7df80e0715ded1045c0d264a5a4380a42133d /tests
parentb42de973399ff6aea8530de7240b6bf897ed6b03 (diff)
highlights(swift): highlight punctuation
"?" is still missing: https://github.com/tree-sitter/tree-sitter-swift/issues/38
Diffstat (limited to 'tests')
-rw-r--r--tests/query/highlights/swift/string-interpolation.swift7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/query/highlights/swift/string-interpolation.swift b/tests/query/highlights/swift/string-interpolation.swift
new file mode 100644
index 00000000..d500d7cf
--- /dev/null
+++ b/tests/query/highlights/swift/string-interpolation.swift
@@ -0,0 +1,7 @@
+var one = 1
+var two = 2
+var name = "Let's do some math: \(one) + \(one) = \(one + one) = \(two)"
+// ^ punctuation.bracket
+// ^ variable
+// ^ punctuation.bracket
+// ^ punctuation.bracket