diff --git a/TODO b/TODO index 6d9aa49..3ae94e8 100644 --- a/TODO +++ b/TODO @@ -152,7 +152,7 @@ A-syntax, B-tests, C-auto docs, D-lint, E-coverage, F-profile, G-tidy, H-import python * s * * * * s * python3 * s * * * * s * perl * s s -perl6 +perl6 * html s - - - s css - c s s diff --git a/tools.py b/tools.py index 0547ca6..b7bfcd5 100644 --- a/tools.py +++ b/tools.py @@ -377,6 +377,11 @@ def perltidy(path): perltidy.dependencies = {"perltidy"} +def perl6_syntax(path): + return _run_command(path, ["perl6", "-c", path]) +perl6_syntax.dependencies = {"perl6"} + + def _jlint_tool(tool_type, path): stdout, stderr, returncode = _do_command([tool_type, path]) status = (Status.success @@ -536,6 +541,9 @@ def tools_for_extension(): "pyc": [disassemble_pyc], "pl": [perl_syntax, perldoc, perltidy], "pm": [perl_syntax, perldoc, perltidy], + "t": [perl_syntax, perldoc, perltidy], + "p6": [perl6_syntax], + "pm6": [perl6_syntax], "java": [antic, uncrustify], "class": [jlint], "c": [splint, uncrustify],