Skip to content

Commit a2861e8

Browse files
authored
Mark helper functions static to avoid compile time conflicts with other scanners (#60)
1 parent 2616034 commit a2861e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scanner.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static inline int8_t find_quoted_token_info(const bool *valid_symbols) {
166166
return -1;
167167
}
168168

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

172172
bool is_heredoc = (info->delimiter_length == 3);
@@ -524,7 +524,7 @@ static bool scan_newline(TSLexer *lexer, const bool *valid_symbols) {
524524
return false;
525525
}
526526

527-
bool scan(TSLexer *lexer, const bool *valid_symbols) {
527+
static bool scan(TSLexer *lexer, const bool *valid_symbols) {
528528
int8_t quoted_content_info_idx = find_quoted_token_info(valid_symbols);
529529

530530
// Quoted content, which matches any character except for close

0 commit comments

Comments
 (0)