Skip to content

fix(doc): sync the Pygments lexer with ecLexer.mll - #1212

Merged
strub merged 1 commit into
EasyCrypt:mainfrom
athexweb3:fix/doc-lexer
Oct 23, 2026
Merged

strub merged 1 commit into
EasyCrypt:mainfrom
athexweb3:fix/doc-lexer

Conversation

@athexweb3

Copy link
Copy Markdown
Contributor

The Pygments lexer for the docs had drifted from src/ecLexer.mll:

  • Its keyword list missed array, bind, bitstring, circuit, exception, raise and extens, and still had assert and class. I regenerated it with scripts/srctx/keywords -m python.
  • (* always opened a comment. So after abbrev (*) = mul., the rest of the block was highlighted as a comment. Operator sections like (*) and ( * ), and the (* binop *) form, are now matched first, as in the lexer.

I ran into this while adding EasyCrypt to GitHub Linguist (github-linguist/linguist#8283), so .ec files stop showing up as eC on GitHub.

@strub strub self-assigned this Oct 23, 2026
@strub
strub enabled auto-merge October 23, 2026 14:08
@strub
strub added this pull request to the merge queue Oct 23, 2026
Merged via the queue into EasyCrypt:main with commit 073ec3f Oct 23, 2026
20 checks passed
@athexweb3
athexweb3 deleted the fix/doc-lexer branch October 23, 2026 16:49
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.

2 participants