heredoc bug fix

--HG--
branch : pmacs2
This commit is contained in:
moculus 2008-03-16 19:59:43 +00:00
parent b19b8803b6
commit 867e38966f
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ class TestGrammar(Grammar):
class ShGrammar(Grammar):
rules = [
RegionRule(r'heredoc', r"<<(?P<heredoc>[a-zA-Z0-9_]+)", StringGrammar, r'^%(heredoc)s$'),
PatternRule(r'sh_function', r'[a-zA-Z_][a-zA-Z0-9_]*(?= *\(\))'),
PatternRule(r'sh_reserved', r"(?:done|do|elif|else|esac|fi|for|function|if|in|select|then|until|while|time)(?![a-zA-Z0-9_=/])"),
RegionRule(r'case', r'case', Grammar, 'in', CaseGrammar, r'esac'),