diff --git a/syntax.json b/syntax.json
index 808f963..27b101d 100644
--- a/syntax.json
+++ b/syntax.json
@@ -429,6 +429,29 @@
}
]
},
+ {
+ "language": "Rmarkdown",
+ "markers": [
+ {
+ "type": "block",
+ "pattern": {
+ "start": ""
+ }
+ },
+ {
+ "type": "block",
+ "pattern": {
+ "start": "{/\\*",
+ "end": "\\*/}"
+ }
+ },
+ {
+ "type": "line",
+ "pattern": "- \\[ \\]"
+ }
+ ]
+ },
{
"language": "Shell",
"markers": [
@@ -721,4 +744,4 @@
}
]
}
-]
\ No newline at end of file
+]
diff --git a/tests/test_closed.diff b/tests/test_closed.diff
index 19df3f3..134265b 100644
--- a/tests/test_closed.diff
+++ b/tests/test_closed.diff
@@ -240,6 +240,18 @@ index 525e25d..ba4e68d 100644
- kept together as one todo
- */}
- - [ ] TODO: An inline todo that's NOT a comment (what)
+diff --git a/tests/example_file.md b/src/tests/example_file.rmd
+index 525e25d..ba4e68d 100644
+--- a/src/tests/example_file.rmd
++++ b/src/tests/example_file.rmd
+@@ -1,7 +0,0 @@
+- {/* TODO: Hopefully this comment turns into a todo issue */}
+- {/*
+- TODO:Multiline comments
+- also need to be turned into todos, and hopefully
+- kept together as one todo
+- */}
+- - [ ] TODO: An inline todo that's NOT a comment (what)
diff --git a/tests/example_file.mdx b/src/tests/example_file.mdx
index 525e25d..ba4e68d 100644
--- a/src/tests/example_file.mdx
diff --git a/tests/test_new.diff b/tests/test_new.diff
index 74c6e4a..e957a6e 100644
--- a/tests/test_new.diff
+++ b/tests/test_new.diff
@@ -279,6 +279,19 @@ index 0000000..7cccc5b
+ kept together as one todo
+ */}
+ - [ ] TODO: An inline todo that's NOT a comment (what)
+diff --git a/tests/example_file.rmd b/src/tests/example_file.rmd
+new file mode 100644
+index 0000000..7cccc5b
+--- /dev/null
++++ b/src/tests/example_file.rmd
+@@ -0,0 +1,7 @@
++ {/* TODO: Hopefully this comment turns into a todo issue */}
++ {/*
++ TODO:Multiline comments
++ also need to be turned into todos, and hopefully
++ kept together as one todo
++ */}
++ - [ ] TODO: An inline todo that's NOT a comment (what)
diff --git a/tests/example_file.mdx b/src/tests/example_file.mdx
new file mode 100644
index 0000000..7cccc5b
@@ -388,4 +401,4 @@ index 0000000..a6c6cb0
+
+
+
-+
\ No newline at end of file
++
diff --git a/tests/test_todo_parser.py b/tests/test_todo_parser.py
index c53f2d1..5ae7c4d 100644
--- a/tests/test_todo_parser.py
+++ b/tests/test_todo_parser.py
@@ -78,6 +78,9 @@ class NewIssueTests(unittest.TestCase):
def test_md_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 6)
+ def test_rmd_issues(self):
+ self.assertEqual(count_issues_for_file_type(self.raw_issues, 'rmarkdown'), 6)
+
def test_r_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'r'), 2)
@@ -157,6 +160,9 @@ class ClosedIssueTests(unittest.TestCase):
def test_md_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 6)
+
+ def test_rmd_issues(self):
+ self.assertEqual(count_issues_for_file_type(self.raw_issues, 'rmarkdown'), 6)
def test_r_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'r'), 2)