From: Harpreet S. <hs...@fa...> - 2003-05-10 15:10:57
|
Slava Pestov wrote: >Hi, > >Try > ><SEQ_REGEXP TYPE="COMMENT2" HASH_CHAR="l">log_\w*\></SEQ> > >On Thu, May 08, 2003 at 03:55:18PM -0400, Harpreet Singh wrote: > > >>i'm writing my own edit mode for prolog. i want highlight calls to the >>logger which look like this, log_debug(my_module, 'my_predicate/3', 'log >>test') or >>log_debug(my_module, 'my_predicate/3', log_test(abc), [a,b,c]). These >>calls are not constrained to one line that is it possible to have >>log_debug(my_module, 'my_predicate/3', >>log_test(abc), [a,b,c]). >> >>what do i use to find this pattern. i tried using span_regexp but it >>highlights everything after log_ . please help a fellow jedit user. I'm >>using jedit4.2pre1. >> >><SPAN_REGEXP TYPE="COMMENT2" HASH_CHAR="l"> >> <BEGIN>log_\w*\(\w*,\w*,\w*\)</BEGIN> >> <END>,</END> >></SPAN_REGEXP> >> >>-- >>Harpreet Singh >>hs...@fa... >> >> >> >> >>------------------------------------------------------- >>Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara >>The only event dedicated to issues related to Linux enterprise solutions >>www.enterpriselinuxforum.com >> >>-- >>----------------------------------------------- >>jEdit Users' List >>jEd...@li... >>https://lists.sourceforge.net/lists/listinfo/jedit-users >> >> > > > thanks that works, how can i make it so it highlights the whole thing (log_debug(abc,def,abc)) even if it extends over multiple lines -- Harpreet Singh hs...@fa... |