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

Add CPP lexer #813

Merged
merged 1 commit into from
Aug 18, 2023
Merged

Add CPP lexer #813

merged 1 commit into from
Aug 18, 2023

Conversation

gandarez
Copy link
Contributor

This PR adds CPP lexer as well its analyzer as implemented in Pygments.

https://github.com/pygments/pygments/blob/master/pygments/lexers/c_cpp.py#L407

@alecthomas alecthomas merged commit e6de3d1 into alecthomas:master Aug 18, 2023
2 checks passed
@alecthomas
Copy link
Owner

Thanks!

@gandarez gandarez deleted the feature/cpp-lexer branch August 18, 2023 12:17
@gandarez gandarez mentioned this pull request Aug 18, 2023
alecthomas added a commit that referenced this pull request Aug 21, 2023
The `<analyse>` element contains a regex to match against the input, and
a score if the pattern matches.

The scores of all matching patterns for a lexer are summed.

Replaces #815, #813 and #826.
alecthomas added a commit that referenced this pull request Aug 21, 2023
The `<analyse>` element contains a regex to match against the input, and
a score if the pattern matches.

The scores of all matching patterns for a lexer are summed.

Replaces #815, #813 and #826.
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