[gtksourceview] Technically sizeof is an operator
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Technically sizeof is an operator
- Date: Mon, 19 Mar 2012 22:54:40 +0000 (UTC)
commit da4156641fbac878f17e22131fa5f102dc27839f
Author: Paolo Borelli <pborelli gnome org>
Date: Mon Mar 19 23:37:04 2012 +0100
Technically sizeof is an operator
Pointed out in bug #660060
data/language-specs/c.lang | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/data/language-specs/c.lang b/data/language-specs/c.lang
index 14b0577..943ca5f 100644
--- a/data/language-specs/c.lang
+++ b/data/language-specs/c.lang
@@ -39,6 +39,7 @@
<style id="included-file" _name="Included File" map-to="def:string"/>
<style id="char" _name="Character" map-to="def:character"/>
<style id="keyword" _name="Keyword" map-to="def:keyword"/>
+ <style id="operator" _name="Operator" map-to="def:operator"/>
<style id="type" _name="Data Type" map-to="def:type"/>
<style id="storage-class" _name="Storage Class" map-to="def:type"/>
<style id="printf" _name="printf Conversion" map-to="def:special-char"/>
@@ -173,7 +174,6 @@
</match>
</context>
- <!-- Keywords -->
<context id="keywords" style-ref="keyword">
<keyword>asm</keyword>
<keyword>break</keyword>
@@ -188,7 +188,6 @@
<keyword>goto</keyword>
<keyword>if</keyword>
<keyword>return</keyword>
- <keyword>sizeof</keyword>
<keyword>struct</keyword>
<keyword>switch</keyword>
<keyword>typedef</keyword>
@@ -196,6 +195,10 @@
<keyword>while</keyword>
</context>
+ <context id="operators" style-ref="operator">
+ <keyword>sizeof</keyword>
+ </context>
+
<context id="types" style-ref="type">
<keyword>_Bool</keyword>
<keyword>_Complex</keyword>
@@ -296,6 +299,7 @@
<context ref="octal"/>
<context ref="decimal"/>
<context ref="keywords"/>
+ <context ref="operators"/>
<context ref="types"/>
<context ref="storage-class"/>
<context ref="boolean"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]