literalizer icon indicating copy to clipboard operation
literalizer copied to clipboard

Specialized heuristic lexer for JS to identify complex literals

Results 5 literalizer issues
Sort by recently updated
recently updated
newest added

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...

bug
help wanted

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...

bug
help wanted

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...

bug
help wanted

[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...

enhancement
help wanted

track line numbers and columns for all tokens.

enhancement
help wanted