aboutsummaryrefslogtreecommitdiffstats
path: root/queries/swift
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 /queries/swift
parentfeat(java)(highlights): add missing highlights for `@type` (diff)
downloadnvim-treesitter-a3c86fe843b1056b3d02596711882719517a8f9f.tar
nvim-treesitter-a3c86fe843b1056b3d02596711882719517a8f9f.tar.gz
nvim-treesitter-a3c86fe843b1056b3d02596711882719517a8f9f.tar.bz2
nvim-treesitter-a3c86fe843b1056b3d02596711882719517a8f9f.tar.lz
nvim-treesitter-a3c86fe843b1056b3d02596711882719517a8f9f.tar.xz
nvim-treesitter-a3c86fe843b1056b3d02596711882719517a8f9f.tar.zst
nvim-treesitter-a3c86fe843b1056b3d02596711882719517a8f9f.zip
highlights(swift): highlight punctuation
"?" is still missing: https://github.com/tree-sitter/tree-sitter-swift/issues/38
Diffstat (limited to 'queries/swift')
-rw-r--r--queries/swift/highlights.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/queries/swift/highlights.scm b/queries/swift/highlights.scm
index d744669c0..e30618c74 100644
--- a/queries/swift/highlights.scm
+++ b/queries/swift/highlights.scm
@@ -1,3 +1,6 @@
+[ "." ";" ":" "," "->" ] @punctuation.delimiter
+[ "\\(" "(" ")" "[" "]" "{" "}"] @punctuation.bracket ; TODO: "\\(" ")" in interpolations should be @punctuation.special
+
; Identifiers
(attribute) @variable
(simple_identifier) @variable