ext/rbs_extension/lexer.h in rbs-2.7.0 vs ext/rbs_extension/lexer.h in rbs-2.8.0.pre.1
- old
+ new
@@ -117,9 +117,11 @@
* ~~~~~~ Token => "a str
* ```
* */
typedef struct {
VALUE string;
+ int start_pos; /* The character position that defines the start of the input */
+ int end_pos; /* The character position that defines the end of the input */
position current; /* The current position */
position start; /* The start position of the current token */
bool first_token_of_line; /* This flag is used for tLINECOMMENT */
unsigned int last_char; /* Last peeked character */
} lexstate;