aboutsummaryrefslogtreecommitdiffstats
path: root/prism/parser.h
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-11-27 14:17:02 -0500
committergit <svn-admin@ruby-lang.org>2023-11-28 13:25:48 +0000
commitc798943a4a272f213d21295a837da06ed5fa9a51 (patch)
tree618a074700e2d501beec4db66320e2e1f5a6f085 /prism/parser.h
parent43dc8e9012dd7c390f1299d1b653656c81ae2aa7 (diff)
downloadruby-c798943a4a272f213d21295a837da06ed5fa9a51.tar.gz
[ruby/prism] Move DATA parsing into its own parse result field
https://github.com/ruby/prism/commit/42b60b6e95
Diffstat (limited to 'prism/parser.h')
-rw-r--r--prism/parser.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/prism/parser.h b/prism/parser.h
index e3c93b4246..86442d2a22 100644
--- a/prism/parser.h
+++ b/prism/parser.h
@@ -361,8 +361,7 @@ typedef struct pm_context_node {
/** This is the type of a comment that we've found while parsing. */
typedef enum {
PM_COMMENT_INLINE,
- PM_COMMENT_EMBDOC,
- PM_COMMENT___END__
+ PM_COMMENT_EMBDOC
} pm_comment_type_t;
/**
@@ -571,6 +570,9 @@ struct pm_parser {
/** The list of magic comments that have been found while parsing. */
pm_list_t magic_comment_list;
+ /** The optional location of the __END__ keyword and its contents. */
+ pm_location_t data_loc;
+
/** The list of warnings that have been found while parsing. */
pm_list_t warning_list;