K 10 svn:author V 7 delphij K 8 svn:date V 27 2015-07-27T19:21:23.441520Z K 7 svn:log V 237 Rewrite scan procedure with a FSM. This improves code readability by making clear transits between different states, and avoids bug with handling repeated $'s. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D3221 END