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

This commit is contained in:
Lucas @ StarkWare 2024-07-02 02:37:49 +02:00 committed by GitHub
parent 9c4c66d417
commit 0c6ffe192b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 2 deletions

View File

@ -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"

View File

@ -95,6 +95,12 @@
; -------
; Keywords
; -------
(for_expression
"for" @keyword.control.repeat)
"in" @keyword.control
[
"match"
"if"

View File

@ -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")
)