Lukasa / language-restructuredtext

A ReStructuredText syntax package for Atom
MIT License
27 stars 15 forks source link

Add more embedded languages #63

Closed kylebarron closed 6 years ago

kylebarron commented 6 years ago

I don't usually write in restructured text, but was adding to Pandas documentation and realized there are a few languages missing that I use often.

kylebarron commented 6 years ago

I saw https://github.com/Lukasa/language-restructuredtext/issues/55 that mentioned incorrect HTML support. For some reason the end keyword for HTML ^(?!\\1[ \\t]) was different from the standard end keyword used by most languages ^(?!\\s*$|\\1[ \\t]+\\S). Using this other regex seems to color HTML fine for me.

image

I don't know HTML that well to know if there are edge cases where this could break.

I'm happy to separate it from this PR as well if you want.

Alhadis commented 6 years ago

Thanks!