Skip to content

Commit bf0d386

Browse files
committed
Update references to old header style
1 parent 55b19fd commit bf0d386

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

.nrepl-port

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
38253

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fine!) will default to these values that should work fine for most people.
7171
;; the plugin itself and checking that it's running when you expect it to.
7272
:verbose false
7373
74-
;; When false, will not write the protective `-- [nfnl] Compiled from ...` header to the resulting .lua files.
74+
;; When false, will not write the protective `-- [nfnl] ...` header to the resulting .lua files.
7575
;; It will also prevent nfnl from checking for this header before overwriting .lua files.
7676
;; Intended for users who wish to write shebang comments at the top of their .lua for easier execution.
7777
:header-comment true

fnl/spec/nfnl/compile_spec.fnl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
(it "compiles good Fennel to Lua"
1010
(fn []
1111
(assert.are.same
12-
{:result "-- [nfnl] Compiled from bar.fnl by https://github.com/Olical/nfnl, do not edit.\nreturn (10 + 20)\n"
12+
{:result "-- [nfnl] bar.fnl\nreturn (10 + 20)\n"
1313
:source-path "/tmp/foo/bar.fnl"
1414
:status "ok"}
1515
(compile.into-string

fnl/spec/nfnl/e2e_spec.fnl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
(print "Lua result:" lua-result)
5454

5555
(assert.are.equal
56-
"-- [nfnl] Compiled from fnl/foo.fnl by https://github.com/Olical/nfnl, do not edit.\nreturn print(\"Hello, World!\")\n"
56+
"-- [nfnl] fnl/foo.fnl\nreturn print(\"Hello, World!\")\n"
5757
lua-result)))
5858

5959
(it "can import-macros and use them, the macros aren't compiled"
@@ -76,7 +76,7 @@
7676
(print "Lua result:" lua-result)
7777

7878
(assert.are.equal
79-
"-- [nfnl] Compiled from fnl/foo.fnl by https://github.com/Olical/nfnl, do not edit.\nreturn (10 + 20)\n"
79+
"-- [nfnl] fnl/foo.fnl\nreturn (10 + 20)\n"
8080
lua-result))))
8181

8282
(describe

lua/spec/nfnl/compile_spec.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.

lua/spec/nfnl/e2e_spec.lua

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

script/fennel.bb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
(notify! (str fnl-path " compilation failed") (::err lua))))
116116
(println "[error]" lua)))
117117
(when (not dry)
118-
(spit lua-path (str "-- [nfnl] Compiled from " fnl-path " by https://github.com/Olical/nfnl, do not edit.\n" lua))))))))
118+
(spit lua-path (str "-- [nfnl] " fnl-path "\n" lua))))))))
119119
fnl-paths)))
120120

121121
(defn print-fennel-file-paths! [{:keys [root] :or {root "."}}]

0 commit comments

Comments
 (0)