tree-sitter-javascript

Javascript grammar for tree-sitter (by tree-sitter)

Tree-sitter-javascript Alternatives

Similar projects and alternatives to tree-sitter-javascript

  1. .emacs.d

    My personal Emacs config with any quirks, oddities, bugs, and man-eating errors I live with on a daily basis. (by jimeh)

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. tree-sitter-typescript

    TypeScript grammar for tree-sitter

  4. tree-sitter-rust

    Rust grammar for tree-sitter

  5. tree-sitter-c-sharp

    C# Grammar for tree-sitter

  6. styled-jsx

    Full CSS support for JSX without compromises

  7. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  8. tree-sitter-elixir

    Elixir grammar for tree-sitter

  9. tree-sitter-cpp

    C++ grammar for tree-sitter

  10. tree-sitter-c

    C grammar for tree-sitter

  11. tree-sitter-python

    Python grammar for tree-sitter

  12. tree-sitter-ocaml

    OCaml grammar for tree-sitter

  13. treesit-langs

    Language bundle for Emacs's tree-sitter package

  14. tree-sitter-css

    CSS grammar for Tree-sitter

  15. tree-sitter-sql

    SQL syntax highlighting for tree-sitter (by m-novikov)

  16. tree-sitter-json

    JSON grammar for tree-sitter

  17. tree-sitter-lua

    Lua grammar for tree-sitter. (by Azganoth)

  18. tree-sitter-toml

    Discontinued TOML grammar for tree-sitter

  19. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better tree-sitter-javascript alternative or higher similarity.

tree-sitter-javascript discussion

Log in or Post with

tree-sitter-javascript reviews and mentions

Posts with mentions or reviews of tree-sitter-javascript. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-01-03.
  • Swc4j: SWC for Java
    4 projects | news.ycombinator.com | 3 Jan 2025
    I get the sense that treesitter is more for syntax highlighting than for real parsing, since I raised this issue[0] a while ago and I don't think anyone's really interested in it (not really interested enough myself in tree-sitter to see if it can be fundamentally solved; solving it involves making almost all production rules in the grammar parametric over two booleans).

    Admittedly I haven't tested the TypeScript treesitter grammar, but I'd be surprised if the issue is fixed there. I've put together a sample file[1] that demonstrates various cases of these context dependencies. If I remember correctly, Sublime's highlighter was the best at handling these cases out of various editors I tried, though it still failed at some of the ones at the bottom involving multi-line function expressions within object literal keys. GitHub/gist uses treesitter, so you'll notice that sometimes the "REGEX" and "DIVISION" blocks are inconsistently coloured, but a correct parser should associate a colour consistently to them. Not demonstrated here, but inserting a multi-line comment in a file that is parsed incorrectly will throw the entire thing off.

    [0] https://github.com/tree-sitter/tree-sitter-javascript/issues...

    [1] https://gist.github.com/Maxdamantus/a11b41675fcde25ffc9b7ef0...

  • How to make `goto_next_test` and `goto_prev_test` work?
    2 projects | /r/HelixEditor | 20 May 2023
    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
    21 projects | /r/emacs | 19 May 2023
  • Building tree-sitter languages for Emacs
    20 projects | /r/emacs | 30 Dec 2022
  • RMS – EmacsConf Talk
    3 projects | news.ycombinator.com | 6 Dec 2022
    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?
    12 projects | /r/emacs | 3 Dec 2022
    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 ` `
    2 projects | /r/Atom | 31 Mar 2021
    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?
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 26 Mar 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Stats

Basic tree-sitter-javascript repo stats
7
397
8.0
about 2 months ago

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?