indent: document the funcname token

This commit is contained in:
rillig 2023-05-18 08:09:28 +00:00
parent 4cc242ff56
commit d46fdfe393
2 changed files with 16 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: opt_pcs.c,v 1.15 2023/05/15 20:50:37 rillig Exp $ */
/* $NetBSD: opt_pcs.c,v 1.16 2023/05/18 08:09:28 rillig Exp $ */
/*
* Tests for the options '-pcs' and '-npcs'.
@ -110,3 +110,16 @@ int sizeof_expr = sizeof 0;
int offset = offsetof(struct s, member);
int offset = offsetof(struct s, member);
//indent end
//indent input
int unary = +call();
int binary = 1 + call();
//indent end
//indent run-equals-input -npcs -di0
//indent run -pcs -di0
int unary = +call ();
int binary = 1 + call ();
//indent end

View File

@ -1,4 +1,4 @@
/* $NetBSD: indent.h,v 1.149 2023/05/18 06:01:39 rillig Exp $ */
/* $NetBSD: indent.h,v 1.150 2023/05/18 08:09:28 rillig Exp $ */
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
@ -94,7 +94,7 @@ typedef enum lexer_symbol {
lsym_sizeof,
lsym_offsetof,
lsym_word, /* identifier, constant or string */
lsym_funcname,
lsym_funcname, /* name of a function being defined */
lsym_do,
lsym_else,
lsym_for,