cleanup
This commit is contained in:
@@ -1,16 +1,12 @@
|
|||||||
#include <tree_sitter/parser.h>
|
#include <tree_sitter/parser.h>
|
||||||
#include <wctype.h>
|
#include <wctype.h>
|
||||||
|
|
||||||
// forward declarations
|
|
||||||
|
|
||||||
enum TokenType {
|
enum TokenType {
|
||||||
TEMPLATE_CHAR,
|
TEMPLATE_CHAR,
|
||||||
TEMPLATE_CHAR_IN_INTERPOLATION,
|
TEMPLATE_CHAR_IN_INTERPOLATION,
|
||||||
ESCAPE_SEQUENCE
|
ESCAPE_SEQUENCE
|
||||||
};
|
};
|
||||||
|
|
||||||
// helpers
|
|
||||||
|
|
||||||
static void advance(TSLexer *lexer) { lexer->advance(lexer, false); }
|
static void advance(TSLexer *lexer) { lexer->advance(lexer, false); }
|
||||||
|
|
||||||
static bool accept_template_char_inplace(TSLexer *lexer) {
|
static bool accept_template_char_inplace(TSLexer *lexer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user