branch: elpa/web-mode commit 52ee948d68ec62c44e0533111b71bf1ea27e4dfd Merge: 8edf9048c3 1896ca2e37 Author: fxbois <fxb...@gmail.com> Commit: GitHub <nore...@github.com>
Merge pull request #1236 from tim-janik/lit-html-attribute-prefixes web-mode.el: allow [.@?] prefixes for attributes in literal strings --- web-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-mode.el b/web-mode.el index 5551274c2d..2c220a0d9f 100644 --- a/web-mode.el +++ b/web-mode.el @@ -7068,7 +7068,7 @@ Also return non-nil if it is the command `self-insert-command' is remapped to." 'web-mode-interpolate-color1-face) ) (goto-char (1+ beg)) - (while (re-search-forward "</?\\|/?>\\| [[:alnum:]]+=" end t) + (while (re-search-forward "</?\\|/?>\\| [.@?]?[[:alnum:]]+=" end t) (cond ((member (char-after (match-beginning 0)) '(?\< ?\/ ?\>)) (put-text-property (match-beginning 0) (match-end 0)