mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
chore: update cairo tree sitter + queries (#11067)
This commit is contained in:
parent
9c4c66d417
commit
0c6ffe192b
@ -2081,7 +2081,7 @@ language-servers = [ "cairo-language-server" ]
|
||||
|
||||
[[grammar]]
|
||||
name = "cairo"
|
||||
source = { git = "https://github.com/starkware-libs/tree-sitter-cairo", rev = "0596baab741ffacdc65c761d5d5ffbbeae97f033" }
|
||||
source = { git = "https://github.com/starkware-libs/tree-sitter-cairo", rev = "e3a0212261c125cb38248458cd856c0ffee2b398" }
|
||||
|
||||
[[language]]
|
||||
name = "cpon"
|
||||
|
@ -95,6 +95,12 @@
|
||||
; -------
|
||||
; Keywords
|
||||
; -------
|
||||
|
||||
(for_expression
|
||||
"for" @keyword.control.repeat)
|
||||
|
||||
"in" @keyword.control
|
||||
|
||||
[
|
||||
"match"
|
||||
"if"
|
||||
|
@ -115,4 +115,10 @@
|
||||
(#not-same-line? @expr-start @pattern-guard)
|
||||
) @indent
|
||||
|
||||
|
||||
(for_expression
|
||||
"in" @in
|
||||
.
|
||||
(_) @indent
|
||||
(#not-same-line? @in @indent)
|
||||
(#set! "scope" "all")
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user