J: treat ?. as a single operator by ekanshul · Pull Request #3412 · pygments/pygments · GitHub
Skip to content

J: treat ?. as a single operator - #3412

Open
ekanshul wants to merge 1 commit into
pygments:masterfrom
ekanshul:fix-1149-j-deal-seed-operator
Open

ekanshul wants to merge 1 commit into
pygments:masterfrom
ekanshul:fix-1149-j-deal-seed-operator

Conversation

@ekanshul

Copy link
Copy Markdown

Fixes #1149.

In J, ?. is a single primitive (roll/deal with a fixed seed). The lexer treated ? and . as separate operators, so ?. was not recognized as one token.

Match ?. as one operator, the same way =. and =: already are.

The J primitive ?. (roll/deal with a fixed seed) was split into two
Operator tokens. Match it as one token, like =. and =:.

Fixes pygments#1149
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

Successfully merging this pull request may close these issues.

Problem with J syntax highlighting

1 participant