chore: update cairo tree sitter + queries (#11067)

pull/11074/head
Lucas @ StarkWare 4 months ago committed by GitHub
parent 9c4c66d417
commit 0c6ffe192b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save