Merge pull request #212 from naps62/lua

Adds support for lua
This commit is contained in:
Alastair Mooney 2024-10-09 18:14:19 +01:00 committed by GitHub
commit 85a6f710f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 57 additions and 0 deletions

View File

@ -155,6 +155,7 @@ Only a single milestone can be specified. If the milestone does not exist, it wi
- Kotlin
- Less
- Liquid
- Lua
- Makefile
- Markdown
- Nix

View File

@ -837,5 +837,21 @@
}
}
]
},
{
"language": "Lua",
"markers": [
{
"type": "line",
"pattern": "--"
},
{
"type": "block",
"pattern": {
"start": "--\\[\\[",
"end": "--\\]\\]"
}
}
]
}
]

View File

@ -483,3 +483,20 @@ index 525e25d..ba4e68d 100644
-TODO: Create an issue for TODO
--}
-sum a b = a + b
diff --git a/init.lua b/init.lua
new file mode 100644
index 0000000..0ce9b1a
--- a/init.lua
+++ b/init.lua
@@ -0,0 +1,11 @@
--- TODO: Fix this
--- In the future, make a way to build these and just start the base
--- out with a large supply of each
--- labels: redesign
-local a = 1
-
---[[
- TODO: Fix this todo
- labels: urgent
---]]
-local b = 2

View File

@ -539,3 +539,20 @@ index 0000000..0ce9b1a
+TODO: Create an issue for TODO
+-}
+sum a b = a + b
diff --git a/init.lua b/init.lua
new file mode 100644
index 0000000..0ce9b1a
--- /dev/null
+++ b/init.lua
@@ -0,0 +1,11 @@
+-- TODO: Fix this
+-- In the future, make a way to build these and just start the base
+-- out with a large supply of each
+-- labels: redesign
+local a = 1
+
+--[[
+ TODO: Fix this todo
+ labels: urgent
+--]]
+local b = 2

View File

@ -100,6 +100,9 @@ class NewIssueTests(unittest.TestCase):
def test_liquid_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'liquid'), 3)
def test_lua_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'lua'), 2)
class ClosedIssueTests(unittest.TestCase):
# Check for removed TODOs across the files specified.
def setUp(self):
@ -187,6 +190,9 @@ class ClosedIssueTests(unittest.TestCase):
def test_liquid_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'liquid'), 3)
def test_lua_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'lua'), 2)
class IgnorePatternTests(unittest.TestCase):