The R Project SVN R-packages

Rev

Rev 6048 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6048 Rev 7797
Line 37... Line 37...
37
	 */
37
	 */
38
	
38
	
39
#import "RdScriptEditorTokens.h"
39
#import "RdScriptEditorTokens.h"
40
 
40
 
41
size_t utf8strlenRd(const char * _s);
41
size_t utf8strlenRd(const char * _s);
42
size_t yyuoffset, yyuleng;
42
extern size_t yyuoffset, yyuleng;
43
 
43
 
44
//keep track of the current utf-8 character (not byte) offset and token length
44
//keep track of the current utf-8 character (not byte) offset and token length
45
#define YY_USER_ACTION { yyuoffset += yyuleng; yyuleng = utf8strlenRd(yytext); }
45
#define YY_USER_ACTION { yyuoffset += yyuleng; yyuleng = utf8strlenRd(yytext); }
46
//ignore the output of unmatched characters
46
//ignore the output of unmatched characters
47
#define ECHO {}
47
#define ECHO {}