Releases: pangloss/vim-javascript
hotfix
1.2.5: Merge pull request #696 from pangloss/develop
Develop -> Master
refactored indent script
speed has been improved, and the code is more understandable.
Long Await(ed) release!
Really big release in terms of indent performance! improving of the future/current javascript features syntax highlighting and indentation as usual
Numerous indent fixes, and a couple syntax tweaks
Mostly another utility release.
- Indentation has seen many more refinements, including
* Improved performance
* Improved JSX accuracy - Improvements to decorators
- More granular matching for braces and parenthesis
- Various other small tweaks
More indent improvements
The logic for indentation has been greatly improved with this new version, borrowing the same basic algorithm used in such projects as https://github.com/sweet-js/sweet.js and https://github.com/ternjs/acorn for block and object differentiation. I see the indentation getting much more stable now, though as always there possibly are some regressions or bugs
Refactored Indent File
This one is kind of a big one, however hopefully it will appear as if not much has changed. A lot of refactoring work has gone into the indent file, it should be a lot stronger and more stable. However it's definitely possible we've introduced some regressions so please submit fixes if you find them
Other changes include:
- JSFlow plugin refactor
do
expression support- Fixed oddly placed comments breaking
function
definitions,if
,while
,for
, etc statements. - Added some NodeJS constants
- Standardized how we used our
ftplugin
- Misc other small tweaks and fixes
Misc Fixes
Another round of fixes and tweaks.
- Fixed support for
async
statements - Added support for switch statement blocks
- Misc JS Flow fixes
- Fixed comments in import/export statements
- One line indent scoping
Plugin Support, Improved Destructuring, Misc Indent Fixes
The new plugin system finally gets around to adding some basic support for Flow and improved NGDoc support. Check the README for details on enabling these new plugins.
Also destructuring has been greatly improved, and many small indent fixes and tweaks.
Misc Fixes from 1.1.0 Release
- Added support for strings as function names in Objects and Classes.
- Fixed some indent issues with nested parentheses
- Fixed an issue with
catch
function name getting matched as acatch
statement.