[gtksourceview] latex.lang: better support of no-spell-check for include commands
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] latex.lang: better support of no-spell-check for include commands
- Date: Fri, 29 Jul 2016 13:02:59 +0000 (UTC)
commit db21302a7281c9eef72da8172c9262c44bb829c6
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Jul 29 14:27:25 2016 +0200
latex.lang: better support of no-spell-check for include commands
Do not spell-check what is inside curly braces.
data/language-specs/latex.lang | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/data/language-specs/latex.lang b/data/language-specs/latex.lang
index fa33caf..14f381e 100644
--- a/data/language-specs/latex.lang
+++ b/data/language-specs/latex.lang
@@ -275,15 +275,6 @@
<keyword>zeta</keyword>
</context>
- <context id="include" style-ref="include" class="no-spell-check">
- <prefix>\\</prefix>
-
- <keyword>input</keyword>
- <keyword>include</keyword>
- <keyword>includeonly</keyword>
- <keyword>usepackage</keyword>
- </context>
-
<context id="generic-command" style-ref="command" class="no-spell-check" extend-parent="false">
<match>\\\@?[[:alnum:]]+\*?</match>
</context>
@@ -297,8 +288,8 @@
</include>
</context>
- <context id="usepackage" class="no-spell-check">
- <match>(\\usepackage)(\[.*\])?(\{.*\})?</match>
+ <context id="include" class="no-spell-check">
+ <match>(\\(input|include|includeonly|usepackage))(\[.*\])?(\{.*\})?</match>
<include>
<context sub-pattern="1" style-ref="include"/>
</include>
@@ -580,7 +571,6 @@
<context ref="headings"/>
<context ref="math"/>
<context ref="specific-commands"/>
- <context ref="include"/>
<context ref="common-commands"/>
<context ref="special-char"/>
<context ref="generic-command"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]