tree-sitter-typescript
tree-sitter-javascript
tree-sitter-typescript | tree-sitter-javascript | |
---|---|---|
11 | 6 | |
387 | 370 | |
4.1% | 3.0% | |
8.2 | 8.3 | |
about 1 month ago | 13 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tree-sitter-typescript
-
Mastering JSX Editing in Emacs with Tree-sitter
Now, let's dive into some practical editing functions implemented using Tree-sitter. Keep in mind that all the functions are specific to the tree-sitter-typescript parser and only work in the Emacs 29 built-in tsx-ts-mode.
- Let's write an Emacs treesitter major mode
-
How to make `goto_next_test` and `goto_prev_test` work?
I believe goto_next_test requires support from the tree-sitter parser, specifically tree-sitter-javascript in the case of JS and tree-sitter-typescript in the case of TS.
- Emacs and Java Development: Corfu + Cape + LSP-Mode + Treesit
- Building tree-sitter languages for Emacs
-
Is there an official language spec and/or lexical grammar for TS?
If you need to do efficient AST operations, have you considered treesitter? There is a typescript grammar available https://github.com/tree-sitter/tree-sitter-typescript
- tree-sitter-typescript: TypeScript grammar for tree-sitter
-
Really sick of the shoddy jsx/tsx handling....would anyone be willing to help me write a major-mode for it?
I am curious though, why did you write your own indentation tool? (It works super well btw, amazing work) I thought tree-sitter supported tsx (and found repos like this) so just wondering if you tried those and they didn't work so you wrote your own.
-
Treesitter : Proposal for more precise syntax highlighting
Please have a look at it - https://github.com/tree-sitter/tree-sitter-typescript/issues/177
-
Plugins to help writing a new tree-sitter parser?
You can see a much more in-depth version at https://github.com/tree-sitter/tree-sitter-typescript or https://github.com/tree-sitter/tree-sitter-rust
tree-sitter-javascript
-
How to make `goto_next_test` and `goto_prev_test` work?
I believe goto_next_test requires support from the tree-sitter parser, specifically tree-sitter-javascript in the case of JS and tree-sitter-typescript in the case of TS.
- Emacs and Java Development: Corfu + Cape + LSP-Mode + Treesit
- Building tree-sitter languages for Emacs
-
RMS – EmacsConf Talk
Here is the tree-sitter grammar of Elisp:
https://github.com/Wilfred/tree-sitter-elisp/blob/main/gramm... (approx. 200 lines)
and here is the grammar of JavaScript:
https://github.com/tree-sitter/tree-sitter-javascript/blob/m... (approx. 1200 lines)
JavaScript evolved into a language of similar complexity as Perl 5 (the corresponding tree sitter syntax table counts almost 2000 lines, currently).
-
How to use Emacs 29 Tree-sitter?
Next, clone the Javascript grammar for tree-sitter from https://github.com/tree-sitter/tree-sitter-javascript and compile it with cc -shared -fPIC -g -O2 -I src src/scanner.c src/parser.c -o ~/.emacs.d/tree-sitter/libtree-sitter-javascript.dylib.
-
Trying to implement language injection for template literals: CSS inside of ` `
I downloaded the tree-sitter-javascript repo, created a folder for a custom grammar package, and created a basic package.json file, but I have no clue what the Atom page is talking about regarding call_expression, and the addInjectionPoint code. ELI5?
What are some alternatives?
tree-sitter-haskell - Haskell grammar for tree-sitter.
styled-jsx - Full CSS support for JSX without compromises
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
tree-sitter-c-sharp - C# Grammar for tree-sitter
swc - Rust-based platform for the Web
tree-sitter-make
tsi.el - treesitter-based indendentation for emacs 28 and 27
tree-sitter-ocaml - OCaml grammar for tree-sitter
vim-jsx-typescript - React JSX syntax highlighting for vim and Typescript
tree-sitter-elixir - Elixir grammar for tree-sitter
tree-sitter-rust - Rust grammar for tree-sitter