diff options
Diffstat (limited to 'test/test_syntax.c')
-rw-r--r-- | test/test_syntax.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_syntax.c b/test/test_syntax.c index 272d9dd..603fd00 100644 --- a/test/test_syntax.c +++ b/test/test_syntax.c @@ -366,6 +366,11 @@ extern int main(int argc, char* argv[]) x2("\\({1,2}\\)", "{1,2}", 0, 5); x2("^\\({1,2}\\)", "{1,2}", 0, 5); + Syntax = ONIG_SYNTAX_EMACS; + x2("\\(abc\\)", "abc", 0, 3); + x2("\\(?:abc\\)", "abc", 0, 3); + x3("\\(?:abc\\)\\(xyz\\)", "abcxyz", 3, 6, 1); + Syntax = ONIG_SYNTAX_PERL_NG; x2("(?i)test", "test", 0, 4); |