diff options
author | Amaan Qureshi <amaanq12@gmail.com> | 2023-07-27 03:25:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 09:25:48 +0200 |
commit | a2861e88a730287a60c11ea9299c033c7d076e30 (patch) | |
tree | 10c975f64148aea055b3a5c334409f19c89669ea | |
parent | 2616034f78ffa83ca6a521ebd7eee1868cb5c14c (diff) |
Mark helper functions static to avoid compile time conflicts with other scanners (#60)
-rw-r--r-- | src/scanner.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scanner.c b/src/scanner.c index 4f69b0978..766082d01 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -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); @@ -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 |