[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: Reimplement linemacro arguments expansion in a se
From: |
Patrice Dumas |
Subject: |
branch master updated: Reimplement linemacro arguments expansion in a separate function |
Date: |
Wed, 19 Jul 2023 13:49:04 -0400 |
This is an automated email from the git hooks/post-receive script.
pertusus pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 8ec086d950 Reimplement linemacro arguments expansion in a separate
function
8ec086d950 is described below
commit 8ec086d950799f4ca24ed3b645200bb2fa6dc006
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Jul 19 19:48:53 2023 +0200
Reimplement linemacro arguments expansion in a separate function
* tp/Texinfo/ParserNonXS.pm (_expand_linemacro_arguments)
(_end_line_misc_line, _end_line_def_line, _end_line, _handle_macro)
(_handle_open_brace, _process_remaining_on_line, _parse_texi),
tp/Texinfo/XS/parsetexi/context_stack.c (context_name),
tp/Texinfo/XS/parsetexi/end_line.c (end_line_def_line)
(end_line_misc_line, end_line), tp/Texinfo/XS/parsetexi/macro.c
(count_toplevel_braces, set_toplevel_braces_nr)
(expand_linemacro_arguments, handle_macro),
tp/Texinfo/XS/parsetexi/parser.c (linecommand_expansion_delimiters)
(process_remaining_on_line, parse_texi),
tp/Texinfo/XS/parsetexi/separator.c (handle_open_brace):
use the expand_linemacro_arguments function directly in handle_macro
to parse the linemacro defined user commands arguments, such that they
are expanded in a second step only. @-command are taken into account
to protect spaces or braces, braces are matched, spaces separate
arguments and what remains on the line is the last arrgument. In the
XS parser, use a specific counter count_toplevel_braces, and use
set_toplevel_braces_nr to count closed braces.
Remove code related to the previous implementation.
* tp/Texinfo/ParserNonXS.pm (%parser_state_initialization)
(_end_line_def_line, _process_remaining_on_line),
tp/Texinfo/XS/parsetexi/api.c (reset_parser_except_conf),
tp/Texinfo/XS/parsetexi/end_line.c (end_line_def_line),
tp/Texinfo/XS/parsetexi/parser.c (process_remaining_on_line):
remove global state in_parsing_only, which is not relevant with
the new implementation.
---
ChangeLog | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index eb019aa350..d6ffbb0664 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,9 +15,11 @@
tp/Texinfo/XS/parsetexi/separator.c (handle_open_brace):
use the expand_linemacro_arguments function directly in handle_macro
to parse the linemacro defined user commands arguments, such that they
- are expanded in a second step only. In the XS parser, use a specific
- counter count_toplevel_braces, and use set_toplevel_braces_nr to count
- closed braces.
+ are expanded in a second step only. @-command are taken into account
+ to protect spaces or braces, braces are matched, spaces separate
+ arguments and what remains on the line is the last arrgument. In the
+ XS parser, use a specific counter count_toplevel_braces, and use
+ set_toplevel_braces_nr to count closed braces.
Remove code related to the previous implementation.
* tp/Texinfo/ParserNonXS.pm (%parser_state_initialization)