jonschlinkert / sublime-markdown-extended

Top 100 Sublime Text plugin! Markdown syntax highlighter for Sublime Text, with extended support for GFM fenced code blocks, with language-specific syntax highlighting. YAML Front Matter. Works with ST2/ST3. Goes great with Assemble.
https://github.com/jonschlinkert
MIT License
659 stars 96 forks source link

Double brackets [[ inside code block break syntax highlighting #68

Open tehrengruber opened 9 years ago

tehrengruber commented 9 years ago

If i use double brackets [[ inside a code block like

git checkout [-q] [-f] [-m] [[-b|-B|-orphan] new_branch>] [<start_point>]

all of the following code will be yellow. If i put a space inbetween it works well but its a bit nervy sometimes

jonschlinkert commented 9 years ago

good to know, thanks I'll look into it

jonschlinkert commented 9 years ago

I did some testing and couldn't reproduce this issue. I did notice that when bash is used as the language after the first delimiter I get weird issues like this sometimes, but that's an issue with the bash highlighter, not this lib.