Sublime Forum

Oniguruma syntax definition help

#21

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?)

0 Likes

#22

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?

0 Likes

#23

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 :blush:

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.

0 Likes