emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/jade-mode 473d29b5c2 091/128: move doctype in rendering or


From: ELPA Syncer
Subject: [nongnu] elpa/jade-mode 473d29b5c2 091/128: move doctype in rendering order
Date: Sat, 29 Jan 2022 08:24:50 -0500 (EST)

branch: elpa/jade-mode
commit 473d29b5c248ef0f95535c40af48cff9f04c9aa9
Author: Travis Jefferson <tjefferson@signpost.com>
Commit: Travis Jefferson <tjefferson@signpost.com>

    move doctype in rendering order
    
        we want the whole line to be comment-face, I'd imagine
---
 jade-mode.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/jade-mode.el b/jade-mode.el
index a7a9af9518..767660478f 100644
--- a/jade-mode.el
+++ b/jade-mode.el
@@ -81,7 +81,6 @@
 
 (defvar jade-font-lock-keywords
   `(
-    ("!!!\\|doctype\\( ?[A-Za-z0-9\-\_]*\\)?" 0 font-lock-comment-face) ;; 
doctype
     (,jade-keywords . font-lock-keyword-face) ;; keywords
     ("#\\(\\w\\|_\\|-\\)*" . font-lock-variable-name-face) ;; id
     ("\\(?:^[ {2,}]*\\(?:[a-z0-9_:\\-]*\\)\\)?\\(#[A-Za-z0-9\-\_]*[^ ]\\)" 1 
font-lock-variable-name-face) ;; id
@@ -117,7 +116,10 @@
     ;; highlighting under the guise of matching text for more standard
     ;; font-lock face application (like we do with regexps above)
     (jade-highlight-js-in-parens 1 font-lock-preprocessor-face)
-    (jade-highlight-js-after-tag 1 font-lock-preprocessor-face)))
+    (jade-highlight-js-after-tag 1 font-lock-preprocessor-face)
+
+    ;; doctype re-overrides some of the fontification rules
+    ("!!!\\|doctype[ ]?.*" 0 font-lock-comment-face t)))
 
 (defun jade-highlight-js-in-parens (limit)
   "Search for a tag declaration (up to LIMIT) which contains a paren



reply via email to

[Prev in Thread] Current Thread [Next in Thread]