martanne / vis

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

Bug: lexing ruby backticks #978

Closed jgarte closed 1 year ago

jgarte commented 2 years ago

If you do something like the following it breaks the syntax highlighting in ruby files and thinks the rest of the buffer is a backtick command string waiting to be closed:

when /^```/
  :verbatim

or this

when /^`/
  :verbatim

The above is taken from this gemtext parser code:

https://github.com/genenetwork/gemini-rb/blob/main/lib/gemini-rb/parser.rb#L64

relevant place in vis lua code:

https://github.com/martanne/vis/blob/master/lua/lexers/ruby.lua#L37

mcepl commented 1 year ago

@ninewise, this should probably be sent upstream to https://github.com/orbitalquark/scintillua/issues, right?

ninewise commented 1 year ago

Yes. I'll be closing this here.