Hi,

I'm trying to support XML-like markup in my markup language using SimpleWrappedPhraseModifier.

This works:

    <em>hello</em>

while this doesn't:

    <em>hello!</em>

I think the problem is in this code:

        protected String getPattern(int groupOffset) {
                String pattern = Pattern.quote(startDelimiter)
                + "([^\\s-](?:.*?[^\\s-])?)(?:(?<=[^!])" //$NON-NLS-1$
                + Pattern.quote(endDelimiter)
                + ")"; //$NON-NLS-1$
                return pattern;
        }

specifically in "...(?<=[^!])"

Why do you exclude "!" here? I'd figure it's a pretty common thin at the end of a sentence...

Regards,

--
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.pdark.de/                   http://blog.pdark.de/
_______________________________________________
mylyn-integrators mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/mylyn-integrators

Reply via email to