Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

treeman/tree-sitter-djot

Repository files navigation

Important

This repository has moved to https://codeberg.org/treeman/tree-sitter-djot.

This GitHub copy is a frozen archive. New commits, issues, and pull requests should go to Codeberg.

tree-sitter-djot

This is an experimental Tree-sitter grammar for Djot.

Features

Aims to be fully feature complete with the Djot specification with a few extra features:

  • Parses an optional frontmatter at the very start of the file, e.g:

    ---toml
    tag = "Some value"
    ---
    
  • Parses tight sublists.

    Normally in Djot you need to surround a list inside a list with spaces:

    - List
    
      - Another
      - list
    

    This grammar doesn't require a space and recognizes this as a sublist:

    - List
      - Another
      - list
    
  • Parses standalone TODO, NOTE and FIXME.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Contributors