mirror of
https://github.com/nasa/trick.git
synced 2025-03-21 19:45:23 +00:00
Perl warning about unescaped left curly bracket
Found the unescaped "{" and put a blashslash in front of them. refs #213
This commit is contained in:
parent
b5b6dbe0bb
commit
fb8a5f1d1d
@ -46,7 +46,7 @@ sub get_lib_deps ($$) {
|
||||
foreach my $l (@lib_list) {
|
||||
my $found = 0 ;
|
||||
$l =~ s/\(|\)|\s+//g ;
|
||||
$l =~ s/\${(.+?)}/$ENV{$1}/eg ;
|
||||
$l =~ s/\$\{(.+?)\}/$ENV{$1}/eg ;
|
||||
next if ( $l eq "" ) ;
|
||||
|
||||
if ( $l =~ /\.a$/ ) {
|
||||
|
@ -79,9 +79,9 @@ $vcollect_def = qr/
|
||||
\s*
|
||||
(?:.*?) # Optional constructor
|
||||
\s*
|
||||
{\s* # entry
|
||||
\{\s* # entry
|
||||
(?:.*?) # item list
|
||||
\s*}\s*; # end args
|
||||
\s*\}\s*; # end args
|
||||
/sx ;
|
||||
|
||||
$compiler_directive_def = qr/
|
||||
@ -143,9 +143,9 @@ $job_class_order_def = qr/
|
||||
/sx ;
|
||||
|
||||
$user_code_def = qr/
|
||||
%{\s*
|
||||
%\{\s*
|
||||
.*?
|
||||
%}
|
||||
%\}
|
||||
/sx ;
|
||||
|
||||
$user_header_def = qr/
|
||||
@ -461,7 +461,7 @@ sub handle_user_code ($$) {
|
||||
trick_print($$sim_ref{fh}, "User code: $u\n" , "debug_white" , $$sim_ref{args}{v});
|
||||
$$sim_ref{line_num} += ($u =~ s/\n/\n/g) ;
|
||||
$u =~ s/^##/#/mg ;
|
||||
$u =~ /%{(.*?)%}/s ;
|
||||
$u =~ /%\{(.*?)%\}/s ;
|
||||
$u = $1 ;
|
||||
$u =~ s/ZZZYYYXXX(\d+)ZZZYYYXXX//g ;
|
||||
$$sim_ref{user_code} .= $u ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user