type Token
import bend-lint-rules@0.2.0.0/layout/format.bend as Formatimport Base
84# Offsets and columns count code points. name: whether the text matches
85# /^[\w.]+$/. tail: for a literal across lines, how many characters follow
86# its last newline. from: the text from the token on.
87type Token is Data:
88 Token{
89 text: String,
90 beg: U32,
91 end: U32,
92 col: U32,
93 lex: Lex,
94 sym: Sym,
95 name: Bool,
96 tail: Maybe<&2, U32>,
97 from: String
98 }