From d7424d40aa963e47d3224b81ccf41c4f8669617d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 10 Jan 2020 13:27:24 -0500 Subject: Support boolean attributes For example, script[src defer.] expands to . This notation is not documented in the cheet sheet, but you can use it in the playground. We should support boolean attributes for the other filters as well, say, haml. --- src/mode-def.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mode-def.el') diff --git a/src/mode-def.el b/src/mode-def.el index 67313dd..f8d481f 100644 --- a/src/mode-def.el +++ b/src/mode-def.el @@ -91,6 +91,13 @@ e. g. without semicolons") less-css-mode) "Major modes that use emmet for CSS, rather than HTML.") +(defvar emmet-fallback-filter '("html") + "Fallback filter for `emmet-default-filter', if none is found.") + +(defvar emmet-file-filter nil + "File local filter used by `emmet-default-filter'.") +(make-variable-buffer-local 'emmet-file-filter) + (defun emmet-transform (input) (if (or (emmet-detect-style-tag-and-attr) emmet-use-css-transform) (emmet-css-transform input) -- cgit v1.2.3