othree / javascript-libraries-syntax.vim

Syntax for JavaScript libraries
http://www.vim.org/scripts/script.php?script_id=4428
621 stars 36 forks source link

Sfinktah - d3 (version 4) #58

Closed sfinktah closed 7 years ago

sfinktah commented 7 years ago

This adds syntax for d3/d3: Bring data to life with SVG, Canvas and HTML..

Because of the many changes between the version 3 and version 4 (current) namespace, adding support for both versions would be counter-productive, highlighting incorrect syntax as valid.

There also seems to be a small addition to jQuery (addition of andSelf) that has nothing to do with d3, so LMK if you want that removed and added separately.

BTW, is there an automated process for generating all 4 syntax files? It seemed rather pointless replacing javascript with typescript, saving, then moving to the next.

sfinktah commented 7 years ago

I reverted the jQuery change anyway.

othree commented 7 years ago

There is an shell script inside the folder to do the job generate syntax files for 'coffee', 'ls', 'typescript' based on 'javascript'.

othree commented 7 years ago

Thank you for add one library for this project. I will add other info about it later(readme...). And I think andSelf should removed. But a separate PR will be much better.