c272 / iro4cli

An open-source rewrite of Iro, a grammar generator, supporting automatic VSCode & Atom extension generation.
GNU General Public License v3.0
35 stars 5 forks source link

Seems to register regex look-ahead as a capture group #2

Closed npip99 closed 3 years ago

npip99 commented 3 years ago

Hello! This is a great project you have here. I seem to have a problem though in my tests of this tool. Namely, that regex look-ahead appears to be registered as a "capture group" by this tool.

Consider the following .iro file: https://pastebin.com/7k2aP8w6

This is the default example on eeyo.io/iro, but with one small change on line 119:

regex \= (\")(?=h)

Which forces quotes to need the letter 'h' after it. This works great on eeyo.io/iro,

image

But iro4cli seems to not be able to parse it:

image

[WARN] Compile - Some top-level flags are missing and/or not implemented yet.
[ERROR] Compile Failed  - Mismatch between capture groups and number of styles for inline push with regex '(\")(?=h)'.
c272 commented 3 years ago

Sorry for the late response, and thank you for the detailed error report. This has been fixed in 1dbf21c, and will be pushed as a hotfix.