(sql: string, i: number)
| 43 | } |
| 44 | |
| 45 | function scanMultiLineComment(sql: string, i: number): SQLToken | null { |
| 46 | if (sql[i] !== "/" || sql[i + 1] !== "*") { return null; } |
| 47 | let j = i + 2; |
| 48 | while (j < sql.length && !(sql[j] === "*" && sql[j + 1] === "/")) { j++; } |
| 49 | if (j < sql.length) { j += 2; } |
| 50 | return { type: TokenType.Comment, end: j }; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * MySQL/MariaDB-specific multi-line comment scanner that preserves conditional comments. |
no outgoing calls
no test coverage detected