Skip to content

C++: Added generic functions and made :: punctuation - #2814

Merged
RunDevelopment merged 4 commits into
PrismJS:masterfrom
RunDevelopment:cpp-generic-functions
Apr 3, 2021
Merged

RunDevelopment merged 4 commits into
PrismJS:masterfrom
RunDevelopment:cpp-generic-functions

Conversation

@RunDevelopment

Copy link
Copy Markdown
Member

This adds support for generic function invocations (e.g. std::make_unique<int>(4)).

I also changed the token type of double colon :: from operator to punctuation. I choose to do this because this token is very common and has similar semantics as a dot . in other languages.

@github-actions

github-actions Bot commented Mar 18, 2021 •

Copy link
Copy Markdown

JS File Size Changes (gzipped)

A total of 1 files have changed, with a combined diff of +83 B (+7.5%).

Details
file master pull size diff % diff
components/prism-cpp.min.js 1.11 KB 1.19 KB +83 B +7.5%

Generated by 🚫 dangerJS against 32e9c19

@RunDevelopment
RunDevelopment merged commit 3df62fd into PrismJS:master Apr 3, 2021
@RunDevelopment
RunDevelopment deleted the cpp-generic-functions branch April 3, 2021 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant