Skip to content

Commit 4794b2b

Browse files
author
fidgetingbits
committed
Add regex, and better nested statement support
1 parent e7cf3fc commit 4794b2b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

queries/shellscript.scm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,18 @@
1010
)
1111
[
1212
(if_statement)
13+
(while_statement)
14+
(for_statement)
1315
(function_definition)
1416
(declaration_command)
1517
] @statement
1618

1719
(
1820
(_
19-
(variable_assignment) @statement
21+
[
22+
(variable_assignment)
23+
(command)
24+
] @statement
2025
(#not-parent-type? @statement declaration_command)
2126
)
2227
)
@@ -294,3 +299,5 @@
294299
value: (_) @value @value.leading.end.endOf
295300
) @_.domain.end.endOf
296301
)
302+
303+
(regex) @regularExpression @textFragment

0 commit comments

Comments
 (0)