supercollider / scvim

Vim plugin for SuperCollider
GNU General Public License v3.0
121 stars 28 forks source link

add scdoc syntax highlighting #41

Closed mossheim closed 5 years ago

mossheim commented 6 years ago

This PR adds highlighting for schelp files. The choices of highlighting links are totally arbitrary and open to discussion. I tried to follow the markup syntax as best I could; features include:

mossheim commented 6 years ago

The only thing I don't like that I can't figure out how to fix is highlighting within inline code sections. Right now in code::test::, the sc highlighting picks up test: as a keyword selector, presumably because it's using lookahead in its regex(?). I tried several times to fix this but none of them worked. I'm considering just turning it off for inline code and leaving it only for code blocks.

dvzrv commented 6 years ago

This looks very useful! @brianlheim if you disable this for code::test::, can you add a a comment saying why (e.g. test: gets picked up as keyword selector - needs further investigation)?