mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 01:28:34 +08:00
Merge pull request #957 from martin-schwenke/issue-950
Fix incorrect detection of bash-style substring expansion (issue #950)
This commit is contained in:
@@ -623,7 +623,7 @@ getOffsetReferences mods = fromMaybe [] $ do
|
|||||||
offsets <- match !!! 0
|
offsets <- match !!! 0
|
||||||
return $ matchAllStrings variableNameRegex offsets
|
return $ matchAllStrings variableNameRegex offsets
|
||||||
where
|
where
|
||||||
re = mkRegex "^ *:(.*)"
|
re = mkRegex "^ *:([^-=?+].*)"
|
||||||
|
|
||||||
getReferencedVariables parents t =
|
getReferencedVariables parents t =
|
||||||
case t of
|
case t of
|
||||||
|
Reference in New Issue
Block a user