5 ms·
Vim can't highlight Markdown correctly because it does highlighting via regexps. For correct parsing and thus for correct highlighting of Markdown you need a re
by stiff 6y ago
Vim can't highlight Markdown correctly because it does highlighting via regexps. For correct parsing and thus for correct highlighting of Markdown you need a real parser. See e.g. this:
https://github.com/tpope/vim-markdown/issues/4 https://github.com/tpope/vim-markdown/issues/4
- auxym 6y agoIs this limitation of most general code editors? Has neovim fixed this?
- mfontani 6y agoNeovim has an experimental language parser which is still in its early days, but might just help: https://github.com/nvim-treesitter/nvim-treesitter https://github.com/nvim-treesitter/nvim-treesitter Specifically, for Markdown: https://github.com/ikatyang/tree-sitter-markdown https://github.com/ikatyang/tree-sitter-markdown
- BlackLotus89 6y agoNeovim will have treesitter in the next major release, so yes probably.