diff options
author | Adam Retter <adam.retter@googlemail.com> | 2014-11-10 17:00:07 +0000 |
---|---|---|
committer | Adam Retter <adam.retter@googlemail.com> | 2014-11-10 17:00:07 +0000 |
commit | b14e5834c478e228f90a80b6450945d85ba136d9 (patch) | |
tree | b06bc9a6e3c407566cb323581181b1a982f4eea0 /pygments/lexers/webmisc.py | |
parent | 9afe3b56e692812dcd311c2a9f530295c64b8fb3 (diff) | |
download | pygments-b14e5834c478e228f90a80b6450945d85ba136d9.tar.gz |
Add XQuery 3.0 Group By Expression
Diffstat (limited to 'pygments/lexers/webmisc.py')
-rw-r--r-- | pygments/lexers/webmisc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/webmisc.py b/pygments/lexers/webmisc.py index 08c0f1ee..dc01ef5e 100644 --- a/pygments/lexers/webmisc.py +++ b/pygments/lexers/webmisc.py @@ -333,6 +333,7 @@ class XQueryLexer(ExtendedRegexLexer): (r'(\{)', pushstate_root_callback), (r'then|else|external|at|div|except', Keyword, 'root'), (r'order by', Keyword, 'root'), + (r'group by', Keyword, 'root'), (r'is|mod|order\s+by|stable\s+order\s+by', Keyword, 'root'), (r'and|or', Operator.Word, 'root'), (r'(eq|ge|gt|le|lt|ne|idiv|intersect|in)(?=\b)', @@ -653,7 +654,7 @@ class XQueryLexer(ExtendedRegexLexer): pushstate_operator_root_validate_withmode), (r'(validate)(\s*)(\{)', pushstate_operator_root_validate), (r'(typeswitch)(\s*)(\()', bygroups(Keyword, Text, Punctuation)), - (r'(switch)(\s*)(\()', bygroups(Keyword, Text, Punctuation)), + (r'(typeswitch)(\s*)(\()', bygroups(Keyword, Text, Punctuation)), (r'(element|attribute)(\s*)(\{)', pushstate_operator_root_construct_callback), |