diff options
author | Georg Brandl <georg@python.org> | 2010-11-08 11:05:55 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-11-08 11:05:55 +0100 |
commit | 482366a5e549c830e5c89bba644ead171412edfa (patch) | |
tree | f573425d5b99cafd54454230b750a3726720cf63 | |
parent | b1020ac9d1dd036f02c5879a621959c5fd5fe2ec (diff) | |
download | pygments-482366a5e549c830e5c89bba644ead171412edfa.tar.gz |
Few fixes to the GLSL lexer.
-rw-r--r-- | pygments/lexers/compiled.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index eb386500..a1bca14e 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -1335,7 +1335,7 @@ class GLShaderLexer(RegexLexer): (r'[+-]?\d*\.\d+([eE][-+]?\d+)?', Number.Float), (r'[+-]?\d+\.\d*([eE][-+]?\d+)?', Number.Float), (r'0[xX][0-9a-fA-F]*', Number.Hex), - (r'0[0-7]*', Number.Octal), + (r'0[0-7]*', Number.Oct), (r'[1-9][0-9]*', Number.Integer), (r'\b(attribute|const|uniform|varying|centroid|break|continue|' r'do|for|while|if|else|in|out|inout|float|int|void|bool|true|' @@ -1348,12 +1348,12 @@ class GLShaderLexer(RegexLexer): r'lowp|mediump|highp|precision|input|output|hvec[234]|' r'[df]vec[234]|sampler[23]DRect|sampler2DRectShadow|sizeof|' r'cast|namespace|using)\b', Keyword), #future use - (r'[a-zA-Z_][a-zA-Z_0-9]*', Name.Variable), (r'\.', Punctuation), (r'\s+', Text), ], } + class PrologLexer(RegexLexer): """ Lexer for Prolog files. @@ -1709,7 +1709,7 @@ class OocLexer(RegexLexer): (r'[:(){}\[\];,]', Punctuation), (r'0x[0-9a-fA-F]+', Number.Hex), - (r'0c[0-9]+', Number.Octal), + (r'0c[0-9]+', Number.Oct), (r'0b[01]+', Number.Binary), (r'[0-9_]\.[0-9_]*(?!\.)', Number.Float), (r'[0-9_]+', Number.Decimal), |