aboutsummaryrefslogtreecommitdiff
path: root/core/text.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-15 00:40:36 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-15 00:40:40 -0700
commit5629b81f78c722e8001b8cee1628085a78a8ea9f (patch)
treefc3b36c3c4ac5176d8269e523109468f2ff6be77 /core/text.nom
parentc161f48838ea13a98c37d50df030ad336be97171 (diff)
Updating tests.
Diffstat (limited to 'core/text.nom')
-rw-r--r--core/text.nom2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/text.nom b/core/text.nom
index e6065c1..8b26ccb 100644
--- a/core/text.nom
+++ b/core/text.nom
@@ -20,7 +20,7 @@ compile [%text with %sub instead of %patt, %text s/%patt/%sub] to
action [lines in %text, lines of %text]
lua> ".."
- local result = {}
+ local result = list{}
for line in (\%text):gmatch('[^\n]+') do
result[#result+1] = line
end