Skip to content

Commit

Permalink
Merge pull request #154 from MBrede/Rmarkdown-support
Browse files Browse the repository at this point in the history
Rmarkdown support
  • Loading branch information
alstr authored Mar 29, 2023
2 parents 2c6872a + 4f20f4b commit 6046512
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 4 deletions.
14 changes: 13 additions & 1 deletion syntax.json
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,18 @@
}
]
},
{
"language": "RMarkdown",
"markers": [
{
"type": "block",
"pattern": {
"start": "<!--",
"end": "-->"
}
}
]
},
{
"language": "Shell",
"markers": [
Expand Down Expand Up @@ -721,4 +733,4 @@
}
]
}
]
]
12 changes: 12 additions & 0 deletions tests/test_closed.diff
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,18 @@ hello_world <- function() {
- # This function should probably do something more interesting
- # labels: help wanted
}
diff --git a/tests/example_file.rmd b/src/tests/example_file.rmd
index 525e25d..ba4e68d 100644
--- a/src/tests/example_file.rmd
+++ b/src/tests/example_file.rmd
@@ -0,1 +0,0 @@
- <!-- TODO: Check RMarkdown comments work -->
diff --git a/tests/example_file.qmd b/src/tests/example_file.qmd
index 525e25d..ba4e68d 100644
--- a/src/tests/example_file.qmd
+++ b/src/tests/example_file.qmd
@@ -0,1 +0,0 @@
- <!-- TODO: Check RMarkdown comments work -->
diff --git a/src/Swarm/Game/example.hs b/src/Swarm/Game/example.hs
index 525e25d..ba4e68d 100644
--- a/src/Swarm/Game/example.hs
Expand Down
16 changes: 15 additions & 1 deletion tests/test_new.diff
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,20 @@ index 0000000..525e25d
+ # This function should probably do something more interesting
+ # labels: help wanted
+}
diff --git a/tests/example_file.rmd b/src/tests/example_file.rmd
new file mode 100644
index 0000000..525e25d
--- /dev/null
+++ b/src/tests/example_file.rmd
@@ -0,0 +0,1 @@
+<!-- TODO: Check RMarkdown comments work -->
diff --git a/tests/example_file.qmd b/src/tests/example_file.qmd
new file mode 100644
index 0000000..525e25d
--- /dev/null
+++ b/src/tests/example_file.qmd
@@ -0,0 +0,1 @@
+<!-- TODO: Check RMarkdown comments work -->
diff --git a/tests/config.jsonc b/tests/config.jsonc
new file mode 100644
index 0000000..525e25d
Expand Down Expand Up @@ -388,4 +402,4 @@ index 0000000..a6c6cb0
+<!-- TODO: Add xaml support -->
+<Label Text="why"/>
+<!-- TODO: please -->
+<Label Text="ok"/>
+<Label Text="ok"/>
4 changes: 2 additions & 2 deletions tests/test_todo_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_twig_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'twig'), 2)

def test_md_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 6)
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 8)

def test_r_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'r'), 2)
Expand Down Expand Up @@ -156,7 +156,7 @@ def test_twig_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'twig'), 2)

def test_md_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 6)
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 8)

def test_r_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'r'), 2)
Expand Down

0 comments on commit 6046512

Please sign in to comment.