Skip to content

Fix mysql analyze text logic#1593

Closed
gandarez wants to merge 0 commit intopygments:masterfrom
gandarez:master
Closed

Fix mysql analyze text logic#1593
gandarez wants to merge 0 commit intopygments:masterfrom
gandarez:master

Conversation

@gandarez
Copy link
Copy Markdown
Contributor

@gandarez gandarez commented Nov 8, 2020

According to the documentation MySQL syntax does not allow the usage of square brackets in its queries. Saying it's a truth I removed all the logic comparison between square brackets and backticks.

https://stackoverflow.com/a/9719904/833531
https://dev.mysql.com/doc/refman/8.0/en/identifiers.html

@Anteru
Copy link
Copy Markdown
Collaborator

Anteru commented Nov 8, 2020

I think the point here was to differentiate MySQL from MSSQL, which does use square brackets, and both will probably be trigger happy on SQL text. Was it incorrectly identifying code or what triggered this change?

@gandarez
Copy link
Copy Markdown
Contributor Author

gandarez commented Nov 9, 2020

The reason I opnened this PR is because we've been porting pygments lexers to chroma project (GoLang) and the MySQL lexer contains validations (the square brackets) for MSSQL as you already mentioned. What I'm not sure is which weight should I return.

@gandarez
Copy link
Copy Markdown
Contributor Author

@Anteru any update here?

@gandarez
Copy link
Copy Markdown
Contributor Author

gandarez commented Feb 4, 2021

Any update here?

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