diff --git a/README.md b/README.md index 1d78dbc..9d8a6b0 100644 --- a/README.md +++ b/README.md @@ -158,6 +158,7 @@ Only a single milestone can be specified. If the milestone does not exist, it wi - Lua - Makefile - Markdown +- Move - Nix - Objective-C - Org Mode diff --git a/syntax.json b/syntax.json index 46726e9..0b1ec1c 100644 --- a/syntax.json +++ b/syntax.json @@ -878,5 +878,21 @@ } } ] + }, + { + "language": "Move", + "markers": [ + { + "type": "line", + "pattern": "//" + }, + { + "type": "block", + "pattern": { + "start": "/\\*", + "end": "\\*/" + } + } + ] } -] +] \ No newline at end of file diff --git a/tests/test_closed.diff b/tests/test_closed.diff index c8b379c..88b50da 100644 --- a/tests/test_closed.diff +++ b/tests/test_closed.diff @@ -410,7 +410,7 @@ index 2996176..7545ccf 100644 @@ -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)) @@ -419,7 +419,7 @@ index 2996176..7545ccf 100644 $(NAME): $(OBJ) - # TODO create the directory. $(AR) rc $@ $(OBJ) - + diff --git a/tests/example_file.liquid b/tests/example_file.liquid index 0000000..7cccc5b 100644 --- a/tests/example_file.liquid @@ -447,11 +447,11 @@ index 0000000..7cccc5b 100644 - /* TODO: Use state here - labels: client */ + const [data, setData] = useState(""); - + return (
-- {/* -- TODO: use styled component library +- {/* +- TODO: use styled component library - */} + {data}
@@ -538,3 +538,29 @@ index 0000000..d340f6a - * labels: urgent - */ -} +diff --git a/tests/package.move b/tests/package.move +new file mode 100644 +index 0000000..d340f6a +--- a/src/package.move ++++ b/src/package.move +@@ -0,0 +1,20 @@ +-module coin::coin { +- // TODO: Test this +- // Do it +- // labels: urgent +- +- /// TODO: Natspec comment +- /// Do it +- /// labels: urgent +- +- /* +- TODO: Test this too +- Do it ASAP +- labels: urgent +- */ +- +- /** +- * TODO: And this too +- * labels: urgent +- */ +-} diff --git a/tests/test_new.diff b/tests/test_new.diff index 740a179..fde2edb 100644 --- a/tests/test_new.diff +++ b/tests/test_new.diff @@ -474,8 +474,8 @@ index 0000000..7cccc5b + + return ( +
-+ {/* -+ TODO: use styled component library ++ {/* ++ TODO: use styled component library + */} +
+ ); @@ -563,3 +563,26 @@ index 0000000..d340f6a + * labels: urgent + */ +} +--- /dev/null ++++ b/package.move +@@ -0,0 +1,20 @@ ++module coin::coin { ++ // TODO: Test this ++ // Do it ++ // labels: urgent ++ ++ /// TODO: Natspec comment ++ /// Do it ++ /// labels: urgent ++ ++ /* ++ TODO: Test this too ++ Do it ASAP ++ labels: urgent ++ */ ++ ++ /** ++ * TODO: And this too ++ * labels: urgent ++ */ ++} diff --git a/tests/test_todo_parser.py b/tests/test_todo_parser.py index 45b577c..0733ecd 100644 --- a/tests/test_todo_parser.py +++ b/tests/test_todo_parser.py @@ -89,8 +89,8 @@ class NewIssueTest(unittest.TestCase): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'handlebars'), 2) def test_text_issues(self): - # Includes 2 tests for Org, 2 tests for GAP, 2 tests for Visual Basic, 2 tests for Agda, 4 tests for Sol. - self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 12) + # Includes 2 tests for Org, 2 tests for GAP, 2 tests for Visual Basic, 2 tests for Agda, 4 tests for Sol, 4 tests for Move + self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 16) def test_scss_issues(self): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'scss'), 2) @@ -128,7 +128,6 @@ class NewIssueTest(unittest.TestCase): def test_lua_issues(self): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'lua'), 2) - class CustomOptionsTest(unittest.TestCase): def setUp(self): parser = TodoParser(options={"identifiers": @@ -266,8 +265,8 @@ class ClosedIssueTest(unittest.TestCase): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'handlebars'), 2) def test_text_issues(self): - # Includes 2 tests for Org, 2 tests for GAP, 2 tests for Visual Basic, 2 tests for Agda, 4 tests for Sol. - self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 12) + # Includes 2 tests for Org, 2 tests for GAP, 2 tests for Visual Basic, 2 tests for Agda, 4 tests for Sol, 4 tests for Move + self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 16) def test_scss_issues(self): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'scss'), 2)