diff --git a/syntaxes/opencl.tmLanguage.json b/syntaxes/opencl.tmLanguage.json index d47d371..6dce0d3 100644 --- a/syntaxes/opencl.tmLanguage.json +++ b/syntaxes/opencl.tmLanguage.json @@ -22,7 +22,7 @@ }, { "name": "storage.type.opencl.c", - "match": "\\b(ptrdiff_t|uchar|ulong)\\b" + "match": "\\b(uchar|ushort|uint|ulong|size_t|ptrdiff_t|intptr_t|uintptr_t)\\b" }, { "name": "storage.type.opencl.c.vector2", diff --git a/test/theme.test.cl b/test/theme.test.cl index 437da8a..283ad2a 100644 --- a/test/theme.test.cl +++ b/test/theme.test.cl @@ -8,9 +8,14 @@ void highlighting_test() // storage.type.opencl.c highlight(); // storage.type.opencl.c - highlight(); highlight(); + highlight(); + highlight(); highlight(); + highlight(); + highlight(); + highlight(); + highlight(); // storage.type.opencl.c.vector2 highlight(); highlight();