]> granicus.if.org Git - re2c/commit
Fixed #147 "Please add symbol name to "can't find symbol" error message".
authorUlya Trofimovich <skvadrik@gmail.com>
Sat, 25 Jun 2016 15:22:08 +0000 (16:22 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Sun, 30 Jul 2017 15:21:21 +0000 (16:21 +0100)
commit20dc41d6cd132ce6ff273fd3dba76278f357c08c
treea4c224703d0de1e24b2aafa3ea4606343608079a
parentf3f08578ccc517a800c737a881610b145c898f9a
Fixed #147 "Please add symbol name to "can't find symbol" error message".

As suggested by sirzooro:
    Please add symbol name to "can't find symbol" error message,
    it would allow to quickly spot what is wrong. Now we have to
    position cursor at given row and column to find that name.

Also tweaked error reporitng function to append "..." at the end
of the message if it didn't fit into buffer.
re2c/bootstrap/src/ast/lex.cc
re2c/bootstrap/src/ast/parser.cc
re2c/src/ast/parser.ypp
re2c/test/bug147.c [new file with mode: 0644]
re2c/test/bug147.re [new file with mode: 0644]
re2c/test/overflow-2.c
re2c/test/overflow-3.c