Home | History | Annotate | Line # | Download | only in indent
lsym_if.c revision 1.4
      1  1.4  rillig /* $NetBSD: lsym_if.c,v 1.4 2022/04/24 10:36:37 rillig Exp $ */
      2  1.1  rillig 
      3  1.1  rillig /*
      4  1.1  rillig  * Tests for the token lsym_if, which represents the keyword 'if' that starts
      5  1.1  rillig  * an 'if' or 'if-else' statement.
      6  1.1  rillig  */
      7  1.1  rillig 
      8  1.3  rillig //indent input
      9  1.4  rillig void
     10  1.4  rillig function(void)
     11  1.4  rillig {
     12  1.4  rillig 	if(cond)stmt();
     13  1.4  rillig }
     14  1.3  rillig //indent end
     15  1.1  rillig 
     16  1.4  rillig //indent run
     17  1.4  rillig void
     18  1.4  rillig function(void)
     19  1.4  rillig {
     20  1.4  rillig 	if (cond)
     21  1.4  rillig 		stmt();
     22  1.4  rillig }
     23  1.4  rillig //indent end
     24