summaryrefslogtreecommitdiffstats
path: root/parsing/lexer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'parsing/lexer.sh')
-rw-r--r--parsing/lexer.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/parsing/lexer.sh b/parsing/lexer.sh
index 53af926..292d2fa 100644
--- a/parsing/lexer.sh
+++ b/parsing/lexer.sh
@@ -451,9 +451,15 @@ scan_word()
while :; do
lgetc
word="${word}${c}"
- case "${c}" in \')
- break
- ;;
+ case "${c}" in
+ '')
+ synerr '%s %s' \
+ 'Unterminated' \
+ 'quoted string'
+ ;;
+ \')
+ break
+ ;;
esac
done
;;