Menu

RegEx

Help
d00h
2005-11-11
2013-04-26
  • d00h

    d00h - 2005-11-11

    could you add the following option:
    filename?regеxp=/???/
    regex search for ctags autogeneration
    For dynamic error file generation I use gawk script
    BEGIN{ FS = ":"; filename=""; }
    {  if(filename!=$1)
       {
        if(filename!="")
             print "#[cf]"
        filename=$1
        print "#[of]:",filename
       }
       if ($3==" error")
         printf "#[l]:(E) %s:%s?ln=%u\n",$4,$1,$2
       else
         printf "#[l]:(W) %s:%s?ln=%u\n",$5,$1,$2
    }
    END{ if(filename!="")   print "#[cf]" }

    I would like to have something like this
    thank you in advance for the programme 

     
    • Marc Kerbiquet

      Marc Kerbiquet - 2005-11-11

      This feature has been added in version 2.2. There is two special links:
      1. <filename>?s=<regex>
      2. <filename>?is=<regex>
      The second one is for insensitive case search.

      Ctags' REs cannot be copied as is into a cb link file.
      1/ starting and trailing slashes must be removed
      2/ ':' is a field separator in link lines so it must be escaped with a backslash.
      3/ cb's regex are not compatibles with ctags' : the characters []()*+?|\ must be escaped with two backslashes '\\'.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.