From 0a60f600e691409aab41f710bbbd8801a3162143 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 29 May 2019 16:01:34 -0600 Subject: autodoc.pl: Add N flag This adds a check that the macro or function name for the pod entry is a legitimate name, as almost all are. If this had been in effect, the bug fixed by the previous commit would not have been necessary. But there are a very few things that are documented that aren't strict names. This adds a flag so that autodoc can be notified to not warn on them. This will allow Devel::PPPort to not have to special case situations like this, which it now does. --- toke.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'toke.c') diff --git a/toke.c b/toke.c index b0fa2c35ba..8b627c1966 100644 --- a/toke.c +++ b/toke.c @@ -831,7 +831,7 @@ Perl_parser_free_nexttoke_ops(pTHX_ yy_parser *parser, OPSLAB *slab) /* -=for apidoc AmxU|SV *|PL_parser-Elinestr +=for apidoc AmxUN|SV *|PL_parser-Elinestr Buffer scalar containing the chunk currently under consideration of the text currently being lexed. This is always a plain string scalar (for @@ -858,7 +858,7 @@ lexing position is pointed to by Lbufptr>. Direct use of these pointers is usually preferable to examination of the scalar through normal scalar means. -=for apidoc AmxU|char *|PL_parser-Ebufend +=for apidoc AmxUN|char *|PL_parser-Ebufend Direct pointer to the end of the chunk of text currently being lexed, the end of the lexer buffer. This is equal to Clinestr) @@ -866,7 +866,7 @@ end of the lexer buffer. This is equal to Clinestr) always located at the end of the buffer, and does not count as part of the buffer's contents. -=for apidoc AmxU|char *|PL_parser-Ebufptr +=for apidoc AmxUN|char *|PL_parser-Ebufptr Points to the current position of lexing inside the lexer buffer. Characters around this point may be freely examined, within @@ -884,7 +884,7 @@ Interpretation of the buffer's octets can be abstracted out by using the slightly higher-level functions L and L. -=for apidoc AmxU|char *|PL_parser-Elinestart +=for apidoc AmxUN|char *|PL_parser-Elinestart Points to the start of the current line inside the lexer buffer. This is useful for indicating at which column an error occurred, and -- cgit v1.2.1