]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: fix EOF message on operand parsing errors.
authorTal Shprecher <tshprecher@gmail.com>
Sat, 20 Feb 2016 00:02:54 +0000 (16:02 -0800)
committerRob Pike <r@golang.org>
Thu, 25 Feb 2016 00:21:14 +0000 (00:21 +0000)
commit45c4ebec5bdd387842868d38dbe495e2992302e1
tree90a15ab02f0f9ff64d2346ae5baef49b22237712
parentd17727bdb4b925427dd03d6b235b586418e47f89
cmd/asm: fix EOF message on operand parsing errors.

If the parsing of an operand completes but the parser thinks there
is more to read, return an "expected end of operand" error message
instead of "expected EOF." This also removes extra "asm: " prefixes
in error strings since "asm: " is already set as the global log
prefix.

Fixes #14071

Change-Id: I7d621c1aea529a0eca3bcba032359bd25b3e1080
Reviewed-on: https://go-review.googlesource.com/19731
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/asm/internal/asm/parse.go
src/cmd/asm/internal/asm/pseudo_test.go
src/cmd/asm/internal/lex/input.go
src/cmd/asm/internal/lex/lex.go
src/cmd/asm/main.go