sh.yaml: Match parameter expansions with braces using \w

This commit is contained in:
niten94
2025-02-23 11:39:11 +08:00
parent 4abd966a99
commit 0985d2cadd

View File

@@ -41,7 +41,7 @@ rules:
# Conditional flags
- statement: "\\s+(-[A-Za-z]+|--[a-z]+)"
- identifier: "\\$\\{[0-9A-Za-z_:!%&=+#~@*^$?, .\\-\\/\\[\\]]+\\}"
- identifier: "\\$\\{[\\w:!%&=+#~@*^$?, .\\-\\/\\[\\]]+\\}"
- identifier: "\\$([0-9_!#@*$?-]|[A-Za-z_]\\w*)"
- constant.string: