From 1fd60f8197ab034a6edfc70b70793c21f1ee502f Mon Sep 17 00:00:00 2001 From: moculus Date: Fri, 3 Oct 2008 13:48:08 +0000 Subject: [PATCH] sh fixes --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 dd01519..e055265 100644 --- a/mode/sh.py +++ b/mode/sh.py @@ -89,7 +89,7 @@ class TestGrammar(Grammar): class ShGrammar(Grammar): rules = [ PatternGroupRule(r'vardecl', r'spaces', r'^ +', r'variable', r'[a-zA-Z_][a-zA-Z0-9_]*', r'delimiter', r'='), - PatternGroupRule(r'vardecl', r'sh_builtin', r'export', r'spaces', r' +', r'variable', r'[a-zA-Z_][a-zA-Z0-9_]*', r'delimiter', r'='), + PatternGroupRule(r'vardecl', r'sh_builtin', r'(?:alias|export)', r'spaces', r' +', r'variable', r'[a-zA-Z_][a-zA-Z0-9_]*', r'delimiter', r'='), PatternRule(r'variable', r"^[a-zA-Z_][a-zA-Z0-9_]*(?==)"), PatternRule(r'spaces', r' +'),