mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -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
2
SUPPORTED_LANGUAGES.md
generated
2
SUPPORTED_LANGUAGES.md
generated
|
|
@ -278,7 +278,7 @@ jsx (queries only)[^jsx] | unstable | `HFIJ ` | | @steelsojka
|
||||||
[surface](https://github.com/connorlay/tree-sitter-surface) | unstable | `HFIJ ` | | @connorlay
|
[surface](https://github.com/connorlay/tree-sitter-surface) | unstable | `HFIJ ` | | @connorlay
|
||||||
[svelte](https://github.com/tree-sitter-grammars/tree-sitter-svelte) | unstable | `HFIJL` | | @amaanq
|
[svelte](https://github.com/tree-sitter-grammars/tree-sitter-svelte) | unstable | `HFIJL` | | @amaanq
|
||||||
[sway](https://github.com/FuelLabs/tree-sitter-sway.git) | unstable | `HFIJL` | | @ribru17
|
[sway](https://github.com/FuelLabs/tree-sitter-sway.git) | unstable | `HFIJL` | | @ribru17
|
||||||
[swift](https://github.com/alex-pinkus/tree-sitter-swift) | unmaintained | `HFIJL` | X | @alex-pinkus
|
[swift](https://github.com/alex-pinkus/tree-sitter-swift) | unstable | `HFIJL` | | @alex-pinkus
|
||||||
[sxhkdrc](https://github.com/RaafatTurki/tree-sitter-sxhkdrc) | unstable | `HF J ` | | @RaafatTurki
|
[sxhkdrc](https://github.com/RaafatTurki/tree-sitter-sxhkdrc) | unstable | `HF J ` | | @RaafatTurki
|
||||||
[systemtap](https://github.com/ok-ryoko/tree-sitter-systemtap) | unstable | `HF JL` | | @ok-ryoko
|
[systemtap](https://github.com/ok-ryoko/tree-sitter-systemtap) | unstable | `HF JL` | | @ok-ryoko
|
||||||
[t32](https://gitlab.com/xasc/tree-sitter-t32) | unstable | `HFIJL` | | @xasc
|
[t32](https://gitlab.com/xasc/tree-sitter-t32) | unstable | `HFIJL` | | @xasc
|
||||||
|
|
|
||||||
|
|
@ -2193,12 +2193,11 @@ return {
|
||||||
swift = {
|
swift = {
|
||||||
install_info = {
|
install_info = {
|
||||||
generate = true,
|
generate = true,
|
||||||
generate_from_json = false,
|
revision = 'ebefe3134fba71f61c1103cbf27047f749f2b587',
|
||||||
revision = '99a5241ceac351a4af57bcc3571cef5064bde0a3',
|
|
||||||
url = 'https://github.com/alex-pinkus/tree-sitter-swift',
|
url = 'https://github.com/alex-pinkus/tree-sitter-swift',
|
||||||
},
|
},
|
||||||
maintainers = { '@alex-pinkus' },
|
maintainers = { '@alex-pinkus' },
|
||||||
tier = 3,
|
tier = 2,
|
||||||
},
|
},
|
||||||
sxhkdrc = {
|
sxhkdrc = {
|
||||||
install_info = {
|
install_info = {
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
(tuple_expression) ; ( foo + bar )
|
(tuple_expression) ; ( foo + bar )
|
||||||
(array_literal) ; [ foo, bar ]
|
(array_literal) ; [ foo, bar ]
|
||||||
(dictionary_literal) ; [ foo: bar, x: y ]
|
(dictionary_literal) ; [ foo: bar, x: y ]
|
||||||
(lambda_literal)
|
(lambda_literal)
|
||||||
(willset_didset_block)
|
(willset_didset_block)
|
||||||
(willset_clause)
|
(willset_clause)
|
||||||
(didset_clause)
|
(didset_clause)
|
||||||
|
|
|
||||||
|
|
@ -158,25 +158,14 @@
|
||||||
; See https://docs.swift.org/swift-book/documentation/the-swift-programming-language/lexicalstructure/#Keywords-and-Punctuation
|
; See https://docs.swift.org/swift-book/documentation/the-swift-programming-language/lexicalstructure/#Keywords-and-Punctuation
|
||||||
[
|
[
|
||||||
(diagnostic)
|
(diagnostic)
|
||||||
"#available"
|
(availability_condition)
|
||||||
"#unavailable"
|
(playground_literal)
|
||||||
"#fileLiteral"
|
(key_path_string_expression)
|
||||||
"#colorLiteral"
|
(selector_expression)
|
||||||
"#imageLiteral"
|
(external_macro_definition)
|
||||||
"#keyPath"
|
|
||||||
"#selector"
|
|
||||||
"#externalMacro"
|
|
||||||
] @function.macro
|
] @function.macro
|
||||||
|
|
||||||
[
|
(special_literal) @constant.macro
|
||||||
"#column"
|
|
||||||
"#dsohandle"
|
|
||||||
"#fileID"
|
|
||||||
"#filePath"
|
|
||||||
"#file"
|
|
||||||
"#function"
|
|
||||||
"#line"
|
|
||||||
] @constant.macro
|
|
||||||
|
|
||||||
; Statements
|
; Statements
|
||||||
(for_statement
|
(for_statement
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
(tuple_expression) ; ( foo + bar )
|
(tuple_expression) ; ( foo + bar )
|
||||||
(array_literal) ; [ foo, bar ]
|
(array_literal) ; [ foo, bar ]
|
||||||
(dictionary_literal) ; [ foo: bar, x: y ]
|
(dictionary_literal) ; [ foo: bar, x: y ]
|
||||||
(lambda_literal)
|
(lambda_literal)
|
||||||
(willset_didset_block)
|
(willset_didset_block)
|
||||||
(willset_clause)
|
(willset_clause)
|
||||||
(didset_clause)
|
(didset_clause)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
((regex_literal) @injection.content
|
||||||
|
(#set! injection.language "regex"))
|
||||||
|
|
||||||
([
|
([
|
||||||
(comment)
|
(comment)
|
||||||
(multiline_comment)
|
(multiline_comment)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue