diff --git a/README.md b/README.md index a295787..d4db4b1 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,7 @@ These will be applied automatically to every issue, but will be overrode by any - Julia - Kotlin - Less +- Makefile - Markdown - Nix - Objective-C diff --git a/syntax.json b/syntax.json index 9b98227..b59b51b 100644 --- a/syntax.json +++ b/syntax.json @@ -764,5 +764,14 @@ } } ] + }, + { + "language": "Makefile", + "markers": [ + { + "type": "line", + "pattern": "#" + } + ] } ] diff --git a/tests/test_closed.diff b/tests/test_closed.diff index 568838e..0836a41 100644 --- a/tests/test_closed.diff +++ b/tests/test_closed.diff @@ -374,4 +374,21 @@ index 0000000..a6c6cb0 - /* - TODO fill this with something useful - */ - } \ No newline at end of file + } +diff --git a/tests/Makefile b/tests/Makefile +index 2996176..7545ccf 100644 +--- a/tests/Makefile ++++ b/tests/Makefile +@@ -1,12 +1,9 @@ +-# TODO change name. + NAME = asm + +-# TODO source files must be explicitly named. + SRC = $(shell find mandatory/src -name "*.asm") + OBJ = $(patsubst src/%.asm, obj/%.o, $(SRC)) + .PHONY: all + all: $(NAME) + $(NAME): $(OBJ) +- # TODO create the directory. + $(AR) rc $@ $(OBJ) + diff --git a/tests/test_new.diff b/tests/test_new.diff index e3c4272..8662a4b 100644 --- a/tests/test_new.diff +++ b/tests/test_new.diff @@ -416,4 +416,22 @@ index 0000000..a6c6cb0 + TODO fill this with something useful + */ +} -+ \ No newline at end of file ++ +diff --git a/tests/Makefile b/tests/Makefile +new file mode 100644 +index 0000000..2996176 +--- /dev/null ++++ b/tests/Makefile +@@ -0,0 +1,12 @@ ++# TODO change name. ++NAME = asm ++ ++# TODO source files must be explicitly named. ++SRC = $(shell find mandatory/src -name "*.asm") ++OBJ = $(patsubst src/%.asm, obj/%.o, $(SRC)) ++.PHONY: all ++all: $(NAME) ++$(NAME): $(OBJ) ++ # TODO create the directory. ++ $(AR) rc $@ $(OBJ) ++ diff --git a/tests/test_todo_parser.py b/tests/test_todo_parser.py index e157993..440d0e7 100644 --- a/tests/test_todo_parser.py +++ b/tests/test_todo_parser.py @@ -75,6 +75,9 @@ class NewIssueTests(unittest.TestCase): def test_twig_issues(self): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'twig'), 2) + def test_makefile_issues(self): + self.assertEqual(count_issues_for_file_type(self.raw_issues, 'makefile'), 3) + def test_md_issues(self): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 8) @@ -159,6 +162,9 @@ class ClosedIssueTests(unittest.TestCase): def test_twig_issues(self): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'twig'), 2) + def test_makefile_issues(self): + self.assertEqual(count_issues_for_file_type(self.raw_issues, 'makefile'), 3) + def test_md_issues(self): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 8)