mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
feat(swift)!: update parser and queries
This commit is contained in:
parent
6c50310371
commit
13ddd4d752
6 changed files with 14 additions and 23 deletions
|
|
@ -26,7 +26,7 @@
|
|||
(tuple_expression) ; ( foo + bar )
|
||||
(array_literal) ; [ foo, bar ]
|
||||
(dictionary_literal) ; [ foo: bar, x: y ]
|
||||
(lambda_literal)
|
||||
(lambda_literal)
|
||||
(willset_didset_block)
|
||||
(willset_clause)
|
||||
(didset_clause)
|
||||
|
|
|
|||
|
|
@ -158,25 +158,14 @@
|
|||
; See https://docs.swift.org/swift-book/documentation/the-swift-programming-language/lexicalstructure/#Keywords-and-Punctuation
|
||||
[
|
||||
(diagnostic)
|
||||
"#available"
|
||||
"#unavailable"
|
||||
"#fileLiteral"
|
||||
"#colorLiteral"
|
||||
"#imageLiteral"
|
||||
"#keyPath"
|
||||
"#selector"
|
||||
"#externalMacro"
|
||||
(availability_condition)
|
||||
(playground_literal)
|
||||
(key_path_string_expression)
|
||||
(selector_expression)
|
||||
(external_macro_definition)
|
||||
] @function.macro
|
||||
|
||||
[
|
||||
"#column"
|
||||
"#dsohandle"
|
||||
"#fileID"
|
||||
"#filePath"
|
||||
"#file"
|
||||
"#function"
|
||||
"#line"
|
||||
] @constant.macro
|
||||
(special_literal) @constant.macro
|
||||
|
||||
; Statements
|
||||
(for_statement
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
(tuple_expression) ; ( foo + bar )
|
||||
(array_literal) ; [ foo, bar ]
|
||||
(dictionary_literal) ; [ foo: bar, x: y ]
|
||||
(lambda_literal)
|
||||
(lambda_literal)
|
||||
(willset_didset_block)
|
||||
(willset_clause)
|
||||
(didset_clause)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
((regex_literal) @injection.content
|
||||
(#set! injection.language "regex"))
|
||||
|
||||
([
|
||||
(comment)
|
||||
(multiline_comment)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue