summaryrefslogtreecommitdiff
path: root/source/luametatex/source/tex/texexpand.c
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2023-05-27 12:37:50 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2023-05-27 12:37:50 +0200
commit32381f97e98465953bfde24b4436093e70fbe70f (patch)
tree1f585cf7af509e76c64aca108cecd23acd6fb437 /source/luametatex/source/tex/texexpand.c
parentbb8ae12f4f94189fd1540b201e2aea78f485de97 (diff)
downloadcontext-32381f97e98465953bfde24b4436093e70fbe70f.tar.gz
2023-05-27 12:16:00
Diffstat (limited to 'source/luametatex/source/tex/texexpand.c')
-rw-r--r--source/luametatex/source/tex/texexpand.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/source/luametatex/source/tex/texexpand.c b/source/luametatex/source/tex/texexpand.c
index 706972bfe..d0de0c9f1 100644
--- a/source/luametatex/source/tex/texexpand.c
+++ b/source/luametatex/source/tex/texexpand.c
@@ -535,14 +535,6 @@ void tex_expand_current_token(void)
}
break;
}
- /*
- case string_cmd:
- {
- halfword head = str_toks(str_lstring(cs_offset_value + cur_chr), NULL);
- begin_inserted_list(head);
- break;
- }
- */
default:
/* Maybe ... or maybe an option */
// if (lmt_expand_state.cs_name_level == 0) {
@@ -636,21 +628,13 @@ static int tex_aux_collect_cs_tokens(halfword *p, int *n)
case spacer_cmd:
case letter_cmd:
case other_char_cmd:
- case active_char_cmd: /* new */
- // cur_tok = token_val(cur_cmd, cur_chr);
- // *p = tex_store_new_token(*p, cur_tok);
+ case active_char_cmd: /* new, here we don't expand */
*p = tex_store_new_token(*p, token_val(cur_cmd, cur_chr));
*n += 1;
break;
/* case comment_cmd: */
/* case invalid_char_cmd: */
- /*
- case string_cmd:
- cur_tok = token_val(cur_cmd, cur_chr);
- *p = store_new_token(*p, cur_tok);
- *n += str_length(cs_offset_value + cur_chr);
- break;
- */
+ /* break; */
case call_cmd:
case tolerant_call_cmd:
if (get_token_reference(cur_chr) == max_token_reference) { // ! get_token_parameters(cur_chr)) {