Skip to content

(python) Keywords directly following numbers are not detected #2985

Closed
@Hirse

Description

@Hirse

Describe the issue
As keywords and variables cannot start with a number in Python, the space between a number and a keyword can be skipped.
The highlighting should separate the number and the keyword part.

Actual output

Which language seems to have the issue?
python

Are you using highlight or highlightAuto?
highlight

Sample Code to Reproduce

print(1if 0==0else"b")

Expected behavior
Expeted output

(Also see GitHub's highlighting above)

(Also, also should print be a built-in here?)

Additional context
Found on this StackExchange answer:
https://codegolf.stackexchange.com/a/218451/25026
StackExchange Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions