branch: elpa/jade-mode
commit 8f61e0dc6a3eb76f64ee603910866521b1775931
Author: Jaakko Pallari <[email protected]>
Commit: Jaakko Pallari <[email protected]>
Decimal point can be part of a constant.
Constants can have values with decimal points: eg. 1.2em or 50.5%
---
stylus-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stylus-mode.el b/stylus-mode.el
index ca9748b8ab..87ae474003 100644
--- a/stylus-mode.el
+++ b/stylus-mode.el
@@ -47,7 +47,7 @@
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)
+
(,"\\([.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+" 0 font-lock-variable-name-face)
))