* Checks if the input at the given offset starts with a prefix keyword.
(input: InputStream, offset: number)
| 108 | * Checks if the input at the given offset starts with a prefix keyword. |
| 109 | */ |
| 110 | function startsWithPrefixAt(input: InputStream, offset: number): boolean { |
| 111 | for (const prefix of PREFIXES) { |
| 112 | if (matchesStringAt(input, offset, prefix)) { |
| 113 | return true; |
| 114 | } |
| 115 | } |
| 116 | return false; |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Advances past whitespace starting at the given offset. |
no test coverage detected