]> granicus.if.org Git - re2c/commit
Fixed C++98 lexer example (program code).
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 10 Nov 2015 14:41:04 +0000 (14:41 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 10 Nov 2015 15:22:34 +0000 (15:22 +0000)
commitf214a2b4a08a4a057dd415eb2a1356bd365a6aeb
treefb98bee9397639bf1c85e39f6a94c5a388c9b375
parent93b866dee88c9cd6273b964ef444ccceb2e12b12
Fixed C++98 lexer example (program code).

Fix: check length when parsing integer sequences.
If a string contains e.g. "\uFFFFf", it must be recognized as "\xffff\x66"
and not as "\xfffff".
src/examples/07_c++98.re
src/examples/example_07.rst