HTD / NST

New Source Tree Komodo Addon
32 stars 20 forks source link

perl: wrong nesting: balanced pairs of regex delimiters inside regex #21

Open jumpercc opened 11 years ago

jumpercc commented 11 years ago

Regular expressions with paired delimiters can contain balanced pairs of that delimiters. In this code:

package test;
sub test1 {
    m{
        \d{2}\s\d
    }x;
}
sub test2 {
    #
}

"test1" and "test2" must be on the same level (inside "test"), but now only "test1" shown inside "test1" ("test2" on the same level with "test")

PS: github code highlighter parses this code wrong too