[gtksourceview] Removes comments from c.lang instead add ref to def c-like coments. Fixed all lang files that had re
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Removes comments from c.lang instead add ref to def c-like coments. Fixed all lang files that had re
- Date: Wed, 18 May 2011 17:30:15 +0000 (UTC)
commit a3206061017c27063dd16ad155f23bd535a10fd4
Author: Carnë Draug <carandraug+dev gmail com>
Date: Wed May 18 17:12:25 2011 +0100
Removes comments from c.lang instead add ref to def c-like coments. Fixed all lang files that had ref to comments context on c.lang
data/language-specs/c.lang | 27 +++------------------------
data/language-specs/cuda.lang | 4 ++--
data/language-specs/glsl.lang | 6 +++---
data/language-specs/opencl.lang | 4 ++--
data/language-specs/yacc.lang | 16 ++++++++--------
5 files changed, 18 insertions(+), 39 deletions(-)
---
diff --git a/data/language-specs/c.lang b/data/language-specs/c.lang
index 61e7273..bd6fbaf 100644
--- a/data/language-specs/c.lang
+++ b/data/language-specs/c.lang
@@ -33,7 +33,6 @@
<styles>
<style id="comment" _name="Comment" map-to="def:comment"/>
- <style id="error" _name="Error" map-to="def:error"/>
<style id="string" _name="String" map-to="def:string"/>
<style id="preprocessor" _name="Preprocessor" map-to="def:preprocessor"/>
<style id="common-defines" _name="Common Defines" map-to="def:special-constant"/>
@@ -81,26 +80,6 @@
</context>
<!--contexts used on the main context-->
- <!-- Comments -->
- <context id="comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
- <start>//</start>
- <include>
- <context ref="def:in-line-comment"/>
- </include>
- </context>
-
- <context id="comment-multiline" style-ref="comment" class="comment" class-disabled="no-spell-check">
- <start>/\*</start>
- <end>\*/</end>
- <include>
- <context ref="def:in-comment"/>
- </include>
- </context>
-
- <context id="close-comment-outside-comment" style-ref="error">
- <match>\*/(?!\*)</match>
- </context>
-
<!-- Preprocessor -->
<context id="if0-comment" style-ref="comment">
<start>\%{preproc-start}if\b\s*0\b</start>
@@ -298,9 +277,9 @@
<context id="c" class="no-spell-check">
<include>
<context ref="gtk-doc:inline-docs-section"/>
- <context ref="comment">
- <context ref="comment-multiline">
- <context ref="close-comment-outside-comment">
+ <context ref="def:c-like-comment">
+ <context ref="def:c-like-comment-multiline">
+ <context ref="def:c-like-close-comment-outside-comment">
<context ref="if0-comment">
<context ref="include">
<context ref="preprocessor">
diff --git a/data/language-specs/cuda.lang b/data/language-specs/cuda.lang
index 916d141..7c366ad 100644
--- a/data/language-specs/cuda.lang
+++ b/data/language-specs/cuda.lang
@@ -40,7 +40,7 @@
<definitions>
<context id="cuda">
<include>
- <context ref="c:comment"/>
+ <context ref="def:c-like-comment"/>
<context ref="c:string"/>
@@ -48,7 +48,7 @@
<context ref="c:storage-class"/>
- <context ref="c:comment-multiline"/>
+ <context ref="def:c-like-comment-multiline"/>
<context ref="c:char"/>
diff --git a/data/language-specs/glsl.lang b/data/language-specs/glsl.lang
index 31fc0d5..a198a30 100644
--- a/data/language-specs/glsl.lang
+++ b/data/language-specs/glsl.lang
@@ -458,9 +458,9 @@ http://www.opengl.org/registry/doc/GLSLangSpec.4.00.7.pdf
<context id="glsl">
<include>
- <context ref="c:comment"/>
- <context ref="c:comment-multiline"/>
- <context ref="c:close-comment-outside-comment"/>
+ <context ref="def:c-like-comment"/>
+ <context ref="def:c-like-comment-multiline"/>
+ <context ref="def:c-like-close-comment-outside-comment"/>
<context ref="c:if0-comment"/>
<context ref="preprocessor"/>
<context ref="common-macros"/>
diff --git a/data/language-specs/opencl.lang b/data/language-specs/opencl.lang
index 420aff0..80ce283 100644
--- a/data/language-specs/opencl.lang
+++ b/data/language-specs/opencl.lang
@@ -571,8 +571,8 @@
<context id="opencl">
<include>
<context ref="c:char"/>
- <context ref="c:comment"/>
- <context ref="c:comment-multiline"/>
+ <context ref="def:c-like-comment"/>
+ <context ref="def:c-like-comment-multiline"/>
<context ref="c:escaped-character"/>
<context ref="c:hexadecimal"/>
<context ref="c:if0-comment"/>
diff --git a/data/language-specs/yacc.lang b/data/language-specs/yacc.lang
index 4b20a7b..2168a13 100644
--- a/data/language-specs/yacc.lang
+++ b/data/language-specs/yacc.lang
@@ -88,8 +88,8 @@
<context ref="c:hexadecimal"/>
<context ref="c:octal"/>
<context ref="c:decimal"/>
- <context ref="c:comment"/>
- <context ref="c:comment-multiline"/>
+ <context ref="def:c-like-comment"/>
+ <context ref="def:c-like-comment-multiline"/>
</include>
</context>
@@ -98,8 +98,8 @@
<context ref="inline-c"/>
<context ref="options"/>
<context ref="token"/>
- <context ref="c:comment"/>
- <context ref="c:comment-multiline"/>
+ <context ref="def:c-like-comment"/>
+ <context ref="def:c-like-comment-multiline"/>
</include>
</context>
@@ -142,8 +142,8 @@
<end>;</end>
<include>
<context sub-pattern="0" where="start" style-ref="rule"/>
- <context ref="c:comment"/>
- <context ref="c:comment-multiline"/>
+ <context ref="def:c-like-comment"/>
+ <context ref="def:c-like-comment-multiline"/>
<context ref="c:char"/>
<context ref="c:string"/>
<context ref="rule-code"/>
@@ -154,8 +154,8 @@
<start>^%%</start>
<include>
<context sub-pattern="0" where="start" style-ref="keyword"/>
- <context ref="c:comment"/>
- <context ref="c:comment-multiline"/>
+ <context ref="def:c-like-comment"/>
+ <context ref="def:c-like-comment-multiline"/>
<context ref="c:char"/>
<context ref="c:string"/>
<context ref="rule"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]