Feature #11578
closed
Option to pass whole arguments to a macro without splitting them
Added by Miko Kinski over 12 years ago.
Updated over 12 years ago.
Description
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.
- Subject changed from passing whole args in parse_macros without splitting them to Option to pass whole arguments to a macro without splitting them
- Category set to Plugin API
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
- Target version set to 2.1.0
- Resolution set to Fixed
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:
macro :my_macro, :parse_args => false do |obj, args|
# args is the whole string of arguments used to invoke the macro
end
Also available in: Atom
PDF