Commit 6140469a authored by Yasuyuki Oka's avatar Yasuyuki Oka Committed by Sebastian Wiesner

[Fix #277] Add syntax checker for Racket

parent d78195a6
......@@ -34,4 +34,5 @@
(depends-on "elixir-mode")
(depends-on "erlang")
(depends-on "d-mode")
(depends-on "yaml-mode"))
(depends-on "yaml-mode")
(depends-on "racket-mode"))
......@@ -56,6 +56,7 @@ Features
- PHP
- Puppet
- Python
- Racket
- RST (ReStructuredText)
- Ruby
- Rust
......
......@@ -220,6 +220,8 @@ Puppet (using @command{puppet parser} and @command{puppet-lint})
@item
Python (using @command{flake8} or @command{pylint})
@item
Racket
@item
ReStructuredText (using @command{rst2pseudoxml.py} from Docutils)
@item
Ruby (using @command{rubocop}, @command{ruby} , @command{jruby} or @command{ruby-lint})
......@@ -3222,6 +3224,8 @@ New syntax checkers:
@ghissue{276, AsciiDoc}
@item
@ghissue{271, CFEngine}
@item
@ghissue{277, Racket}
@end itemize
@item
......@@ -3378,7 +3382,7 @@ to the Flake8 syntax checker.
@item
@gh{yasuyk, Yasuyuki Oka} contribute a lot of syntax checkers for
various languages, including AsciiDoc, Chef recipes, Handlebars,
Javascript, PHP, Ruby, Slim and YAML.
Javascript, PHP, Racket, Ruby, Slim and YAML.
@item
@gh{vderyagin, Victor Deryagin} added the Rust syntax checker.
......@@ -3438,6 +3442,7 @@ order of their appearance in the default value of
@iflyc puppet-lint
@iflyc python-flake8
@iflyc python-pylint
@iflyc racket
@iflyc rst
@iflyc ruby-rubocop
@iflyc ruby-rubylint
......
......@@ -153,6 +153,7 @@ buffer-local wherever it is set."
puppet-lint
python-flake8
python-pylint
racket
rst
ruby-rubocop
ruby-rubylint
......@@ -4311,6 +4312,15 @@ See URL `http://pypi.python.org/pypi/pylint'."
"C:" (message) line-end))
:modes python-mode)
(flycheck-define-checker racket
"A Racket syntax checker using the Racket compiler.
See URL `http://racket-lang.org/'."
:command ("racket" "-f" source)
:error-patterns
((error line-start (file-name) ":" line ":" column ":" (message) line-end))
:modes racket-mode)
(flycheck-define-checker rst
"A ReStructuredText (RST) syntax checker using Docutils.
......
......@@ -45,6 +45,13 @@ class flycheck::checkers {
require => Apt::Ppa['ppa:kxstudio-team/builds'],
}
apt::ppa { 'ppa:plt/racket': }
package { 'racket':
ensure => latest,
require => Apt::Ppa['ppa:plt/racket'],
}
apt::ppa { 'ppa:kevincantu/rust': }
package { 'rust':
......
......@@ -3737,6 +3737,13 @@ Why not:
'(22 nil error "Undefined variable 'antigravity' (E0602)"
:checker python-pylint))))
(ert-deftest flycheck-define-checker/racket ()
:tags '(builtin-checker external-tool language-racket)
(skip-unless (flycheck-check-executable 'racket))
(flycheck-test-should-syntax-check
"checkers/racket-syntax-error.rkt" 'racket-mode
'(4 2 error "read: expected a `)' to close `('" :checker racket)))
(ert-deftest flycheck-define-checker/rst ()
:tags '(builtin-checker external-tool language-rst)
(skip-unless (flycheck-check-executable 'rst))
......
(define listener (tcp-listen 12345))
(let echo-server ()
(define-values (in out) (tcp-accept listener))
(thread (lambda () (copy-port in out)
(close-output-port out))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment