Skip to content

Commit 91c256a

Browse files
stylus
1 parent 9096786 commit 91c256a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/languages/stylus.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ export default {
3333
pattern: /^\{|\}$/,
3434
alias: 'punctuation',
3535
},
36-
$rest: /** @type {Grammar['$rest']} */ (null),
36+
$rest: null,
3737
},
3838
},
3939
'func': {
4040
pattern: /[\w-]+\([^)]*\).*/,
4141
inside: {
4242
'function': /^[^(]+/,
43-
$rest: /** @type {Grammar['$rest']} */ (null),
43+
$rest: null,
4444
},
4545
},
4646
'important': /\B!(?:important|optional)\b/i,
@@ -85,15 +85,15 @@ export default {
8585
lookbehind: true,
8686
inside: {
8787
'atrule': /^@[\w-]+/,
88-
$rest: /** @type {Grammar['$rest']} */ (inside),
88+
$rest: inside,
8989
},
9090
},
9191
'variable-declaration': {
9292
pattern: /(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,
9393
lookbehind: true,
9494
inside: {
9595
'variable': /^\S+/,
96-
$rest: /** @type {Grammar['$rest']} */ (inside),
96+
$rest: inside,
9797
},
9898
},
9999

@@ -102,7 +102,7 @@ export default {
102102
lookbehind: true,
103103
inside: {
104104
'keyword': /^\S+/,
105-
$rest: /** @type {Grammar['$rest']} */ (inside),
105+
$rest: inside,
106106
},
107107
},
108108

@@ -119,7 +119,7 @@ export default {
119119
'interpolation': inside.interpolation,
120120
},
121121
},
122-
$rest: /** @type {Grammar['$rest']} */ (inside),
122+
$rest: inside,
123123
},
124124
},
125125

0 commit comments

Comments
 (0)