From dd91be61695a9d2e6b83f7e98a81bc19782d0856 Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Sun, 17 May 2009 15:45:39 -0400 Subject: [PATCH] avoid parsing bugs --HG-- branch : pmacs2 --- mode/sh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'`'),