On 28/4/2025 12:59 am, Ihor Radchenko wrote:
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.

You've already seen my replies regarding this in the #org-mode IRC but I figure I should actually reply to this email so there's a proper record of events.

With the changes you made it appears that now the #+begin_src and #+end_src are correctly recognised and fontified. The actual contents of the src-block aren't. The reported error in *Messages* is no longer present.

So, beforehand something like this:

#+begin_src js
const foo = 'bar'
#+end_src

Would be entirely unfontified. Now the same results in only the:

const foo = 'bar'

being unfontified, and that appears to be an issue with js-ts-mode's optional dependence on the jsdoc tree-sitter grammar somehow borking fontification when the jsdoc tree-sitter grammar isn't installed; so, nothing to do with org-mode.

Thank you for the fix and your hard work Ihor.


/Jordan


Reply via email to