Add perl6 syntax checking.
Still need to determine if pl, pm or t files are perl5 or perl6.
This commit is contained in:
parent
0f182df53f
commit
0239c19e7e
2 changed files with 9 additions and 1 deletions
8
tools.py
8
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],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue