aboutsummaryrefslogtreecommitdiffstats
path: root/symbol.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-20 05:43:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-20 05:43:15 +0000
commitf89238ec0d689f3989c55c4716da500b8c898900 (patch)
treeddf409196264dc90a3b096e7940f6bd8c5a21ae1 /symbol.h
parent766f9b4aff57b05a19589c55850d1a73f49d5d06 (diff)
downloadruby-f89238ec0d689f3989c55c4716da500b8c898900.tar.gz
parse.y: ignore constant name captures
* parse.y (reg_named_capture_assign_iter): ignore non-local name captures, including non-ASCII constant names. [ruby-dev:50719] [Bug #15437] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'symbol.h')
-rw-r--r--symbol.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/symbol.h b/symbol.h
index 7d147a4bd1..56568a91fc 100644
--- a/symbol.h
+++ b/symbol.h
@@ -98,6 +98,8 @@ is_global_name_punct(const int c)
return (ruby_global_name_punct_bits[(c - 0x20) / 32] >> (c % 32)) & 1;
}
+int rb_enc_symname_type(const char *name, long len, rb_encoding *enc, unsigned int allowed_attrset);
+
RUBY_SYMBOL_EXPORT_BEGIN
size_t rb_sym_immortal_count(void);