grc icon indicating copy to clipboard operation
grc copied to clipboard

use regex library for recursion support

Open solaris007 opened this issue 6 years ago • 1 comments

for recursion support it would be awesome to use the regex instead of std lib. this would introduce a pip dependency though. not sure how to handle this?

recursion support would be nice to capture and color nested parenthesis lines, e.g.: 27.03.2019 10:42:27.275 *INFO* [FelixStartLevel [Thread-232]] org.apache.sling.commons.threads.impl.DefaultThreadPool Thread pool [DAM Transporter] initialized.

Using regex: \[([^\[\]]+|(?R))*\]

Which matches: [FelixStartLevel [Thread-232]] and [DAM Transporter]

solaris007 avatar Mar 28 '19 09:03 solaris007

Adding conditional import of regex depending on module availability is easy and I might just do it - I am just a bit concerned that grc fails when using such an incompatible config file.

garabik avatar Jul 24 '19 15:07 garabik