diff --git a/syntax.json b/syntax.json index 3d8848d..72a206a 100644 --- a/syntax.json +++ b/syntax.json @@ -568,6 +568,15 @@ } ] }, + { + "language": "GDScript", + "markers": [ + { + "type": "line", + "pattern": "#" + } + ] + }, { "language": "Go", "markers": [ diff --git a/tests/test_closed.diff b/tests/test_closed.diff index b8494b4..8ba6083 100644 --- a/tests/test_closed.diff +++ b/tests/test_closed.diff @@ -297,3 +297,13 @@ index 0000000..525e25d 100644 - ;; TODO: todo with description (sub-level) - ;; Body of the issue should stay here - (str "hello" name)) +diff --git a/tests/example.gd b/tests/example.gd +index 0000000..525e25d 100644 +--- a/tests/example.gd ++++ b/tests/example.gd +@@ -1,5 +0,0 @@ +-# TODO Store all the players here +-var _players: = [] +- +-# TODO Play the level music +-export: var music_path: String diff --git a/tests/test_new.diff b/tests/test_new.diff index dda3bc4..5fe515e 100644 --- a/tests/test_new.diff +++ b/tests/test_new.diff @@ -320,3 +320,14 @@ index 0000000..525e25d + ;; TODO: todo with description (sub-level) + ;; Body of the issue should stay here + (str "hello" name)) +diff --git a/tests/example.gd b/tests/example.gd +new file mode 100644 +index 0000000..525e25d +--- /dev/null ++++ b/tests/example.gd +@@ -0,0 +1,5 @@ ++# TODO Store all the players here ++var _players: = [] ++ ++# TODO Play the level music ++export: var music_path: String diff --git a/tests/test_todo_parser.py b/tests/test_todo_parser.py index 837efaf..3d90a24 100644 --- a/tests/test_todo_parser.py +++ b/tests/test_todo_parser.py @@ -59,7 +59,7 @@ def test_handlebars_issues(self): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'handlebars'), 2) def test_org_issues(self): - self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 2) + self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 4) def test_scss_issues(self): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'scss'), 2) @@ -127,7 +127,7 @@ def test_handlebars_issues(self): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'handlebars'), 2) def test_org_issues(self): - self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 2) + self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 4) def test_scss_issues(self): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'scss'), 2)