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

Syntax Highlighting Error - Inconsistent Scoping for Keywords #216

Open
jarrodchung-dev opened this issue Jun 24, 2020 · 0 comments
Open

Syntax Highlighting Error - Inconsistent Scoping for Keywords #216

jarrodchung-dev opened this issue Jun 24, 2020 · 0 comments

Comments

@jarrodchung-dev
Copy link

@jarrodchung-dev jarrodchung-dev commented Jun 24, 2020

  • Editor name and version:
  • Sublime Text 3
  • Version 3.2.2, Build 3211
  • Platform:
  • MacOS (Catalina)
  • Color scheme:

Link to a repository with my slightly customized color schemes.

They are slight variations to the Material and Materialize color schemes.

  • MagicPython version: 1.1.1 (according to my package.json)

  • A screenshot:

Screen Shot 2020-06-23 at 10 50 03 PM

  • 5-10 lines of surrounding code:
def syntax_bug(example):
    # When code scoped as `keyword.operator.logical.python` are
    # used outside the scope of `meta.function-call.*.python`,
    # the keywords
    if "keywords" not in "function-call":
        print("logical operator keywords highlight correctly")

    # `is` and `not` are scoped as `keyword.control.flow.python`
    # when used inside a function-call
    if "keywords" in "function-call":
        print(
            "keyword highlighting" is not "yellowish-green"
            or "greenish-yellow"
        )

    outside_function_call = (
        "keyword highlighting" is not "yellowish-green" or "greenish-yellow"
    )

    return outside_function_call
@jarrodchung-dev jarrodchung-dev changed the title Syntax Highlighting Error - Syntax Highlighting Error - Inconsistent Scoping for Keywords Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.