Skip to content

Commit

Permalink
build: update javascript dep
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Mar 10, 2024
1 parent 198e2ea commit 784672e
Show file tree
Hide file tree
Showing 8 changed files with 492,781 additions and 490,673 deletions.
1 change: 0 additions & 1 deletion common/corpus/declarations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ declare module Foo {
body: (statement_block)
condition: (parenthesized_expression
(true)))
(empty_statement)
(for_in_statement
left: (identifier)
right: (null)
Expand Down
1 change: 1 addition & 0 deletions common/define-grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = function defineGrammar(dialect) {

externals: ($, previous) => previous.concat([
$._function_signature_automatic_semicolon,
$.__error_recovery,
]),

supertypes: ($, previous) => previous.concat([
Expand Down
4 changes: 3 additions & 1 deletion common/scanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ enum TokenType {
HTML_COMMENT,
LOGICAL_OR,
ESCAPE_SEQUENCE,
REGEX_PATTERN,
FUNCTION_SIGNATURE_AUTOMATIC_SEMICOLON,
ERROR_RECOVERY,
};
Expand Down Expand Up @@ -289,7 +290,8 @@ static inline bool external_scanner_scan(void *payload, TSLexer *lexer, const bo
return scan_ternary_qmark(lexer);
}

if (valid_symbols[HTML_COMMENT] && !valid_symbols[LOGICAL_OR] && !valid_symbols[ESCAPE_SEQUENCE]) {
if (valid_symbols[HTML_COMMENT] && !valid_symbols[LOGICAL_OR] && !valid_symbols[ESCAPE_SEQUENCE] &&
!valid_symbols[REGEX_PATTERN]) {
return scan_closing_comment(lexer);
}

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"author": "Max Brunsfeld",
"license": "MIT",
"dependencies": {
"nan": "^2.18.0",
"nan": "^2.19.0",
"tree-sitter": "^0.20.6"
},
"devDependencies": {
"eslint": ">=8.56.0",
"eslint": ">=8.57.0",
"eslint-config-google": "^0.14.0",
"tree-sitter-cli": "^0.20.8",
"tree-sitter-javascript": "^0.20.3"
"tree-sitter-cli": "^0.21.0",
"tree-sitter-javascript": "^0.20.4"
},
"scripts": {
"build": "npm run build-typescript && npm run build-tsx",
Expand Down
Loading

0 comments on commit 784672e

Please sign in to comment.