Skip to content

Commit

Permalink
chore: remove reset function
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed May 5, 2024
1 parent f93fd28 commit 0a50d31
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/scanner.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <tree_sitter/parser.h>
#include "tree_sitter/parser.h"

#include <wctype.h>

enum TokenType {
Expand All @@ -9,21 +10,13 @@ void *tree_sitter_squirrel_external_scanner_create() { return NULL; }

void tree_sitter_squirrel_external_scanner_destroy(void *payload) {}

void tree_sitter_squirrel_external_scanner_reset(void *payload) {}

unsigned tree_sitter_squirrel_external_scanner_serialize(void *payload,
char *buffer) {
return 0;
}
unsigned tree_sitter_squirrel_external_scanner_serialize(void *payload, char *buffer) { return 0; }

void tree_sitter_squirrel_external_scanner_deserialize(void *payload,
const char *buffer,
unsigned length) {}
void tree_sitter_squirrel_external_scanner_deserialize(void *payload, const char *buffer, unsigned length) {}

static void advance(TSLexer *lexer) { lexer->advance(lexer, false); }

bool tree_sitter_squirrel_external_scanner_scan(void *payload, TSLexer *lexer,
const bool *valid_symbols) {
bool tree_sitter_squirrel_external_scanner_scan(void *payload, TSLexer *lexer, const bool *valid_symbols) {
while (iswspace(lexer->lookahead)) {
lexer->advance(lexer, true);
}
Expand Down

0 comments on commit 0a50d31

Please sign in to comment.