martanne / vis

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

lexers: add mail lexer #904

Closed silasdb closed 1 year ago

silasdb commented 3 years ago

On Tue, Dec 08, 2020 at 09:29:16AM -0800, Marc André Tanner wrote:

Could you please enforce that header field names need to start with a capital letter? Otherwise URLs at the start of lines are also highlighted.

Sure, I will do that.

Would it make sense to recognize inline PGP blocks? MIME sections? Mail signatures?

In general I wouldn't spend much time on it, but a more strict header field name rule seems useful.

Perfect. I'll work on that. Besides improving header field parsing, and adding PGP blocks, MIME sections and mail signatures, what else am I missing?

ninewise commented 1 year ago

Could you send the changes to the lexers upstream instead, to https://github.com/orbitalquark/scintillua? We're going to avoid diverging. The filetype changes are welcome, though, when you've send the actual lexer upstream.