Skip to main content

Grammars

Here are some of the available grammars for Lezer together with their corresponding npm packages. If you know of a grammar that is not listed here, feel free to submit a pull request that adds it to this file.

Learn how to configure a grammar.

C++

npm i @lezer/cpp

CSS

npm i @lezer/css

Clojure

npm i @lezer/clojure

Go

npm i @lezer/go

HTML

npm i @lezer/html

Java

npm i @lezer/java

JavaScript

npm i @lezer/javascript

Julia

npm i @lezer/julia

JSON

npm i @lezer/json

Markdown

npm i @lezer/markdown

PHP

npm i @lezer/php

Python

npm i @lezer/python

Rust

npm i @lezer/rust

Sass

npm i @lezer/sass

XML

npm i @lezer/xml

YAML

npm i @lezer/yaml