summaryrefslogtreecommitdiff
path: root/src/fspec/lexer.rl
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2017-05-07 17:01:49 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2017-05-07 17:01:49 +0300
commit8087a503f00913fc7b26e75d9549f6b99adf3242 (patch)
tree8e6a4c84c2fa3e518f4ae173ff5d6a186f0fd9d7 /src/fspec/lexer.rl
parent92f1dbb651217ea062d81237c6e72eaa257c6b81 (diff)
ragel.rl: Make search_err read "p" before stop
If we stop before reading the "p" false positive may be returned since "p" may be the start of new token. Thus case like `type: 3u8[4] str;` would fail to mark the real error since '3' is not read. Thus start marking from the last valid token that is ':'.
Diffstat (limited to 'src/fspec/lexer.rl')
0 files changed, 0 insertions, 0 deletions