You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I haven't found great documentation for the tokenColors.scope property. The only syntax documentation about scope selectors I've been able to find is the textmate "specification", so it's possible this is just a documentation/user issue and not a bug:
I'd like to highlight function names entity.name.function and exclude function calls. Most languages I tested (c, c++, js, ts) doesn't seem to differ between theese (python does) but seems to add a additional scope called meta.function-call to distinguish.
Sample code (from doom) that I'm testing highlight with:
where can I find better documentation more suitable for vs code and
how should I exclude one, or more, scopes?
VS Code version: Code 1.68.1 (30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-14T12:48:58.283Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
System Info
Item
Value
CPUs
11th Gen Intel(R) Core(TM) i9-11950H @ 2.60GHz (16 x 2611)
Issue Type: Bug
Hello!
I haven't found great documentation for the
tokenColors.scope
property. The only syntax documentation about scope selectors I've been able to find is the textmate "specification", so it's possible this is just a documentation/user issue and not a bug:I'd like to highlight function names
entity.name.function
and exclude function calls. Most languages I tested (c, c++, js, ts) doesn't seem to differ between theese (python does) but seems to add a additional scope calledmeta.function-call
to distinguish.Sample code (from doom) that I'm testing highlight with:
And just like the textmate documentation (13.3 Excluding Elements) says I try to exclude function calls from functions but the whole exclude pattern seems to be picked up as a identifier.
So I guess this is a bug, if not:
VS Code version: Code 1.68.1 (30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-14T12:48:58.283Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (13)
A/B Experiments
The text was updated successfully, but these errors were encountered: