]> 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>
Sat, 25 Jun 2016 16:09:42 +0000 (17:09 +0100)
commit691a28a17c837441347c2b8ed679df72a3f5b94e
tree11a936641c76a452989cb81f50cdc479498caa3a
parentd1b118187bd6a7af92cbb5906b755f743d8cf7ff
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/parse/lex.cc
re2c/bootstrap/src/parse/parser.cc
re2c/src/parse/parser.ypp
re2c/src/parse/scanner.cc
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