tree-sitter-javascript icon indicating copy to clipboard operation
tree-sitter-javascript copied to clipboard

Javascript grammar for tree-sitter

Results 42 tree-sitter-javascript issues
Sort by recently updated
recently updated
newest added

I made some changes to JSX parsing: - Removed the special treatment of JSX fragments in the grammar, instead the name and attributes of `jsx_opening_element` and the name of `jsx_closing_element`...

Optional chaining property/array access and optional function calls now produce an `optional_chain` named field. When traversing a parsed program, once can retrieve the operator by looking at the source code,...

## Supports `` tags for Glimmer Checklist: - [x] All tests pass in CI. -- waiting on C.I. approval - [x] The script/parse-examples passes without issues. - [x] There are...

Hello, I would like to parse JavaScript into a syntactic tree in Delphi. As far as I understand, I would need a 64 bit .DLL for tree-sitter and another one...

question

The following piece of code is valid but it is parsed incorrectly: The random parsing seems to be a combination of `export`, `static` class initialization block and comments. ```javascript export...

bug

Consider the following simple code: ``` ``` In my opinion the outer div element node should have only one (named) child besides the opening/closing tags - the inner div. And...

I realize that [pipeline operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Pipeline_operator) is still experimental at this stage and understand if we don't plan to support it in the short term. But if I'd like to parse...

priority:medium
future

I am trying to query all the comments inside the jsx using `(jsx_expression (comment)+)` query but the Query class is unable to parse the same and throws this error ```...

bug

⚠️ Depends on https://github.com/tree-sitter/tree-sitter/pull/1635. Don't merge yet. ⚠️ This PR makes use of Tree-sitter's upcoming "reserved words" feature in order to provide better error recovery in many common cases. For...

Checklist: ✅ - [x] All tests pass in CI. - [x] The script/parse-examples passes without issues. - [x] There are sufficient tests for the new fix/feature. - [x] Grammar rules...