3 ms·
From the readme: > Org grammar for tree-sitter. It is not meant to implement emacs' orgmode parser, but to implement a grammar that can usefully parse org file
by happy-dude 4y ago
From the readme:
> Org grammar for tree-sitter. It is not meant to implement emacs' orgmode parser, but to implement a grammar that can usefully parse org files to be used in neovim and any library that uses tree-sitter parsers.
This grammar is in active development and is being used by nvim-orgmode/orgmode [1], a org-mode neovim plugin.
Some additional resources some might find useful:
* Org Syntax - https://orgmode.org/worg/dev/org-syntax.html https://orgmode.org/worg/dev/org-syntax.html
* EBNF grammar - https://github.com/200ok-ch/org-parser/blob/master/resources/org.ebnf https://github.com/200ok-ch/org-parser/blob/master/resources...
* Tree-sitter - https://tree-sitter.github.io/tree-sitter/ https://tree-sitter.github.io/tree-sitter/
[1] https://github.com/nvim-orgmode/orgmode https://github.com/nvim-orgmode/orgmode
- tgbugs 4y agoWe're in the middle of updating the org syntax document. I've been preoccupied and haven't gotten a chance to take another pass, but there should be a new version out in the next month or so. See also [0]. 0. https://github.com/tgbugs/laundry/tree/master/laundry/grammar https://github.com/tgbugs/laundry/tree/master/laundry/gramma...
- milisims 4y agoI'd had the 1.0 commit sitting on my machine for a while, this post gave me the activation energy to bump it. The grammar is fairly stable now.