summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorKondo Uchio <[email protected]>2020-09-05 14:36:44 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 18:20:20 +0900
commitcbb46f69754607e5a7c058e2eed795d002c9a914 (patch)
tree57cbfe4f2edd02b2980bfba7be5a9bbbe00a5e00 /Rakefile
parent0c242e278d406dd158c0b048c4fdc13c62824827 (diff)
downloadmruby-cbb46f69754607e5a7c058e2eed795d002c9a914.tar.gz
mruby-cbb46f69754607e5a7c058e2eed795d002c9a914.zip
Exact match to allowed method/variable names
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index 20e6fe5fd..7cf0e7959 100644
--- a/Rakefile
+++ b/Rakefile
@@ -219,13 +219,13 @@ file presym_inc => presym_file do
f.print "MRB_PRESYM_CSYM(#{sym}, #{i+1})\n"
elsif op_table.key?(sym)
f.print "MRB_PRESYM_QSYM(\"#{sym}\", #{op_table[sym]}, #{i+1})\n"
- elsif /\A\w+\?\Z/ =~ sym
+ elsif /\A[A-Za-z_]\w*\?\Z/ =~ sym
s = sym.dup; s[-1] = "_p"
f.print "MRB_PRESYM_QSYM(\"#{sym}\", #{s}, #{i+1})\n"
- elsif /\A\w+\!\Z/ =~ sym
+ elsif /\A[A-Za-z_]\w*\!\Z/ =~ sym
s = sym.dup; s[-1] = "_b"
f.print "MRB_PRESYM_QSYM(\"#{sym}\", #{s}, #{i+1})\n"
- elsif /\A\w+\=\Z/ =~ sym
+ elsif /\A[A-Za-z_]\w*\=\Z/ =~ sym
s = sym.dup; s[-1] = "_e"
f.print "MRB_PRESYM_QSYM(\"#{sym}\", #{s}, #{i+1})\n"
elsif /\A@@/ =~ sym