diff --git a/mode/sh.py b/mode/sh.py index bb4a99e..bf56cb6 100644 --- a/mode/sh.py +++ b/mode/sh.py @@ -82,7 +82,7 @@ TestGrammar.rules = [ PatternRule(r'continuation', r'\\\n$'), PatternRule(r'redirect', r'<|>'), PatternRule(r'delimiter', r";;|[();{}|&><]"), - RegionRule(r'test', r'test', None, r';|\n'), + RegionRule(r'test', r'test(?![a-zA-Z0-9_=/])', None, r';|\n'), RegionRule(r'test2', r'\[\[', None, r'\]\]'), RegionRule(r'test3', r'\[', None, r'\]'), RegionRule(r'eval', r'`', EvalGrammar, r'`'),