Feature suggestion: action suppression flag

Jason Garber jason.gar... at gmail.com
Mon Mar 24 16:14:01 UTC 2008


It would be handy to have a way to suppress all actions in a pattern.
I've found a few cases in RedCloth where I want to reuse a pattern but
I don't want the actions to take effect.  For example, one pattern
identifies dimension phrases (like "1x2x3") and another identifies all
phrases that don't include the dimension pattern (e.g. phrase --
dim).  I can't reuse the first pattern when excluding it from the
second, though, because the embedded actions alter the phrase I'm
trying to capture.  I wind up duplicating the dim pattern
(dim_noactions), which isn't very DRY.

Maybe there's already such a thing or maybe I could avoid the problem
entirely by going a different route, but since this problem has come
up for me several times, I wanted to suggest the enhancement.



More information about the ragel-users mailing list