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