Skip to content
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

Scope keyword is not working #14

Open
ShiromiTsukasa opened this issue May 15, 2021 · 2 comments
Open

Scope keyword is not working #14

ShiromiTsukasa opened this issue May 15, 2021 · 2 comments

Comments

@ShiromiTsukasa
Copy link

Either that the scope keyword is not working, or it's my brain that's not working.

I wanted to make the and logical operator to be prettified and not inside a string when I'm working in Python, so I put a "scope": "keyword.operator.logical.pretty" inside the substitutions key, I.E:

{ "ugly": "and", "scope": "keyword.operator.logical.python", "pretty": "∧", "pre": "\\s|^", "post": "\\s|$", "style": {"color": "#F92672"} }

but, after putting the scope there, not only did the and logical operator doesn't get prettified, literally everything stops getting prettified.

@gruvw
Copy link

gruvw commented May 25, 2021

Scope is not working for me too: "scope": "meta.math.block.latex"

@gRox167
Copy link

gRox167 commented Apr 19, 2023

I find that vscode Extension Host have an error when we use scope in config file, [error] TypeError: this._options.loadGrammar is not a function. I searched in this repo, I could not find this function.
I found out that there is a loadGrammar function in extension.ts of parent repo, maybe the author delete this function due to some reason. text-mate.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants