mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
Merge pull request #255 from netpoe/syntax/move
feat(syntax.json): Move language .move
This commit is contained in:
commit
c5294a65e6
@ -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
|
||||
|
||||
16
syntax.json
16
syntax.json
@ -878,5 +878,21 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"language": "Move",
|
||||
"markers": [
|
||||
{
|
||||
"type": "line",
|
||||
"pattern": "//"
|
||||
},
|
||||
{
|
||||
"type": "block",
|
||||
"pattern": {
|
||||
"start": "/\\*",
|
||||
"end": "\\*/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@ -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
|
||||
- */
|
||||
-}
|
||||
|
||||
@ -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
|
||||
+ */
|
||||
+}
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user