summaryrefslogtreecommitdiffstats
path: root/lexer.l
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-11-26 01:40:35 +0000
committerStephen Dolan <mu@netsoc.tcd.ie>2012-11-26 01:40:35 +0000
commit4c658475681fdd2a12c9239976776684ff3d6375 (patch)
tree7567fd05379837315199466045621001f011d19b /lexer.l
parent4747f8681b3442af8b7916ac5bdfec712662c49b (diff)
Raise a proper error from the lexer on unmatched },),]
Diffstat (limited to 'lexer.l')
-rw-r--r--lexer.l4
1 files changed, 4 insertions, 0 deletions
diff --git a/lexer.l b/lexer.l
index e0bb2b7b..b09ccce4 100644
--- a/lexer.l
+++ b/lexer.l
@@ -126,6 +126,10 @@ static int try_exit(int c, int state, yyscan_t yyscanner) {
match = ')';
ret = QQSTRING_INTERP_END;
break;
+
+ default:
+ // may not be the best error to give
+ return INVALID_CHARACTER;
}
assert(match);
if (match == c) {