harrism / sublimetext-cuda-cpp

CUDA C++ package for Sublime Text 2 & 3
BSD 3-Clause "New" or "Revised" License
67 stars 13 forks source link

invoking kernel with three arguments #5

Open Godisemo opened 9 years ago

Godisemo commented 9 years ago

After invoking a kernel with block dimensions, grid dimensions and shared memory size the following syntax highlighting is broken. When only using two arguments everything works as expected.

skarmavbild 2015-04-02 kl 21 54 22

harrism commented 9 years ago

This one has bugged me for a while. Actually it has something to do with the * operator in the third argument. If you launch a kernel with an expression without that, highlighting works fine. I will look into it when I get a chance, but I suspect it may have something to do with the C++ mode it inherits from.