dcodeIO / Preprocessor.js

A JavaScript source file preprocessor in pure JavaScript, e.g. to build different versions of a library.
http://dcode.io
Apache License 2.0
72 stars 19 forks source link

Fixing error in include documentation #3

Closed dahmian closed 11 years ago

dahmian commented 11 years ago

When I run the example I get the following error. The error goes away when I remove the "`" character.

/usr/local/lib/node_modules/preprocessor/Preprocessor.js:195 throw(new Error("Illegal #"+match[2]+": "+this.source. ^ Error: Illegal #include: // #include "include.js"`

... at Preprocessor.process (/usr/local/lib/node_modules/preprocessor/Preprocessor.js:195:31)

dcodeIO commented 11 years ago

Thank you! I've updated the README file accordingly. The include EOF issue is/should be already resolved in the latest version: https://github.com/dcodeIO/Preprocessor.js/blob/master/Preprocessor.js

To be sure that it is, I've force-updated the NPM package.

dahmian commented 11 years ago

You're right, I was just working off old code :-) Thanks!