martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.2k stars 258 forks source link

rst lexer does not lex urls properly #967

Closed jgarte closed 1 year ago

jgarte commented 2 years ago

rst_link_not_lexed

wdyt?

jgarte commented 2 years ago

At line 13 column 61 it fails to lex the entire url. It stops at the underscore character.

Should we extend the lexer to permit those types of urls?

TBH, I'd prefer links to not be tokenized at all. It's pretty easy to visually spot a url.

mcepl commented 1 year ago

Because we all hope https://github.com/martanne/vis/pull/1018 is merged soon, this will be then non-issue for vis, and it should be filed upstream at https://github.com/orbitalquark/scintillua/issues, if you can reproduce it with new lexers.