Skip to content

Commit

Permalink
Fix #3. Added types to tmLanguage.
Browse files Browse the repository at this point in the history
The following types were added: `ushort`, `uint`, `size_t`, `intptr_t`, `uintptr_t`.
  • Loading branch information
Galarius committed Jan 3, 2018
1 parent c8ded1f commit 5b0126c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syntaxes/opencl.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 6 additions & 1 deletion test/theme.test.cl
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ void highlighting_test()
// storage.type.opencl.c
highlight<half>();
// storage.type.opencl.c
highlight<ptrdiff_t>();
highlight<uchar>();
highlight<ushort>();
highlight<uint>();
highlight<ulong>();
highlight<size_t>();
highlight<ptrdiff_t>();
highlight<intptr_t>();
highlight<uintptr_t>();
// storage.type.opencl.c.vector2
highlight<char2>();
highlight<short2>();
Expand Down

0 comments on commit 5b0126c

Please sign in to comment.