Some error message tweaks
This commit is contained in:
parent
f57637d7fc
commit
a5b1385012
@ -391,7 +391,7 @@ func (what Type) Describe () (description string) {
|
||||
description += "}"
|
||||
}
|
||||
|
||||
if what.length > 0 {
|
||||
if what.length != 1 {
|
||||
description += fmt.Sprint(":", what.length)
|
||||
}
|
||||
|
||||
|
@ -5,11 +5,12 @@ import "git.tebibyte.media/arf/arf/infoerr"
|
||||
|
||||
// tokenizeString tokenizes a string or rune literal.
|
||||
func (lexer *lexingOperation) tokenizeString () (err error) {
|
||||
token := lexer.newToken()
|
||||
|
||||
err = lexer.nextRune()
|
||||
if err != nil { return }
|
||||
|
||||
token := lexer.newToken()
|
||||
got := ""
|
||||
got := ""
|
||||
tokenWidth := 2
|
||||
|
||||
for {
|
||||
|
Reference in New Issue
Block a user