Skip to content

Commit ae30b23

Browse files
committed
Fix highlighter issue in newest article
1 parent 609af16 commit ae30b23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org/_posts/2024-09-13-rust_simple_declarative_macros.org

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ While they can be useful, they come with their own set of problems and limitatio
5353
*Lisp style macros*
5454
The Lisp family of programming languages have had macros since the 1960s. They are very powerful and gives us great control of many details, including controlling when input parameters are evaluated. Lisp languages work on lists, so macros return lists that are evaluated by the Lisp interpreter. Let us see a quick and simple example in Emacs Lisp:
5555

56-
#+BEGIN_SRC emacs-lisp
56+
#+BEGIN_SRC lisp
5757
(defmacro quarkus--set-text-field (field)
5858
`(lambda (self &rest _ignore)
5959
(setq-local ,field (widget-value self))))
@@ -64,7 +64,7 @@ In essence: I needed to generate several lambdas that looked almost the same, wh
6464

6565

6666
The result of the code above? We generate a new lambda expression.
67-
#+BEGIN_SRC emacs-lisp
67+
#+BEGIN_SRC lisp
6868
(quarkus--set-text-field my-variable)
6969
;; expands to:
7070
(lambda (self &rest _ignore)

0 commit comments

Comments
 (0)