File tree Expand file tree Collapse file tree 1 file changed +21
-22
lines changed Expand file tree Collapse file tree 1 file changed +21
-22
lines changed Original file line number Diff line number Diff line change @@ -31,27 +31,6 @@ export default function(hljs) {
31
31
end : / " / ,
32
32
contains : [ hljs . BACKSLASH_ESCAPE ]
33
33
} ;
34
- const META_DELIM_TREE = {
35
- relevance : 0 ,
36
- variants : [
37
- {
38
- begin : / \( / ,
39
- end : / \) / ,
40
- } ,
41
- {
42
- begin : / \[ / ,
43
- end : / \] / ,
44
- } ,
45
- {
46
- begin : / \{ / ,
47
- end : / \} / ,
48
- } ,
49
- ] ,
50
- contains : [
51
- 'self' ,
52
- META_STRING ,
53
- ]
54
- } ;
55
34
const NUMBER_SUFFIX = '([ui](8|16|32|64|128|size)|f(32|64))\?' ;
56
35
const KEYWORDS = [
57
36
"abstract" ,
@@ -274,7 +253,27 @@ export default function(hljs) {
274
253
end : '\\]' ,
275
254
contains : [
276
255
META_STRING ,
277
- META_DELIM_TREE ,
256
+ {
257
+ relevance : 0 ,
258
+ variants : [
259
+ {
260
+ begin : / \( / ,
261
+ end : / \) / ,
262
+ } ,
263
+ {
264
+ begin : / \[ / ,
265
+ end : / \] / ,
266
+ } ,
267
+ {
268
+ begin : / \{ / ,
269
+ end : / \} / ,
270
+ } ,
271
+ ] ,
272
+ contains : [
273
+ 'self' ,
274
+ META_STRING ,
275
+ ]
276
+ } ,
278
277
]
279
278
} ,
280
279
{
You can’t perform that action at this time.
0 commit comments