postcore / limon

:lemon: The pluggable JavaScript lexer. :tada: Limon = Lemon
http://www.tunnckocore.tk
MIT License
9 stars 0 forks source link

allow to be not only "on per character basis" #13

Closed tunnckoCore closed 8 years ago

tunnckoCore commented 8 years ago

more flexibility, wanted feature, control.. maybe through some option

tunnckoCore commented 8 years ago

this also will force switching the argument order - always the input to be the first argument - for consistency.

But the question is plugin(input, ch, idx) or plugin(input, idx, ch)? - first make more sense?

tunnckoCore commented 8 years ago

closing, as this can be plugin which overwrite the tokenize method. Something like examples/advanced.js