diff options
author | Adam Retter <adam.retter@googlemail.com> | 2014-11-23 17:55:00 +0000 |
---|---|---|
committer | Adam Retter <adam.retter@googlemail.com> | 2014-11-23 17:55:00 +0000 |
commit | 0dac37a7b91033511a988982c35e5b805e7a5914 (patch) | |
tree | 4ad312cdfe772f952aa1163e618e31b5a289252e /pygments/lexers/webmisc.py | |
parent | 8c7bc623f31f816204ca2d762fc1e55905b7e438 (diff) | |
download | pygments-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.py | 4 |
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), |