summary refs log tree commit diff
path: root/minic/minic.y
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-18 08:56:02 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-18 08:56:02 -0500
commita968dc687d8a4fa3303a750d3ef1eea9369b2fdd (patch)
tree04a8bed82d80787ae609dd7f50de5009101ea1ed /minic/minic.y
parent2ea517ed26e3f1adf84268648cd028efd6825e52 (diff)
downloadroux-a968dc687d8a4fa3303a750d3ef1eea9369b2fdd.tar.gz
support _ in identifiers
Diffstat (limited to 'minic/minic.y')
-rw-r--r--minic/minic.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/minic/minic.y b/minic/minic.y
index b335f68..0abef05 100644
--- a/minic/minic.y
+++ b/minic/minic.y
@@ -6,7 +6,7 @@
 #include <string.h>
 
 enum {
-	NString = 16,
+	NString = 32,
 	NGlo = 256,
 	NVar = 512,
 	NStr = 256,
@@ -874,7 +874,7 @@ yylex()
 				die("ident too long");
 			*p++ = c;
 			c = getchar();
-		} while (isalpha(c));
+		} while (isalpha(c) || c == '_');
 		*p = 0;
 		ungetc(c, stdin);
 		for (i=0; kwds[i].s; i++)