This commit is contained in:
mhoffm
2021-06-14 23:39:45 +02:00
parent 548f6d789e
commit ca491c9a02

View File

@@ -1,16 +1,12 @@
#include <tree_sitter/parser.h>
#include <wctype.h>
// forward declarations
enum TokenType {
TEMPLATE_CHAR,
TEMPLATE_CHAR_IN_INTERPOLATION,
ESCAPE_SEQUENCE
};
// helpers
static void advance(TSLexer *lexer) { lexer->advance(lexer, false); }
static bool accept_template_char_inplace(TSLexer *lexer) {