bcoe / onigurumajs

:japanese_goblin: a pure JavaScript port of the oniguruma regex engine
ISC License
38 stars 3 forks source link

[WIP] feat: switch to emscripten #4

Open bcoe opened 7 years ago

bcoe commented 7 years ago

pulls in emscripten, this seems to be 100% compatible with first-mate except for utf-8 issues I'm digging into.

patrick-steele-idem commented 7 years ago

This is exciting. I have a fork of first-mate that is using onigurumajs to enable syntax highlighting in the browser and it is working pretty well, but I have to restrict usage of various features in my TextMate grammar files because of limitations in the regular expression library. It'll be nice to not have to worry about those limitations!

In case you are interested, I created an adapter that allows any TextMate grammar to be used for syntax highlighting in a CodeMirror editor through the use of first-mate and onigurumajs: https://www.npmjs.com/package/codemirror-atom-modes

Thanks for working on this. I look forward to testing it out when done.