aboutsummaryrefslogtreecommitdiffstats
path: root/yarp/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'yarp/parser.h')
-rw-r--r--yarp/parser.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/yarp/parser.h b/yarp/parser.h
index 93cb63573c..024ec5b8fa 100644
--- a/yarp/parser.h
+++ b/yarp/parser.h
@@ -394,6 +394,14 @@ struct yp_parser {
// This flag indicates that we are currently parsing a keyword argument.
unsigned int in_keyword_arg : 1;
+
+ // Whether or not the parser has seen a token that has semantic meaning
+ // (i.e., a token that is not a comment or whitespace).
+ unsigned int semantic_token_seen : 1;
+
+ // Whether or not we have found a frozen_string_literal magic comment with
+ // a true value.
+ unsigned int frozen_string_literal : 1;
};
#endif // YARP_PARSER_H