Try-catch: {{try}} itemList {{catch }} itemList {{end}} try keyword is past.
()
| 989 | // |
| 990 | // try keyword is past. |
| 991 | func (t *Template) parseTry() *TryNode { |
| 992 | var recov *catchNode |
| 993 | line := t.lex.lineNumber() |
| 994 | pos := t.expectRightDelim("try").pos |
| 995 | list, next := t.itemList(nodeCatch, nodeEnd) |
| 996 | if next.Type() == nodeCatch { |
| 997 | recov = next.(*catchNode) |
| 998 | } |
| 999 | |
| 1000 | return t.newTry(pos, line, list, recov) |
| 1001 | } |
| 1002 | |
| 1003 | // catch: |
| 1004 | // |
no test coverage detected