[gtksourceview/wip/latex: 8/11] latex.lang: only one comment context
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/latex: 8/11] latex.lang: only one comment context
- Date: Wed, 27 Nov 2013 17:41:46 +0000 (UTC)
commit bf4136b998c415e017faab2762acb84aa9ae3adf
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Nov 23 22:00:49 2013 +0100
latex.lang: only one comment context
Rename verbatim-comment to comment-env, because it is not a verbatim,
and include it in the comment context.
data/language-specs/latex.lang | 27 +++++++++++++++------------
1 files changed, 15 insertions(+), 12 deletions(-)
---
diff --git a/data/language-specs/latex.lang b/data/language-specs/latex.lang
index 02b3225..9d57a96 100644
--- a/data/language-specs/latex.lang
+++ b/data/language-specs/latex.lang
@@ -197,19 +197,23 @@
</include>
</context>
- <context id="comment" style-ref="comment">
- <start>%</start>
- <end>$</end>
+ <context id="comment">
<include>
- <context ref="def:in-comment"/>
- </include>
- </context>
+ <context id="end-line-comment" style-ref="comment">
+ <start>%</start>
+ <end>$</end>
+ <include>
+ <context ref="def:in-comment"/>
+ </include>
+ </context>
- <context id="verbatim-comment" style-ref="comment" class="no-spell-check">
- <start>\\begin\{comment\}</start>
- <end>\\end\{comment\}</end>
- <include>
- <context ref="def:in-comment"/>
+ <context id="comment-env" style-ref="comment" class="no-spell-check">
+ <start>\\begin\{comment\}</start>
+ <end>\\end\{comment\}</end>
+ <include>
+ <context ref="def:in-comment"/>
+ </include>
+ </context>
</include>
</context>
@@ -323,7 +327,6 @@
<context id="latex">
<include>
<context ref="comment"/>
- <context ref="verbatim-comment"/>
<context ref="math-1"/>
<context ref="math-2"/>
<context ref="inline-math-1"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]