]> granicus.if.org Git - onig/commitdiff
use tag in callouts of contents
authorK.Kosako <kkosako0@gmail.com>
Sun, 4 Mar 2018 15:25:47 +0000 (00:25 +0900)
committerK.Kosako <kkosako0@gmail.com>
Sun, 4 Mar 2018 15:25:47 +0000 (00:25 +0900)
sample/callout.c

index 3e6f73795cebbc740e0166664ffc474496d631c0..54080d2202d851464a0e3840a71dc40efc6e7520 100644 (file)
@@ -234,9 +234,9 @@ extern int main(int argc, char* argv[])
 
   // callout of contents
   test(enc, "a+(?{foo bar baz...}+)$", "aaab");
-  test(enc, "(?{{!{}#$%&'()=-~^|[_]`@*:+;<>?/.\\,}})c", "abc");
+  test(enc, "(?{{!{}#$%&'()=-~^|[_]`@*:+;<>?/.\\,}}[symbols])c", "abc");
   test(enc, "\\A(...)(?{{{booooooooooooo{{ooo}}ooooooooooz}}}-)", "aaab");
-  test(enc, "\\A(?!a(?{prec-read-not}+)b)", "ac");
+  test(enc, "\\A(?!a(?{prec-read-not}[xxx]+)b)", "ac");
   test(enc, "(?<!a(?{look-behind-not}+)c)c", "abc");