summaryrefslogtreecommitdiff
path: root/pygments/lexers/agile.py
diff options
context:
space:
mode:
authorRob Hoelz <rob@hoelz.ro>2013-04-10 18:36:11 +0200
committerRob Hoelz <rob@hoelz.ro>2013-04-10 18:36:11 +0200
commit208d3abcc2a82fdab3ccfd5a084215d767b08593 (patch)
tree0c95f6f1171ae45a7a3495985ef045fffcea22a0 /pygments/lexers/agile.py
parent5af17e47f8f18c5af5eab27877c77b68d0402ace (diff)
downloadpygments-208d3abcc2a82fdab3ccfd5a084215d767b08593.tar.gz
Move pygments lexer 'attributes' for Perl6 lexer directly below docstring
Diffstat (limited to 'pygments/lexers/agile.py')
-rw-r--r--pygments/lexers/agile.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py
index 3b44c3e1..6c205771 100644
--- a/pygments/lexers/agile.py
+++ b/pygments/lexers/agile.py
@@ -1921,6 +1921,13 @@ class Perl6Lexer(ExtendedRegexLexer):
For `Perl 6 <http://www.perl6.org>`_ source code.
"""
+ name = 'Perl6'
+ aliases = ['perl6', 'pl6']
+ filenames = ['*.pl', '*.pm', '*.nqp', '*.p6', '*.6pl', '*.p6l', '*.pl6',
+ '*.6pm', '*.p6m', '*.pm6']
+ mimetypes = ['text/x-perl6', 'application/x-perl6']
+ flags = re.MULTILINE | re.DOTALL | re.UNICODE
+
PERL6_IDENTIFIER_RANGE = "['a-zA-Z0-9_:-]"
def _build_word_match(words, boundary_regex_fragment = None, prefix = '', suffix = ''):
@@ -2069,13 +2076,6 @@ class Perl6Lexer(ExtendedRegexLexer):
u'\uff3b' : u'\uff3d', u'\uff5b' : u'\uff5d', u'\uff5f' : u'\uff60', u'\uff62' : u'\uff63',
}
- name = 'Perl6'
- aliases = ['perl6', 'pl6']
- filenames = ['*.pl', '*.pm', '*.nqp', '*.p6', '*.6pl', '*.p6l', '*.pl6',
- '*.6pm', '*.p6m', '*.pm6']
- mimetypes = ['text/x-perl6', 'application/x-perl6']
- flags = re.MULTILINE | re.DOTALL | re.UNICODE
-
def brackets_callback(token_class):
def callback(lexer, match, context):
groups = match.groupdict()