Use readVariableName combinator
This commit is contained in:
parent
46a3019ed7
commit
dbdab5705f
|
@ -392,7 +392,7 @@ withAnnotations anns =
|
||||||
readConditionContents single =
|
readConditionContents single =
|
||||||
readCondContents `attempting` lookAhead (do
|
readCondContents `attempting` lookAhead (do
|
||||||
pos <- getPosition
|
pos <- getPosition
|
||||||
s <- many1 letter
|
s <- readVariableName
|
||||||
when (s `elem` commonCommands) $
|
when (s `elem` commonCommands) $
|
||||||
parseProblemAt pos WarningC 1014 "Use 'if cmd; then ..' to check exit code, or 'if [[ $(cmd) == .. ]]' to check output.")
|
parseProblemAt pos WarningC 1014 "Use 'if cmd; then ..' to check exit code, or 'if [[ $(cmd) == .. ]]' to check output.")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue