Go to file
Martin Grenfell 62ef08d334 make a fix to the coffee checker
This is in response to #88 where errors like this were getting missed:

SyntaxError: In simpleMapComponent.js.coffee, Reserved word "function" on line 10
 at SyntaxError (unknown source)
 at Lexer.identifierError (/usr/lib/node_modules/coffee-script/lib/lexer.js:458:13)
 at Lexer.identifierToken (/usr/lib/node_modules/coffee-script/lib/lexer.js:80:16)
 at Lexer.tokenize (/usr/lib/node_modules/coffee-script/lib/lexer.js:31:19)
 at Object.compile (/usr/lib/node_modules/coffee-script/lib/coffee-script.js:29:34)
 at /usr/lib/node_modules/coffee-script/lib/command.js:149:33
 at /usr/lib/node_modules/coffee-script/lib/command.js:115:26
 at [object Object].<anonymous> (fs.js:107:5)
 at [object Object].emit (events.js:61:17)
 at afterRead (fs.js:878:12)

To fix this I have added another error matcher on the front of the
errorformat and have made a fix to the %-G matcher on the end (i.e. it
wasnt actually matching anything before).

The errorformat may need more updating.
2011-12-04 01:40:12 +00:00
autoload/syntastic shift all the c helper functions into their own autoload lib file 2011-11-30 22:13:16 +00:00
doc update changelog and credits 2011-12-01 17:59:59 +00:00
plugin fix a bug with error highlighting 2011-12-04 00:45:07 +00:00
syntax_checkers make a fix to the coffee checker 2011-12-04 01:40:12 +00:00
.gitignore Adds .gitignore file, useful with pathogen 2011-11-09 13:26:59 +01:00
README.markdown tiny documentation addition re: generating helptags 2011-12-02 17:14:40 -05:00

Syntastic

Run for the sink and fetch a glass of water, and snatch your padded bike shorts off the clothes horse on the way back cos syntastic is gonna kick you in the ass hard enough to cause the oral ejection of your spleen.

Tired of waiting for your rails environment to load only to find you failed @ syntax??

SCREW THAT!

Did you just reload that web page only to be told you can't balance brackets to save your own testicles?

F#%K THAT!!

Have you just wasted precious seconds of your life only to see gcc whinging about a missing semi colon?

RAPING DAMN IT!!!1

Syntastic can save you time by running your code through external syntax checkers to detect errors. It provides the following features:

  • Errors can be loaded and displayed in a location list.
  • A configurable statusline flag is available to display a summary of errors.
  • Signs can be placed next to lines with errors or warnings.
  • Offending parts of lines can be highlighted.
  • Balloons are can be used to display error messages.

Syntastic can be configured to be as intrusive or as passive as you want it to be - to the point where you invoke it manually.

At the time of this writing, syntax checking plugins exist for c, coffee, cpp, css, cucumber, cuda, docbk, erlang, eruby, fortran, go, haml, haskell, html, javascript, less, lua, matlab, perl, php, puppet, python, ruby, sass/scss, sh, tcl, tex, vala, xhtml, xml, xslt, zpt.

Installation

pathogen.vim is the recommended way to install syntastic.

cd ~/.vim/bundle
git clone https://github.com/scrooloose/syntastic.git

Then reload vim, run :Helptags, and check out :help syntastic.txt.