literalizer
literalizer copied to clipboard
Specialized heuristic lexer for JS to identify complex literals
There are quite a few problems with the existing implementation regarding template literals. Off the top of my head: 1. the way it looks for the ending ``` after starting...
tests like this to verify when function-property candidates are abandoned, etc: ``` js var a={b(c={d:e=>{f;}}){a: {}/a/g}}; ``` Haven't found a breaking test where this is a bug, yet. But we...
Now that the options can be configured, need to permute those options across the test results, to ensure it works not only with an option on (right now, tests assume...
[edit: renamed to change the scope/intent of this bug per this comment: https://github.com/getify/literalizer/issues/20#issuecomment-23993775] fs.readFile (and fs.readFileSync) provides a Buffer object. Passing this into literalizer.lex returns very unexpected data. It would...
track line numbers and columns for all tokens.