[gtksourceview] css.lang: Add support for 8 and 4 digit hex color notation
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] css.lang: Add support for 8 and 4 digit hex color notation
- Date: Sun, 21 Aug 2016 17:51:12 +0000 (UTC)
commit 2f149e62b40ba8db95b3cf15b985e27565003047
Author: Tobias Schönberg <tobias47n9e gmail com>
Date: Sun Aug 21 18:10:20 2016 +0200
css.lang: Add support for 8 and 4 digit hex color notation
Currently 8 digit (e.g. '#aabbccff') and four digit (e.g.
'#abcf') color notation is not highlighted similar to other
hexadecimal colors.
This commit updates the 'hexadecimal-color' context to fix
the issue.
https://bugzilla.gnome.org/show_bug.cgi?id=770206
data/language-specs/css.lang | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/data/language-specs/css.lang b/data/language-specs/css.lang
index c88a3dc..eef1a6d 100644
--- a/data/language-specs/css.lang
+++ b/data/language-specs/css.lang
@@ -138,7 +138,7 @@
</context>
<context id="hexadecimal-color" style-ref="color">
- <match>#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})\b</match>
+ <match>#([a-fA-F0-9]{8}|[a-fA-F0-9]{6}|[a-fA-F0-9]{4}|[a-fA-F0-9]{3})\b</match>
</context>
<context id="named-color" style-ref="color">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]