Skip to content

Commit d21f0ee

Browse files
committed
Fix scope semantic syntax highlighting
Fix the overly broad scope configuration that causes the extension to affect semantic syntax coloring across all languages. #160
1 parent 97c864d commit d21f0ee

File tree

1 file changed

+69
-27
lines changed

1 file changed

+69
-27
lines changed

package.json

Lines changed: 69 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -252,88 +252,94 @@
252252
"enabled": true,
253253
"[*Light*]": {
254254
"rules": {
255-
"axiom": {
255+
"axiom.juvix": {
256256
"foreground": "#ad1313"
257257
},
258-
"rules": {
258+
"rules.juvix": {
259259
"foreground": "#ef3e9d"
260260
},
261-
"comment": {
261+
"comment.juvix": {
262262
"foreground": "#a8a8a8"
263263
},
264-
"pragma": {
264+
"comment.documentation.juvix": {
265+
"foreground": "#a8a8a8"
266+
},
267+
"pragma.juvix": {
265268
"foreground": "#717070"
266269
},
267-
"constructor": {
270+
"constructor.juvix": {
268271
"foreground": "#8d8dff"
269272
},
270-
"error": {
273+
"error.juvix": {
271274
"foreground": "#ed1452",
272275
"fontStyle": "bold"
273276
},
274-
"function": {
277+
"function.juvix": {
275278
"foreground": "#ef9f00"
276279
},
277-
"type": {
280+
"type.juvix": {
278281
"foreground": "#31a36a"
279282
},
280-
"keyword": {
283+
"keyword.juvix": {
281284
"foreground": "#000bd3"
282285
},
283-
"module": {
286+
"module.juvix": {
284287
"foreground": "#1b1b1b"
285288
},
286-
"number": {
289+
"number.juvix": {
287290
"foreground": "#6b8e00"
288291
},
289-
"string": {
292+
"string.juvix": {
290293
"foreground": "#ff4d00"
291294
}
292295
}
293296
},
294297
"[*Dark*]": {
295298
"rules": {
296-
"axiom": {
299+
"axiom.juvix": {
297300
"foreground": "#f07171"
298301
},
299-
"rules": {
302+
"rules.juvix": {
300303
"foreground": "#ef3e9d"
301304
},
302-
"comment": {
305+
"comment.juvix": {
303306
"foreground": "#a8a8a8"
304307
},
305-
"pragma": {
308+
"comment.documentation.juvix": {
309+
"foreground": "#a8a8a8"
310+
},
311+
"pragma.juvix": {
306312
"foreground": "#aaa9a9"
307313
},
308-
"constructor": {
314+
"constructor.juvix": {
309315
"foreground": "#8d8dff"
310316
},
311-
"error": {
317+
"error.juvix": {
312318
"foreground": "#ed1452",
313319
"fontStyle": "bold"
314320
},
315-
"function": {
321+
"function.juvix": {
316322
"foreground": "#ffc522"
317323
},
318-
"type": {
324+
"type.juvix": {
319325
"foreground": "#3cbc7f"
320326
},
321-
"keyword": {
327+
"keyword.juvix": {
322328
"foreground": "#45caff"
323329
},
324-
"module": {
330+
"module.juvix": {
325331
"foreground": "#ffffff"
326332
},
327-
"number": {
333+
"number.juvix": {
328334
"foreground": "#befc04"
329335
},
330-
"string": {
336+
"string.juvix": {
331337
"foreground": "#fb6349"
332338
},
333-
"storage": {
339+
"storage.juvix": {
334340
"foreground": "#befc04"
335341
},
336-
"punctuation.definition.group": {
342+
"punctuation.definition.group.juvix": {
337343
"foreground": "#FF0000"
338344
}
339345
}
@@ -411,7 +417,43 @@
411417
"path": "./syntaxes/JuvixAsm.tmLanguage.json"
412418
}
413419
],
414-
"semanticTokenScopes": [],
420+
"semanticTokenScopes": [
421+
{
422+
"language": "juvix",
423+
"scopes": {
424+
"comment": [
425+
"comment.juvix"
426+
],
427+
"comment.documentation": [
428+
"comment.documentation.juvix"
429+
],
430+
"constructor": [
431+
"constructor.juvix"
432+
],
433+
"error": [
434+
"error.juvix"
435+
],
436+
"function": [
437+
"function.juvix"
438+
],
439+
"type": [
440+
"type.juvix"
441+
],
442+
"keyword": [
443+
"keyword.juvix"
444+
],
445+
"module": [
446+
"module.juvix"
447+
],
448+
"number": [
449+
"numeric.juvix"
450+
],
451+
"string": [
452+
"string.juvix"
453+
]
454+
}
455+
}
456+
],
415457
"taskDefinitions": [
416458
{
417459
"when": "editorLangId == Juvix || editorLangId == JuvixMarkdown",

0 commit comments

Comments
 (0)