Replace fork of Fennel with upstream.

* Rename "customhook-early-" hooks to "pre-"
* Change hook argument order to put scope second.
This commit is contained in:
Phil Hagelberg 2023-12-03 10:39:51 -08:00 committed by XeroOl
parent e4ec4dc9c4
commit f25fd9fd60
3 changed files with 1259 additions and 1267 deletions

1370
fennel

File diff suppressed because it is too large Load Diff

View File

@ -192,10 +192,10 @@ later by fennel-ls.language to answer requests from the client."
;; handle the definitions of a function ;; handle the definitions of a function
(define-function-name ast scope)) (define-function-name ast scope))
(λ compile-for [ast binding scope] (λ compile-for [ast scope binding]
(define (sym :nil) binding scope)) (define (sym :nil) binding scope))
(λ compile-each [ast bindings scope] (λ compile-each [ast scope bindings]
(each [_ binding (ipairs bindings)] (each [_ binding (ipairs bindings)]
(define (sym :nil) binding scope))) (define (sym :nil) binding scope)))
@ -270,7 +270,7 @@ later by fennel-ls.language to answer requests from the client."
(let [macro-file? (= (file.text:sub 1 24) ";; fennel-ls: macro-file") (let [macro-file? (= (file.text:sub 1 24) ";; fennel-ls: macro-file")
plugin plugin
{:name "fennel-ls" {:name "fennel-ls"
:versions ["1.3.2"] :versions ["1.4.1"]
: symbol-to-expression : symbol-to-expression
: call : call
: destructure : destructure
@ -279,10 +279,10 @@ later by fennel-ls.language to answer requests from the client."
;; :chunk I don't know what this one is ;; :chunk I don't know what this one is
:assert-compile on-compile-error :assert-compile on-compile-error
:parse-error on-parse-error :parse-error on-parse-error
:customhook-early-for compile-for :pre-for compile-for
:customhook-early-each compile-each :pre-each compile-each
:customhook-early-fn compile-fn :pre-fn compile-fn
:customhook-early-do compile-do} :pre-do compile-do}
scope (fennel.scope) scope (fennel.scope)
opts {:filename file.uri opts {:filename file.uri
:plugins [plugin] :plugins [plugin]

File diff suppressed because it is too large Load Diff