[gtksourceview] Bug 621132 - Added the char class and applied it to chars in the C language
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Bug 621132 - Added the char class and applied it to chars in the C language
- Date: Wed, 23 Jun 2010 09:40:51 +0000 (UTC)
commit da9c56f8a742b067ec2a0b94752c46ddc0f6985b
Author: Garrett Regier <alias301 gmail com>
Date: Tue Jun 22 08:57:10 2010 -0700
Bug 621132 - Added the char class and applied it to chars in the C language
data/language-specs/c.lang | 2 +-
gtksourceview/gtksourcebuffer.c | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/data/language-specs/c.lang b/data/language-specs/c.lang
index 18846cd..2cafdf9 100644
--- a/data/language-specs/c.lang
+++ b/data/language-specs/c.lang
@@ -157,7 +157,7 @@
</include>
</context>
- <context id="char" style-ref="char">
+ <context id="char" style-ref="char" class="char">
<match>L?'(\%{escaped-character}|.)'</match>
</context>
diff --git a/gtksourceview/gtksourcebuffer.c b/gtksourceview/gtksourcebuffer.c
index 4edb13c..0081941 100644
--- a/gtksourceview/gtksourcebuffer.c
+++ b/gtksourceview/gtksourcebuffer.c
@@ -1039,6 +1039,7 @@ gtk_source_buffer_real_delete_range (GtkTextBuffer *buffer,
static const gchar *cclass_mask_definitions[] = {
"comment",
"string",
+ "char"
};
static gint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]