exe/helpline in helpline-0.1.15 vs exe/helpline in helpline-0.1.16
- old
+ new
@@ -72,11 +72,11 @@
codeindent = nil
else
next
end
end
- if line =~ /^\s*[\$\%]/
+ if line =~ /^\s*[\$\%\?]/
puts line
if line =~ /^\%/ && !processing_defs
puts "'$'で始まる用例定義なしでコマンドを定義しようとしています"
exit
end
@@ -135,10 +135,10 @@
# File.open("/tmp/defs","w"){ |f| # ログを残す場合
entries = []
data['defs'].each { |line|
- if line =~ /^\s*\$\s*(.*)$/ # $....
+ if line =~ /^\s*[\$\?]\s*(.*)$/ # $....
entries << $1
elsif line =~ /^\s*\%\s*(.*)$/ # %....
cmd = $1
entries.each { |l|
desc = eval('"' + l + '"')