samuelcolvin / jinjahtml-vscode

Syntax highlighting for jinja(2) html templates in vscode
https://marketplace.visualstudio.com/items?itemName=samuelcolvin.jinjahtml
MIT License
135 stars 53 forks source link

Support for CUDA #157

Open asglover opened 1 month ago

asglover commented 1 month ago

Hello,

Thanks for this awesome project!

The request is pretty straightforward, CUDA is a superset of C++ and has some language extensions. Would it be possible to support the CUDA like a first-class language?

.cu and .cuh files would be associated with jinja-cuda.

As is, specifiers like __global__ and __shared__ don't get syntax highlighting. I end up editing the files as CUDA files and letting vscode complain about all the Jinja stuff.

This is definitely a nice to have request. I don't know how difficult it would be. Maybe there are so many C++ extensions that it's not feasible to start supporting them all.

-Austin

asglover commented 1 month ago

Is all that's really needed what appears in the main issue 33? It feels like there must be a lot of complexity hidden somewhere I don't understand.