1 1.3 rillig /* $NetBSD: lsym_word.c,v 1.3 2021/11/20 09:43:03 rillig Exp $ */ 2 1.1 rillig /* $FreeBSD$ */ 3 1.1 rillig 4 1.1 rillig /* 5 1.1 rillig * Tests for the token lsym_word, which represents a constant, a string 6 1.1 rillig * literal or an identifier. 7 1.1 rillig * 8 1.1 rillig * See also: 9 1.1 rillig * lsym_funcname.c for an identifier followed by '(' 10 1.1 rillig */ 11 1.1 rillig 12 1.1 rillig // TODO: Is '"string"(' syntactically valid in any context? 13 1.1 rillig // TODO: Is '123(' syntactically valid in any context? 14 1.1 rillig // TODO: Would the output of the above depend on -pcs/-npcs? 15 1.1 rillig 16 1.1 rillig #indent input 17 1.1 rillig // TODO: add input 18 1.1 rillig #indent end 19 1.1 rillig 20 1.1 rillig #indent run-equals-input 21 1.2 rillig 22 1.2 rillig 23 1.2 rillig /* 24 1.2 rillig * Since 2019-04-04 and before NetBSD lexi.c 1.149 from 2021-11-20, the first 25 1.2 rillig * character after a backslash continuation was always considered part of a 26 1.2 rillig * word, no matter whether it was a word character or not. 27 1.2 rillig */ 28 1.2 rillig #indent input 29 1.2 rillig int var\ 30 1.2 rillig +name = 4; 31 1.2 rillig #indent end 32 1.2 rillig 33 1.2 rillig #indent run 34 1.3 rillig int var + name = 4; 35 1.2 rillig #indent end 36