[gtksourceview] css.lang: Match the slash symbol in font declarations
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] css.lang: Match the slash symbol in font declarations
- Date: Sun, 3 Jun 2018 14:21:23 +0000 (UTC)
commit a8c4ef0925e9db9bcf03c21e8bf88745e926e6a4
Author: Jeffery To <jeffery to gmail com>
Date: Thu May 24 04:45:55 2018 +0800
css.lang: Match the slash symbol in font declarations
data/language-specs/css.lang | 5 +++++
tests/syntax-highlighting/file.css | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/data/language-specs/css.lang b/data/language-specs/css.lang
index e1c3ad93..c992eb4a 100644
--- a/data/language-specs/css.lang
+++ b/data/language-specs/css.lang
@@ -192,6 +192,10 @@
</include>
</context>
+ <context id="slash" style-ref="symbol">
+ <match>/</match>
+ </context>
+
<context id="comma" style-ref="delimiter">
<match>,</match>
</context>
@@ -1487,6 +1491,7 @@
<context ref="function-call"/>
<context ref="property-value-keyword"/>
<context ref="data-value"/>
+ <context ref="slash"/>
<context ref="comma"/> <!-- for lists -->
</include>
</context>
diff --git a/tests/syntax-highlighting/file.css b/tests/syntax-highlighting/file.css
index 44f2aac9..04c96786 100644
--- a/tests/syntax-highlighting/file.css
+++ b/tests/syntax-highlighting/file.css
@@ -29,7 +29,7 @@
/* case insensitivity */
Body {
- FONT: 12Px iTaLiC sans-SERIF;
+ FONT: 12Px/16pX iTaLiC sans-SERIF;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]