Merge pull request #1097 from sdknudsen/fix/recognize-ids-with-underscores

Use readVariableName combinator
This commit is contained in:
koalaman 2018-01-20 11:35:22 -08:00 committed by GitHub
commit 72971fa52b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ withAnnotations anns =
readConditionContents single =
readCondContents `attempting` lookAhead (do
pos <- getPosition
s <- many1 letter
s <- readVariableName
when (s `elem` commonCommands) $
parseProblemAt pos WarningC 1014 "Use 'if cmd; then ..' to check exit code, or 'if [[ $(cmd) == .. ]]' to check output.")