othree / yajs.vim

YAJS.vim: Yet Another JavaScript Syntax for Vim
http://www.vim.org/scripts/script.php?script_id=4974
Vim License
688 stars 41 forks source link

Support for npm like no semi colon coding style #30

Closed lin7sh closed 9 years ago

lin7sh commented 9 years ago

http://mattbriggs.net/blog/2012/05/03/npm-style-javascript-is-the-conservative-choice/

othree commented 9 years ago

Could you provide some code sample to tell me current issue more clearly. I don't think semicolon have any impact in current yajs.vim It should work fine in this coding style.

lin7sh commented 9 years ago

Without semicolon: screen shot 2015-04-27 at 7 10 45 pm

With semicolon(): screen shot 2015-04-27 at 7 12 47 pm

my .vimrc https://gist.github.com/503dcec207a6053709eb

othree commented 9 years ago

Thanks, this is a regexp bug.

lin7sh commented 9 years ago

it works now, awesome!

HerringtonDarkholme commented 9 years ago

Though it rarely appears, ES6 spec does permits StringLiteral in moduleSpecifier, and StringLiteral does contain multiline string