2019-07-09 01:01:44 +02:00
|
|
|
;;; lang/lua/autoload/moonscript.el -*- lexical-binding: t; -*-
|
|
|
|
;;;###if (featurep! +moonscript)
|
|
|
|
|
|
|
|
;;;###autoload
|
2019-09-06 00:34:23 -04:00
|
|
|
(defun +lua-moonscript-fix-single-quotes-h ()
|
2019-07-09 01:01:44 +02:00
|
|
|
"Single-quoted strings aren't treated as strings."
|
|
|
|
;; (modify-syntax-entry ?\" "\"" moonscript-mode-syntax-table)
|
|
|
|
(modify-syntax-entry ?\' "\"" moonscript-mode-syntax-table))
|
|
|
|
|
|
|
|
;;;###autoload
|
2019-09-06 00:34:23 -04:00
|
|
|
(defun +lua-moonscript-fontify-interpolation-h ()
|
2019-07-09 01:01:44 +02:00
|
|
|
"Highlight interpolated expressions in moonscript strings."
|
|
|
|
(font-lock-add-keywords
|
|
|
|
nil '(("#{\\([^}]+\\)}"
|
|
|
|
(0 font-lock-preprocessor-face t)
|
|
|
|
(1 nil t)))))
|