-
Notifications
You must be signed in to change notification settings - Fork 94
No scopes on periods #98
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
Comments
Why do you want them scoped? Does the built-in |
It doesn't and I consider that a bug too. Other language packages scope periods. Also, braces and brackets are scoped, so periods should be too imo. I personally want them scoped as my syntax theme colors punctuation in white. |
Yeah, makes sense. We'll look into this. /cc @vpetrovykh |
The two of the more obvious choices for scope prefix are: If you have any thoughts or suggestions regarding the naming, please let me know here. You can refer to scopes described here: https://manual.macromates.com/en/language_grammars. Historically, that's one of the descriptions of scopes that this grammar relied upon. If you know of a better document on scope name standards, please do provide a link. |
Most packages scope them as |
Thanks for the link. I can see how |
|
We'll need to look how this change will look like with stock sublime and atom themes before making a decision through. |
Please research what other syntaxes use for periods, and how GitHub highlights periods for those languages. We don't want all |
List of grammars used on GitHub. List of languages sorted by popularity on GitHub:
|
OK, let's go with |
@chbk Thanks a lot for the thorough research! We'll likely go with |
Awesome 😄 |
Incidentally, do you think that the scope of import foo.bar
from . import baz
from .spam import ham |
Yeah, why not. |
I've tested the updated grammar with all built-in Sublime Text themes, and built-in and top Atom themes. It seems that about 10% of colour schemas do highlight |
I've just released MagicPython 1.0.12 with this change in. Enjoy! |
Editor name and version: Atom 1.18.0
Platform: macOS 10.12.6
Color scheme: custom
MagicPython version: 1.0.11
A sreenshot:

5-10 lines of surrounding code:
The text was updated successfully, but these errors were encountered: