diff --git a/syntax.json b/syntax.json
index a9c29da..d1ed939 100644
--- a/syntax.json
+++ b/syntax.json
@@ -683,5 +683,17 @@
}
}
]
+ },
+ {
+ "language": "XML",
+ "markers": [
+ {
+ "type": "block",
+ "pattern": {
+ "start": ""
+ }
+ }
+ ]
}
-]
+]
\ No newline at end of file
diff --git a/tests/test_closed.diff b/tests/test_closed.diff
index d3fafd8..d3bfd01 100644
--- a/tests/test_closed.diff
+++ b/tests/test_closed.diff
@@ -323,3 +323,15 @@ index a6c6cb0..25d195f 100644
- */
sum = a: b: a + b;
}
+diff --git a/tests/example.xaml b/tests/example.xaml
+new file mode 100644
+index 0000000..a6c6cb0
+--- /dev/null
++++ b/tests/example.xaml
+@@ -1,4 +1,2 @@
+-
+-
+-
+-
+
+
diff --git a/tests/test_new.diff b/tests/test_new.diff
index daa40a0..292ae36 100644
--- a/tests/test_new.diff
+++ b/tests/test_new.diff
@@ -348,3 +348,13 @@ index 0000000..a6c6cb0
+ */
+ sum = a: b: a + b;
+}
+diff --git a/tests/example.xaml b/tests/example.xaml
+new file mode 100644
+index 0000000..a6c6cb0
+--- /dev/null
++++ b/tests/example.xaml
+@@ -0,0 +1,4 @@
++
++
++
++
\ No newline at end of file
diff --git a/tests/test_todo_parser.py b/tests/test_todo_parser.py
index ff04620..b811be2 100644
--- a/tests/test_todo_parser.py
+++ b/tests/test_todo_parser.py
@@ -1,6 +1,7 @@
+import json
import os
import unittest
-import json
+
from main import TodoParser
@@ -82,6 +83,9 @@ class NewIssueTests(unittest.TestCase):
def test_nix_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'nix'), 2)
+ def test_xaml_issues(self):
+ self.assertEqual(count_issues_for_file_type(self.raw_issues, 'xml'), 2)
+
class ClosedIssueTests(unittest.TestCase):
# Check for removed TODOs across the files specified.
def setUp(self):
@@ -151,7 +155,9 @@ class ClosedIssueTests(unittest.TestCase):
def test_nix_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'nix'), 2)
-
+
+ def test_xaml_issues(self):
+ self.assertEqual(count_issues_for_file_type(self.raw_issues, 'xml'), 2)
class IgnorePatternTests(unittest.TestCase):