Skip to content

Commit 76abd5c

Browse files
committed
Added missing scopename and fixed broken \b
1 parent 5320726 commit 76abd5c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

cuda-c++.JSON-tmLanguage

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"foldingStopMarker": "(?<!\\*)\\*\\*/|^\\s*\\}",
1010
"keyEquivalent": "^~C",
1111
"name": "CUDA C++",
12+
"scopeName": "source.cuda-c++",
1213
"patterns": [
1314
{
1415
"include": "source.c++"
@@ -95,7 +96,7 @@
9596
},
9697
{
9798
"comment": "B.18 DYNAMIC GLOBAL MEMORY ALLOCATION AND OPERATIONS",
98-
"match": "\\(malloc|free|memcpy|memset)\\b",
99+
"match": "\\b(malloc|free|memcpy|memset)\\b",
99100
"name": "support.function.cuda-c++"
100101
},
101102
{

cuda-c++.tmLanguage

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
<key>comment</key>
160160
<string>B.18 DYNAMIC GLOBAL MEMORY ALLOCATION AND OPERATIONS</string>
161161
<key>match</key>
162-
<string>\(malloc|free|memcpy|memset)\b</string>
162+
<string>\b(malloc|free|memcpy|memset)\b</string>
163163
<key>name</key>
164164
<string>support.function.cuda-c++</string>
165165
</dict>
@@ -215,6 +215,8 @@
215215
</array>
216216
<key>repository</key>
217217
<dict/>
218+
<key>scopeName</key>
219+
<string>source.cuda-c++</string>
218220
<key>uuid</key>
219221
<string>e498cb33-bf6f-487b-8c77-02576bcb76dc</string>
220222
</dict>

0 commit comments

Comments
 (0)