1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Onig's PERL syntax

Discussion in 'Plugins' started by vefatica, Jul 17, 2010.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    5,498
    Likes Received:
    9
    Rex, do you have any docs which say whether Onig's PERL syntax honors the PERL quantifier {m,n} (at least m, at most n)?

    AFAICT, with your @REGEX and my @XMATCH, it doesn't. Could it be an ONIG_OPTION?

    Code:
    v:\> echo %@regex[\d{1,2},22]
    0
    
    v:\> echo %@xmatch[\d{1,2},22]
    0
     
    #1
  2. vefatica

    Joined:
    May 20, 2008
    Messages:
    5,498
    Likes Received:
    9

    Did you look into this?

    I even tried explicitly:
    Code:
    psyntax->op2 |= ONIG_SYN_OP2_PLUS_POSSESSIVE_INTERVAL;
    (which didn't work).

    And does TCC call onig_set_default_syntax()? If so, will that propagate to my DLL (so that I don't have QueryOptionValue)?

    Thanks.
     
    #2
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    7,198
    Likes Received:
    21
    I have no idea.

    Rex Conn
    JP Software
     
    #3
  4. vefatica

    Joined:
    May 20, 2008
    Messages:
    5,498
    Likes Received:
    9
    On Mon, 19 Jul 2010 19:18:17 -0400, you wrote:

    |---Quote---
    |> ---Quote (Originally by vefatica)---
    |> Rex, do you have any docs which say whether Onig's PERL syntax honors
    |> the PERL quantifier {m,n} (at least m, at most n)?
    |>
    |> AFAICT, with your @REGEX and my @XMATCH, it doesn't. Could it be an
    |> ONIG_OPTION?
    |---End Quote---
    |I have no idea.

    Aha! ... my fault for not quoting the regex! It contains a comma so
    NthArgument() was chopping it up.
     
    #4

Share This Page