Home | History | Annotate | Line # | Download | only in indent
lsym_lbrace.c revision 1.3
      1 /* $NetBSD: lsym_lbrace.c,v 1.3 2022/02/13 11:07:48 rillig Exp $ */
      2 /* $FreeBSD$ */
      3 
      4 /*
      5  * Tests for the token lsym_lbrace, which represents a '{' in these contexts:
      6  *
      7  * In an initializer, '{' starts an inner group of initializers, usually to
      8  * initialize a nested struct, union or array.
      9  *
     10  * In a function body, '{' starts a block.
     11  *
     12  * In an expression, '(type){' starts a compound literal that is typically
     13  * used in an assignment to a struct or array.
     14  *
     15  * TODO: try to split this token into lsym_lbrace_block and lsym_lbrace_init.
     16  */
     17 
     18 #indent input
     19 // TODO: add input
     20 #indent end
     21 
     22 #indent run-equals-input
     23