diff --git a/tests/MWPFHTestCase.tmlanguage b/tests/MWPFHTestCase.tmlanguage new file mode 100644 index 0000000..e6ea7f0 --- /dev/null +++ b/tests/MWPFHTestCase.tmlanguage @@ -0,0 +1,130 @@ + + + + + fileTypes + + mwtest + + name + MWParserFromHell Test Case + patterns + + + match + --- + name + markup.heading.divider.mwpfh + + + captures + + 1 + + name + keyword.other.name.mwpfh + + 2 + + name + variable.other.name.mwpfh + + + match + (name:)\s*(\w*) + name + meta.name.mwpfh + + + captures + + 1 + + name + keyword.other.label.mwpfh + + 2 + + name + comment.line.other.label.mwpfh + + + match + (label:)\s*(.*) + name + meta.label.mwpfh + + + captures + + 1 + + name + keyword.other.input.mwpfh + + 2 + + name + string.quoted.double.input.mwpfh + + + match + (input:)\s*(.*) + name + meta.input.mwpfh + + + captures + + 1 + + name + keyword.other.output.mwpfh + + + match + (output:) + name + meta.output.mwpfh + + + captures + + 1 + + name + support.language.token.mwpfh + + + match + (\w+)\s*\( + name + meta.name.token.mwpfh + + + captures + + 1 + + name + variable.parameter.token.mwpfh + + + match + (\w+)\s*(=) + name + meta.name.parameter.token.mwpfh + + + match + ".*?" + name + string.quoted.double.mwpfh + + + scopeName + text.mwpfh + uuid + cd3e2ffa-a57d-4c40-954f-1a2e87ffd638 + + diff --git a/tests/_test_tokenizer.py b/tests/_test_tokenizer.py index 114b835..4d12dc9 100644 --- a/tests/_test_tokenizer.py +++ b/tests/_test_tokenizer.py @@ -107,7 +107,7 @@ class TokenizerTestCase(object): def build(cls): """Load and install all tests from the 'tokenizer' directory.""" directory = path.join(path.dirname(__file__), "tokenizer") - extension = ".test" + extension = ".mwtest" for filename in listdir(directory): if not filename.endswith(extension): continue diff --git a/tests/tokenizer/templates.test b/tests/tokenizer/templates.mwtest similarity index 100% rename from tests/tokenizer/templates.test rename to tests/tokenizer/templates.mwtest diff --git a/tests/tokenizer/text.test b/tests/tokenizer/text.mwtest similarity index 100% rename from tests/tokenizer/text.test rename to tests/tokenizer/text.mwtest