Closed technomancy closed 2 years ago
Thank you for the patch! I don't mind merging, but it would be ideal to submit it upstream, so I can get it from the "official" source.
lex:add_rule('kwstring', token(lexer.STRING, P(":") * subsequent^1))
Could it be not working because :
is part of the identifier
syntax?
That's exactly what it was; thanks! Colon doesn't belong in identifiers.
I'll submit upstream, yeah. Thanks for the pointer. Will go ahead and close this then.
Submitted this upstream: https://github.com/orbitalquark/scintillua/pull/61
@technomancy, sounds good. Could you ping the ticket when the upstream PR is closed? I'll merge the changes then. Thanks!
Looks like a variant of this has been merged upstream: https://github.com/orbitalquark/scintillua/commit/5364b9d8425a10484d44459b89f56deaf6e4235e
Also remove the inherited "longstring" rule from the Lua lexer.
I tried adding a "kwstring" rule for
:this-style
string but it seems to have no effect; any idea what I'm doing wrong here?thanks!