Skip to content

fix: mark helper functions static to avoid compile time conflicts with other scanners #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static inline int8_t find_quoted_token_info(const bool *valid_symbols) {
return -1;
}

bool scan_quoted_content(TSLexer *lexer, const QuotedContentInfo *info) {
static bool scan_quoted_content(TSLexer *lexer, const QuotedContentInfo *info) {
lexer->result_symbol = info->token_type;

bool is_heredoc = (info->delimiter_length == 3);
Expand Down Expand Up @@ -524,7 +524,7 @@ static bool scan_newline(TSLexer *lexer, const bool *valid_symbols) {
return false;
}

bool scan(TSLexer *lexer, const bool *valid_symbols) {
static bool scan(TSLexer *lexer, const bool *valid_symbols) {
int8_t quoted_content_info_idx = find_quoted_token_info(valid_symbols);

// Quoted content, which matches any character except for close
Expand Down