mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-03-12 12:35:25 -07:00
Add a comma to function characters
Bash has very relaxed function name rules and a comma is also a valid character. This commit silences SC1036 check when a function name has a comma in its name.
This commit is contained in:
parent
331e89be99
commit
5100960303
@ -66,7 +66,7 @@ doubleQuote = char '"'
|
||||
variableStart = upper <|> lower <|> oneOf "_"
|
||||
variableChars = upper <|> lower <|> digit <|> oneOf "_"
|
||||
-- Chars to allow in function names
|
||||
functionChars = variableChars <|> oneOf ":+?-./^@"
|
||||
functionChars = variableChars <|> oneOf ":+?-./^@,"
|
||||
-- Chars to allow in functions using the 'function' keyword
|
||||
extendedFunctionChars = functionChars <|> oneOf "[]*=!"
|
||||
specialVariable = oneOf (concat specialVariables)
|
||||
|
Loading…
x
Reference in New Issue
Block a user