summaryrefslogtreecommitdiff
path: root/prism/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'prism/parser.h')
-rw-r--r--prism/parser.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/prism/parser.h b/prism/parser.h
index 95d7aac710..a8d840d3bf 100644
--- a/prism/parser.h
+++ b/prism/parser.h
@@ -479,17 +479,11 @@ typedef struct {
/** The embedded base node. */
pm_list_node_t node;
- /** A pointer to the start of the key in the source. */
- const uint8_t *key_start;
+ /** The key of the magic comment. */
+ pm_location_t key;
- /** A pointer to the start of the value in the source. */
- const uint8_t *value_start;
-
- /** The length of the key in the source. */
- uint32_t key_length;
-
- /** The length of the value in the source. */
- uint32_t value_length;
+ /** The value of the magic comment. */
+ pm_location_t value;
} pm_magic_comment_t;
/**