diff options
| -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 @@ "++" "--" "&" + "&&" + "|" + "||" "~" "%=" "!=" |
