lua-syntaxhighlight icon indicating copy to clipboard operation
lua-syntaxhighlight copied to clipboard

feat: Update lexers to Scintillua 5.3

Open Omikhleia opened this issue 2 years ago • 1 comments
trafficstars

Greetings,

This PR is a proposal for updating the lexers to Scintillua 5.3 (Nov 2021), which includes 18 additional languages and various updates for other languages.

I didn't checked them all extensively -- TBH, I just tried the new typescript, the updated lua (which has a small update for Lua 5.4), and the bash and yaml lexers (just for a check, as I use them for documentation purpose).

The older lexers were from 2020, it seems, and retrieved from a source that's no longer available, with Scintillua being moved apart and now available on GitHub.

Scintillua 6.x (Sept.-Dec. 2022) introduces breaking changes, with partially (at this date) migrated lexers and "legacy" ones. I made a quick attempt and failed at it due to the weird compatibility shims -- So I went for the low-hanging fruit first, trying to upgrade at least to the latest official 5.x.

N.B. For the record, I forked this repository as hightligher.sile, as I eventually plan to use these lexers in a 3rd-party package for the SILE typesetting system, so as to get syntax highlighting in Markdown/Djot support for SILE -- but from a previous quick'n dirty attempt, it will likely sum up as an additional custom luarock spec, and one or two extra files (a pretty straightforward SILE package, and a simplified version of your own wrapper). Don't hesitate letting me know if a fork is indeed the way to go, or if the main repository would possibly welcome these additions.

Omikhleia avatar Apr 09 '23 13:04 Omikhleia

As far as my needs were concerned, I moved to a different direction, directly using Scintillua as my solution for SILE. = I'll probably delete my fork of this repository -- no idea what it does then on open PRs (?)

Omikhleia avatar Feb 02 '25 22:02 Omikhleia