通过捕获和“?!”断言优化小正则表达式

I need to run an important check over multiple PHP files with the following regex:

\$this\->(m_\w+)(?!(.|\v)*private \$\1)

But my IDE (Sublime Text 2) says that it runs out of stack space while trying to match the regex. It works fine with very small files though, but none of the files I need to check is small enough. So how the regex can be optimized to let it work on text of any length?

You can increase your pattern speed using this:

\$this->(m_\w++)(?!(?>[^p]++|\Bp++|p(?!rivate \$\1\b))++private \$\1\b)