YAJS: Yet Another JavaScript Syntax
Yet Another JavaScript Syntax file for Vim. Key differences:
- Use 'javascript' as group name's prefix, not 'javaScript' nor 'JavaScript'. Works great with SyntaxComplete.
- Recognize Web API and DOM keywords. Keep increase.
- Works perfect with javascript-libraries-syntax.vim
- Remove old, unused syntax definitions.
- Support several ES6 new syntax, ex: arrow function
=>
.
Credits
- Jose Elera, Enhanced Javascript syntax
- Zhao Yi, Claudio Fleiner, Scott Shattuck (This file is based on their hard work)
- gumnos (From the #vim IRC Channel in Freenode) (Who helped me figured out the crazy Vim Regexes)
Changes
Version 1.2
- Embed JS in html/erb/haml
- fetch
- sendBeacon
- Improve init performance
Version 1.1.1
- Function brace in new line
- Web Crypto
Version 1.1
- JSDoc 3
- ECMA-402: Intl
- async, await
- Event name
- String bugs fix
- Minor bug fix
Version 1.0
- New name
- Refactor Web API and DOM
- Remove old definitions
- Supports partial ES6
- Work with js lib syntax
Version 0.9
- Add HTML interfaces
- Add CustomEvent
- Add custom element api
Version 0.8
- Use javascript as group name prefix, which makes SyntaxComplete can work for JavaScript
- Better support for JSDoc
- Support closure compiler JSDoc annotation
- Support Typed Array and File API
License
The same as Vim