sh.yaml: Match valid parameter expansions without braces

Match parameter expansions with valid name only in shell syntax file
when there are no braces.
This commit is contained in:
niten94 2025-02-15 07:54:22 +08:00
parent 5a62a8ead4
commit 4abd966a99

View File

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