summaryrefslogtreecommitdiffstats
path: root/perl_checker.src
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-01-05 16:11:31 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-01-05 16:11:31 +0000
commit8dd17969584c03718373210c6f820cfd99b16469 (patch)
tree64a9c3c5cb93a4fdbf5bfd2618e695081d126fd2 /perl_checker.src
parentc188b39c47235298351866f275ca39b680008521 (diff)
downloadperl_checker-8dd17969584c03718373210c6f820cfd99b16469.tar
perl_checker-8dd17969584c03718373210c6f820cfd99b16469.tar.gz
perl_checker-8dd17969584c03718373210c6f820cfd99b16469.tar.bz2
perl_checker-8dd17969584c03718373210c6f820cfd99b16469.tar.xz
perl_checker-8dd17969584c03718373210c6f820cfd99b16469.zip
fix reported position of variables in strings
Diffstat (limited to 'perl_checker.src')
-rw-r--r--perl_checker.src/lexer.mll2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl_checker.src/lexer.mll b/perl_checker.src/lexer.mll
index efa5262..27c793a 100644
--- a/perl_checker.src/lexer.mll
+++ b/perl_checker.src/lexer.mll
@@ -315,6 +315,8 @@ let ins_re re_delimited_string lexbuf =
let string_interpolate token pre lexbuf =
let s = lexeme lexbuf in
let local_lexbuf = Lexing.from_string (pre ^ s ^ " ") in (* add a space to help tokenizing "xxx$$" *)
+ local_lexbuf.lex_start_p <- lexbuf.lex_start_p ;
+ local_lexbuf.lex_curr_p <- lexbuf.lex_start_p ;
local_lexbuf.lex_abs_pos <- lexeme_start lexbuf ;
let l = lexbuf2list [] token local_lexbuf in
let l = concat_bareword_paren [] l in