c-style comments

--HG--
branch : pmacs2
This commit is contained in:
moculus 2008-05-03 18:40:31 +00:00
parent 9c19cffcf0
commit 6becf40e27
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ from mode.sh import StringGrammar
class ConfGrammar(Grammar): class ConfGrammar(Grammar):
rules = [ rules = [
PatternRule(r'comment', r'#.*$'), PatternRule(r'comment', r'#.*$'),
PatternRule(r'comment', r'//.*$'),
RegionRule(r'string', r"'", Grammar, r"'"), RegionRule(r'string', r"'", Grammar, r"'"),
RegionRule(r'string', r'"', StringGrammar, r'"'), RegionRule(r'string', r'"', StringGrammar, r'"'),
] ]