diff options
author | Jo-Philipp Wich <jo@mein.io> | 2024-09-23 23:20:12 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2024-09-23 23:29:25 +0200 |
commit | 328a50ff82c9bf089dcd381d404dece683ef54d2 (patch) | |
tree | b4ba2de078cd0d748ada3bf1c368a4c7c3bf7334 /lib/ubus.c | |
parent | fa22732f3463a443d5b42d933e245680fc8ed20f (diff) |
lexer: improve token position reporting
- Report end position for emitted tokens. This is required to reliably
determine the token length, e.g. for downstream code intelligence
use cases
- Fix start offset of continued template literal string tokens.
Previously the start offset of a literal string following a `${...}`
placeholder expressions was shifted by one byte
- Report proper start offset of `TK_LEXP` tokens.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib/ubus.c')
0 files changed, 0 insertions, 0 deletions