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

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

[nongnu] elpa/jade-mode dd7becb0fb 062/128: Merge pull request #25 from


From: ELPA Syncer
Subject: [nongnu] elpa/jade-mode dd7becb0fb 062/128: Merge pull request #25 from gavinpc/patch-1
Date: Sat, 29 Jan 2022 08:24:47 -0500 (EST)

branch: elpa/jade-mode
commit dd7becb0fb3b01677eea680f9283ad008ff4a068
Merge: d2c37c960b 1b86926046
Author: Brian C <brian.m.carlson@gmail.com>
Commit: Brian C <brian.m.carlson@gmail.com>

    Merge pull request #25 from gavinpc/patch-1
    
    Refined and extended syntax highlighting
---
 stylus-mode.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/stylus-mode.el b/stylus-mode.el
index 46cc196249..9849697ea2 100644
--- a/stylus-mode.el
+++ b/stylus-mode.el
@@ -47,9 +47,12 @@
      0 font-lock-constant-face)
     (,(concat "[^_$]?\\<\\(" stylus-keywords "\\)\\>[^_]?")
      0 font-lock-keyword-face)
-    
(,"\\([.0-9]+:?\\(em\\|ex\\|px\\|mm\\|cm\\|in\\|pt\\|pc\\|deg\\|rad\\|grad\\|ms\\|s\\|Hz\\|kHz\\|rem\\|%\\)\\)"
 0 font-lock-constant-face)
-    (,"#\\w+" 0 font-lock-keyword-face)
+    (,"#\\w[a-zA-Z0-9\\-]+" 0 font-lock-keyword-face) ; id selectors (also 
colors...)
+    
(,"\\([.0-9]+:?\\(em\\|ex\\|px\\|mm\\|cm\\|in\\|pt\\|pc\\|deg\\|rad\\|grad\\|ms\\|s\\|Hz\\|kHz\\|rem\\|%\\)\\b\\)"
 0 font-lock-constant-face)
+    (,"\\b[0-9]+\\b" 0 font-lock-constant-face)
+    (,"\\.\\w[a-zA-Z0-9\\-]+" 0 font-lock-type-face) ; class names
     (,"$\\w+" 0 font-lock-variable-name-face)
+    (,"@\\w[a-zA-Z0-9\\-]+" 0 font-lock-preprocessor-face) ; directives and 
backreferences
     ))
 
 (defvar stylus-syntax-table



reply via email to

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