Commit 18d1f19
Steven Nguyen
migrate atom/language-javascript#686
The non-tree sitter version is almost completely copied so nothing to say there.
There are some inconsistencies/missing operators in the tree-sitter version, for example:
- `this`
- `new.target`
- `import.meta`
- The keyword.operator order looks more wrong the more I look at it but that's for another day because of the possible scope regularity change in the future: atom/language-javascript#690
- btw atom/language-javascript#691 looks good to me I should probably do that
Even though tree-sitter will have some above changes I added the new operators (`** **= ?? &&= ||= ??= void`) anyway.
Well `void` is not new it's just missing.
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators for a list of operators. Of course while the comma is technically an operator, hopefully it's used more to separate elements in arrays or properties in objects.
Also `delete` is an operator not control.1 parent bc6f0c0 commit 18d1f19
File tree
3 files changed
+469
-150
lines changed- packages/language-javascript
- grammars
- spec
3 files changed
+469
-150
lines changed
0 commit comments