chore: update cairo tree sitter + queries (#11067)
This commit is contained in:
parent
9c4c66d417
commit
0c6ffe192b
3 changed files with 14 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue