v0.2.0 edit a document in place, comments kept; name the keys a struct does not take
Test / test (push) Canceled after 0s
Test / test (push) Canceled after 0s
This commit is contained in:
6 files changed
+622
-11
No files matched your search
@@ -30,12 +30,13 @@ const (
|
||||
TokenNewline // \n
|
||||
)
|
||||
|
||||
// Token represents a lexical token
|
||||
// Token represents a lexical token; Pos and End are its byte offsets in the input
|
||||
type Token struct {
|
||||
Type TokenType
|
||||
Literal string
|
||||
Line int
|
||||
Col int
|
||||
Type TokenType
|
||||
Literal string
|
||||
Line int
|
||||
Col int
|
||||
Pos, End int
|
||||
}
|
||||
|
||||
func (t Token) String() string {
|
||||
|
||||
Reference in new issue
Block a user