Skip to content

Commit c5294a6

Browse files
authored
Merge pull request #255 from netpoe/syntax/move
feat(syntax.json): Move language .move
2 parents 9733933 + 4417cd5 commit c5294a6

File tree

5 files changed

+78
-13
lines changed

5 files changed

+78
-13
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ Only a single milestone can be specified. If the milestone does not exist, it wi
158158
- Lua
159159
- Makefile
160160
- Markdown
161+
- Move
161162
- Nix
162163
- Objective-C
163164
- Org Mode

syntax.json

+17-1
Original file line numberDiff line numberDiff line change
@@ -878,5 +878,21 @@
878878
}
879879
}
880880
]
881+
},
882+
{
883+
"language": "Move",
884+
"markers": [
885+
{
886+
"type": "line",
887+
"pattern": "//"
888+
},
889+
{
890+
"type": "block",
891+
"pattern": {
892+
"start": "/\\*",
893+
"end": "\\*/"
894+
}
895+
}
896+
]
881897
}
882-
]
898+
]

tests/test_closed.diff

+31-5
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ index 2996176..7545ccf 100644
410410
@@ -1,12 +1,9 @@
411411
-# TODO change name.
412412
NAME = asm
413-
413+
414414
-# TODO source files must be explicitly named.
415415
SRC = $(shell find mandatory/src -name "*.asm")
416416
OBJ = $(patsubst src/%.asm, obj/%.o, $(SRC))
@@ -419,7 +419,7 @@ index 2996176..7545ccf 100644
419419
$(NAME): $(OBJ)
420420
- # TODO create the directory.
421421
$(AR) rc $@ $(OBJ)
422-
422+
423423
diff --git a/tests/example_file.liquid b/tests/example_file.liquid
424424
index 0000000..7cccc5b 100644
425425
--- a/tests/example_file.liquid
@@ -447,11 +447,11 @@ index 0000000..7cccc5b 100644
447447
- /* TODO: Use state here
448448
- labels: client */
449449
+ const [data, setData] = useState<string>("");
450-
450+
451451
return (
452452
<div>
453-
- {/*
454-
- TODO: use styled component library
453+
- {/*
454+
- TODO: use styled component library
455455
- */}
456456
+ <StyledComponent>{data}</StyledComponent>
457457
</div>
@@ -538,3 +538,29 @@ index 0000000..d340f6a
538538
- * labels: urgent
539539
- */
540540
-}
541+
diff --git a/tests/package.move b/tests/package.move
542+
new file mode 100644
543+
index 0000000..d340f6a
544+
--- a/src/package.move
545+
+++ b/src/package.move
546+
@@ -0,0 +1,20 @@
547+
-module coin::coin {
548+
- // TODO: Test this
549+
- // Do it
550+
- // labels: urgent
551+
-
552+
- /// TODO: Natspec comment
553+
- /// Do it
554+
- /// labels: urgent
555+
-
556+
- /*
557+
- TODO: Test this too
558+
- Do it ASAP
559+
- labels: urgent
560+
- */
561+
-
562+
- /**
563+
- * TODO: And this too
564+
- * labels: urgent
565+
- */
566+
-}

tests/test_new.diff

+25-2
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,8 @@ index 0000000..7cccc5b
474474
+
475475
+ return (
476476
+ <div>
477-
+ {/*
478-
+ TODO: use styled component library
477+
+ {/*
478+
+ TODO: use styled component library
479479
+ */}
480480
+ </div>
481481
+ );
@@ -563,3 +563,26 @@ index 0000000..d340f6a
563563
+ * labels: urgent
564564
+ */
565565
+}
566+
--- /dev/null
567+
+++ b/package.move
568+
@@ -0,0 +1,20 @@
569+
+module coin::coin {
570+
+ // TODO: Test this
571+
+ // Do it
572+
+ // labels: urgent
573+
+
574+
+ /// TODO: Natspec comment
575+
+ /// Do it
576+
+ /// labels: urgent
577+
+
578+
+ /*
579+
+ TODO: Test this too
580+
+ Do it ASAP
581+
+ labels: urgent
582+
+ */
583+
+
584+
+ /**
585+
+ * TODO: And this too
586+
+ * labels: urgent
587+
+ */
588+
+}

tests/test_todo_parser.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def test_handlebars_issues(self):
8989
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'handlebars'), 2)
9090

9191
def test_text_issues(self):
92-
# Includes 2 tests for Org, 2 tests for GAP, 2 tests for Visual Basic, 2 tests for Agda, 4 tests for Sol.
93-
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 12)
92+
# 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
93+
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 16)
9494

9595
def test_scss_issues(self):
9696
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'scss'), 2)
@@ -128,7 +128,6 @@ def test_liquid_issues(self):
128128
def test_lua_issues(self):
129129
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'lua'), 2)
130130

131-
132131
class CustomOptionsTest(unittest.TestCase):
133132
def setUp(self):
134133
parser = TodoParser(options={"identifiers":
@@ -266,8 +265,8 @@ def test_handlebars_issues(self):
266265
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'handlebars'), 2)
267266

268267
def test_text_issues(self):
269-
# Includes 2 tests for Org, 2 tests for GAP, 2 tests for Visual Basic, 2 tests for Agda, 4 tests for Sol.
270-
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 12)
268+
# 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
269+
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 16)
271270

272271
def test_scss_issues(self):
273272
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'scss'), 2)

0 commit comments

Comments
 (0)