Lukasa / language-restructuredtext

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

link definition may contain colon or plus sign #50

Closed jessetan closed 7 years ago

jessetan commented 7 years ago

The reStructuredText Markup Specification has the following to say about reference names for links:

Simple reference names are single words consisting of alphanumerics plus isolated (no two adjacent) internal hyphens, underscores, periods, colons and plus signs; no whitespace or other characters are allowed

The highlighter currently does not allow colon or plus (which the spec says is valid), but it does allow spaces, parentheses and forward slash (which are invalid according to the spec). I can understand that it might allow a bit more characters than the spec, but I'm missing highlighting when I use a colon (e.g. as a separator: .. _figure:this-is-my-figure:).