summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pygments/lexers/web.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py
index b9c4e78b..11bc2175 100644
--- a/pygments/lexers/web.py
+++ b/pygments/lexers/web.py
@@ -2015,7 +2015,7 @@ class XQueryLexer(ExtendedRegexLexer):
ctx.pos = match.end(1)
else:
ctx.stack.append(next_state)
- ctx.pos = match.end()
+ ctx.pos = match.end(1)
def popstate_callback(lexer, match, ctx):
yield match.start(), Punctuation, match.group(1)