]> Cypherpunks repositories - gostls13.git/commit
text/template: ensures code consistency in lexer
authorAymerick <aymerick@jehanne.org>
Wed, 29 Apr 2015 09:33:41 +0000 (11:33 +0200)
committerRob Pike <r@golang.org>
Mon, 4 May 2015 17:27:03 +0000 (17:27 +0000)
commitb79db4f2fd76cf1d8ce58144fc609a08ab5dd7b3
treeb7a7742f2ac0654dc8978421138f0bf71eac4d07
parente2e322d293bfd12db095229dd54349c61f4669cf
text/template: ensures code consistency in lexer

At the end of lexInsideAction(), we return lexInsideAction: this is the default
behaviour when we are still parsing an action. But some switch branches return
lexInsideAction too.

So let's ensure code consistency by always reaching the end of the
lexInsideAction function when needed.

Change-Id: I7e9d8d6e51f29ecd6db6bdd63b36017845d95368
Reviewed-on: https://go-review.googlesource.com/9441
Reviewed-by: Rob Pike <r@golang.org>
src/text/template/parse/lex.go