eolian: fix error cursor positioning
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Mon, 13 Jun 2016 13:53:35 +0000 (14:53 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Mon, 13 Jun 2016 13:55:15 +0000 (14:55 +0100)
commit922e4e918182c4a6d012973a237b89b9248a017c
tree6ab7499305ca587987462bbf58f83a6c9edb3f63
parent4fd1c4f25bcb291d821ba3b02a005b721e689a21
eolian: fix error cursor positioning

Previously, multi-char tokens (such as strings, docs etc) always put the error
cursor to the end of the token. That was confusing, so now the cursor always
appears at the beginning of the token instead (for multiline tokens, currently
only docs, the line number is also adjusted to point to the first line of the
doc token).

@fix
src/lib/eolian/eo_lexer.c
src/lib/eolian/eo_lexer.h