readMultilineComment finds the end of a multiline comment (ie, '*/').
(r []rune, i, end int)
| 38 | |
| 39 | // readMultilineComment finds the end of a multiline comment (ie, '*/'). |
| 40 | func readMultilineComment(r []rune, i, end int) (int, bool) { |
| 41 | i++ |
| 42 | for ; i < end; i++ { |
| 43 | if r[i-1] == '*' && r[i] == '/' { |
| 44 | return i, true |
| 45 | } |
| 46 | } |
| 47 | return end, false |
| 48 | } |