MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxSkipShebang

Function fxSkipShebang

xs/sources/xsTree.c:182–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void 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
197void fxParserTree(txParser* parser, void* theStream, txGetter theGetter, txUnsigned flags, txString* name)
198{

Callers 1

fxParserTreeFunction · 0.85

Calls 2

fxGetNextCharacterFunction · 0.85
fxReportParserErrorFunction · 0.85

Tested by

no test coverage detected