C++ lexer doesn't recognize function if return type is templated
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
Research direction
No file or test is named in the issue. Start at Pygments' C++ lexer, reproduce both snippets, and find the existing function-name highlighting coverage. Done means the templated-return example highlights func while the non-templated example continues to do so.
Written by the indexing model from the issue text.
Description
(Original issue 1434 created by kaka345 on 2018-03-31T17:49:31.980596+00:00)
For this snippet the function name isn't highlighted because its return type is a template:
#!c++
std::vector<int> func()
{
std::vector<int> v = {0};
return v;
}
For this snippet the function name is highlighted because its return type is not a template:
#!c++
int func()
{
return 0;
}
- Dominant language
- Python
- Stars
- 2.2k
- Forks
- 885
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pygments/pygments
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
All issues in pygments/pygments
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100