summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parser.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/parser.h b/parser.h
index de69a2dba2..1d5a7a876b 100644
--- a/parser.h
+++ b/parser.h
@@ -64,9 +64,11 @@ typedef struct yy_parser {
I32 lex_allbrackets;/* (), [], {}, ?: bracket count */
SUBLEXINFO sublex_info;
SV *linestr; /* current chunk of src text */
- char *bufptr;
- char *oldbufptr;
- char *oldoldbufptr;
+ char *bufptr; /* carries the cursor (current parsing
+ position) from one invocation of yylex
+ to the next */
+ char *oldbufptr; /* in yylex, beginning of current token */
+ char *oldoldbufptr; /* in yylex, beginning of previous token */
char *bufend;
char *linestart; /* beginning of most recently read line */
char *last_uni; /* position of last named-unary op */