feat: add support for JSON5

This commit is contained in:
Marcos Soutullo Rodriguez
2022-10-16 12:00:41 +01:00
parent 9e57f4e103
commit 7032c76bc5
5 changed files with 44 additions and 33 deletions

View File

@@ -85,7 +85,7 @@ index 0000000..0ce9b1a
+++ b/src/Swarm/Game/example.hs
@@ -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?
@@ -184,7 +184,7 @@ index 0000000..7cccc5b
+ # TODO: Hopefully this comment turns into an issue
+ print("Hello World")
+ #= TODO: Multiline comments
+ also need to be turned into task, and hopefully
+ also need to be turned into task, and hopefully
+ kept together as one.
+ =#
diff --git a/tests/example_file.ahk b/src/tests/example_file.ahk
@@ -196,7 +196,7 @@ index 0000000..7cccc5b
+ ; TODO: Find a better way to manage hotkeys
+ ; Maybe just switch to vim??
+ #h::
+ RegRead, HiddenFiles_Status, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden
+ RegRead, HiddenFiles_Status, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden
diff --git a/tests/example_file.hbs b/src/tests/example_file.hbs
new file mode 100644
index 0000000..7cccc5b
@@ -204,7 +204,7 @@ index 0000000..7cccc5b
+++ b/src/tests/example_file.hbs
@@ -0,0 +1,2 @@
+ <!-- TODO: Hopefully this comment turns into a todo issue -->
+ {{!
+ {{!
+ TODO: Make a handlebar templtate
+ This is really just a test, but hopefully this works~!
+ }}
@@ -220,7 +220,7 @@ index 0000000..7cccc5b
+ #+end_src
+ #+begin_comment
+ TODO: Multiline comments
+ also need to be turned into todos, and hopefully
+ also need to be turned into todos, and hopefully
+ kept together as one todo
+ #+end_comment
diff --git a/tests/example_file.scss b/src/tests/example_file.scss
@@ -234,9 +234,9 @@ index 0000000..7cccc5b
+ font-weight: bold;
+ .my-second-class {
+ /* TODO: Multiline comments
+ * also need to be turned into todos, and hopefully
+ * also need to be turned into todos, and hopefully
+ * kept together as one todo
+ */
+ */
+ text-align: center;
+ }
+}
@@ -259,7 +259,7 @@ index 0000000..7cccc5b
+++ b/src/tests/example_file.md
@@ -0,0 +1,7 @@
+ {/* TODO: Hopefully this comment turns into a todo issue */}
+ {/*
+ {/*
+ TODO:Multiline comments
+ also need to be turned into todos, and hopefully
+ kept together as one todo
@@ -272,7 +272,7 @@ index 0000000..7cccc5b
+++ b/src/tests/example_file.mdx
@@ -0,0 +1,7 @@
+ {/* TODO: Hopefully this comment turns into a todo issue */}
+ {/*
+ {/*
+ TODO:Multiline comments
+ also need to be turned into todos, and hopefully
+ kept together as one todo
@@ -292,17 +292,17 @@ index 0000000..525e25d
+ # This function should probably do something more interesting
+ # labels: help wanted
+}
diff --git a/tests/example_file.r b/tests/config.json5
diff --git a/tests/config.json5 b/tests/config.json5
new file mode 100644
index 0000000..525f56e
index 0000000..525e25d
--- /dev/null
+++ b/tests/example_file.json5
@@ -0,0 +1,7 @@
+++ b/tests/config.json5
@@ -0,0 +0,8 @@
+{
+ "myConfig": [
+ // GitRepository where 'Git release/tag' matches 'Helm' version
+ "itIsWonderful",
+ // TODO: Delete this line from the codebase
+ // TODO: Delete this line from the codebase
+ "butItHasSomePendingActivities"
+ ]
+}
+}