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]]
|
[[grammar]]
|
||||||
name = "cairo"
|
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]]
|
[[language]]
|
||||||
name = "cpon"
|
name = "cpon"
|
||||||
|
@ -95,6 +95,12 @@
|
|||||||
; -------
|
; -------
|
||||||
; Keywords
|
; Keywords
|
||||||
; -------
|
; -------
|
||||||
|
|
||||||
|
(for_expression
|
||||||
|
"for" @keyword.control.repeat)
|
||||||
|
|
||||||
|
"in" @keyword.control
|
||||||
|
|
||||||
[
|
[
|
||||||
"match"
|
"match"
|
||||||
"if"
|
"if"
|
||||||
|
@ -115,4 +115,10 @@
|
|||||||
(#not-same-line? @expr-start @pattern-guard)
|
(#not-same-line? @expr-start @pattern-guard)
|
||||||
) @indent
|
) @indent
|
||||||
|
|
||||||
|
(for_expression
|
||||||
|
"in" @in
|
||||||
|
.
|
||||||
|
(_) @indent
|
||||||
|
(#not-same-line? @in @indent)
|
||||||
|
(#set! "scope" "all")
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user