You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
;; A list of glob patterns (autocmd pattern syntax) of files that
113
113
;; should be compiled. This is used as configuration for the BufWritePost
@@ -202,12 +202,7 @@ documentation rendering time that we may not want.
202
202
203
203
## Macros
204
204
205
-
Fennel allows you to write inline macros with the `(macro ...)` form but they're
206
-
restricted to only being used in that one file. If you wish to have a macro
207
-
module shared by the rest of your codebase you need to mark that file as a macro
208
-
module by placing `;; [nfnl-macro]` somewhere within the source code. The exact
209
-
amount of `;` and whitespace doesn't matter, you just need a comment with
210
-
`[nfnl-macro]` inside of it.
205
+
Fennel allows you to write inline macros with the `(macro ...)` form but they're restricted to only being used in that one file. If you wish to have a macro module shared by the rest of your codebase you need to mark that file as a macro module either by giving it the `.fnlm` suffix or by placing `;; [nfnl-macro]` somewhere within the source code. The exact amount of `;` and whitespace doesn't matter, you just need a comment with `[nfnl-macro]` inside of it.
211
206
212
207
This marker does two things:
213
208
@@ -219,11 +214,10 @@ This marker does two things:
219
214
your macro modules stays in sync and you never end up having to find old Lua
220
215
that was compiled with old versions of your macros.
221
216
222
-
For example, here's a simplified macro file from nfnl itself at
223
-
`fnl/nfnl/macros.fnl`.
217
+
For example, here's a simplified macro file from nfnl itself at `fnl/nfnl/macros.fnlm`.
224
218
225
219
```fennel
226
-
;; [nfnl-macro]
220
+
;; [nfnl-macro] <-- is only required if you don't use the `.fnlm` extension.
227
221
228
222
;; .nfnl.fnl config so you don't need to prefix globals like _G.vim.*
0 commit comments