tree-sitter-javascript
Advanced tools
Comparing version 0.21.2 to 0.21.3
@@ -992,3 +992,3 @@ /** | ||
token(choice( | ||
seq('//', /.*/), | ||
seq('//', /[^\r\n\u2028\u2029]*/), | ||
seq( | ||
@@ -1091,5 +1091,5 @@ '/*', | ||
// eslint-disable-next-line max-len | ||
const alpha = /[^\x00-\x1F\s\p{Zs}0-9:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/; | ||
const alpha = /[^\x00-\x1F\s\p{Zs}0-9:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B\u2028\u2029]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/; | ||
// eslint-disable-next-line max-len | ||
const alphanumeric = /[^\x00-\x1F\s\p{Zs}:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/; | ||
const alphanumeric = /[^\x00-\x1F\s\p{Zs}:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B\u2028\u2029]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/; | ||
return token(seq(alpha, repeat(alphanumeric))); | ||
@@ -1100,5 +1100,5 @@ }, | ||
// eslint-disable-next-line max-len | ||
const alpha = /[^\x00-\x1F\s\p{Zs}0-9:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/; | ||
const alpha = /[^\x00-\x1F\s\p{Zs}0-9:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B\u2028\u2029]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/; | ||
// eslint-disable-next-line max-len | ||
const alphanumeric = /[^\x00-\x1F\s\p{Zs}:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/; | ||
const alphanumeric = /[^\x00-\x1F\s\p{Zs}:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B\u2028\u2029]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/; | ||
return token(seq('#', alpha, repeat(alphanumeric))); | ||
@@ -1201,3 +1201,6 @@ }, | ||
repeat(field('decorator', $.decorator)), | ||
optional(choice('static', alias(token(seq('static', /\s+/, 'get', /\s*\n/)), 'static get'))), | ||
optional(choice( | ||
'static', | ||
alias(token(seq('static', /\s+/, 'get', /\s*\n/)), 'static get'), | ||
)), | ||
optional('async'), | ||
@@ -1223,6 +1226,6 @@ optional(choice('get', 'set', '*')), | ||
_property_name: $ => choice( | ||
alias(choice( | ||
$.identifier, | ||
$._reserved_identifier, | ||
), $.property_identifier), | ||
alias( | ||
choice($.identifier, $._reserved_identifier), | ||
$.property_identifier, | ||
), | ||
$.private_property_identifier, | ||
@@ -1229,0 +1232,0 @@ $.string, |
{ | ||
"name": "tree-sitter-javascript", | ||
"version": "0.21.2", | ||
"version": "0.21.3", | ||
"description": "JavaScript grammar for tree-sitter", | ||
@@ -58,3 +58,6 @@ "repository": "github:tree-sitter/tree-sitter-javascript", | ||
"file-types": [ | ||
"js" | ||
"js", | ||
"mjs", | ||
"cjs", | ||
"jsx" | ||
], | ||
@@ -61,0 +64,0 @@ "highlights": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
11671
4697020