Update the Pygments WRF lexer for the changes done to the WRF file format in r5188:5189

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5190 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-05-25 20:03:37 +00:00
parent 1d739ce56b
commit c8d9336618
1 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,9 @@ class WRFLexer(RegexLexer):
(r'/\*', Comment.Multiline, 'comment'),
(r'//.*?$', Comment.Singleline),
(r'\bdirectory\b', Keyword),
(r'\bfile\b', Keyword, 'file_line'),
(r'\bfile\b', Keyword, 'resource_line'),
(r'\bdatabase\b', Keyword),
(r'\btable\b', Keyword, 'resource_line'),
(r'"[^"]*"', String),
(r'[ \t\n\x0d\x0a]+', Text),
],
@ -21,7 +23,7 @@ class WRFLexer(RegexLexer):
(r'\*/', Comment.Multiline, '#pop'),
(r'\*[^/]', Comment.Multiline),
],
'file_line': [
'resource_line': [
(r'[ \t\n\x0d\x0a]+', Text),
(r'\b.+?\b', Literal, '#pop'),
]