vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

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

Open recursivenomad opened this issue 8 months ago • 3 comments

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

Image

recursivenomad avatar Apr 26 '25 00:04 recursivenomad

Hi @recursivenomad, thanks for your reporting!

Reproduced on CMake Tools v1.21.18(pre-release), include highlights when it is not followed by (.

Image

@gcampbell-msft FYI.

Amy-Li03 avatar Apr 27 '25 06:04 Amy-Li03

This happens on basically every "keyword". Also happens for file, name, string, etc. Conversely, some actual calls to "built-in" CMake functions aren't being highlit, e.g. cmake_path().

oold avatar May 26 '25 17:05 oold

Hi @oold Thanks for the update! cmake_path() has been highlighted, you can see it on CMake Tool recent pre-release version v1.21.28 Image

Amy-Li03 avatar May 27 '25 02:05 Amy-Li03