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
51 stars 20 forks source link

lexer.number_ ??? #88

Closed mcepl closed 1 year ago

mcepl commented 1 year ago

https://github.com/orbitalquark/scintillua/blob/2181945f83beef745044ad6ab05f41395485ea3a/lexers/ada.lua#L42

Are you certain lexer.number_() (notice the underscore) is correct? Shouldn’t it be without it?

orbitalquark commented 1 year ago

Ada appears to allow '_' in numbers, so that's correct. https://github.com/orbitalquark/scintillua/commit/40dccafaa489435f3dfd22333e3eb93796873733#diff-04e98e87b78fe7a29d3f44e1eaee737a6ce947a915798c9594986c674afb2654

mcepl commented 1 year ago

I meant the first underscore (number_ instead of number). And yes, it is there as well. OK, I will have to bait the bullet and try to debug lexer.lua as well. Oh well.

orbitalquark commented 1 year ago

No, number_ is correct. It's a new feature.