microsoft / microsoft/vscode-cmake-tools

[Bug] `include` keyword highlights even when not a function

Open
#4,436 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

Beginning a line with the word `include` highlights it as a keyword, even when it is not followed by `(`.

![Image](https://github.com/user-attachments/assets/bfe339c2-d04d-432a-9da5-fb93bd563c9b)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the highlighting behavior described in the issue, then locate the CMake Tools implementation responsible for keyword or function highlighting. Confirm the behavior for a line beginning with `include` both with and without `(`, and verify that the incorrect highlighting is no longer present.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.