Commit Diff


commit - d7786ef0db3aeb260b1b1bd27d78b8ce737be3bb
commit + 1433867a307e5fbd8399b90e210d4d9caf29ba00
blob - 744d37cdea150b8de13c5b6bfa5df972ebb19dd0
blob + 9640f09cd4866ccc1202135638947c519d9954bd
--- np.y
+++ np.y
@@ -450,6 +450,9 @@ yylex(void)
 			; /* nop */
 
 	switch (c) {
+	case ':':
+		return c;
+		break;
 	case '\'':
 	case '\"':
 		quotec = c;
@@ -492,7 +495,7 @@ yylex(void)
 
 #define allowed_to_end_number(x) \
 	(isspace(x) || x == ')' || x == ',' || x == '/' || x == '}' \
-	    || x == '=')
+	    || x == '=' || x == ':')
 
 	if (c == '-' || isdigit(c)) {
 		do {