aMarCruz / jscc

Tiny and powerful preprocessor for conditional comments and replacement of compile-time variables in text files
MIT License
52 stars 8 forks source link

Removel of trailing jscc comment is breaking the expression #8

Closed aMarCruz closed 5 years ago

aMarCruz commented 5 years ago

Two slashes within a literal regex or ES6 TL will break jscc expressions:

//#set _R = /\///
//#set _S = `//`

This is because the parser confuses the slashes in the content with the trailing comment.