Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allow DAX Syntax Highlighting #2332

Closed
GD-L opened this issue Jan 31, 2023 · 2 comments
Closed

Feature Request: Allow DAX Syntax Highlighting #2332

GD-L opened this issue Jan 31, 2023 · 2 comments

Comments

@GD-L
Copy link
Contributor

GD-L commented Jan 31, 2023

It would be really valuable if the existing logic from: https://github.com/sql-bi/SyntaxHighlighterBrushDax/blob/master/shbrushdax.js could be incorporated into pygments to support DAX.

@jeanas
Copy link
Contributor

jeanas commented Jan 31, 2023

The maintainers can't know every language that exists on Earth, so a lexer request like this is much more likely to progress if you contribute the lexer yourself. See https://pygments.org/docs/lexerdevelopment/

@GD-L
Copy link
Contributor Author

GD-L commented Feb 2, 2023

Thanks for the inspiration, @jean-abou-samra. Took the initiative to create #2335. I'm definitely not a Regex expert, and couldn't figure out why some of the flags (e.g. /gmi) weren't working, hence the upper & lower keywords.
Certainly open to feedback!

@jeanas jeanas closed this as completed Feb 13, 2023
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

No branches or pull requests

2 participants