diff options
author | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-11-26 01:40:35 +0000 |
---|---|---|
committer | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-11-26 01:40:35 +0000 |
commit | 4c658475681fdd2a12c9239976776684ff3d6375 (patch) | |
tree | 7567fd05379837315199466045621001f011d19b /lexer.l | |
parent | 4747f8681b3442af8b7916ac5bdfec712662c49b (diff) |
Raise a proper error from the lexer on unmatched },),]
Diffstat (limited to 'lexer.l')
-rw-r--r-- | lexer.l | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) { |