diff --git a/ShellCheck/AnalyzerLib.hs b/ShellCheck/AnalyzerLib.hs index a119d9b..bb8df63 100644 --- a/ShellCheck/AnalyzerLib.hs +++ b/ShellCheck/AnalyzerLib.hs @@ -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