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

enh(cpp) Improve function declaration detection #2332

Merged
merged 5 commits into from Jan 15, 2020

Conversation

joshgoebel
Copy link
Member

@joshgoebel joshgoebel commented Dec 23, 2019

  • enh(cpp) Properly detect decltype(auto)
  • enh(cpp) recognize primitive types (int8_t, etc.) as function types
  • enh(cpp) Detect namespaced function types (A::typeName func(...))
  • enh(cpp) Detect namespaced functions also (A::functionName)
  • enh(cpp) template type in function declaration (vector<int> func(...))

Closes #1730.
Closes #1222.
Closes #1502.

@joshgoebel joshgoebel force-pushed the cpp_function_fixes branch 2 times, most recently from 9f66b73 to cc2bd25 Compare December 23, 2019 23:52
@joshgoebel joshgoebel added language enhancement An enhancement or new feature labels Dec 23, 2019
Copy link
Collaborator

@egor-rogov egor-rogov left a comment

Choose a reason for hiding this comment

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

See some comments, but generally it's all good.
Looks like it will interfere with #2325 though.

src/languages/cpp.js Outdated Show resolved Hide resolved
src/languages/cpp.js Show resolved Hide resolved
@joshgoebel joshgoebel merged commit ee8cf44 into highlightjs:master Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature language
Projects
None yet
2 participants