You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that the grammar implemented here does not support "Fixed width areas" elements which basically are paragraphs that start with the colon character followed by space.
These elements are usually used to denote code evaluation output. For instance:
#+begin_src python
1 + 1
#+end_src
#+results:
: 2
Is this a deliberate choice? It would be nice to have such support.
The text was updated successfully, but these errors were encountered:
Great question, I think the best implementation here would use a query to find those elements, for example: (paragraph (directive name: (_) @name (#eq? @name "results")) . (expr) @start (#eq? @start ":")) @results_region, is a query that should find elements that look like that (I can't test at this moment), but doesn't guarantee each subsequent newline starts with a :. Depending on the tree-sitter implementation used, a #match? predicate should be used to ignore case on "results".
I'm not eager to, but not against adding fixed-width areas. I'll look into it for a bit, thanks for the suggestion.
I have noticed that the grammar implemented here does not support "Fixed width areas" elements which basically are paragraphs that start with the colon character followed by space.
These elements are usually used to denote code evaluation output. For instance:
Is this a deliberate choice? It would be nice to have such support.
The text was updated successfully, but these errors were encountered: