(s *scanner)
| 823 | } |
| 824 | |
| 825 | func skipTagContents(s *scanner) error { |
| 826 | tagName := string(s.Token().Value) |
| 827 | t, err := expectTagContents(s) |
| 828 | if err != nil { |
| 829 | return err |
| 830 | } |
| 831 | if len(t.Value) > 0 { |
| 832 | return fmt.Errorf("unexpected extra value after %s: %q at %s", tagName, t.Value, s.Context()) |
| 833 | } |
| 834 | return err |
| 835 | } |
| 836 | |
| 837 | func expectTagContents(s *scanner) (*token, error) { |
| 838 | return expectToken(s, tagContents) |
no test coverage detected
searching dependent graphs…