mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
better lexer guessing
This commit is contained in:
@@ -19,9 +19,13 @@ def test_highlight() -> None:
|
||||
@pytest.mark.parametrize(
|
||||
"code,path,language",
|
||||
[
|
||||
("", "", "default"),
|
||||
("# Don't matter", "foo.tcss", "scss"),
|
||||
("import this", "foo.py", "python"),
|
||||
("<xml>", "foo.xml", "xml"),
|
||||
("{}", "data.json", "json"),
|
||||
("#! python", "", "python"),
|
||||
("", "foo.py", "python"),
|
||||
],
|
||||
)
|
||||
def test_guess_language(code: str, path: str, language: str) -> None:
|
||||
|
||||
Reference in New Issue
Block a user