mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
Add support for PureScript
This commit is contained in:
parent
e3452cb1e4
commit
fe5e34d9ad
@ -167,6 +167,7 @@ These will be applied automatically to every issue, but will be overrode by any
|
||||
- Org Mode
|
||||
- PHP
|
||||
- Python
|
||||
- PureScript
|
||||
- R
|
||||
- Razor
|
||||
- RMarkdown
|
||||
|
||||
16
syntax.json
16
syntax.json
@ -364,6 +364,22 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"language": "PureScript",
|
||||
"markers": [
|
||||
{
|
||||
"type": "line",
|
||||
"pattern": "--"
|
||||
},
|
||||
{
|
||||
"type": "block",
|
||||
"pattern": {
|
||||
"start": "{-",
|
||||
"end": "-}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"language": "Haskell",
|
||||
"markers": [
|
||||
|
||||
@ -428,4 +428,23 @@ index 0000000..7cccc5b 100644
|
||||
+ <StyledComponent>{data}</StyledComponent>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
diff --git a/src/Swarm/Game/example.purs b/src/Swarm/Game/example.purs
|
||||
index 525e25d..ba4e68d 100644
|
||||
--- a/src/Swarm/Game/example.purs
|
||||
+++ b/src/Swarm/Game/example.purs
|
||||
@@ -1,14 +0,0 @@
|
||||
--- | Standard devices that are always installed.
|
||||
---
|
||||
--- TODO: Remove standard devices
|
||||
--- In the future, make a way to build these and just start the base
|
||||
--- out with a large supply of each?
|
||||
--- labels: redesign
|
||||
-stdDeviceList =
|
||||
- ["treads", "grabber", "solar panel", "scanner", "plasma cutter"]
|
||||
-
|
||||
-{- | Very complicated function.
|
||||
-
|
||||
-TODO: Create an issue for TODO
|
||||
--}
|
||||
-sum a b = a + b
|
||||
|
||||
@ -470,4 +470,24 @@ index 0000000..7cccc5b
|
||||
+ */}
|
||||
+ </div>
|
||||
+ );
|
||||
+}
|
||||
+}
|
||||
diff --git a/src/Swarm/Game/example.purs b/src/Swarm/Game/example.purs
|
||||
new file mode 100644
|
||||
index 0000000..0ce9b1a
|
||||
--- /dev/null
|
||||
+++ b/src/Swarm/Game/example.purs
|
||||
@@ -0,0 +1,14 @@
|
||||
+-- | Standard devices that are always installed.
|
||||
+--
|
||||
+-- TODO: Remove standard devices
|
||||
+-- In the future, make a way to build these and just start the base
|
||||
+-- out with a large supply of each?
|
||||
+-- labels: redesign
|
||||
+stdDeviceList =
|
||||
+ ["treads", "grabber", "solar panel", "scanner", "plasma cutter"]
|
||||
+
|
||||
+{- | Very complicated function.
|
||||
+
|
||||
+TODO: Create an issue for TODO
|
||||
+-}
|
||||
+sum a b = a + b
|
||||
|
||||
@ -83,7 +83,7 @@ class NewIssueTests(unittest.TestCase):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'r'), 2)
|
||||
|
||||
def test_haskell_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'haskell'), 2)
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'haskell'), 4)
|
||||
|
||||
def test_clojure_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'clojure'), 2)
|
||||
@ -171,7 +171,7 @@ class ClosedIssueTests(unittest.TestCase):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'r'), 2)
|
||||
|
||||
def test_haskell_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'haskell'), 2)
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'haskell'), 4)
|
||||
|
||||
def test_clojure_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'clojure'), 2)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user