javascript.tmbundle
javascript.tmbundle copied to clipboard
TextMate support for JavaScript
Code that I'm using (from Stimulus homepage) ``` // hello_controller.js import { Controller } from "stimulus" export default class extends Controller { static targets = [ "name", "output" ] greet()...
See `changes.json`.
Apologies up front; this is a large PR with lots of disparate changes. If some of this stuff isn’t wanted, I’m happy to submit another PR with only the consensus...
Title says it all. 
 The `if` keyword is not being highlighted if it is immediately followed by an open parenthesis.
```javascript export default { func1(param1) { return param1 }, func2( param2 ){ return param2 } } ```
code example: ```javascript var example = function(a1) { var $class = 'unfunc'; var $count = parseInt('1', 10) + parseInt (a1, 10); if(isNaN($count)) { $count = new Number(1); } if (isNaN...
Also: properly highlight constants like `null` and `false` when they are default values of parameters. Before: After: I borrowed portions of these patterns from this [JavaScript (Babel) language definition](https://github.com/gandm/language-babel/blob/master/grammars/Babel%20Language.json) for...
Maybe instead of implementing ES6 features one by one we should just take a grammar that already has it all like https://github.com/gandm/language-babel/blob/master/grammars/Babel%20Language.json ? It has an MIT license, so I...
Issue #3 added support for docblocks, but only a list of hardcoded tags from JSDocs. Since JSDocs allows defining custom tags, it would be great to support a tag highlighting,...