Mercurial > octave
comparison src/lex.ll @ 12801:2837514cf178
codesprint: Add tests for iskeyword() to lex.ll
* lex.ll: Add tests for iskeyword()
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sat, 16 Jul 2011 10:39:31 -0700 |
parents | 002948ae5bc0 |
children | 1bfca2bbea8b |
comparison
equal
deleted
inserted
replaced
12800:bde2c81aa2e6 | 12801:2837514cf178 |
---|---|
3447 else | 3447 else |
3448 print_usage (); | 3448 print_usage (); |
3449 | 3449 |
3450 return retval; | 3450 return retval; |
3451 } | 3451 } |
3452 | |
3453 /* | |
3454 | |
3455 %!assert (iskeyword ("for")) | |
3456 %!assert (iskeyword ("fort"), false) | |
3457 %!assert (iskeyword ("fft"), false) | |
3458 | |
3459 */ | |
3452 | 3460 |
3453 void | 3461 void |
3454 prep_lexer_for_script_file (void) | 3462 prep_lexer_for_script_file (void) |
3455 { | 3463 { |
3456 BEGIN (SCRIPT_FILE_BEGIN); | 3464 BEGIN (SCRIPT_FILE_BEGIN); |