diff options
author | Georg Brandl <georg@python.org> | 2014-10-07 22:46:08 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-07 22:46:08 +0200 |
commit | ea07905cba28cb19ffa6afd4c5fa686d3efb8de7 (patch) | |
tree | c1d58cf33250ab8ef2102a7a725d500142999edb /pygments/lexers/graphics.py | |
parent | c4f34582a0647a000829585c26b0c4e0793a6c27 (diff) | |
download | pygments-ea07905cba28cb19ffa6afd4c5fa686d3efb8de7.tar.gz |
Povray: add strings, all directives.
Diffstat (limited to 'pygments/lexers/graphics.py')
-rw-r--r-- | pygments/lexers/graphics.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pygments/lexers/graphics.py b/pygments/lexers/graphics.py index 9376f905..bed5f182 100644 --- a/pygments/lexers/graphics.py +++ b/pygments/lexers/graphics.py @@ -474,10 +474,11 @@ class PovrayLexer(RegexLexer): (r'//.*\n', Comment.Single), (r'(?s)"(?:\\.|[^"\\])+"', String.Double), (words(( - 'debug', 'default', 'else', 'end', 'error', 'fclose', 'fopen', 'ifdef', - 'ifndef', 'include', 'range', 'read', 'render', 'statistics', 'switch', - 'undef', 'version', 'warning', 'while', 'write', 'define', 'macro', - 'local', 'declare'), prefix=r'#', suffix=r'\b'), + 'break', 'case', 'debug', 'declare', 'default', 'define', 'else', + 'elseif', 'end', 'error', 'fclose', 'fopen', 'for', 'if', 'ifdef', + 'ifndef', 'include', 'local', 'macro', 'range', 'read', 'render', + 'statistics', 'switch', 'undef', 'version', 'warning', 'while', + 'write'), prefix=r'#', suffix=r'\b'), Comment.Preproc), (words(( 'aa_level', 'aa_threshold', 'abs', 'acos', 'acosh', 'adaptive', 'adc_bailout', @@ -544,6 +545,7 @@ class PovrayLexer(RegexLexer): (r'[0-9]+\.[0-9]*', Number.Float), (r'\.[0-9]+', Number.Float), (r'[0-9]+', Number.Integer), + (r'"(\\\\|\\"|[^"])*"', String), (r'\s+', Text), ] } |