From b346d64d86f6ca80d932d55a097d77f2d822b2ab Mon Sep 17 00:00:00 2001 From: moculus Date: Wed, 20 Aug 2008 18:30:07 +0000 Subject: [PATCH] --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 a7ec427..1eff6fe 100644 --- a/mode/sh.py +++ b/mode/sh.py @@ -78,7 +78,7 @@ class ShGrammar(Grammar): RegionRule(r'string', '"', StringGrammar, '"'), OverridePatternRule(r'comment', r'#@@:(?P[.a-zA-Z0-9_]+):(?P[.a-zA-Z0-9_]+) *$'), PatternRule(r'comment', r'#.*$'), - PatternRule(r'bareword', r'[-a-zA-Z0-9_.]+'), + PatternRule(r'bareword', r'(?:[-a-zA-Z0-9_.]|\\.)+'), PatternRule(r'continuation', r'\\\n$'), PatternRule(r'eol', r'\n$'), ]