File tree Expand file tree Collapse file tree 6 files changed +25
-2
lines changed
Expand file tree Collapse file tree 6 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 11id = " cairo"
22name = " Cairo"
3- version = " 0.0.4 "
3+ version = " 0.0.5 "
44schema_version = 1
55authors = [
" Thomas Robert Butler IV [email protected] " ,
" Okhai Omotuebe [email protected] " ]
66description = " Cairo language support for the Zed editor"
77repository = " https://github.com/trbutler4/zed-cairo"
88
99[grammars .cairo ]
1010repository = " https://github.com/starkware-libs/tree-sitter-cairo"
11- commit = " e3a0212261c125cb38248458cd856c0ffee2b398 "
11+ commit = " d5733e05aa19ab69a47026780b1cece213d3e015 "
1212
1313[language_servers .cairo ]
1414name = " Cairo LSP"
Original file line number Diff line number Diff line change 7171 "<"
7272 ">"
7373 ] @punctuation.bracket )
74+ (closure_parameters
75+ "|" @punctuation.bracket )
7476
7577; ---
7678; Variables
9294(parameter
9395 pattern: (identifier) @variable.parameter )
9496
97+ (closure_parameters
98+ (identifier) @variable.parameter )
9599; -------
96100; Keywords
97101; -------
Original file line number Diff line number Diff line change 115115 (#not-same-line? @expr -start @pattern -guard)
116116) @indent
117117
118+ ; Align closure parameters if they span more than one line
119+ (closure_parameters
120+ "|"
121+ .
122+ (_) @anchor
123+ (_) @expr -end
124+ .
125+ (#not-same-line? @anchor @expr -end)
126+ ) @align
127+
118128(for_expression
119129 "in" @in
120130 .
Original file line number Diff line number Diff line change 77 (type_item)
88 (trait_item)
99 (impl_item)
10+ (closure_expression)
1011 (block)
1112] @local.scope
1213
2021(constrained_type_parameter
2122 left: (type_identifier) @local.definition )
2223
24+ (closure_parameters (identifier) @local.definition )
25+
2326; References
2427(identifier) @local.reference
2528(type_identifier) @local.reference
Original file line number Diff line number Diff line change 11(function_item
22 body: (_) @function.inside ) @function.around
33
4+ (closure_expression
5+ body: (_) @function.inside ) @function.around
6+
47(struct_item
58 body: (_) @class.inside ) @class.around
69
1619(parameters
1720 ((_) @parameter.inside . ","? @parameter.around ) @parameter.around )
1821
22+ (closure_parameters
23+ ((_) @parameter.inside . ","? @parameter.around ) @parameter.around )
24+
1925(type_parameters
2026 ((_) @parameter.inside . ","? @parameter.around ) @parameter.around )
2127
You can’t perform that action at this time.
0 commit comments