summaryrefslogtreecommitdiff
path: root/regparse.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-11 01:06:30 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-11 01:06:30 (GMT)
commite0e3d15f12d795ff00a7926283fbee81f7f7a5cc (patch)
tree8691bf64c2cd60dab5b454c41c50090ae5843e10 /regparse.c
parentc506f190e142ad8cda2be386180c51d428a937fc (diff)
* regparse.c (fetch_token_in_cc): warn when \p is not
followed by property name. * regparse.c (fetch_token): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regparse.c')
-rw-r--r--regparse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/regparse.c b/regparse.c
index 0a6bf19..0cc9a62 100644
--- a/regparse.c
+++ b/regparse.c
@@ -3069,6 +3069,9 @@ fetch_token_in_cc(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
PUNFETCH;
}
}
+ else {
+ onig_syntax_warn(env, "invalid Unicode Property \\%c", c);
+ }
break;
case 'x':
@@ -3634,6 +3637,9 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
PUNFETCH;
}
}
+ else {
+ onig_syntax_warn(env, "invalid Unicode Property \\%c", c);
+ }
break;
default: