Merge pull request #957 from martin-schwenke/issue-950

Fix incorrect detection of bash-style substring expansion (issue #950)
This commit is contained in:
koalaman 2017-08-06 15:34:23 -07:00 committed by GitHub
commit b94c03e5a1
1 changed files with 1 additions and 1 deletions

View File

@ -623,7 +623,7 @@ getOffsetReferences mods = fromMaybe [] $ do
offsets <- match !!! 0
return $ matchAllStrings variableNameRegex offsets
where
re = mkRegex "^ *:(.*)"
re = mkRegex "^ *:([^-=?+].*)"
getReferencedVariables parents t =
case t of