Home Download Buy Blog Forum Support

Oniguruma syntax definition help.

Re: Oniguruma syntax definition help.

Postby askeeve on Wed May 16, 2012 4:31 pm

Final post! I promise!

Just wanted to say... totally working now. I've been beating my head against this for a couple of days so... yeah pretty great feeling. Thank you so much. The one little bug I'm having with it (that I can totally live with) is if there's an unmatched { before the ;, it seems to be stuck in the nested_braces match for the rest of the file. Is there an easy workaround to this? (Is that why you redid the begin/end match in the patterns?)
askeeve
 
Posts: 51
Joined: Wed Apr 18, 2012 1:33 pm

Re: Oniguruma syntax definition help.

Postby nick. on Wed May 16, 2012 7:52 pm

askeeve wrote:Also, (sorry for the multi-posting) I see that you're matching the ;-:Code bit before the nested braces. I'm confused about how the order of evaluation plays out here. Wouldn't the ; match to something inside the braces (if it existed) because the braces match hasn't happened yet?


That's correct. I only tested against the sample of code you provided.

Not sure what you're asking in the first of the above three posts.

If you have an unmatched brace, won't that be a syntax error anyway?
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: Oniguruma syntax definition help.

Postby askeeve on Thu May 17, 2012 1:55 pm

Yeah I should apologize for that. Working on not much sleep and a little giddy on that break-through after being stuck on a problem for a while. You're totally right about the unmatched {. Sorry for cluttering up the thread :oops:

I'm still a little curious about why the ;-:Code match coming before the nested braces match works. Because it is working, it just seems like it shouldn't.
askeeve
 
Posts: 51
Joined: Wed Apr 18, 2012 1:33 pm

Previous

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 17 guests