lang/lua: conform hooks to new naming convention
This commit is contained in:
parent
e55ed59951
commit
49d86ae648
2 changed files with 4 additions and 4 deletions
|
@ -2,13 +2,13 @@
|
||||||
;;;###if (featurep! +moonscript)
|
;;;###if (featurep! +moonscript)
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +lua|moonscript-fix-single-quotes ()
|
(defun +lua-moonscript-fix-single-quotes-h ()
|
||||||
"Single-quoted strings aren't treated as strings."
|
"Single-quoted strings aren't treated as strings."
|
||||||
;; (modify-syntax-entry ?\" "\"" moonscript-mode-syntax-table)
|
;; (modify-syntax-entry ?\" "\"" moonscript-mode-syntax-table)
|
||||||
(modify-syntax-entry ?\' "\"" moonscript-mode-syntax-table))
|
(modify-syntax-entry ?\' "\"" moonscript-mode-syntax-table))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +lua|moonscript-fontify-interpolation ()
|
(defun +lua-moonscript-fontify-interpolation-h ()
|
||||||
"Highlight interpolated expressions in moonscript strings."
|
"Highlight interpolated expressions in moonscript strings."
|
||||||
(font-lock-add-keywords
|
(font-lock-add-keywords
|
||||||
nil '(("#{\\([^}]+\\)}"
|
nil '(("#{\\([^}]+\\)}"
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
(setq-hook! 'moonscript-mode-hook
|
(setq-hook! 'moonscript-mode-hook
|
||||||
moonscript-indent-offset tab-width)
|
moonscript-indent-offset tab-width)
|
||||||
(add-hook! 'moonscript-mode-hook
|
(add-hook! 'moonscript-mode-hook
|
||||||
#'+lua|moonscript-fix-single-quotes
|
#'+lua-moonscript-fix-single-quotes-h
|
||||||
#'+lua|moonscript-fontify-interpolation)
|
#'+lua-moonscript-fontify-interpolation-h)
|
||||||
(when (featurep! :tools flycheck)
|
(when (featurep! :tools flycheck)
|
||||||
(require 'flycheck-moonscript nil t)))
|
(require 'flycheck-moonscript nil t)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue