File tree Expand file tree Collapse file tree 4 files changed +1238
-16
lines changed
Expand file tree Collapse file tree 4 files changed +1238
-16
lines changed Original file line number Diff line number Diff line change 1+ import treesitter from 'eslint-config-treesitter' ;
2+
3+ export default [
4+ ...treesitter ,
5+ ] ;
Original file line number Diff line number Diff line change 88// @ts -check
99
1010const
11- letter = / [ a - z A - Z ] / ,
12- decimal_digit = / [ 0 - 9 ] / ,
13- octal_digit = / [ 0 - 7 ] / ,
14- hex_digit = / [ 0 - 9 A - F a - f ] /
11+ letter = / [ a - z A - Z ] / ;
12+ const decimal_digit = / [ 0 - 9 ] / ;
13+ const octal_digit = / [ 0 - 7 ] / ;
14+ const hex_digit = / [ 0 - 9 A - F a - f ] / ;
1515
16+ /**
17+ *
18+ * @param {any } content
19+ */
1620function array_of ( content ) {
1721 return seq (
1822 '[' ,
@@ -500,20 +504,20 @@ module.exports = grammar({
500504 '"' ,
501505 repeat ( choice (
502506 token . immediate ( prec ( 1 , / [ ^ " \\ ] + / ) ) ,
503- $ . escape_sequence
507+ $ . escape_sequence ,
504508 ) ) ,
505- '"'
509+ '"' ,
506510 ) ,
507511
508512 seq (
509- "'" ,
513+ '\'' ,
510514 repeat ( choice (
511515 token . immediate ( prec ( 1 , / [ ^ ' \\ ] + / ) ) ,
512- $ . escape_sequence
516+ $ . escape_sequence ,
513517 ) ) ,
514- "'" ,
518+ '\'' ,
515519 ) ,
516- )
520+ ) ,
517521 ) ,
518522
519523 escape_sequence : $ => token . immediate ( seq (
@@ -523,17 +527,17 @@ module.exports = grammar({
523527 / \d { 2 , 3 } / ,
524528 / x [ 0 - 9 a - f A - F ] { 2 , } / ,
525529 / u [ 0 - 9 a - f A - F ] { 4 } / ,
526- / U [ 0 - 9 a - f A - F ] { 8 } /
527- )
530+ / U [ 0 - 9 a - f A - F ] { 8 } / ,
531+ ) ,
528532 ) ) ,
529533
530534 comment : $ => token ( choice (
531535 seq ( '//' , / .* / ) ,
532536 seq (
533537 '/*' ,
534538 / [ ^ * ] * \* + ( [ ^ / * ] [ ^ * ] * \* + ) * / ,
535- '/'
536- )
537- ) )
538- }
539+ '/' ,
540+ ) ,
541+ ) ) ,
542+ } ,
539543} ) ;
You can’t perform that action at this time.
0 commit comments