Repository navigation
Conversation
Orgmode installs tree-sitter-org from a release tag, which the guide did not mention. List the steps to move orgmode to a new tag.
Grammar 2.1.0 parses inline markup, so the Lua markup highlighter is no longer needed. Highlight markup through the treesitter query and read it from the tree in agenda lines. Co-authored-by: Kristijan Husak <husakkristijan@gmail.com>
Markup highlighting moved from the Lua highlighter to the treesitter highlights query, which dropped concealing of emphasis markers. The org_hide_emphasis_markers option had no effect anymore. The query now conceals the open and close delimiters of valid markup when the option is enabled, gated by a predicate that reads it.
The markup grammar splits words at markup characters, so a cookie like [1/2] or a tangle path like ./dir/file.lua is several nodes. Cookies were looked up as one node and were no longer updated, and tangle joined the parameter nodes with spaces and wrote to the wrong file. Find statistics cookies in the text like Emacs does: every cookie in the headline title, and every cookie in a list item's own text, at any position and on any line. This gives the same result with both grammars. Read block parameters as the source text they cover. Joining adjacent nodes would also work, but still depends on how the grammar splits a word.
seflue
force-pushed
the
feat/treesitter-markup
branch
from
November 9, 2026 22:58
ce9f843 to
5723b0f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #452, closes #1014
Moves to tree-sitter-org
2.1.0and highlights markup through the treesitter query instead of the Lua markup highlighter. The highlight groups are unchanged, so user overrides keep working.[1/2]into several nodes, so they are read from the text../dir/file.lua.org_hide_emphasis_markersis set.