diff --git a/README.md b/README.md
index 3f7760b..a295787 100644
--- a/README.md
+++ b/README.md
@@ -143,6 +143,7 @@ These will be applied automatically to every issue, but will be overrode by any
- CSS
- Crystal
- Clojure
+- Cuda
- Dart
- Elixir
- GDScript
diff --git a/syntax.json b/syntax.json
index f9c96a9..9b98227 100644
--- a/syntax.json
+++ b/syntax.json
@@ -748,5 +748,21 @@
}
}
]
+ },
+ {
+ "language": "Cuda",
+ "markers": [
+ {
+ "type": "line",
+ "pattern": "//"
+ },
+ {
+ "type": "block",
+ "pattern": {
+ "start": "/\\*",
+ "end": "\\*/"
+ }
+ }
+ ]
}
]
diff --git a/tests/test_closed.diff b/tests/test_closed.diff
index e8219ac..568838e 100644
--- a/tests/test_closed.diff
+++ b/tests/test_closed.diff
@@ -364,3 +364,14 @@ index 0000000..a6c6cb0
-
+diff --git a/tests/example.cu b/tests/example.cu
+index 0000000..a6c6cb0
+--- /dev/null
++++ b/tests/example.cu
+@@ -1,9 +1,5 @@
+-// TODO rename this function
+ __global__ void test() {
+- /*
+- TODO fill this with something useful
+- */
+ }
\ No newline at end of file
diff --git a/tests/test_new.diff b/tests/test_new.diff
index 4dd93f9..e3c4272 100644
--- a/tests/test_new.diff
+++ b/tests/test_new.diff
@@ -403,3 +403,17 @@ index 0000000..a6c6cb0
+
+
+
+diff --git a/tests/example.cu b/tests/example.cu
+new file mode 100644
+index 0000000..a6c6cb0
+--- /dev/null
++++ b/tests/example.cu
+@@ -1,3 +1,11 @@
++
++// TODO rename this function
++__global__ void test() {
++ /*
++ TODO fill this with something useful
++ */
++}
++
\ No newline at end of file
diff --git a/tests/test_todo_parser.py b/tests/test_todo_parser.py
index 3de9378..e157993 100644
--- a/tests/test_todo_parser.py
+++ b/tests/test_todo_parser.py
@@ -93,6 +93,9 @@ def test_nix_issues(self):
def test_xaml_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'xml'), 2)
+ def test_c_cpp_like_issues(self):
+ self.assertEqual(count_issues_for_file_type(self.raw_issues, 'c_cpp'), 2)
+
class ClosedIssueTests(unittest.TestCase):
# Check for removed TODOs across the files specified.
@@ -173,6 +176,9 @@ def test_nix_issues(self):
def test_xaml_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'xml'), 2)
+
+ def test_c_cpp_like_issues(self):
+ self.assertEqual(count_issues_for_file_type(self.raw_issues, 'c_cpp'), 2)
class IgnorePatternTests(unittest.TestCase):