From cbb46f69754607e5a7c058e2eed795d002c9a914 Mon Sep 17 00:00:00 2001 From: Kondo Uchio Date: Sat, 5 Sep 2020 14:36:44 +0900 Subject: Exact match to allowed method/variable names --- Rakefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Rakefile') 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 -- cgit v1.2.3