Skip to content

Commit ca3353d

Browse files
committed
Support .fnlm out of the box
1 parent 56d1b83 commit ca3353d

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

fnl/nfnl/config.fnl

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,26 @@
8383
[root-dir "fnl" "?" "init.fnl"]]))
8484
dirs))
8585

86+
;; Original string from Fennel v1.6.0
87+
;; "./?.fnlm;./?/init.fnlm;./?.fnl;./?/init-macros.fnl;./?/init.fnl"
8688
:fennel-macro-path
8789
(str.join
8890
";"
8991
(core.mapcat
9092
(fn [root-dir]
9193
(core.map
9294
fs.join-path
93-
[[root-dir "?.fnl"]
94-
[root-dir "?" "init-macros.fnl"]
95+
[[root-dir "?.fnlm"]
96+
[root-dir "?" "init.fnlm"]
97+
[root-dir "fnl" "?.fnlm"]
98+
[root-dir "fnl" "?" "init.fnlm"]
99+
100+
[root-dir "?.fnl"]
95101
[root-dir "?" "init.fnl"]
102+
[root-dir "?" "init-macros.fnl"]
96103
[root-dir "fnl" "?.fnl"]
97-
[root-dir "fnl" "?" "init-macros.fnl"]
98-
[root-dir "fnl" "?" "init.fnl"]]))
104+
[root-dir "fnl" "?" "init.fnl"]
105+
[root-dir "fnl" "?" "init-macros.fnl"]]))
99106
dirs))
100107

101108
:source-file-patterns [".*.fnl" "*.fnl" (fs.join-path ["**" "*.fnl"])]

lua/nfnl/config.lua

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)