summaryrefslogtreecommitdiffstats
path: root/eshtrans/frontend
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-21 13:02:45 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-21 13:02:45 (EST)
commite858b7b8330ec9e7b7f91a810ed9b30674299c2a (patch)
tree3cdd1fef353eb248d782ff4d8368ee78a27fbd91 /eshtrans/frontend
parentd14f6d59b6765c99203be0213c6d265a102e1eb4 (diff)
downloadeggshell-e858b7b8330ec9e7b7f91a810ed9b30674299c2a.zip
eggshell-e858b7b8330ec9e7b7f91a810ed9b30674299c2a.tar.gz
eggshell-e858b7b8330ec9e7b7f91a810ed9b30674299c2a.tar.bz2
eshtrans/frontend: Count singly quoted newlines
Diffstat (limited to 'eshtrans/frontend')
-rw-r--r--eshtrans/frontend/lexer.esh4
1 files changed, 4 insertions, 0 deletions
diff --git a/eshtrans/frontend/lexer.esh b/eshtrans/frontend/lexer.esh
index 552be45..31670c1 100644
--- a/eshtrans/frontend/lexer.esh
+++ b/eshtrans/frontend/lexer.esh
@@ -518,6 +518,10 @@ scan_word()
'Unterminated' \
'quoted string'
;;
+ "${LF}")
+ lineno=$((${lineno} +1))
+ lines=$((${lines} + 1))
+ ;;
\')
break
;;