summaryrefslogtreecommitdiff
path: root/source/luametatex/source/tex/texscanning.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/luametatex/source/tex/texscanning.c')
-rw-r--r--source/luametatex/source/tex/texscanning.c29
1 files changed, 18 insertions, 11 deletions
diff --git a/source/luametatex/source/tex/texscanning.c b/source/luametatex/source/tex/texscanning.c
index 675186681..9559a4040 100644
--- a/source/luametatex/source/tex/texscanning.c
+++ b/source/luametatex/source/tex/texscanning.c
@@ -1513,7 +1513,7 @@ static halfword tex_aux_scan_something_internal(halfword cmd, halfword chr, int
case math_parameter_set_atom_rule:
case math_parameter_let_atom_rule:
case math_parameter_copy_atom_rule:
- case math_parameter_let_parent:
+ // case math_parameter_let_parent:
case math_parameter_copy_parent:
case math_parameter_set_defaults:
{
@@ -1521,6 +1521,15 @@ static halfword tex_aux_scan_something_internal(halfword cmd, halfword chr, int
// cur_val_level = int_val_level;
break;
}
+ case math_parameter_let_parent:
+ {
+ halfword mathclass = tex_scan_math_class_number(0);
+ if (valid_math_class_code(mathclass)) {
+ cur_val = tex_math_has_class_parent(mathclass);
+ cur_val_level = int_val_level;
+ }
+ break;
+ }
case math_parameter_set_pre_penalty:
case math_parameter_set_post_penalty:
case math_parameter_set_display_pre_penalty:
@@ -1893,16 +1902,6 @@ static halfword tex_aux_scan_something_internal(halfword cmd, halfword chr, int
}
break;
/*
- case string_cmd:
- {
- halfword head = str_toks(str_lstring(cs_offset_value + chr), NULL);
- begin_inserted_list(head);
- cur_val = 0;
- cur_val_level = no_val_level;
- break;
- }
- */
- /*
case special_box_cmd:
switch (chr) {
case left_box_code:
@@ -3292,6 +3291,14 @@ halfword tex_the_value_toks(int code, halfword *tail, halfword property) /* mayb
return null;
}
+void tex_detokenize_list(halfword head)
+{
+ int saved_selector;
+ push_selector;
+ tex_show_token_list(head, 0);
+ pop_selector;
+}
+
halfword tex_the_detokenized_toks(halfword *tail)
{
halfword head = tex_scan_general_text(tail);