File tree Expand file tree Collapse file tree 3 files changed +51
-50
lines changed Expand file tree Collapse file tree 3 files changed +51
-50
lines changed Original file line number Diff line number Diff line change @@ -1510,7 +1510,7 @@ indent = { tab-width = 2, unit = " " }
1510
1510
1511
1511
[[grammar ]]
1512
1512
name = " meson"
1513
- source = { git = " https://github.com/bearcove /tree-sitter-meson" , rev = " feea83be9225842490066522ced2d13eb9cce0bd " }
1513
+ source = { git = " https://github.com/staysail /tree-sitter-meson" , rev = " 32a83e8f200c347232fa795636cfe60dde22957a " }
1514
1514
1515
1515
[[language ]]
1516
1516
name = " sshclientconfig"
Original file line number Diff line number Diff line change 1
- (string_literal ) @string
1
+ (comment ) @comment
2
2
3
- (boolean_literal) @constant.builtin.boolean
4
- (integer_literal) @constant.numeric.integer
5
-
6
- (comment) @comment.line
7
- (function_id) @function
8
- (keyword_arg_key) @variable.other.member
9
- (id_expression) @variable
3
+ ; these are listed first, because they override keyword queries
4
+ (function_expression (identifier) @function )
10
5
11
6
[
12
- "if"
13
- "elif"
14
- "else"
15
- "endif"
16
- ] @keyword.control.conditional
7
+ (assignment_operator)
8
+ (additive_operator)
9
+ (multiplicative_operator)
10
+ (equality_operator)
11
+ ">="
12
+ "<="
13
+ "<"
14
+ ">"
15
+ "+"
16
+ "-"
17
+ ] @operator
17
18
18
19
[
19
- "foreach"
20
- "endforeach"
21
- ] @keyword.control.repeat
20
+ (and)
21
+ (or)
22
+ (not)
23
+ (in)
24
+ ] @keyword.operator
22
25
23
26
[
24
- "break"
25
- "continue"
26
- ] @keyword.control
27
+ "(" ")" "[" "]" "{" "}"
28
+ ] @punctuation.bracket
27
29
28
30
[
29
- "not"
30
- "in"
31
- "and"
32
- "or"
33
- ] @keyword.operator
31
+ (if)
32
+ (elif)
33
+ (else)
34
+ (endif)
35
+ ] @keyword.control.conditional
34
36
35
37
[
36
- "!"
37
- "+"
38
- "-"
39
- "*"
40
- "/"
41
- "%"
42
- "=="
43
- "!="
44
- ">"
45
- "<"
46
- ">="
47
- "<="
48
- ] @operator
38
+ (foreach)
39
+ (endforeach)
40
+ (break)
41
+ (continue)
42
+ ] @keyword.control.repeat
43
+
44
+ (boolean_literal) @constant.builtin.boolean
45
+ (int_literal) @constant.numeric.integer
46
+
47
+ (keyword_argument keyword: (identifier) @variable.parameter )
48
+ (escape_sequence) @constant.character.escape
49
+ (bad_escape) @warning
49
50
50
51
[
51
- ":"
52
- ","
52
+ "."
53
+ ","
54
+ ":"
53
55
] @punctuation.delimiter
54
56
55
57
[
56
- "("
57
- ")"
58
- "["
59
- "]"
60
- "{"
61
- "}"
62
- ] @punctuation.bracket
58
+ (string_literal)
59
+ (fstring_literal)
60
+ ] @string
61
+
62
+ (identifier) @variable
Original file line number Diff line number Diff line change
1
+ ; Indentation queries for helix
1
2
[
2
- (method_expression)
3
3
(function_expression)
4
4
(array_literal)
5
5
(dictionary_literal)
6
6
(selection_statement)
7
7
(iteration_statement)
8
8
] @indent
9
9
10
+ ; question - what about else, elif
10
11
[
11
12
")"
12
13
"]"
13
14
"}"
14
- " endif"
15
- " endforeach"
15
+ ( endif)
16
+ ( endforeach)
16
17
] @outdent
You can’t perform that action at this time.
0 commit comments