| 180 | } |
| 181 | |
| 182 | void fxSkipShebang(txParser* parser) |
| 183 | { |
| 184 | if (parser->character == '#') { |
| 185 | fxGetNextCharacter(parser); |
| 186 | if (parser->character == '!') { |
| 187 | fxGetNextCharacter(parser); |
| 188 | while ((parser->character != (txU4)C_EOF) && (parser->character != 10) && (parser->character != 13) && (parser->character != 0x2028) && (parser->character != 0x2029)) { |
| 189 | fxGetNextCharacter(parser); |
| 190 | } |
| 191 | } |
| 192 | else |
| 193 | fxReportParserError(parser, 1, "invalid character %d", parser->character); |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | void fxParserTree(txParser* parser, void* theStream, txGetter theGetter, txUnsigned flags, txString* name) |
| 198 | { |
no test coverage detected