Jonas Hietala 3/19/2024

Let's create a Tree-sitter grammar

Read Original

This technical article details the process of building a Tree-sitter grammar for the Djot markup language. It covers advanced topics such as using external scanners, conflict resolution, language injection for syntax highlighting, and integrating the grammar into Neovim and a blog. The tutorial walks through implementing a subset of Djot features including paragraphs, divs, code blocks, and emphasis.

Let's create a Tree-sitter grammar

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week