Closed jxzwp closed 2 months ago
lexer.FOLD_HEADER, lexer.FOLD_BASE and lexer.FOLD_BLANK always evaluate to nil because they are never assigned to at the module level in lexer.lua.
lexer.FOLD_HEADER
lexer.FOLD_BASE
lexer.FOLD_BLANK
They are only assigned to locals within lexer.fold()here
lexer.fold()
https://github.com/orbitalquark/scintillua/blob/44d0dd1d7d77b5391c0f4044b8853bbd511dc339/lexers/lexer.lua#L1273
Also this causes an error when using the rest lexer which overrides lexer.fold(). See here https://github.com/orbitalquark/scintillua/blob/44d0dd1d7d77b5391c0f4044b8853bbd511dc339/lexers/rest.lua#L181
Thanks for catching this. It should be fixed in https://github.com/orbitalquark/scintillua/commit/0c9294695920daa397a67d960e003908c5979bb3
lexer.FOLD_HEADER
,lexer.FOLD_BASE
andlexer.FOLD_BLANK
always evaluate to nil because they are never assigned to at the module level in lexer.lua.They are only assigned to locals within
lexer.fold()
herehttps://github.com/orbitalquark/scintillua/blob/44d0dd1d7d77b5391c0f4044b8853bbd511dc339/lexers/lexer.lua#L1273
Also this causes an error when using the rest lexer which overrides lexer.fold(). See here https://github.com/orbitalquark/scintillua/blob/44d0dd1d7d77b5391c0f4044b8853bbd511dc339/lexers/rest.lua#L181