forked from fxbois/web-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
function getHTML(div){ | ||
const html = `<style>div { background: black; }</style> <div>${div}</div>`; | ||
return html; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
;; Copyright 2011-2022 François-Xavier Bois | ||
|
||
;; Version: 17.3.1 | ||
;; Version: 17.3.2 | ||
;; Author: François-Xavier Bois | ||
;; Maintainer: François-Xavier Bois <[email protected]> | ||
;; Package-Requires: ((emacs "23.1")) | ||
|
@@ -23,7 +23,7 @@ | |
|
||
;;---- CONSTS ------------------------------------------------------------------ | ||
|
||
(defconst web-mode-version "17.3.1" | ||
(defconst web-mode-version "17.3.2" | ||
"Web Mode version.") | ||
|
||
;;---- GROUPS ------------------------------------------------------------------ | ||
|
@@ -1093,6 +1093,7 @@ Must be used in conjunction with web-mode-enable-block-face." | |
(?\> . ">")) | ||
"XML chars") | ||
|
||
;; #1254 : https://html.spec.whatwg.org/entities.json | ||
(defvar web-mode-html-entities | ||
;; #985 | ||
;; remove ("gt" . 62) ("lt" . 60) ("amp" . 38) | ||
|
@@ -7313,15 +7314,15 @@ Also return non-nil if it is the command `self-insert-command' is remapped to." | |
'web-mode-variable-name-face) | ||
) | ||
(cond | ||
((web-mode-looking-back "\\(css\\|styled[[:alnum:].]+\\)" beg) | ||
((web-mode-looking-back "\\(css\\|styled[[:alnum:].]+\\|css = \\)" beg) | ||
(goto-char (1+ beg)) | ||
(while (re-search-forward ".*?:" end t) | ||
(put-text-property (match-beginning 0) (match-end 0) | ||
'font-lock-face | ||
'web-mode-interpolate-color1-face) | ||
) | ||
) ;case css | ||
((web-mode-looking-back "\\(template\\|html\\)" beg) | ||
((web-mode-looking-back "\\(template\\|html\\|html = \\)" beg) | ||
(goto-char (1+ beg)) | ||
(while (re-search-forward web-mode-tag-regexp end t) | ||
(put-text-property (match-beginning 1) (match-end 1) | ||
|