summaryrefslogtreecommitdiff
path: root/pygments/lexers/webmisc.py
diff options
context:
space:
mode:
authorAdam Retter <adam.retter@googlemail.com>2014-11-23 17:55:00 +0000
committerAdam Retter <adam.retter@googlemail.com>2014-11-23 17:55:00 +0000
commit0dac37a7b91033511a988982c35e5b805e7a5914 (patch)
tree4ad312cdfe772f952aa1163e618e31b5a289252e /pygments/lexers/webmisc.py
parent8c7bc623f31f816204ca2d762fc1e55905b7e438 (diff)
downloadpygments-0dac37a7b91033511a988982c35e5b805e7a5914.tar.gz
Bugfix to allow whitespace between the start of a pragma and it's QName
Diffstat (limited to 'pygments/lexers/webmisc.py')
-rw-r--r--pygments/lexers/webmisc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/webmisc.py b/pygments/lexers/webmisc.py
index 9f877e66..3a09e767 100644
--- a/pygments/lexers/webmisc.py
+++ b/pygments/lexers/webmisc.py
@@ -441,7 +441,7 @@ class XQueryLexer(ExtendedRegexLexer):
(r'(item)(\s*)(\()(\s*)(\))(?=[*+?])',
bygroups(Keyword, Text, Punctuation, Text, Punctuation),
'occurrenceindicator'),
- (r'\(\#', Punctuation, 'pragma'),
+ (r'(\(\#)(\s*)', bygroups(Punctuation, Text), 'pragma'),
(r';', Punctuation, '#pop'),
(r'then|else', Keyword, '#pop'),
(r'(at)(\s+)(' + stringdouble + ')',
@@ -708,7 +708,7 @@ class XQueryLexer(ExtendedRegexLexer):
(r'(xquery)(\s+)(version)',
bygroups(Keyword.Pseudo, Text, Keyword.Pseudo), 'xqueryversion'),
- (r'(\(#)', Punctuation, 'pragma'),
+ (r'(\(#)(\s*)', bygroups(Punctuation, Text), 'pragma'),
# sometimes return can occur in root state
(r'return', Keyword),