Changeset 426 for branches/thune/thread_safe/tokenize.c
- Timestamp:
- 07/05/07 04:03:51 (17 months ago)
- Files:
-
- 1 modified
-
branches/thune/thread_safe/tokenize.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/thune/thread_safe/tokenize.c
r408 r426 539 539 } 540 540 541 mode = UT_LITWORD; 542 541 543 SCAN_LOOP 542 if( ur_bitIsSet( charset_delimiters, ch ) ) // '[' 'word[] 544 if( ch == '/' ) 545 { 546 mode = UT_LITSELECT; 547 } 548 else if( ur_bitIsSet( charset_delimiters, ch ) ) // '[' 'word[] 549 { 543 550 break; 551 } 544 552 SCAN_END 545 553 … … 549 557 if( it == token ) 550 558 goto quote_err; 551 cell = ur_appendWord( BLOCK, UT_LITWORD, token, it - token ); 559 if( mode == UT_LITWORD ) 560 { 561 cell = ur_appendWord( BLOCK, UT_LITWORD, token, it - token ); 562 } 563 else 564 { 565 cell = ur_appendCell( BLOCK, UT_UNSET ); 566 if( ! ur_makeSelector( ut, cell, token, it ) ) 567 { 568 syntaxError( "Invalid lit-select" ); 569 } 570 ur_type(cell) = UT_LITSELECT; 571 } 552 572 goto set_eol; 553 573 } … … 591 611 #endif 592 612 593 mode = (ch == '\'') ? UT_LITWORD :UT_WORD;613 mode = UT_WORD; 594 614 595 615 SCAN_LOOP 596 if( ch == ':' /*&& (mode != UT_LITWORD)*/)616 if( ch == ':' ) 597 617 { 598 618 mode = WORD_COLON; … … 638 658 if( ! ur_makeSelector( ut, cell, token, it ) ) 639 659 { 640 syntaxError( "Invalid select or" );660 syntaxError( "Invalid select" ); 641 661 } 642 662 }
