diff options
| author | Kondo Uchio <[email protected]> | 2020-09-05 14:36:44 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 18:20:20 +0900 |
| commit | cbb46f69754607e5a7c058e2eed795d002c9a914 (patch) | |
| tree | 57cbfe4f2edd02b2980bfba7be5a9bbbe00a5e00 /Rakefile | |
| parent | 0c242e278d406dd158c0b048c4fdc13c62824827 (diff) | |
| download | mruby-cbb46f69754607e5a7c058e2eed795d002c9a914.tar.gz mruby-cbb46f69754607e5a7c058e2eed795d002c9a914.zip | |
Exact match to allowed method/variable names
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
