(sql: string, i: number)
| 13 | } |
| 14 | |
| 15 | function scanSingleLineComment(sql: string, i: number): SQLToken | null { |
| 16 | if (sql[i] !== "-" || sql[i + 1] !== "-") { return null; } |
| 17 | let j = i; |
| 18 | while (j < sql.length && sql[j] !== "\n") { j++; } |
| 19 | return { type: TokenType.Comment, end: j }; |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * MySQL/MariaDB single-line comment scanner. Unlike ANSI SQL, MySQL and MariaDB |
no outgoing calls
no test coverage detected