diff options
author | Georg Brandl <georg@python.org> | 2014-10-07 21:37:56 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-07 21:37:56 +0200 |
commit | 9c0ad332a8d47c40231f04305f33740d4a690bc3 (patch) | |
tree | 8f3cb65c548a5f8e9a128c2b8fcadb5d5c628bd4 /pygments/lexers/webmisc.py | |
parent | f70bf51ec7d50aadaafa668d482619ed88b72618 (diff) | |
download | pygments-9c0ad332a8d47c40231f04305f33740d4a690bc3.tar.gz |
XQuery: add || operator.
Diffstat (limited to 'pygments/lexers/webmisc.py')
-rw-r--r-- | pygments/lexers/webmisc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/webmisc.py b/pygments/lexers/webmisc.py index b43117cb..fe0fae64 100644 --- a/pygments/lexers/webmisc.py +++ b/pygments/lexers/webmisc.py @@ -339,7 +339,7 @@ class XQueryLexer(ExtendedRegexLexer): Operator.Word, 'root'), (r'return|satisfies|to|union|where|preserve\s+strip', Keyword, 'root'), - (r'(>=|>>|>|<=|<<|<|-|\*|!=|\+|\||:=|=)', + (r'(>=|>>|>|<=|<<|<|-|\*|!=|\+|\|\||\||:=|=)', operator_root_callback), (r'(::|;|\[|//|/|,)', punctuation_root_callback), @@ -429,7 +429,7 @@ class XQueryLexer(ExtendedRegexLexer): (r'except|intersect|in|is|return|satisfies|to|union|where', Keyword, 'root'), (r'and|div|eq|ge|gt|le|lt|ne|idiv|mod|or', Operator.Word, 'root'), - (r':=|=|,|>=|>>|>|\[|\(|<=|<<|<|-|!=|\|', Operator, 'root'), + (r':=|=|,|>=|>>|>|\[|\(|<=|<<|<|-|!=|\|\||\|', Operator, 'root'), (r'external|at', Keyword, 'root'), (r'(stable)(\s+)(order)(\s+)(by)', bygroups(Keyword, Text, Keyword, Text, Keyword), 'root'), |