mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 23:05:40 -04:00
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:
parent
5a62a8ead4
commit
4abd966a99
@ -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: "\""
|
||||
|
Loading…
Reference in New Issue
Block a user