diff options
author | Matthäus G. Chajdas <dev@anteru.net> | 2020-11-08 09:17:12 +0100 |
---|---|---|
committer | Matthäus G. Chajdas <dev@anteru.net> | 2020-11-08 09:17:12 +0100 |
commit | afa9e3be5a05a27ed2c8ac515a10e146a766ad15 (patch) | |
tree | 7ded6127136ac596ff7f1cfe92673e95a541db7a /tests/test_templates.py | |
parent | 255442ae96a5f283f05f246a9827beecc9612c26 (diff) | |
download | pygments-git-afa9e3be5a05a27ed2c8ac515a10e146a766ad15.tar.gz |
Fix Mason regex.
Previously, the tag was cut off.
Diffstat (limited to 'tests/test_templates.py')
-rw-r--r-- | tests/test_templates.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_templates.py b/tests/test_templates.py index 5b4d90b2..fb6a5072 100644 --- a/tests/test_templates.py +++ b/tests/test_templates.py @@ -45,8 +45,7 @@ def test_mason_unnamed_block(lexerMason): def test_mason_handles_tags_correctly(lexerMason): fragment = "<%class>\nhas 'foo';\nhas 'bar' => (required => 1);\nhas 'baz' => (isa => 'Int', default => 17);\n</%class>\n" tokens = [ - (Token.Name.Tag, 'class'), - (Token.Name.Tag, '>'), + (Token.Name.Tag, '<%class>'), (Token.Text, '\n'), (Token.Name, ''), (Token.Name, 'has'), |