Handling foreign extmarks in nested languages
masterWhen using nested languages (e.g., Lua code blocks inside a Markdown file), moving text can cause 'foreign extmarks' to persist. For example, moving a line of Lua code out of a Markdown code block might leave Lua-specific rainbow delimiter highlighting active in the Markdown context.
Solution: On every change, the plugin deletes all rainbow delimiter extmarks that do not belong to the current language context.