tools: Added ruby_syntax for ruby files.

This commit is contained in:
Andrew Hamilton 2018-06-05 07:06:58 +10:00
parent 2338a87932
commit 8c53f2c47c
2 changed files with 8 additions and 1 deletions

View file

@ -23,7 +23,7 @@ then to run:
### Tools ### Tools
Extensions(90) | Tools(57) Extensions(91) | Tools(58)
---------- | ----- ---------- | -----
.* | [contents](http://pygments.org/) • metadata • [git_blame](https://git-scm.com/docs/git-blame) • [git_log](https://git-scm.com/docs/git-log) .* | [contents](http://pygments.org/) • metadata • [git_blame](https://git-scm.com/docs/git-blame) • [git_log](https://git-scm.com/docs/git-log)
.py | [python_syntax](https://en.wikipedia.org/wiki/Python_syntax_and_semantics) • [python_unittests](https://docs.python.org/3/library/unittest.html) • [pydoc](https://docs.python.org/3/library/pydoc.html) • [mypy](http://www.mypy-lang.org/) • [python_coverage](http://nedbatchelder.com/code/coverage/) • [pycodestyle](https://pypi.python.org/pypi/pycodestyle) • [pydocstyle](http://pydocstyle.readthedocs.org/) • [pyflakes](https://launchpad.net/pyflakes) • [pylint](http://www.pylint.org/) • [python_gut](https://github.com/ahamilton/vigil/blob/master/gut.py) • [python_modulefinder](https://docs.python.org/3/library/modulefinder.html) • [dis](https://docs.python.org/3/library/dis.html) • [python_mccabe](https://github.com/flintwork/mccabe) • [bandit](https://wiki.openstack.org/wiki/Security/Projects/Bandit) .py | [python_syntax](https://en.wikipedia.org/wiki/Python_syntax_and_semantics) • [python_unittests](https://docs.python.org/3/library/unittest.html) • [pydoc](https://docs.python.org/3/library/pydoc.html) • [mypy](http://www.mypy-lang.org/) • [python_coverage](http://nedbatchelder.com/code/coverage/) • [pycodestyle](https://pypi.python.org/pypi/pycodestyle) • [pydocstyle](http://pydocstyle.readthedocs.org/) • [pyflakes](https://launchpad.net/pyflakes) • [pylint](http://www.pylint.org/) • [python_gut](https://github.com/ahamilton/vigil/blob/master/gut.py) • [python_modulefinder](https://docs.python.org/3/library/modulefinder.html) • [dis](https://docs.python.org/3/library/dis.html) • [python_mccabe](https://github.com/flintwork/mccabe) • [bandit](https://wiki.openstack.org/wiki/Security/Projects/Bandit)
@ -33,6 +33,7 @@ Extensions(90) | Tools(57)
.c .h | [c_syntax_gcc](https://gcc.gnu.org/) • [splint](http://www.splint.org/) • [uncrustify](https://github.com/uncrustify/uncrustify) • [cppcheck](http://sourceforge.net/p/cppcheck/wiki/Home/) .c .h | [c_syntax_gcc](https://gcc.gnu.org/) • [splint](http://www.splint.org/) • [uncrustify](https://github.com/uncrustify/uncrustify) • [cppcheck](http://sourceforge.net/p/cppcheck/wiki/Home/)
.o | [objdump_headers](https://en.wikipedia.org/wiki/Objdump) • [objdump_disassemble](https://en.wikipedia.org/wiki/Objdump) • [readelf](https://en.wikipedia.org/wiki/Objdump) .o | [objdump_headers](https://en.wikipedia.org/wiki/Objdump) • [objdump_disassemble](https://en.wikipedia.org/wiki/Objdump) • [readelf](https://en.wikipedia.org/wiki/Objdump)
.cc .cpp .hpp | [cpp_syntax_gcc](https://gcc.gnu.org/) • bcpp • [uncrustify](https://github.com/uncrustify/uncrustify) • [cppcheck](http://sourceforge.net/p/cppcheck/wiki/Home/) .cc .cpp .hpp | [cpp_syntax_gcc](https://gcc.gnu.org/) • bcpp • [uncrustify](https://github.com/uncrustify/uncrustify) • [cppcheck](http://sourceforge.net/p/cppcheck/wiki/Home/)
.rb | [ruby_syntax](http://www.ruby-lang.org/)
.pdf | [pdf2txt](http://www.unixuser.org/~euske/python/pdfminer/) .pdf | [pdf2txt](http://www.unixuser.org/~euske/python/pdfminer/)
.html .htm | [html_syntax](http://www.html-tidy.org/) • [tidy](http://www.html-tidy.org/) • [html2text](http://www.mbayer.de/html2text/) • [pandoc](https://pandoc.org/) .html .htm | [html_syntax](http://www.html-tidy.org/) • [tidy](http://www.html-tidy.org/) • [html2text](http://www.mbayer.de/html2text/) • [pandoc](https://pandoc.org/)
.php | [php7_syntax](https://en.wikipedia.org/wiki/PHP) .php | [php7_syntax](https://en.wikipedia.org/wiki/PHP)

View file

@ -15,6 +15,7 @@ tools_for_extensions = [
[["o"], ["objdump_headers", "objdump_disassemble", "readelf"]], [["o"], ["objdump_headers", "objdump_disassemble", "readelf"]],
[["cc", "cpp", "hpp"], ["cpp_syntax_gcc", "bcpp", "uncrustify", [["cc", "cpp", "hpp"], ["cpp_syntax_gcc", "bcpp", "uncrustify",
"cppcheck"]], "cppcheck"]],
[["rb"], ["ruby_syntax"]],
[["pdf"], ["pdf2txt"]], [["pdf"], ["pdf2txt"]],
[["html", "htm"], ["html_syntax", "tidy", "html2text", "pandoc"]], [["html", "htm"], ["html_syntax", "tidy", "html2text", "pandoc"]],
[["php"], ["php7_syntax"]], [["php"], ["php7_syntax"]],
@ -188,6 +189,11 @@ tools_for_extensions = [
url = "cppcheck" url = "cppcheck"
command = "cppcheck" command = "cppcheck"
[ruby_syntax]
dependencies = ["ruby"]
url = "ruby"
command = "ruby -c"
[gofmt] [gofmt]
dependencies = ["golang-go"] dependencies = ["golang-go"]
url = "golang-go" url = "golang-go"