Defect #11736 ยป Fixed_multi-line_macros.patch
| app/helpers/application_helper.rb (date 1346149541000) | ||
|---|---|---|
|
\{\{ # opening tag
|
||
|
([\w]+) # macro name
|
||
|
(\(([^\n\r]*?)\))? # optional arguments
|
||
|
([\n\r].*[\n\r])? # optional block of text
|
||
|
([\n\r].*?[\n\r])? # optional block of text
|
||
|
\}\} # closing tag
|
||
|
)
|
||
|
)/mx unless const_defined?(:MACROS_RE)
|
||
| ... | ... | |
|
\{\{
|
||
|
macro\((\d+)\)
|
||
|
\}\}
|
||
|
)/x unless const_defined?(:MACROS_SUB_RE)
|
||
|
)/x unless const_defined?(:MACRO_SUB_RE)
|
||
|
|
||
|
# Extracts macros from text
|
||
|
def catch_macros(text)
|
||