orbitalquark / scintillua

Scintillua enables Scintilla lexers to be written in Lua, particularly using LPeg. It can also be used as a standalone Lua library for syntax highlighting support.
https://orbitalquark.github.io/scintillua
MIT License
53 stars 22 forks source link

Add support for Hare language #65

Closed qiu-x closed 2 years ago

qiu-x commented 2 years ago

https://harelang.org

orbitalquark commented 2 years ago

Thanks for your contribution! This lexer is in the legacy format and will need to be converted to the new one (see https://orbitalquark.github.io/scintillua/api.html#migrating-legacy-lexers). I can do this for you, but only when I have some time.

qiu-x commented 2 years ago

I converted the lexer to the new format

orbitalquark commented 2 years ago

Thank you! Committed via https://github.com/orbitalquark/scintillua/commit/9088723504b19f8611b66c119933a4dc7939d7b8 with some formatting changes to align with other lexers. Also fixed a bug in the word_match() calls to use tables.