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

Stop underscore highlighting in variable names #70

Closed willbeaufoy closed 9 years ago

willbeaufoy commented 9 years ago

Markdown uses underscores surrounding a piece of text to add emphasis, and this is reflected in this package by pink highlighing. However when underscores occur as part of a continuous bit of text (e.g. variable or function names), we don't want it to be highlighted. This fix ensures highlighting does not take place between underscores if the first underscore is preceeded by a word character.

willbeaufoy commented 9 years ago

Hhm although this actually seems to remove all underscore highlighting behaviour even if not preceeded by a word. This isn't a problem for me but a better fix would preserve highlighting behaviour.

jonschlinkert commented 9 years ago

Thanks for the attempt! Sorry I was late to respond!