killercup / grock

Grock converts your nicely commented code into a gorgeous documentation where comments and code live happily next to each other.
http://killercup.github.io/grock/
MIT License
38 stars 13 forks source link

add rudimentary support for Facebook React JSX files #20

Closed jdiaz5513 closed 10 years ago

jdiaz5513 commented 10 years ago

This is enough to let grock do its thing to .jsx files without hassle. The syntax highlighter does surprisingly well when told to parse the file as plain javascript despite lacking actual JSX support, definitely enough to be useful.

For what it's worth, even the JSX syntax plugin for Sublime Text 3 fails in some cases, so it's not going to be perfect yet.

killercup commented 10 years ago

Thanks! You even bumped the version :) I'll just believe you that this works, merge it and publish it to npm!

killercup commented 10 years ago

Voilá: https://www.npmjs.org/package/grock

jdiaz5513 commented 10 years ago

Sweet! Expect more contributions in the near future, I want to try to make a vinyl-stream compatible gulp plugin and probably other enhancements.

killercup commented 10 years ago

I'm looking forward to it!

I hope to get around to do some more work on grock as well, I've wanted to replace that complicated code/comment separator for ages. (If you want to have a look at it, be my guest! I've tried some stuff in #14.)