Skip to content

treeman/tree-sitter-djot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

eb31845 · Feb 28, 2025
Jul 18, 2024
Jan 30, 2025
Feb 28, 2025
Feb 28, 2025
Mar 13, 2024
Jul 18, 2024
Jul 17, 2024
Jan 28, 2025
Feb 28, 2024
Jan 28, 2025
Mar 13, 2024
Jan 28, 2025
Mar 13, 2024
Jan 30, 2025
Jul 17, 2024
Jan 28, 2025
Jan 28, 2025
Mar 13, 2024
Jan 28, 2025

Repository files navigation

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.