mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 11:30:23 +10:00
Moving to Doom Emacs!
This commit is contained in:
16
.emacs.d/modules/lang/lua/autoload/moonscript.el
Normal file
16
.emacs.d/modules/lang/lua/autoload/moonscript.el
Normal file
@@ -0,0 +1,16 @@
|
||||
;;; lang/lua/autoload/moonscript.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +moonscript)
|
||||
|
||||
;;;###autoload
|
||||
(defun +lua-moonscript-fix-single-quotes-h ()
|
||||
"Single-quoted strings aren't treated as strings."
|
||||
;; (modify-syntax-entry ?\" "\"" moonscript-mode-syntax-table)
|
||||
(modify-syntax-entry ?\' "\"" moonscript-mode-syntax-table))
|
||||
|
||||
;;;###autoload
|
||||
(defun +lua-moonscript-fontify-interpolation-h ()
|
||||
"Highlight interpolated expressions in moonscript strings."
|
||||
(font-lock-add-keywords
|
||||
nil '(("#{\\([^}]+\\)}"
|
||||
(0 font-lock-preprocessor-face t)
|
||||
(1 nil t)))))
|
||||
Reference in New Issue
Block a user