Vote #72331
完了Option to pass whole arguments to a macro without splitting them
0%
説明
Why not passing the whole content of the macro to the exec_macro and let the macro developer decide whether or not he has any arguments or not which are separated by comma or something else. This Issue is also related to ongoing discussion #3061 of parsing complete macro text without exclusion.
journals
Obviously, I can't change the current behaviour for compatibility reasons but an option @:parse_args => false@ is added in r10174 to disable arguments parsing when registering a macro. Example:
<pre>
macro :my_macro, :parse_args => false do |obj, args|
# args is the whole string of arguments used to invoke the macro
end
</pre>
--------------------------------------------------------------------------------