Skip to content

Add support for YARA syntax #2453

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

Merged
merged 20 commits into from
Jun 16, 2023
Merged

Add support for YARA syntax #2453

merged 20 commits into from
Jun 16, 2023

Conversation

redteampanda-ng
Copy link
Contributor

@redteampanda-ng redteampanda-ng commented Jun 14, 2023

This is my first lexer I tried my hands on. Since we are dealing with a lot of YARA syntax in our technical documentation, I wanted to write a lexer for this. Please let me know if there is potential (most likely) to improve the regex.
Also had to remove the number and hex regex, since they caused some problems.

Thank you

Copy link
Contributor

@jeanas jeanas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more comments, should be good to go afterwards.

redteampanda-ng and others added 4 commits June 15, 2023 15:53
Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
@jeanas
Copy link
Contributor

jeanas commented Jun 15, 2023

LGTM, but please have a look at the CI failures. Basically, you need to rerun tox -e mapfiles and tox -- --update-goldens.

@redteampanda-ng
Copy link
Contributor Author

Should be working now

@jeanas jeanas merged commit 88c23ea into pygments:master Jun 16, 2023
@jeanas
Copy link
Contributor

jeanas commented Jun 16, 2023

Thanks!

@Anteru Anteru added this to the 2.16.0 milestone Aug 5, 2023
@Anteru Anteru added the A-lexing area: changes to individual lexers label Aug 5, 2023
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