Skip to content

Commit 8b639bd

Browse files
committed
build: update javascript dep
1 parent 198e2ea commit 8b639bd

File tree

8 files changed

+492781
-490673
lines changed

8 files changed

+492781
-490673
lines changed

common/corpus/declarations.txt

-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ declare module Foo {
172172
body: (statement_block)
173173
condition: (parenthesized_expression
174174
(true)))
175-
(empty_statement)
176175
(for_in_statement
177176
left: (identifier)
178177
right: (null)

common/define-grammar.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = function defineGrammar(dialect) {
66

77
externals: ($, previous) => previous.concat([
88
$._function_signature_automatic_semicolon,
9+
$.__error_recovery,
910
]),
1011

1112
supertypes: ($, previous) => previous.concat([

common/scanner.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ enum TokenType {
99
HTML_COMMENT,
1010
LOGICAL_OR,
1111
ESCAPE_SEQUENCE,
12+
REGEX_PATTERN,
1213
FUNCTION_SIGNATURE_AUTOMATIC_SEMICOLON,
1314
ERROR_RECOVERY,
1415
};
@@ -289,7 +290,8 @@ static inline bool external_scanner_scan(void *payload, TSLexer *lexer, const bo
289290
return scan_ternary_qmark(lexer);
290291
}
291292

292-
if (valid_symbols[HTML_COMMENT] && !valid_symbols[LOGICAL_OR] && !valid_symbols[ESCAPE_SEQUENCE]) {
293+
if (valid_symbols[HTML_COMMENT] && !valid_symbols[LOGICAL_OR] && !valid_symbols[ESCAPE_SEQUENCE] &&
294+
!valid_symbols[REGEX_PATTERN]) {
293295
return scan_closing_comment(lexer);
294296
}
295297

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
"author": "Max Brunsfeld",
1717
"license": "MIT",
1818
"dependencies": {
19-
"nan": "^2.18.0",
19+
"nan": "^2.19.0",
2020
"tree-sitter": "^0.20.6"
2121
},
2222
"devDependencies": {
23-
"eslint": ">=8.56.0",
23+
"eslint": ">=8.57.0",
2424
"eslint-config-google": "^0.14.0",
25-
"tree-sitter-cli": "^0.20.8",
26-
"tree-sitter-javascript": "^0.20.3"
25+
"tree-sitter-cli": "^0.21.0",
26+
"tree-sitter-javascript": "^0.20.4"
2727
},
2828
"scripts": {
2929
"build": "npm run build-typescript && npm run build-tsx",

0 commit comments

Comments
 (0)