[gtksourceview] latex: apply no-spell-check context class for headings
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] latex: apply no-spell-check context class for headings
- Date: Thu, 1 Oct 2015 14:46:34 +0000 (UTC)
commit 78f67beab916a688541b70870f38d670a4c056e1
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Oct 1 16:40:23 2015 +0200
latex: apply no-spell-check context class for headings
Now that LaTeXila uses the no-spell-check region to not spell check
LaTeX commands, this bug was visible.
data/language-specs/latex.lang | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/data/language-specs/latex.lang b/data/language-specs/latex.lang
index 397b974..498d5ba 100644
--- a/data/language-specs/latex.lang
+++ b/data/language-specs/latex.lang
@@ -377,71 +377,71 @@
<context id="headings">
<include>
- <context id="part" style-inside="true" style-ref="part" end-at-line-end="true">
+ <context id="part" style-inside="true" style-ref="part" end-at-line-end="true"
class-disabled="no-spell-check">
<start>(\\part\*?)\{</start>
<end>\}</end>
<include>
- <context sub-pattern="1" where="start" style-ref="common-commands"/>
+ <context sub-pattern="1" where="start" style-ref="common-commands" class="no-spell-check"/>
<context ref="curly-braces-pair"/>
<context ref="latex"/>
</include>
</context>
- <context id="chapter" style-inside="true" style-ref="chapter" end-at-line-end="true">
+ <context id="chapter" style-inside="true" style-ref="chapter" end-at-line-end="true"
class-disabled="no-spell-check">
<start>(\\chapter\*?)\{</start>
<end>\}</end>
<include>
- <context sub-pattern="1" where="start" style-ref="common-commands"/>
+ <context sub-pattern="1" where="start" style-ref="common-commands" class="no-spell-check"/>
<context ref="curly-braces-pair"/>
<context ref="latex"/>
</include>
</context>
- <context id="section" style-inside="true" style-ref="section" end-at-line-end="true">
+ <context id="section" style-inside="true" style-ref="section" end-at-line-end="true"
class-disabled="no-spell-check">
<start>(\\section\*?)\{</start>
<end>\}</end>
<include>
- <context sub-pattern="1" where="start" style-ref="common-commands"/>
+ <context sub-pattern="1" where="start" style-ref="common-commands" class="no-spell-check"/>
<context ref="curly-braces-pair"/>
<context ref="latex"/>
</include>
</context>
- <context id="subsection" style-inside="true" style-ref="subsection" end-at-line-end="true">
+ <context id="subsection" style-inside="true" style-ref="subsection" end-at-line-end="true"
class-disabled="no-spell-check">
<start>(\\subsection\*?)\{</start>
<end>\}</end>
<include>
- <context sub-pattern="1" where="start" style-ref="common-commands"/>
+ <context sub-pattern="1" where="start" style-ref="common-commands" class="no-spell-check"/>
<context ref="curly-braces-pair"/>
<context ref="latex"/>
</include>
</context>
- <context id="subsubsection" style-inside="true" style-ref="subsubsection" end-at-line-end="true">
+ <context id="subsubsection" style-inside="true" style-ref="subsubsection" end-at-line-end="true"
class-disabled="no-spell-check">
<start>(\\subsubsection\*?)\{</start>
<end>\}</end>
<include>
- <context sub-pattern="1" where="start" style-ref="common-commands"/>
+ <context sub-pattern="1" where="start" style-ref="common-commands" class="no-spell-check"/>
<context ref="curly-braces-pair"/>
<context ref="latex"/>
</include>
</context>
- <context id="paragraph" style-inside="true" style-ref="paragraph" end-at-line-end="true">
+ <context id="paragraph" style-inside="true" style-ref="paragraph" end-at-line-end="true"
class-disabled="no-spell-check">
<start>(\\paragraph\*?)\{</start>
<end>\}</end>
<include>
- <context sub-pattern="1" where="start" style-ref="common-commands"/>
+ <context sub-pattern="1" where="start" style-ref="common-commands" class="no-spell-check"/>
<context ref="curly-braces-pair"/>
<context ref="latex"/>
</include>
</context>
- <context id="subparagraph" style-inside="true" style-ref="subparagraph" end-at-line-end="true">
+ <context id="subparagraph" style-inside="true" style-ref="subparagraph" end-at-line-end="true"
class-disabled="no-spell-check">
<start>(\\subparagraph\*?)\{</start>
<end>\}</end>
<include>
- <context sub-pattern="1" where="start" style-ref="common-commands"/>
+ <context sub-pattern="1" where="start" style-ref="common-commands" class="no-spell-check"/>
<context ref="curly-braces-pair"/>
<context ref="latex"/>
</include>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]