Open elazar opened 7 years ago
I'm also experiencing this. I can see how adding fenced code blocks with "markdown" syntax highlighting within a markdown file could cause infinite recursion... could this be avoided with some sort of conditional statement?
My guess would be that yes, it could.
Using Vim, I'm having a very similar issue where using markdown
as the language is causing a recursive loop.
There could be an issue since I'm pretty sure I just copied the syntax file into my .vim/syntax
folder.
File Contents
# My Markdown File
...
``` markdown
Some Markdown...
```
Errors
Error detected while processing CursorHold Autocommands for "<buffer=1>"..function <SNR>154_MarkdownRefreshSyntax[2]..<SNR>154_MarkdownHighlightSources[31]..<SNR>154_SyntaxInclude[14]..CursorHold Autocommands for "<buffer=1>"..function <SNR>154_MarkdownRefreshSyntax[2]..<SNR>154_MarkdownHighlightSources[31]..<SNR>154_SyntaxInclude[10]..script C:\Users\USERNAME\vimfiles\syntax\markdown.vim[33]..C:\Program Files\Vim\vim82\syntax\vim.vim:
line 833:
E403: syntax sync: line continuations pattern specified twice
Error detected while processing CursorHold Autocommands for "<buffer=1>"..function <SNR>154_MarkdownRefreshSyntax[2]..<SNR>154_MarkdownHighlightSources:
line 31:
E171: Missing :endif
Error detected while processing CursorHold Autocommands for "<buffer=1>"..function <SNR>154_MarkdownRefreshSyntax:
line 2:
E171: Missing :endif
I'm using Neovim installed via Homebrew.
I have revision a7dbc314569aa85db80c106d73b1664e385b6ae7 of this plugin installed using junegunn/vim-plug@ddc67fc13624dbec62121e0c55ae03f270f66241.
This is the vim configuration file I'm using:
If I comment out the block to assign a value to
g:markdown_fenced_languages
, I'm able to load a.md
file without issue. However, with the block in place, loading even an empty.md
file produces this output...... followed by a lot of repetitions of this.