New redirect checker for arduino: avrgcc.
This commit is contained in:
parent
7b0d3f868c
commit
e54f28e338
@ -35,16 +35,16 @@ the user is notified and is happy because they didn't have to compile their
|
|||||||
code or execute their script to find them.
|
code or execute their script to find them.
|
||||||
|
|
||||||
At the time of this writing, syntax checking plugins exist for ActionScript,
|
At the time of this writing, syntax checking plugins exist for ActionScript,
|
||||||
Ada, AppleScript, AsciiDoc, ASM, BEMHTML, Bro, Bourne shell, C, C++, C#, Cabal,
|
Ada, AppleScript, Arduino, AsciiDoc, ASM, BEMHTML, Bro, Bourne shell, C,
|
||||||
Chef, CoffeeScript, Coco, Coq, CSS, Cucumber, CUDA, D, Dart, DocBook, Dust,
|
C++, C#, Cabal, Chef, CoffeeScript, Coco, Coq, CSS, Cucumber, CUDA, D, Dart,
|
||||||
Elixir, Erlang, eRuby, Fortran, Gentoo metadata, GLSL, Go, Haml, Haskell, Haxe,
|
DocBook, Dust, Elixir, Erlang, eRuby, Fortran, Gentoo metadata, GLSL, Go,
|
||||||
Handlebars, HSS, HTML, Java, JavaScript, JSON, JSX, LESS, Lex, Limbo, LISP,
|
Haml, Haskell, Haxe, Handlebars, HSS, HTML, Java, JavaScript, JSON, JSX, LESS,
|
||||||
LLVM intermediate language, Lua, MATLAB, NASM, Objective-C, Objective-C++,
|
Lex, Limbo, LISP, LLVM intermediate language, Lua, MATLAB, NASM, Objective-C,
|
||||||
OCaml, Perl, Perl POD, PHP, gettext Portable Object, OS X and iOS property
|
Objective-C++, OCaml, Perl, Perl POD, PHP, gettext Portable Object, OS X
|
||||||
lists, Puppet, Python, Racket, R, reStructuredText, Ruby, SASS/SCSS, Scala,
|
and iOS property lists, Puppet, Python, Racket, R, reStructuredText, Ruby,
|
||||||
Slim, Tcl, TeX, Texinfo, Twig, TypeScript, Vala, Verilog, VHDL, VimL, xHtml,
|
SASS/SCSS, Scala, Slim, Tcl, TeX, Texinfo, Twig, TypeScript, Vala, Verilog,
|
||||||
XML, XSLT, YACC, YAML, z80, Zope page templates, and zsh. See the [wiki][3]
|
VHDL, VimL, xHtml, XML, XSLT, YACC, YAML, z80, Zope page templates, and zsh.
|
||||||
for details about the corresponding supported checkers.
|
See the [wiki][3] for details about the corresponding supported checkers.
|
||||||
|
|
||||||
Below is a screenshot showing the methods that Syntastic uses to display syntax
|
Below is a screenshot showing the methods that Syntastic uses to display syntax
|
||||||
errors. Note that, in practise, you will only have a subset of these methods
|
errors. Note that, in practise, you will only have a subset of these methods
|
||||||
|
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:syntastic_start
|
lockvar! g:syntastic_start
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:syntastic_version = '3.4.0-97'
|
let g:syntastic_version = '3.4.0-99'
|
||||||
lockvar g:syntastic_version
|
lockvar g:syntastic_version
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -9,6 +9,7 @@ let s:defaultCheckers = {
|
|||||||
\ 'actionscript':['mxmlc'],
|
\ 'actionscript':['mxmlc'],
|
||||||
\ 'ada': ['gcc'],
|
\ 'ada': ['gcc'],
|
||||||
\ 'applescript': ['osacompile'],
|
\ 'applescript': ['osacompile'],
|
||||||
|
\ 'arduino': ['avrgcc'],
|
||||||
\ 'asciidoc': ['asciidoc'],
|
\ 'asciidoc': ['asciidoc'],
|
||||||
\ 'asm': ['gcc'],
|
\ 'asm': ['gcc'],
|
||||||
\ 'bro': ['bro'],
|
\ 'bro': ['bro'],
|
||||||
|
26
syntax_checkers/arduino/avrgcc.vim
Normal file
26
syntax_checkers/arduino/avrgcc.vim
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
"============================================================================
|
||||||
|
"File: avrgcc.vim
|
||||||
|
"Description: Syntax checking plugin for syntastic.vim
|
||||||
|
"Maintainer: Karel <karelishere at gmail dot com>
|
||||||
|
"License: This program is free software. It comes without any warranty,
|
||||||
|
" to the extent permitted by applicable law. You can redistribute
|
||||||
|
" it and/or modify it under the terms of the Do What The Fuck You
|
||||||
|
" Want To Public License, Version 2, as published by Sam Hocevar.
|
||||||
|
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||||
|
"
|
||||||
|
"============================================================================
|
||||||
|
|
||||||
|
if exists('g:loaded_syntastic_arduino_avrgcc_checker')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:loaded_syntastic_arduino_avrgcc_checker = 1
|
||||||
|
|
||||||
|
runtime! syntax_checkers/c/*.vim
|
||||||
|
|
||||||
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
|
\ 'filetype': 'c',
|
||||||
|
\ 'name': 'avrgcc',
|
||||||
|
\ 'exec': 'avr-gcc'
|
||||||
|
\ 'redirect': 'c/avrgcc'})
|
||||||
|
|
||||||
|
" vim: set et sts=4 sw=4:
|
@ -53,3 +53,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
|
|||||||
|
|
||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
|
|
||||||
|
" vim: set et sts=4 sw=4:
|
||||||
|
@ -38,3 +38,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
|
|||||||
|
|
||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
|
|
||||||
|
" vim: set et sts=4 sw=4:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user