-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve man lexer, and generalize it to more file extensions #1056
Conversation
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. |
Should I wait for orbitalquark/scintillua#84 to be resolved to make the |
Unfortunately, it seems you have to. But you can certainly remove changes to |
Well, scintillua is going through a re-modernization of its lexers, and the |
Yup, but that’s the problem of orbitalquark/scintillua#84, it doesn’t belong here, does it? |
You could already do the filetype change if you rename the lexer file, too, but I'd rather not merge that to avoid future confusion (us having a troff lexer which will then conflict with the change troff lexer from upstream, ...) |
Indeed, but what I was saying is that we cannot use the upstream change without also using the upstream |
I agree. Closing this as of now. |
I have prepared branch https://git.sr.ht/~mcepl/vis/log/devel_scintillua (hopefully, Soon™ to be merged by @rnpnr ) which upgrades vis lexers (including lexer.lua) to the upstream tag scintillua_6.2. Does it help you to revive your effort here? |
The current
man
lexer has some issues : it is not a man lexer, but really a troff one; it is very bad for highlighting troff documents that do not use theman
macros. I thus replaced the oldman
lexer by a more generaltroff
one. I also changed the filetypes entry, so it accepts more macro sets.Note: Some man-specific style was kept (headings), and this is more a groff highlighter than a general troff one because of the groff imperative programming that gets highlighted (
while
s,break
s, etc.).