()
| 22 | } |
| 23 | |
| 24 | func (tree *ParserT) parseCommentMultiLine() error { |
| 25 | for tree.charPos += 2; tree.charPos < len(tree.expression); tree.charPos++ { |
| 26 | r := tree.expression[tree.charPos] |
| 27 | |
| 28 | switch r { |
| 29 | case '\n': |
| 30 | tree.crLf() |
| 31 | |
| 32 | case '#': |
| 33 | if tree.nextChar() == '/' { |
| 34 | goto endCommentMultiLine |
| 35 | } |
| 36 | |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | return raiseError(tree.expression, nil, tree.charPos, "comment opened with '/#' but no closing token '#/' could be found") |
| 41 | |
| 42 | endCommentMultiLine: |
| 43 | tree.charPos++ |
| 44 | |
| 45 | return nil |
| 46 | } |
no test coverage detected