diff options
| author | Wojciech Kulik <3128467+wojciech-kulik@users.noreply.github.com> | 2024-03-24 01:10:18 +0100 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-03-25 18:49:52 +0100 |
| commit | aa31b8d4ccaa05e1ab30120e103f72adbd2837bc (patch) | |
| tree | fea93c1fc889f2afaca20b636c9faf6fd9d2b6d6 /queries/swift | |
| parent | bot(readme): update (diff) | |
| download | nvim-treesitter-aa31b8d4ccaa05e1ab30120e103f72adbd2837bc.tar nvim-treesitter-aa31b8d4ccaa05e1ab30120e103f72adbd2837bc.tar.gz nvim-treesitter-aa31b8d4ccaa05e1ab30120e103f72adbd2837bc.tar.bz2 nvim-treesitter-aa31b8d4ccaa05e1ab30120e103f72adbd2837bc.tar.lz nvim-treesitter-aa31b8d4ccaa05e1ab30120e103f72adbd2837bc.tar.xz nvim-treesitter-aa31b8d4ccaa05e1ab30120e103f72adbd2837bc.tar.zst nvim-treesitter-aa31b8d4ccaa05e1ab30120e103f72adbd2837bc.zip | |
fix(swift): highlights
Diffstat (limited to 'queries/swift')
| -rw-r--r-- | queries/swift/highlights.scm | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/queries/swift/highlights.scm b/queries/swift/highlights.scm index 377420003..3ee1d2e8b 100644 --- a/queries/swift/highlights.scm +++ b/queries/swift/highlights.scm @@ -39,7 +39,7 @@ (function_declaration (simple_identifier) @function.method) -(function_declaration +(init_declaration "init" @constructor) (throws) @keyword @@ -80,6 +80,11 @@ "convenience" "required" "some" + "any" + "weak" + "unowned" + "didSet" + "willSet" ] @keyword [ @@ -115,6 +120,15 @@ (enum_entry "case" @keyword) +; Attributes +(modifiers + (attribute) @attribute.builtin) + +(modifiers + (attribute + (user_type + (type_identifier) @attribute.builtin))) + ; Function calls (call_expression (simple_identifier) @function.call) ; foo() @@ -275,6 +289,9 @@ "++" "--" "&" + "&&" + "|" + "||" "~" "%=" "!=" |
