tgjones / HlslTools

A Visual Studio extension that provides enhanced support for editing High Level Shading Language (HLSL) files
http://timjones.io/blog/archive/2016/04/25/hlsl-tools-for-visual-studio-v1.0-released
Other
561 stars 97 forks source link

Linux,Syntax highlighting is invalid #192

Closed runner0353 closed 3 years ago

runner0353 commented 4 years ago

Ubuntu18.04,Colors cannot be displayed correctly, but other functions are effective test-hlsl

tgjones commented 3 years ago

@runner0353 my apologies for the huge delay in replying.

This is interesting - HLSL Tools for VSCode doesn't actually do any syntax highlighting. That is handled by something that's builtin to VSCode (which, as it happens, I did contribute to VSCode).

I've just tried that shader in VSCode on Windows, and syntax highlighting looks correct to me. So my guess is this is more of a VSCode issue, and perhaps not an HLSL grammar issue. Maybe report it directly to the VSCode repo?