Jordan Ellis Coppard <jc+o.orgm...@wz.ht> writes:

> Opening a large org document is resulting in a fontification error in 
> *Messages*:
>
> Org mode fontification error in #<buffer noir_grammar.org> at 79
>
> The exact version of said document can be found here: 
> https://raw.githubusercontent.com/tsujp/tree_sitter_noir/528281a112b86b0f54b2b4005de3be3f6a48ed8a/noir_grammar.org
>
> The buffer is still fontified in terms of headlines, verbatim == and
> code ~~ markup, tags, attributes etc. Everything except for links (which
> are now displayed "raw" e.g. [[address][name]]) and some source blocks
> #+begin_src ... #+end_src.

While I cannot reproduce the error you are seeing, I just pushed two
improvements to the native src block fontification that might help your
case.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=231a81f4b6
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=fefc6711b3

Basically, I added better handling of errors thrown by fontification
process in src-block's major mode.

Let me know if things get better on the latest main.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to