# HG changeset patch # User Markus Mützel # Date 1654785850 -7200 # Node ID 4b6f03d7264a717b04c77ccef612de59dafdbd35 # Parent 4dbd8d999b9e3e34c4c54ffd9f67f5bf4b88cb04 test: Move new BISTs to lexer and adapt syntax (bug #62587). * libinterp/parse-tree/lex.ll: Move BISTs from oct-parse.yy to here. diff -r 4dbd8d999b9e -r 4b6f03d7264a libinterp/parse-tree/lex.ll --- a/libinterp/parse-tree/lex.ll Thu Jun 09 08:59:55 2022 -0400 +++ b/libinterp/parse-tree/lex.ll Thu Jun 09 16:44:10 2022 +0200 @@ -2927,6 +2927,14 @@ return kw->tok; } +/* + +## check if magic file and line keywords are working +%!assert <*62587> (ischar (__FILE__)) +%!assert <*62587> (isnumeric (__LINE__)) + +*/ + bool base_lexer::fq_identifier_contains_keyword (const std::string& s) { diff -r 4dbd8d999b9e -r 4b6f03d7264a libinterp/parse-tree/oct-parse.yy --- a/libinterp/parse-tree/oct-parse.yy Thu Jun 09 08:59:55 2022 -0400 +++ b/libinterp/parse-tree/oct-parse.yy Thu Jun 09 16:44:10 2022 +0200 @@ -6477,12 +6477,6 @@ %! [a,] = gcd (1,2); %! [a,b,] = gcd (1, 2); -%!test <*62587> -%! assert (ischar (__FILE__)) - -%!test <*62587> -%! assert (isnumeric (__LINE__)) - ## Can't assign to a keyword %!error eval ("switch = 13;")