summaryrefslogtreecommitdiff
path: root/pygments/lexers/agile.py
diff options
context:
space:
mode:
authorRob Hoelz <rob@hoelz.ro>2012-12-26 18:24:52 +0100
committerRob Hoelz <rob@hoelz.ro>2012-12-26 18:24:52 +0100
commite6799adb2340f619d38d3418332d96fec2f5abec (patch)
treed54b59c723bba86bc810a94b161875d9e1aa82a4 /pygments/lexers/agile.py
parent85942ca5c55eff5213751c533c0876a80f273ac7 (diff)
downloadpygments-e6799adb2340f619d38d3418332d96fec2f5abec.tar.gz
Add a na?ve rule for quote words <foo bar baz>
The way this works is we assume that there will be no spaces between the opening angle brace and the first word as well as between the last word and the closing brace. Thanks to the perl6 syntax file for Vim for the idea!
Diffstat (limited to 'pygments/lexers/agile.py')
-rw-r--r--pygments/lexers/agile.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py
index b700c696..55e32f9e 100644
--- a/pygments/lexers/agile.py
+++ b/pygments/lexers/agile.py
@@ -2102,6 +2102,7 @@ class Perl6Lexer(ExtendedRegexLexer):
( r'[0-9a-zA-Z_][' + PERL6_IDENTIFIER_CHARS + ']*', Name ),
( r"'(\\\\|\\[^\\]|[^'\\])*'", String ),
( r'"(\\\\|\\[^\\]|[^"\\])*"', String ),
+ ( r'<\S.*?\S>', String ),
( _build_word_match([ re.escape(x) for x in PERL6_OPERATORS]), Operator ),
( r'.+?', Text ),
],