Skip to content

Commit 0985d2c

Browse files
committed
sh.yaml: Match parameter expansions with braces using \w
1 parent 4abd966 commit 0985d2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/syntax/sh.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ rules:
4141
# Conditional flags
4242
- statement: "\\s+(-[A-Za-z]+|--[a-z]+)"
4343

44-
- identifier: "\\$\\{[0-9A-Za-z_:!%&=+#~@*^$?, .\\-\\/\\[\\]]+\\}"
44+
- identifier: "\\$\\{[\\w:!%&=+#~@*^$?, .\\-\\/\\[\\]]+\\}"
4545
- identifier: "\\$([0-9_!#@*$?-]|[A-Za-z_]\\w*)"
4646

4747
- constant.string:

0 commit comments

Comments
 (0)