mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-08 05:51:09 -07:00
Refactor definition of special variables.
This ensures that the parser and other places that refer to special variables can use the same list.
This commit is contained in:
parent
50116e8aee
commit
0358090b3c
2 changed files with 3 additions and 1 deletions
|
@ -69,7 +69,7 @@ variableChars = upper <|> lower <|> digit <|> oneOf "_"
|
|||
functionChars = variableChars <|> oneOf ":+?-./^@"
|
||||
-- Chars to allow in functions using the 'function' keyword
|
||||
extendedFunctionChars = functionChars <|> oneOf "[]*=!"
|
||||
specialVariable = oneOf "@*#?-$!"
|
||||
specialVariable = oneOf (concat specialVariables)
|
||||
paramSubSpecialChars = oneOf "/:+-=%"
|
||||
quotableChars = "|&;<>()\\ '\t\n\r\xA0" ++ doubleQuotableChars
|
||||
quotable = almostSpace <|> oneOf quotableChars
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue