Skip to content

Commit

Permalink
Mark helper functions static to avoid compile time conflicts with oth…
Browse files Browse the repository at this point in the history
…er scanners (#60)
  • Loading branch information
amaanq authored Jul 27, 2023
1 parent 2616034 commit a2861e8
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit a2861e8

Please sign in to comment.