Instead of manually specifying start_pattern and end_pattern, have you thought about using Treesitter to detect embedded languages? That's already an inherent feature of Treesitter (and is used for highlighting said embedded languages). I know nvim-treesitter is still in it's early stages, but it's rock solid for most common languages.
Instead of manually specifying
start_pattern
andend_pattern
, have you thought about using Treesitter to detect embedded languages? That's already an inherent feature of Treesitter (and is used for highlighting said embedded languages). I know nvim-treesitter is still in it's early stages, but it's rock solid for most common languages.