Skip to content

Update the mysql lexer keywords#2970

Merged
birkenfeld merged 1 commit intopygments:masterfrom
kurtmckee:update-mysql
Feb 20, 2026
Merged

Update the mysql lexer keywords#2970
birkenfeld merged 1 commit intopygments:masterfrom
kurtmckee:update-mysql

Conversation

@kurtmckee
Copy link
Copy Markdown
Contributor

This PR introduces the following changes:

  • The CHAR BYTE alias is now supported.

    Previously, BYTE had not been understood to be part of a type alias and was registered only as a reserved keyword.

  • Many additional keywords and reserved keywords have been found by changing the mysql GitHub branch from 8.0 to trunk.

    A number of existing keywords have been removed in the mysql keyword list since mysql 8.0, but for backwards compatibility these removals were discarded in the pygments keywords list.

    The result is a number of additions to the list of mysql keywords that pygments recognizes, with zero removals. Note that byte appears to be a removal, but is actually moved up to the tuple of MYSQL_DATATYPES, as noted in the first bullet point above.

@birkenfeld
Copy link
Copy Markdown
Member

LGTM, thanks!

@birkenfeld birkenfeld merged commit 7657866 into pygments:master Feb 20, 2026
15 checks passed
@kurtmckee kurtmckee deleted the update-mysql branch February 20, 2026 12:15
@Anteru Anteru added this to the 2.20.0 milestone Mar 26, 2026
@Anteru Anteru added the A-lexing area: changes to individual lexers label Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lexing area: changes to individual lexers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants