--HG--
branch : pmacs2
This commit is contained in:
moculus 2008-10-03 13:48:08 +00:00
parent 5e8ad6f831
commit 1fd60f8197
1 changed files with 1 additions and 1 deletions

View File

@ -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' +'),