()
| 201 | } |
| 202 | |
| 203 | func (m *FilterQLParser) initialComment() string { |
| 204 | |
| 205 | comment := "" |
| 206 | |
| 207 | for { |
| 208 | // We are going to loop until we find the first Non-Comment Token |
| 209 | switch m.Cur().T { |
| 210 | case lex.TokenComment, lex.TokenCommentML: |
| 211 | comment += m.Cur().V |
| 212 | case lex.TokenCommentStart, lex.TokenCommentHash, lex.TokenCommentEnd, lex.TokenCommentSingleLine, lex.TokenCommentSlashes: |
| 213 | // skip, currently ignore these |
| 214 | default: |
| 215 | // first non-comment token |
| 216 | return comment |
| 217 | } |
| 218 | m.Next() |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | func (m *FilterQLParser) discardNewLines() { |
| 223 | for { |
no test coverage detected