-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grammars fail to apply external includes from captures property #141
Comments
I see this working in the scss and less grammar. Are you sure it's an issue with the vscode-textmate engine? |
I'm having trouble finding the situation in those grammars. Could you please provide line references? To be clear, this works, but this external include is not nested under the {
"name": "variable.interpolation.sass",
"begin": "#{",
"end": "}",
"beginCaptures": {
"0": {
"name": "punctuation.definition.interpolation.begin.bracket.curly.sass"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.interpolation.end.bracket.curly.sass"
}
},
"patterns": [
{
"include": "#strings"
},
{
"include": "source.css#color-keywords"
}
]
}, |
Rule for Sass @include not workingRan into a similar problem when trying to add a rule for Sass Added Rule{
"scope": ["meta.at-rule.include.scss"],
"settings": {
"foreground": "#f00"
}
} But this does not work: there is no change to the colour in the editor. |
|
@RedCMD thanks. I didn't try that because I thought that would apply the colour to all Sass functions ( |
Issue Type: Bug
As I've been trying fix some issues with the SCSS/SASS grammars I've notices that including patterns from the CSS grammar does not work from the
captures
property.Here I have a grammar that replicates the issue. You'll notice the external include for
source.css#color-keywords
is not applied, but the replicated internal include is.VS Code version: Code 1.50.1 (d2e414d9e4239a252d1ab117bd7067f125afd80a, 2020-10-13T14:53:05.704Z)
OS version: Darwin x64 19.6.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (8)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: