vim-es6
vim-es6 copied to clipboard
List of JavaScript ES6 snippets and syntax highlighting for vim.
I've installed this plugin without any problem, but when I want to make a comment for JSDoc the syntax highlighting doesn't work. I don't know if this just happened to...
Example: ```js if ((1) || (2) || (3) ) { echo 'foo'; } ``` The above is bad because visually it looks like we're still inside the if statement as...
Example: ```js let foo = (( 1+ 2) ) let bar = 3; ``` I would expect this to be: ```js let foo = (( 1+ 2) ) let bar...
This package handles multi-line method indent like this: ```js const foo = this.someMethod() .someOtherMethod(); ``` But it should handle it like this (or at least provide the option to handle...
`constructor` is also a keyword in ES6, added it to syntax highlighting
* I see `JavaScriptFold()` in the source, however vim tells me `No fold found` when I type `zc` in a foldable block * If I add the following manually to...
Example: ```js if (1) { echo 'foo'; } ``` I expect this to indent as: ```js if (1) { echo 'foo'; } ``` It appears to handle the bracket inline...
[The grammar for RegExp literals in ES6](http://www.ecma-international.org/ecma-262/6.0/#sec-literals-regular-expression-literals) allows `/` to appear without a preceding `\` in character class expressions (see `RegularExpressionClassChar` in the grammar). However, vim-es6 highlights such expressions incorrectly....
Hi, with the following code : ``` function f() { const r = /foo.*/; console.log(r); } ``` If you run `gg=G` to reindent the full file, you will get :...