Commit a41272a1 authored by Franco Fichtner's avatar Franco Fichtner

template: fix Volt parsing when using formatting additions; closes #7

parent 7f1eed6c
......@@ -19,7 +19,7 @@ sub extract {
# Volt Template:
$line = 1;
pos($_) = 0;
while (m/\G(.*?(?<!\{)\{\{(?!\{)\s*lang\._\('(.*?)'\)\s*\}\})/sg) {
while (m/\G(.*?(?<!\{)\{\{(?!\{)\s*lang\._\('(.*?)'\)\s*?\|?.*?\}\})/sg) {
my ( $vars, $str ) = ( '', $2 );
$line += ( () = ( $1 =~ /\n/g ) ); # cryptocontext!
$self->add_entry( $str, $line, $vars );
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment