[gtksourceview] Added comment, string and no-spell-check classes to lang files
- From: Paolo Borelli <pborelli src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtksourceview] Added comment, string and no-spell-check classes to lang files
- Date: Thu, 31 Dec 2009 15:37:52 +0000 (UTC)
commit f9fcb57b9fabdf72106741f0c7b4f25a45b7a3a6
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Thu Dec 31 16:04:31 2009 +0100
Added comment, string and no-spell-check classes to lang files
gtksourceview/language-specs/ada.lang | 6 ++--
gtksourceview/language-specs/asp.lang | 8 +++---
gtksourceview/language-specs/bibtex.lang | 4 +-
gtksourceview/language-specs/boo.lang | 12 ++++----
gtksourceview/language-specs/c.lang | 19 +++++++------
gtksourceview/language-specs/changelog.lang | 8 +++---
gtksourceview/language-specs/csharp.lang | 10 +++---
gtksourceview/language-specs/css.lang | 4 +-
gtksourceview/language-specs/d.lang | 14 +++++-----
gtksourceview/language-specs/def.lang | 18 ++++++------
gtksourceview/language-specs/dosbatch.lang | 6 ++--
gtksourceview/language-specs/dot.lang | 6 ++--
gtksourceview/language-specs/eiffel.lang | 10 +++---
gtksourceview/language-specs/erlang.lang | 6 ++--
gtksourceview/language-specs/fcl.lang | 4 +-
gtksourceview/language-specs/forth.lang | 18 ++++++------
gtksourceview/language-specs/fortran.lang | 4 +-
gtksourceview/language-specs/fsharp.lang | 8 +++---
gtksourceview/language-specs/gtkrc.lang | 8 +++---
gtksourceview/language-specs/haskell.lang | 8 +++---
gtksourceview/language-specs/html.lang | 16 ++++++------
gtksourceview/language-specs/idl.lang | 8 +++---
gtksourceview/language-specs/ini.lang | 6 ++--
gtksourceview/language-specs/java.lang | 8 +++---
gtksourceview/language-specs/javascript.lang | 10 +++---
gtksourceview/language-specs/latex.lang | 34 +++++++++++++++---------
gtksourceview/language-specs/lua.lang | 14 +++++-----
gtksourceview/language-specs/m4.lang | 6 ++--
gtksourceview/language-specs/mallard.lang | 8 +++---
gtksourceview/language-specs/nemerle.lang | 8 +++---
gtksourceview/language-specs/nsis.lang | 4 +-
gtksourceview/language-specs/objc.lang | 4 +-
gtksourceview/language-specs/ocaml.lang | 6 ++--
gtksourceview/language-specs/ocl.lang | 6 ++--
gtksourceview/language-specs/octave.lang | 10 +++---
gtksourceview/language-specs/pascal.lang | 10 +++---
gtksourceview/language-specs/perl.lang | 8 +++---
gtksourceview/language-specs/php.lang | 12 ++++----
gtksourceview/language-specs/po.lang | 4 +-
gtksourceview/language-specs/prolog.lang | 10 +++---
gtksourceview/language-specs/python.lang | 18 ++++++------
gtksourceview/language-specs/ruby.lang | 8 +++---
gtksourceview/language-specs/scheme.lang | 6 ++--
gtksourceview/language-specs/sh.lang | 8 +++---
gtksourceview/language-specs/sql.lang | 8 +++---
gtksourceview/language-specs/t2t.lang | 4 +-
gtksourceview/language-specs/texinfo.lang | 35 ++++++++++++++------------
gtksourceview/language-specs/vala.lang | 8 +++---
gtksourceview/language-specs/vbnet.lang | 8 +++---
gtksourceview/language-specs/verilog.lang | 6 ++--
gtksourceview/language-specs/vhdl.lang | 6 ++--
gtksourceview/language-specs/xml.lang | 24 +++++++++---------
52 files changed, 262 insertions(+), 250 deletions(-)
---
diff --git a/gtksourceview/language-specs/ada.lang b/gtksourceview/language-specs/ada.lang
index c258e3d..e8e8486 100644
--- a/gtksourceview/language-specs/ada.lang
+++ b/gtksourceview/language-specs/ada.lang
@@ -47,14 +47,14 @@
<definitions>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-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="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<!-- no escapes possible except for "" = literal " -->
@@ -199,7 +199,7 @@
<keyword>false</keyword>
</context>
- <context id="ada">
+ <context id="ada" class="no-spell-check">
<include>
<context ref="line-comment"/>
<context ref="string"/>
diff --git a/gtksourceview/language-specs/asp.lang b/gtksourceview/language-specs/asp.lang
index d6fcd8e..4376858 100644
--- a/gtksourceview/language-specs/asp.lang
+++ b/gtksourceview/language-specs/asp.lang
@@ -46,21 +46,21 @@
<definitions>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-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="old-style-comment" style-ref="comment" end-at-line-end="true">
+ <context id="old-style-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>^rem</start>
<include>
<context ref="def:in-line-comment"/>
</include>
</context>
- <context id="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
</context>
@@ -1084,7 +1084,7 @@ the standard language for ASP.
</include>
</context>
- <context id="asp">
+ <context id="asp" class="no-spell-check">
<include>
<context ref="asp-block"/>
<context ref="html:html"/>
diff --git a/gtksourceview/language-specs/bibtex.lang b/gtksourceview/language-specs/bibtex.lang
index a7f2a3f..c6b3e99 100644
--- a/gtksourceview/language-specs/bibtex.lang
+++ b/gtksourceview/language-specs/bibtex.lang
@@ -36,7 +36,7 @@
<definitions>
- <context id="entry-type" style-ref="entry-type">
+ <context id="entry-type" style-ref="entry-type" class="no-spell-check">
<prefix>@</prefix>
<keyword>book</keyword>
@@ -56,7 +56,7 @@
<keyword>unpublished</keyword>
</context>
- <context id="field" style-ref="field">
+ <context id="field" style-ref="field" class="no-spell-check">
<keyword>author</keyword>
<keyword>title</keyword>
<keyword>journal</keyword>
diff --git a/gtksourceview/language-specs/boo.lang b/gtksourceview/language-specs/boo.lang
index 20f10a5..6116da4 100644
--- a/gtksourceview/language-specs/boo.lang
+++ b/gtksourceview/language-specs/boo.lang
@@ -47,14 +47,14 @@
<definitions>
- <context id="c-style-line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="c-style-line-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="block-comment" style-ref="comment">
+ <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
@@ -62,7 +62,7 @@
</include>
</context>
- <context id="multiline-string" style-ref="multiline-string">
+ <context id="multiline-string" style-ref="multiline-string" class="string" class-disabled="no-spell-check">
<start>"""</start>
<end>"""</end>
<include>
@@ -70,7 +70,7 @@
</include>
</context>
- <context id="double-quoted-string" style-ref="string" end-at-line-end="true">
+ <context id="double-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -79,7 +79,7 @@
</include>
</context>
- <context id="single-quoted-string" style-ref="string" end-at-line-end="true">
+ <context id="single-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>'</start>
<end>'</end>
<include>
@@ -231,7 +231,7 @@
<keyword>zip</keyword>
</context>
- <context id="boo">
+ <context id="boo" class="no-spell-check">
<include>
<context ref="def:shell-like-comment" style-ref="comment"/>
<context ref="c-style-line-comment"/>
diff --git a/gtksourceview/language-specs/c.lang b/gtksourceview/language-specs/c.lang
index 8b78b4e..7b8610f 100644
--- a/gtksourceview/language-specs/c.lang
+++ b/gtksourceview/language-specs/c.lang
@@ -73,21 +73,22 @@
)
</define-regex>
- <context id="c">
+ <context id="c" class="no-spell-check">
<include>
<!-- gtk-doc -->
<context ref="gtk-doc:inline-docs-section"/>
<!-- Comments -->
- <context id="comment" style-ref="comment" end-at-line-end="true">
+ <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">
+ <context id="comment-multiline" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
@@ -143,7 +144,7 @@
</include>
</context>
- <context id="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>L?"</start>
<end>"</end>
<include>
@@ -195,7 +196,7 @@
</context>
<!-- Keywords -->
- <context id="keywords" style-ref="keyword">
+ <context id="keywords" style-ref="keyword" class="keyword">
<keyword>asm</keyword>
<keyword>break</keyword>
<keyword>case</keyword>
@@ -217,7 +218,7 @@
<keyword>while</keyword>
</context>
- <context id="types" style-ref="type">
+ <context id="types" style-ref="type" class="type">
<keyword>_Bool</keyword>
<keyword>_Complex</keyword>
<keyword>_Imaginary</keyword>
@@ -234,7 +235,7 @@
<keyword>void</keyword>
</context>
- <context id="storage-class" style-ref="storage-class">
+ <context id="storage-class" style-ref="storage-class" class="storage-class">
<keyword>auto</keyword>
<keyword>const</keyword>
<keyword>extern</keyword>
@@ -245,7 +246,7 @@
<keyword>volatile</keyword>
</context>
- <context id="common-defines" style-ref="common-defines">
+ <context id="common-defines" style-ref="common-defines" class="common-defines">
<keyword>NULL</keyword>
<keyword>MAX</keyword>
<keyword>MIN</keyword>
@@ -260,7 +261,7 @@
</context>
<!-- C99 booleans -->
- <context id="boolean" style-ref="boolean">
+ <context id="boolean" style-ref="boolean" class="boolean">
<keyword>true</keyword>
<keyword>false</keyword>
</context>
diff --git a/gtksourceview/language-specs/changelog.lang b/gtksourceview/language-specs/changelog.lang
index fd4b250..bf647eb 100644
--- a/gtksourceview/language-specs/changelog.lang
+++ b/gtksourceview/language-specs/changelog.lang
@@ -51,7 +51,7 @@
<context id="changelog">
<include>
- <context id="date-and-stuff">
+ <context id="date-and-stuff" class="no-spell-check">
<!-- FIXME: how to match date here? The date and name line is
something like (DATE) (NAME) <EMAIL>, where DATE and NAME may
be quite arbitrary. -->
@@ -67,11 +67,11 @@
</include>
</context>
- <context id="release" style-ref="release">
+ <context id="release" style-ref="release" class="no-spell-check">
<match>^\s*\=.*\=\s*$</match>
</context>
- <context id="file" style-ref="file">
+ <context id="file" style-ref="file" class="no-spell-check">
<start>^\s+(\*)</start>
<!-- end at blank lines if there's no colon -->
<end>\:|^(?!\S)</end>
@@ -80,7 +80,7 @@
</include>
</context>
- <context id="function" style-ref="function">
+ <context id="function" style-ref="function" class="no-spell-check">
<match>\(\s*\%{identifier}\s*\)</match>
</context>
diff --git a/gtksourceview/language-specs/csharp.lang b/gtksourceview/language-specs/csharp.lang
index 3f7892b..0c75d09 100644
--- a/gtksourceview/language-specs/csharp.lang
+++ b/gtksourceview/language-specs/csharp.lang
@@ -51,14 +51,14 @@
<definitions>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-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="multiline-comment" style-ref="comment">
+ <context id="multiline-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
@@ -100,7 +100,7 @@
</include>
</context>
- <context id="multiline-string" style-ref="string">
+ <context id="multiline-string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>@"</start>
<end>"</end>
</context>
@@ -238,7 +238,7 @@
)
</define-regex>
- <context id="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -257,7 +257,7 @@
<match>'(\%{escaped-character}|.)'</match>
</context>
- <context id="c-sharp">
+ <context id="c-sharp" class="no-spell-check">
<include>
<context ref="multiline-string"/>
<context ref="string"/>
diff --git a/gtksourceview/language-specs/css.lang b/gtksourceview/language-specs/css.lang
index e6409ab..4d45aab 100644
--- a/gtksourceview/language-specs/css.lang
+++ b/gtksourceview/language-specs/css.lang
@@ -58,7 +58,7 @@
<definitions>
- <context id="comment" style-ref="comment">
+ <context id="comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
@@ -481,7 +481,7 @@
<match>[*#.>+]</match>
</context>
- <context id="css">
+ <context id="css" class="no-spell-check">
<include>
<context ref="def:string"/>
<context ref="def:single-quoted-string"/>
diff --git a/gtksourceview/language-specs/d.lang b/gtksourceview/language-specs/d.lang
index 1653111..eddb729 100644
--- a/gtksourceview/language-specs/d.lang
+++ b/gtksourceview/language-specs/d.lang
@@ -53,14 +53,14 @@
<definitions>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-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="block-comment" style-ref="comment">
+ <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
@@ -72,7 +72,7 @@
<match>\*/(?!\*)</match>
</context>
- <context id="nesting-comment" style-ref="comment">
+ <context id="nesting-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\+</start>
<end>\+/</end>
<include>
@@ -81,7 +81,7 @@
</include>
</context>
- <context id="double-quoted-string" style-ref="string">
+ <context id="double-quoted-string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -90,7 +90,7 @@
</include>
</context>
- <context id="single-quoted-string" style-ref="string" end-at-line-end="true">
+ <context id="single-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>'</start>
<end>'</end>
<include>
@@ -99,7 +99,7 @@
</include>
</context>
- <context id="backtick-quoted-string" style-ref="string">
+ <context id="backtick-quoted-string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>`</start>
<end>`</end>
<include>
@@ -267,7 +267,7 @@
</match>
</context>
- <context id="d">
+ <context id="d" class="no-spell-check">
<include>
<context ref="def:shebang"/>
<context ref="line-comment"/>
diff --git a/gtksourceview/language-specs/def.lang b/gtksourceview/language-specs/def.lang
index 17087eb..e5035ae 100644
--- a/gtksourceview/language-specs/def.lang
+++ b/gtksourceview/language-specs/def.lang
@@ -180,14 +180,14 @@
</context>
<!-- FIXME is it working at line end? -->
- <define-regex id="net-address" extended="true" case-sensitive="false">
+ <define-regex id="net-address" extended="true" case-sensitive="false" class="no-spell-check">
\%[ # separator
(https?|ftp|nntp|news|javascript|about): # protocol
[^\ \\]* [^\ \\.:;,?><)] # address
(?![a-z0-9_.-]) # separator
</define-regex>
- <define-regex id="email-address" extended="true" case-sensitive="false">
+ <define-regex id="email-address" extended="true" case-sensitive="false" class="no-spell-check">
\%[ # separator
(mailto:)? # optional "mailto:"
[a-z0-9_.+-]+ # user name
@@ -196,7 +196,7 @@
\%] # separator
</define-regex>
- <context id="in-comment">
+ <context id="in-comment" class-disabled="no-spell-check">
<include>
<context id="net-address" extend-parent="false" style-ref="underlined">
<match>\%{net-address}</match>
@@ -204,14 +204,14 @@
<context id="email-address" extend-parent="false" style-ref="underlined">
<match>\%{email-address}</match>
</context>
- <context id="comment-note" extend-parent="false" style-ref="note">
+ <context id="comment-note" extend-parent="false" style-ref="note" class="no-spell-check">
<match>\b(FIXME|TODO|XXX)\b</match>
</context>
</include>
</context>
<!-- A line comment starting with # -->
- <context id="shell-like-comment" style-ref="comment" end-at-line-end="true">
+ <context id="shell-like-comment" style-ref="comment" end-at-line-end="true" class-disabled="no-spell-check">
<start>#</start>
<include>
<context ref="in-comment"/>
@@ -225,14 +225,14 @@
<!-- this is intended to be used from line comments
that can continue on a different line after "\" -->
- <context id="in-line-comment">
+ <context id="in-line-comment" class-disabled="no-spell-check">
<include>
<context ref="line-continue" ignore-style="true"/>
<context ref="in-comment"/>
</include>
</context>
- <context id="shebang" style-ref="shebang" first-line-only="true">
+ <context id="shebang" style-ref="shebang" first-line-only="true" class="no-spell-check">
<start>^#!</start>
<end>$</end>
</context>
@@ -242,7 +242,7 @@
</context>
<!-- usual quoted string, ends at line end, \ is an escape char -->
- <context id="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -252,7 +252,7 @@
</context>
<!-- same thing but with single quote marks -->
- <context id="single-quoted-string" style-ref="string" end-at-line-end="true">
+ <context id="single-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>'</start>
<end>'</end>
<include>
diff --git a/gtksourceview/language-specs/dosbatch.lang b/gtksourceview/language-specs/dosbatch.lang
index 4e70d19..e45102e 100644
--- a/gtksourceview/language-specs/dosbatch.lang
+++ b/gtksourceview/language-specs/dosbatch.lang
@@ -37,14 +37,14 @@
<definitions>
- <context id="comment" style-ref="comment" end-at-line-end="true">
+ <context id="comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>^\s*(rem\b|:\s*:)</start>
<include>
<context ref="def:in-comment"/>
</include>
</context>
- <context id="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
</context>
@@ -153,7 +153,7 @@
<keyword>xcopy</keyword>
</context>
- <context id="dosbatch">
+ <context id="dosbatch" class="no-spell-check">
<include>
<context ref="comment"/>
<context ref="string"/>
diff --git a/gtksourceview/language-specs/dot.lang b/gtksourceview/language-specs/dot.lang
index f233876..e246126 100644
--- a/gtksourceview/language-specs/dot.lang
+++ b/gtksourceview/language-specs/dot.lang
@@ -38,14 +38,14 @@
<definitions>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-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="block-comment" style-ref="comment">
+ <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
@@ -123,7 +123,7 @@
<keyword>width</keyword>
</context>
- <context id="dot">
+ <context id="dot" class="no-spell-check">
<include>
<context ref="line-comment"/>
<context ref="block-comment"/>
diff --git a/gtksourceview/language-specs/eiffel.lang b/gtksourceview/language-specs/eiffel.lang
index ffb43c7..c7c6469 100644
--- a/gtksourceview/language-specs/eiffel.lang
+++ b/gtksourceview/language-specs/eiffel.lang
@@ -49,19 +49,19 @@
<definitions>
- <context id="single-quoted-string" style-ref="string">
+ <context id="single-quoted-string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>'</start>
<end>'</end>
</context>
- <context id="multi-line-string" style-ref="string">
+ <context id="multi-line-string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>"\[</start>
<end>\]"</end>
</context>
- <context id="double-quoted-string" style-ref="string">
+ <context id="double-quoted-string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -75,7 +75,7 @@
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>--</start>
<include>
<context ref="def:in-comment"/>
@@ -216,7 +216,7 @@
</match>
</context>
- <context id="eiffel">
+ <context id="eiffel" class="no-spell-check">
<include>
<context ref="single-quoted-string"/>
<context ref="multi-line-string"/>
diff --git a/gtksourceview/language-specs/erlang.lang b/gtksourceview/language-specs/erlang.lang
index f55cb4b..e500472 100644
--- a/gtksourceview/language-specs/erlang.lang
+++ b/gtksourceview/language-specs/erlang.lang
@@ -42,7 +42,7 @@
<definitions>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-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"/>
@@ -88,7 +88,7 @@
</include>
</context>
- <context id="string" style-ref="string">
+ <context id="string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -228,7 +228,7 @@
<keyword>undef</keyword>
</context>
- <context id="erlang">
+ <context id="erlang" class="no-spell-check">
<include>
<context ref="line-comment"/>
<context ref="keywords"/>
diff --git a/gtksourceview/language-specs/fcl.lang b/gtksourceview/language-specs/fcl.lang
index fd0b4db..2c77ace 100644
--- a/gtksourceview/language-specs/fcl.lang
+++ b/gtksourceview/language-specs/fcl.lang
@@ -36,7 +36,7 @@
</styles>
<definitions>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>//</start>
<include>
<context ref="def:in-comment"/>
@@ -98,7 +98,7 @@
<match>\b([0-9]+[Ee][-]?[0-9]+|([0-9]*\.[0-9]+|[0-9]+\.)([Ee][-]?[0-9]+)?)[fFlL]?</match>
</context>
- <context id="fcl">
+ <context id="fcl" class="no-spell-check">
<include>
<context ref="line-comment"/>
<context ref="keyword"/>
diff --git a/gtksourceview/language-specs/forth.lang b/gtksourceview/language-specs/forth.lang
index 40bdb65..7324001 100644
--- a/gtksourceview/language-specs/forth.lang
+++ b/gtksourceview/language-specs/forth.lang
@@ -44,10 +44,10 @@
<default-regex-options case-sensitive="false"/>
<definitions>
- <context id="forth">
+ <context id="forth" class="no-spell-check">
<include>
<!-- single line comments \ \G -->
- <context id="comment" style-ref="comment" end-at-line-end="true">
+ <context id="comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>(?<![^\s])(\\|--|\\G)(?![^\s])</start>
<include>
<context ref="def:in-line-comment"/>
@@ -55,7 +55,7 @@
</context>
<!-- multiline comments ending with ")" ( (S (F -->
- <context id="comment-multiline" style-ref="comment">
+ <context id="comment-multiline" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>(?<![^\s])(\(|\(S|\(F)(?![^\s])</start>
<end>\)</end>
<include>
@@ -64,7 +64,7 @@
</context>
<!-- multiline comment (* ....*) -->
- <context id="comment-multiline2" style-ref="comment">
+ <context id="comment-multiline2" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>(?<![^\s])\(\*(?![^\s])</start>
<end>\*\)(?![^\s])</end>
<include>
@@ -73,7 +73,7 @@
</context>
<!-- multiline comment DOC ... ENDDOC -->
- <context id="comment-multiline3" style-ref="comment">
+ <context id="comment-multiline3" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>(?<![^\s])DOC(?![^\s])</start>
<end>(?<![^\s])ENDDOC(?![^\s])</end>
<include>
@@ -128,25 +128,25 @@
</context>
<!-- strings ended by a " S" ." EVAL" C" Z" -->
- <context id="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>(?<![^\s])(S|[.]|EVAL|C|Z|,)"\s</start>
<end>"</end>
</context>
<!-- strings ended by a ~ character when " is inside a string: .~ -->
- <context id="string2" style-ref="string" end-at-line-end="true">
+ <context id="string2" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>(?<![^\s])(.~)\s</start>
<end>~</end>
</context>
<!-- comment string .( ..) -->
- <context id="string3" style-ref="string" end-at-line-end="true">
+ <context id="string3" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>(?<![^\s])[.]\(\s</start>
<end>\)</end>
</context>
<!-- error strings ending with " ABORT" ?ERROR" -->
- <context id="errorstring" style-ref="error" end-at-line-end="true">
+ <context id="errorstring" style-ref="error" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>(?<![^\s])(ABORT|\?ERROR)"\s</start>
<end>"</end>
</context>
diff --git a/gtksourceview/language-specs/fortran.lang b/gtksourceview/language-specs/fortran.lang
index 9f73de2..355d8be 100644
--- a/gtksourceview/language-specs/fortran.lang
+++ b/gtksourceview/language-specs/fortran.lang
@@ -43,7 +43,7 @@
<definitions>
<!-- Note: contains an hack to avoid considering ^COMMON a comment -->
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>!|(^[Cc](\b|[^Oo]))</start>
<include>
<context ref="def:escape"/>
@@ -489,7 +489,7 @@
</match>
</context>
- <context id="fortran">
+ <context id="fortran" class="no-spell-check">
<include>
<context ref="floating-point-number"/>
<context ref="decimal"/>
diff --git a/gtksourceview/language-specs/fsharp.lang b/gtksourceview/language-specs/fsharp.lang
index 678c82f..c46b6ed 100644
--- a/gtksourceview/language-specs/fsharp.lang
+++ b/gtksourceview/language-specs/fsharp.lang
@@ -60,14 +60,14 @@
<match>\%{char-esc}</match>
</context>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-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="multiline-comment" style-ref="comment">
+ <context id="multiline-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>\(\*</start>
<end>\*\)</end>
<include>
@@ -76,7 +76,7 @@
</include>
</context>
- <context id="if0-comment" style-ref="comment">
+ <context id="if0-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>\%{preproc-start}if\b\s*0\b</start>
<end>\%{preproc-start}(endif|else|elif)\b</end>
<include>
@@ -264,7 +264,7 @@
</context>
<!-- main context -->
- <context id="fsharp">
+ <context id="fsharp" class="no-spell-check">
<include>
<context ref="keywords"/>
<context ref="keysymbol"/>
diff --git a/gtksourceview/language-specs/gtkrc.lang b/gtksourceview/language-specs/gtkrc.lang
index 2ffa680..35ee39a 100644
--- a/gtksourceview/language-specs/gtkrc.lang
+++ b/gtksourceview/language-specs/gtkrc.lang
@@ -40,7 +40,7 @@
</styles>
<definitions>
- <context id="double-quoted-string" style-ref="string" end-at-line-end="true">
+ <context id="double-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -48,7 +48,7 @@
<context ref="def:line-continue"/>
</include>
</context>
- <context id="single-quoted-string" style-ref="string" end-at-line-end="true">
+ <context id="single-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>'</start>
<end>'</end>
<include>
@@ -56,7 +56,7 @@
<context ref="def:line-continue"/>
</include>
</context>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>#</start>
<include>
<context ref="def:escape"/>
@@ -97,7 +97,7 @@
<keyword>TRUE</keyword>
<keyword>FALSE</keyword>
</context>
- <context id="gtkrc">
+ <context id="gtkrc" class="no-spell-check">
<include>
<context ref="double-quoted-string"/>
<context ref="single-quoted-string"/>
diff --git a/gtksourceview/language-specs/haskell.lang b/gtksourceview/language-specs/haskell.lang
index 206d084..c86f6f9 100644
--- a/gtksourceview/language-specs/haskell.lang
+++ b/gtksourceview/language-specs/haskell.lang
@@ -48,7 +48,7 @@
<define-regex id="symbolchar">[!#$%&*+./>=<?@:\\^|~-]</define-regex>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>(?<!\%{symbolchar})--+(?!\%{symbolchar})</start>
<include>
<context ref="def:in-comment"/>
@@ -57,7 +57,7 @@
</include>
</context>
- <context id="block-comment" style-ref="comment">
+ <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>\{-</start>
<end>-\}</end>
<include>
@@ -118,7 +118,7 @@
)
</define-regex>
- <context id="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -212,7 +212,7 @@
</include>
</context>
- <context id="haskell">
+ <context id="haskell" class="no-spell-check">
<include>
<context ref="def:shebang"/>
<context ref="c:if0-comment"/>
diff --git a/gtksourceview/language-specs/html.lang b/gtksourceview/language-specs/html.lang
index 20889f8..f9a3b02 100644
--- a/gtksourceview/language-specs/html.lang
+++ b/gtksourceview/language-specs/html.lang
@@ -42,7 +42,7 @@
<definitions>
<!-- Html comments are more permissive than xml comments -->
- <context id="comment" style-ref="comment">
+ <context id="comment" style-ref="comment" class="comment">
<start><!--</start>
<end>--\s*></end>
<include>
@@ -50,7 +50,7 @@
</include>
</context>
- <context id="dtd" style-ref="dtd">
+ <context id="dtd" style-ref="dtd" class="no-spell-check">
<start><!</start>
<end>></end>
</context>
@@ -68,7 +68,7 @@
<include>
<!-- Attribute in the form: name="value" -->
- <context id="attrib-quoted" style-ref="attrib-name">
+ <context id="attrib-quoted" style-ref="attrib-name" class="no-spell-check">
<start extended="true">
[A-Za-z0-9:_-]+ # attribute name
\s*=\s* # "="
@@ -78,7 +78,7 @@
<include>
<context sub-pattern="1" where="start" style-ref="attrib-value"/>
<context sub-pattern="0" where="end" style-ref="attrib-value"/>
- <context id="string" extend-parent="false" end-at-line-end="true" style-ref="attrib-value">
+ <context id="string" extend-parent="false" end-at-line-end="true" style-ref="attrib-value" class="string" class-disabled="no-spell-check">
<start>\%{def:always-match}</start>
<include>
<context ref="xml:entity"/>
@@ -90,7 +90,7 @@
</context>
<!-- Attribute in the form: name=value -->
- <context id="attrib-unquoted" style-ref="attrib-value">
+ <context id="attrib-unquoted" style-ref="attrib-value" class="no-spell-check">
<start extended="true">
[a-z0-9:_-]+ # attribute name
\s*=\s* # "="
@@ -104,7 +104,7 @@
</context>
<!-- Attribute in the form: name -->
- <context id="attrib-no-value" style-ref="attrib-name">
+ <context id="attrib-no-value" style-ref="attrib-name" class="no-spell-check">
<match extended="true">
[a-z0-9:_-]+ # attribute name
</match>
@@ -115,7 +115,7 @@
</include>
</context>
- <context id="script">
+ <context id="script" class="no-spell-check">
<start><\s*script\%]</start>
<end>/>|<\s*/\s*script\s*></end>
@@ -133,7 +133,7 @@
</include>
</context>
- <context id="tag">
+ <context id="tag" class="no-spell-check">
<start><\s*/?\s*[a-z0-9_-]+</start>
<end>/?\s*></end>
<include>
diff --git a/gtksourceview/language-specs/idl.lang b/gtksourceview/language-specs/idl.lang
index 14e1a45..e797c84 100644
--- a/gtksourceview/language-specs/idl.lang
+++ b/gtksourceview/language-specs/idl.lang
@@ -36,7 +36,7 @@
</styles>
<definitions>
- <context id="block-comment" style-ref="comment">
+ <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
@@ -44,7 +44,7 @@
<context ref="def:line-continue"/>
</include>
</context>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>//</start>
<include>
<context ref="def:escape"/>
@@ -59,7 +59,7 @@
<context ref="def:line-continue"/>
</include>
</context>
- <context id="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -137,7 +137,7 @@
<keyword>endif</keyword>
<keyword>undef</keyword>
</context>
- <context id="idl">
+ <context id="idl" class="no-spell-check">
<include>
<context ref="block-comment"/>
<context ref="line-comment"/>
diff --git a/gtksourceview/language-specs/ini.lang b/gtksourceview/language-specs/ini.lang
index afce14a..e88d4c0 100644
--- a/gtksourceview/language-specs/ini.lang
+++ b/gtksourceview/language-specs/ini.lang
@@ -38,7 +38,7 @@
</styles>
<definitions>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>;</start>
</context>
<context id="group" style-ref="keyword">
@@ -66,7 +66,7 @@
<start>'</start>
<end>'</end>
</context>
- <context id="double-quoted-string" style-ref="string">
+ <context id="double-quoted-string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
</context>
@@ -76,7 +76,7 @@
<context id="decimal-number" style-ref="floating-point">
<match>(\b[0-9]+(\.[0-9]+)?|\.[0-9]+)([Ee][\+-]?[0-9]+)?\b</match>
</context>
- <context id="ini">
+ <context id="ini" class="no-spell-check">
<include>
<context ref="line-comment"/>
<context ref="group"/>
diff --git a/gtksourceview/language-specs/java.lang b/gtksourceview/language-specs/java.lang
index 2f2923b..57a6ba5 100644
--- a/gtksourceview/language-specs/java.lang
+++ b/gtksourceview/language-specs/java.lang
@@ -58,7 +58,7 @@
)
</define-regex>
- <context id="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -72,14 +72,14 @@
<match>'(\%{escaped-character}|.)'</match>
</context>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-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="block-comment" style-ref="comment">
+ <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
@@ -183,7 +183,7 @@
</match>
</context>
- <context id="java">
+ <context id="java" class="no-spell-check">
<include>
<context ref="string"/>
<context ref="char"/>
diff --git a/gtksourceview/language-specs/javascript.lang b/gtksourceview/language-specs/javascript.lang
index 9ce8155..11a320a 100644
--- a/gtksourceview/language-specs/javascript.lang
+++ b/gtksourceview/language-specs/javascript.lang
@@ -49,11 +49,11 @@
</styles>
<definitions>
- <context id="js">
+ <context id="js" class="no-spell-check">
<include>
<!-- Comments -->
- <context id="line-comment" style-ref="comment">
+ <context id="line-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>//</start>
<end>$</end>
<include>
@@ -62,7 +62,7 @@
</include>
</context>
- <context id="block-comment" style-ref="comment">
+ <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
@@ -75,7 +75,7 @@
</context>
<!-- Strings -->
- <context id="string-double" end-at-line-end="true" style-ref="string">
+ <context id="string-double" end-at-line-end="true" style-ref="string" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -84,7 +84,7 @@
</include>
</context>
- <context id="string-single" end-at-line-end="true" style-ref="string">
+ <context id="string-single" end-at-line-end="true" style-ref="string" class="string" class-disabled="no-spell-check">
<start>'</start>
<end>'</end>
<include>
diff --git a/gtksourceview/language-specs/latex.lang b/gtksourceview/language-specs/latex.lang
index 61c0993..c681ad1 100644
--- a/gtksourceview/language-specs/latex.lang
+++ b/gtksourceview/language-specs/latex.lang
@@ -45,7 +45,7 @@
</styles>
<definitions>
- <context id="common-commands" style-ref="common-commands">
+ <context id="common-commands" style-ref="common-commands" class="no-spell-check">
<prefix>\\</prefix>
<keyword>Alpha</keyword>
@@ -157,7 +157,7 @@
<keyword>zeta</keyword>
</context>
- <context id="specials-symbol" style-ref="command">
+ <context id="specials-symbol" style-ref="command" class="no-spell-check">
<prefix>\\</prefix>
<suffix></suffix>
@@ -173,11 +173,11 @@
<keyword>\\</keyword>
</context>
- <context id="command" style-ref="command">
+ <context id="command" style-ref="command" class="no-spell-check">
<match>\\[a-zA-Z]+</match>
</context>
- <context id="in-math">
+ <context id="in-math" class="no-spell-check">
<include>
<context ref="common-commands"/>
<context ref="specials-symbol"/>
@@ -185,7 +185,7 @@
</include>
</context>
- <context id="in-inline-math">
+ <context id="in-inline-math" class="no-spell-check">
<include>
<context ref="common-commands"/>
<context ref="specials-symbol"/>
@@ -204,7 +204,7 @@
</include>
</context>
- <context id="verbatim-comment" style-ref="comment">
+ <context id="verbatim-comment" style-ref="comment" class="no-spell-check">
<start>\\begin\{comment\}</start>
<end>\\end\{comment\}</end>
<include>
@@ -212,7 +212,7 @@
</include>
</context>
- <context id="math-1" style-ref="math">
+ <context id="math-1" style-ref="math" class="no-spell-check">
<start>\$\$</start>
<end>\$\$</end>
<include>
@@ -222,7 +222,7 @@
</include>
</context>
- <context id="math-2" style-ref="math">
+ <context id="math-2" style-ref="math" class="no-spell-check">
<start>\\\[</start>
<end>\\\]</end>
<include>
@@ -232,7 +232,7 @@
</include>
</context>
- <context id="inline-math-1" style-ref="inline-math">
+ <context id="inline-math-1" style-ref="inline-math" class="no-spell-check">
<start>\$</start>
<end>\$</end>
<include>
@@ -242,7 +242,7 @@
</include>
</context>
- <context id="inline-math-2" style-ref="inline-math">
+ <context id="inline-math-2" style-ref="inline-math" class="no-spell-check">
<start>\\\(</start>
<end>\\\)</end>
<include>
@@ -252,7 +252,7 @@
</include>
</context>
- <context id="verbatim-env" style-ref="verbatim">
+ <context id="verbatim-env" style-ref="verbatim" class-disabled="no-spell-check">
<start extended="true">
\\begin\{
(
@@ -263,14 +263,22 @@
\}
</start>
<end>\\end\{\%{1 start}\}</end>
+ <include>
+ <context sub-pattern="0" where="start" class="no-spell-check"/>
+ <context sub-pattern="0" where="end" class="no-spell-check"/>
+ </include>
</context>
- <context id="verbatim-inline" style-ref="verbatim">
+ <context id="verbatim-inline" style-ref="verbatim" class-disabled="no-spell-check">
<start>\\(verb\*?|lstinline)(\S)</start>
<end>\%{2 start}</end>
+ <include>
+ <context sub-pattern="0" where="start" class="no-spell-check"/>
+ <context sub-pattern="0" where="end" class="no-spell-check"/>
+ </include>
</context>
- <context id="include" style-ref="include">
+ <context id="include" style-ref="include" class="no-spell-check">
<prefix>\\</prefix>
<keyword>input</keyword>
diff --git a/gtksourceview/language-specs/lua.lang b/gtksourceview/language-specs/lua.lang
index e430006..de63bf7 100644
--- a/gtksourceview/language-specs/lua.lang
+++ b/gtksourceview/language-specs/lua.lang
@@ -45,7 +45,7 @@
<match>\\(\d\d?\d?|.)</match>
</context>
- <context id="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>["']</start>
<end>\%{0 start}</end>
<include>
@@ -54,12 +54,12 @@
</include>
</context>
- <context id="multi-line-string" style-ref="string">
+ <context id="multi-line-string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>\[(=*)\[</start>
<end>]\%{1 start}]</end>
</context>
- <context id="block-comment" style-ref="comment">
+ <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>--\[(=*)\[</start>
<end>]\%{1 start}]</end>
<include>
@@ -67,7 +67,7 @@
</include>
</context>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>--</start>
<include>
<context ref="def:in-comment"/>
@@ -137,7 +137,7 @@
<keyword>true</keyword>
</context>
- <context id="lua">
+ <context id="lua" class="no-spell-check">
<include>
<context ref="def:shebang"/>
<context ref="multi-line-string"/>
@@ -145,8 +145,8 @@
<context ref="block-comment"/>
<context ref="line-comment"/>
<context ref="keywords"/>
- <context ref="functions"/>
- <context ref="lua-reserved"/>
+ <context ref="functions"/>
+ <context ref="lua-reserved"/>
<context ref="nil-value"/>
<context ref="boolean"/>
</include>
diff --git a/gtksourceview/language-specs/m4.lang b/gtksourceview/language-specs/m4.lang
index 1631c2a..d996f37 100644
--- a/gtksourceview/language-specs/m4.lang
+++ b/gtksourceview/language-specs/m4.lang
@@ -66,7 +66,7 @@
</include>
</context>
- <context id="m4-comment" style-ref="m4-comment" end-at-line-end="true">
+ <context id="m4-comment" style-ref="m4-comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>dnl</start>
<include>
<context ref="def:in-line-comment"/>
@@ -330,7 +330,7 @@
</include>
</context>
- <context id="shell-line-comment" style-ref="sh:comment" end-at-line-end="true">
+ <context id="shell-line-comment" style-ref="sh:comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>(?<!\S)#|(?<=\[)#</start>
<include>
<context ref="sh:line-comment" original="true"/>
@@ -340,7 +340,7 @@
<replace id="sh:sh" ref="m4"/>
<replace id="sh:line-comment" ref="shell-line-comment"/>
- <context id="m4">
+ <context id="m4" class="no-spell-check">
<include>
<context ref="m4-quoted-shell"/>
<context ref="m4-pure"/>
diff --git a/gtksourceview/language-specs/mallard.lang b/gtksourceview/language-specs/mallard.lang
index 0f95ccd..c6bcbff 100644
--- a/gtksourceview/language-specs/mallard.lang
+++ b/gtksourceview/language-specs/mallard.lang
@@ -35,15 +35,15 @@
<definitions>
- <context id="page-element" once-only="true" style-ref="page">
+ <context id="page-element" once-only="true" style-ref="page" class="no-spell-check">
<keyword>page</keyword>
</context>
- <context id="section-element" style-ref="section">
+ <context id="section-element" style-ref="section" class="no-spell-check">
<keyword>section</keyword>
</context>
- <context id="block-elements" style-ref="block">
+ <context id="block-elements" style-ref="block" class="no-spell-check">
<keyword>code</keyword>
<keyword>p</keyword>
<keyword>example</keyword>
@@ -67,7 +67,7 @@
<keyword>item</keyword>
</context>
- <context id="inline-elements" style-ref="inline">
+ <context id="inline-elements" style-ref="inline" class="no-spell-check">
<keyword>app</keyword>
<keyword>cmd</keyword>
<keyword>code</keyword>
diff --git a/gtksourceview/language-specs/nemerle.lang b/gtksourceview/language-specs/nemerle.lang
index 37c2bd7..0561a61 100644
--- a/gtksourceview/language-specs/nemerle.lang
+++ b/gtksourceview/language-specs/nemerle.lang
@@ -48,14 +48,14 @@
<definitions>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-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="block-comment" style-ref="comment">
+ <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
@@ -101,7 +101,7 @@
<match>'(\\)?.'</match>
</context>
- <context id="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>'</start>
<end>'</end>
<include>
@@ -236,7 +236,7 @@
</match>
</context>
- <context id="nemerle">
+ <context id="nemerle" class="no-spell-check">
<include>
<context ref="line-comment"/>
<context ref="block-comment"/>
diff --git a/gtksourceview/language-specs/nsis.lang b/gtksourceview/language-specs/nsis.lang
index 1304323..393ae31 100644
--- a/gtksourceview/language-specs/nsis.lang
+++ b/gtksourceview/language-specs/nsis.lang
@@ -58,7 +58,7 @@
</include>
</context>
- <context id="string" style-ref="string">
+ <context id="string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -73,7 +73,7 @@
</include>
</context>
- <context id="nsis">
+ <context id="nsis" class="no-spell-check">
<include>
<context ref="operator"/>
<context ref="variable"/>
diff --git a/gtksourceview/language-specs/objc.lang b/gtksourceview/language-specs/objc.lang
index fb11218..ae563a0 100644
--- a/gtksourceview/language-specs/objc.lang
+++ b/gtksourceview/language-specs/objc.lang
@@ -64,7 +64,7 @@
<keyword>BOOL</keyword>
</context>
- <context id="objc-string-literal" style-ref="string" end-at-line-end="true">
+ <context id="objc-string-literal" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>\@"</start>
<end>"</end>
<include>
@@ -108,7 +108,7 @@
</context>
<!-- actual language definition: ObjC-specific stuff plus everything from C -->
- <context id="objc">
+ <context id="objc" class="no-spell-check">
<include>
<context ref="objc-source"/>
<context ref="objc-header"/>
diff --git a/gtksourceview/language-specs/ocaml.lang b/gtksourceview/language-specs/ocaml.lang
index 732bc00..0d2037d 100644
--- a/gtksourceview/language-specs/ocaml.lang
+++ b/gtksourceview/language-specs/ocaml.lang
@@ -61,13 +61,13 @@
</context>
<!-- here's the main context -->
- <context id="objective-caml">
+ <context id="objective-caml" class="no-spell-check">
<include>
<context id="ocamldoc" style-ref="ocamldoc">
<start>\(\*\*</start>
<end>\*\)</end>
<include>
- <context id="comment-in-comment" style-ref="comment">
+ <context id="comment-in-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>\(\*</start>
<end>\*\)</end>
<include>
@@ -80,7 +80,7 @@
<context ref="def:in-comment:*"/>
</include>
</context>
- <context id="comment" style-ref="comment">
+ <context id="comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>\(\*</start>
<end>\*\)</end>
<include>
diff --git a/gtksourceview/language-specs/ocl.lang b/gtksourceview/language-specs/ocl.lang
index f5060f7..07ddd10 100644
--- a/gtksourceview/language-specs/ocl.lang
+++ b/gtksourceview/language-specs/ocl.lang
@@ -46,10 +46,10 @@
</styles>
<definitions>
- <context id="ocl">
+ <context id="ocl" class="no-spell-check">
<include>
<!-- Comments -->
- <context id="comment" style-ref="comment" end-at-line-end="true">
+ <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"/>
@@ -57,7 +57,7 @@
</context>
<!-- Strings -->
- <context id="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
</context>
diff --git a/gtksourceview/language-specs/octave.lang b/gtksourceview/language-specs/octave.lang
index e1eb8fe..a5e9f0e 100644
--- a/gtksourceview/language-specs/octave.lang
+++ b/gtksourceview/language-specs/octave.lang
@@ -46,7 +46,7 @@
this is not yet supported by octave, but it's supported
by matlab - http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/f0-41244.html#f0-45380
-->
- <context id="multiline-comment" style-ref="comment">
+ <context id="multiline-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>^\s*%{\s*$</start>
<end>^\s*%}\s*$</end>
<include>
@@ -54,14 +54,14 @@
</include>
</context>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>#|%</start>
<include>
<context ref="def:in-comment"/>
</include>
</context>
- <context id="double-quoted-string" style-ref="string" end-at-line-end="true">
+ <context id="double-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -70,7 +70,7 @@
</include>
</context>
- <context id="single-quoted-string" style-ref="string" end-at-line-end="true">
+ <context id="single-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<!--
To do not misdetect the transpose operator ' as the start of a string
we assert to not follow a variable name (letters, digits and underscores)
@@ -218,7 +218,7 @@
<keyword>zeros</keyword>
</context>
- <context id="octave">
+ <context id="octave" class="no-spell-check">
<include>
<context ref="multiline-comment"/>
<context ref="line-comment"/>
diff --git a/gtksourceview/language-specs/pascal.lang b/gtksourceview/language-specs/pascal.lang
index b1b0937..9a53338 100644
--- a/gtksourceview/language-specs/pascal.lang
+++ b/gtksourceview/language-specs/pascal.lang
@@ -40,19 +40,19 @@
<definitions>
- <context id="string" style-ref="string">
+ <context id="string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>[uUrR]?'</start>
<end>'</end>
</context>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>//</start>
<include>
<context ref="def:in-comment"/>
</include>
</context>
- <context id="block-comment-1" style-ref="comment">
+ <context id="block-comment-1" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>\(\*</start>
<end>\*\)</end>
<include>
@@ -60,7 +60,7 @@
</include>
</context>
- <context id="block-comment-2" style-ref="comment">
+ <context id="block-comment-2" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>\{</start>
<end>\}</end>
<include>
@@ -239,7 +239,7 @@
</match>
</context>
- <context id="pascal">
+ <context id="pascal" class="no-spell-check">
<include>
<context ref="string"/>
<context ref="line-comment"/>
diff --git a/gtksourceview/language-specs/perl.lang b/gtksourceview/language-specs/perl.lang
index 1dd6de9..ef8d202 100644
--- a/gtksourceview/language-specs/perl.lang
+++ b/gtksourceview/language-specs/perl.lang
@@ -52,7 +52,7 @@ FIXME: =pod should require an empty line before/after, as written in perlpod
</styles>
<definitions>
- <context id="perl">
+ <context id="perl" class="no-spell-check">
<include>
<context ref="def:shebang"/>
<context ref="line-directive"/>
@@ -411,7 +411,7 @@ FIXME: =pod should require an empty line before/after, as written in perlpod
</include>
</context>
- <context id="single-quoted-string">
+ <context id="single-quoted-string" class="string" class-disabled="no-spell-check">
<include>
<context style-ref="string">
<start>'</start><end>'</end>
@@ -429,7 +429,7 @@ FIXME: =pod should require an empty line before/after, as written in perlpod
</include>
</context>
- <context id="double-quoted-string">
+ <context id="double-quoted-string" class="string" class-disabled="no-spell-check">
<include>
<context style-ref="string">
<start>"</start><end>"</end>
@@ -894,7 +894,7 @@ FIXME: =pod should require an empty line before/after, as written in perlpod
<!-- usual comments for perl are def:shell-style-comment -->
<!-- comment that must have a whitespace before (used in s{}{}, because
perl bugs if there is no space between '}' and '#') -->
- <context id="asserted-comment" style-ref="comment" end-at-line-end="true">
+ <context id="asserted-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>(?<![^\s])#</start>
<include><context ref="def:in-comment"/></include>
</context>
diff --git a/gtksourceview/language-specs/php.lang b/gtksourceview/language-specs/php.lang
index e58d0fc..82b3daf 100644
--- a/gtksourceview/language-specs/php.lang
+++ b/gtksourceview/language-specs/php.lang
@@ -55,21 +55,21 @@
<definitions>
- <context id="bash-line-comment" style-ref="comment" end-at-line-end="true" extend-parent="false">
+ <context id="bash-line-comment" style-ref="comment" end-at-line-end="true" extend-parent="false" class="comment" class-disabled="no-spell-check">
<start>#</start>
<include>
<context ref="def:in-line-comment"/>
</include>
</context>
- <context id="cpp-line-comment" style-ref="comment" end-at-line-end="true" extend-parent="false">
+ <context id="cpp-line-comment" style-ref="comment" end-at-line-end="true" extend-parent="false" class="comment" class-disabled="no-spell-check">
<start>//</start>
<include>
<context ref="def:in-line-comment"/>
</include>
</context>
- <context id="c-block-comment" style-ref="comment">
+ <context id="c-block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
@@ -113,7 +113,7 @@
</include>
</context>
- <context id="double-quoted-string" style-ref="string">
+ <context id="double-quoted-string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -123,7 +123,7 @@
</include>
</context>
- <context id="single-quoted-string" style-ref="string">
+ <context id="single-quoted-string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>'</start>
<end>'</end>
<include>
@@ -318,7 +318,7 @@
<replace id="html:embedded-lang-hook" ref="php-block"/>
- <context id="php">
+ <context id="php" class="no-spell-check">
<include>
<context ref="php-block"/>
<context ref="html:html"/>
diff --git a/gtksourceview/language-specs/po.lang b/gtksourceview/language-specs/po.lang
index 087f0e6..b265187 100644
--- a/gtksourceview/language-specs/po.lang
+++ b/gtksourceview/language-specs/po.lang
@@ -38,7 +38,7 @@
</styles>
<definitions>
- <context id="string" style-ref="string">
+ <context id="string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -81,7 +81,7 @@
<keyword>msgstr</keyword>
<keyword>msgctxt</keyword>
</context>
- <context id="gettext-translation">
+ <context id="gettext-translation" class="no-spell-check">
<include>
<context ref="string"/>
<context ref="format"/>
diff --git a/gtksourceview/language-specs/prolog.lang b/gtksourceview/language-specs/prolog.lang
index d56ce2b..7a36b18 100644
--- a/gtksourceview/language-specs/prolog.lang
+++ b/gtksourceview/language-specs/prolog.lang
@@ -49,14 +49,14 @@
)
</define-regex>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>%</start>
<include>
<context ref="def:in-comment"/>
</include>
</context>
- <context id="block-comment" style-ref="comment">
+ <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
@@ -97,7 +97,7 @@
<match>\%{escaped-character}</match>
</context>
- <context id="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -105,7 +105,7 @@
</include>
</context>
- <context id="string2" style-ref="string" end-at-line-end="true">
+ <context id="string2" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>'</start>
<end>'</end>
<include>
@@ -225,7 +225,7 @@
<keyword>delete</keyword>
</context>
- <context id="prolog">
+ <context id="prolog" class="no-spell-check">
<include>
<context ref="keyword"/>
<context ref="arith"/>
diff --git a/gtksourceview/language-specs/python.lang b/gtksourceview/language-specs/python.lang
index 435186a..986cbb3 100644
--- a/gtksourceview/language-specs/python.lang
+++ b/gtksourceview/language-specs/python.lang
@@ -82,7 +82,7 @@
<define-regex id="string-prefix">(u|U)?</define-regex>
<define-regex id="raw-string-prefix">(r|ur|R|UR|Ur|uR)</define-regex>
- <context id="multiline-double-quoted-string" style-ref="multiline-string">
+ <context id="multiline-double-quoted-string" style-ref="multiline-string" class="string" class-disabled="no-spell-check">
<start>\%{string-prefix}"""</start>
<end>"""</end>
<include>
@@ -91,7 +91,7 @@
</include>
</context>
- <context id="multiline-single-quoted-string" style-ref="multiline-string">
+ <context id="multiline-single-quoted-string" style-ref="multiline-string" class="string" class-disabled="no-spell-check">
<start>\%{string-prefix}'''</start>
<end>'''</end>
<include>
@@ -100,7 +100,7 @@
</include>
</context>
- <context id="double-quoted-string" style-ref="string" end-at-line-end="true">
+ <context id="double-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>\%{string-prefix}"</start>
<end>"</end>
<include>
@@ -110,7 +110,7 @@
</include>
</context>
- <context id="single-quoted-string" style-ref="string" end-at-line-end="true">
+ <context id="single-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>\%{string-prefix}'</start>
<end>'</end>
<include>
@@ -120,7 +120,7 @@
</include>
</context>
- <context id="multiline-double-quoted-raw-string" style-ref="multiline-string">
+ <context id="multiline-double-quoted-raw-string" style-ref="multiline-string" class="string" class-disabled="no-spell-check">
<start>\%{raw-string-prefix}"""</start>
<end>"""</end>
<include>
@@ -128,7 +128,7 @@
</include>
</context>
- <context id="multiline-single-quoted-raw-string" style-ref="multiline-string">
+ <context id="multiline-single-quoted-raw-string" style-ref="multiline-string" class="string" class-disabled="no-spell-check">
<start>\%{raw-string-prefix}'''</start>
<end>'''</end>
<include>
@@ -136,7 +136,7 @@
</include>
</context>
- <context id="double-quoted-raw-string" style-ref="string" end-at-line-end="true">
+ <context id="double-quoted-raw-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>\%{raw-string-prefix}"</start>
<end>"</end>
<include>
@@ -145,7 +145,7 @@
</include>
</context>
- <context id="single-quoted-raw-string" style-ref="string" end-at-line-end="true">
+ <context id="single-quoted-raw-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>\%{raw-string-prefix}'</start>
<end>'</end>
<include>
@@ -154,7 +154,7 @@
</include>
</context>
- <context id="python">
+ <context id="python" class="no-spell-check">
<include>
<context ref="def:shebang"/>
<context ref="def:shell-like-comment"/>
diff --git a/gtksourceview/language-specs/ruby.lang b/gtksourceview/language-specs/ruby.lang
index 327dc77..a595705 100644
--- a/gtksourceview/language-specs/ruby.lang
+++ b/gtksourceview/language-specs/ruby.lang
@@ -58,7 +58,7 @@
<match>\\((0-7){3}|(x[a-fA-F0-9]{2})|(c\S)|([CM]-\S)|(M-C-\S)|.)</match>
</context>
- <context id="multiline-comment" style-ref="comment">
+ <context id="multiline-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>^=begin</start>
<end>^=end</end>
<include>
@@ -430,7 +430,7 @@
<!-- ruby strings do not end at line end,
so we cannot use def:string
(parts lifted from perl.lang) -->
- <context id="double-quoted-string" style-ref="string">
+ <context id="double-quoted-string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -441,7 +441,7 @@
</include>
</context>
- <context id="single-quoted-string" style-ref="string">
+ <context id="single-quoted-string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>'</start>
<end>'</end>
<include>
@@ -546,7 +546,7 @@
</include>
</context>
- <context id="ruby">
+ <context id="ruby" class="no-spell-check">
<include>
<context ref="def:shebang"/>
<context ref="def:shell-like-comment"/>
diff --git a/gtksourceview/language-specs/scheme.lang b/gtksourceview/language-specs/scheme.lang
index 53eccf0..0080b80 100644
--- a/gtksourceview/language-specs/scheme.lang
+++ b/gtksourceview/language-specs/scheme.lang
@@ -36,14 +36,14 @@
</styles>
<definitions>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>;</start>
<include>
<context ref="def:in-comment"/>
</include>
</context>
- <context id="string" style-ref="string">
+ <context id="string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -287,7 +287,7 @@
<match>#[ft]</match>
</context>
- <context id="scheme">
+ <context id="scheme" class="no-spell-check">
<include>
<context ref="line-comment"/>
<context ref="string"/>
diff --git a/gtksourceview/language-specs/sh.lang b/gtksourceview/language-specs/sh.lang
index 3ac8422..6c09065 100644
--- a/gtksourceview/language-specs/sh.lang
+++ b/gtksourceview/language-specs/sh.lang
@@ -46,14 +46,14 @@
<!-- we cannot use def:shell-like-comment, because
m4.lang needs to replace this context -->
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>(?<!\S)#</start>
<include>
<context ref="def:in-comment"/>
</include>
</context>
- <context id="double-quoted-string" style-ref="string">
+ <context id="double-quoted-string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
@@ -71,7 +71,7 @@
</include>
</context>
- <context id="single-quoted-string" style-ref="string">
+ <context id="single-quoted-string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>'</start>
<end>'</end>
</context>
@@ -473,7 +473,7 @@
</include>
</context>
- <context id="sh">
+ <context id="sh" class="no-spell-check">
<include>
<context ref="def:shebang" style-ref="shebang"/>
<context ref="line-comment"/>
diff --git a/gtksourceview/language-specs/sql.lang b/gtksourceview/language-specs/sql.lang
index 1d9d881..66941d1 100644
--- a/gtksourceview/language-specs/sql.lang
+++ b/gtksourceview/language-specs/sql.lang
@@ -87,7 +87,7 @@
<keyword>SI_(StillImage|(Average|Positional)?Color|ColorHistogram|Texture|FeatureList)</keyword>
</context>
- <context id="text-literals" style-ref="string">
+ <context id="text-literals" style-ref="string" class="string" class-disabled="no-spell-check">
<start>[NnQqUu]?(['`])</start>
<end>\%{1 start}</end>
<include>
@@ -116,7 +116,7 @@
<keyword>NULL</keyword>
</context>
- <context id="block-comment" style-ref="comment">
+ <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
@@ -124,7 +124,7 @@
</include>
</context>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-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"/>
@@ -568,7 +568,7 @@
<keyword>WHENEVER[ \t]+(OS|SQL)ERROR</keyword>
</context>
- <context id="sql">
+ <context id="sql" class="no-spell-check">
<include>
<context ref="oracle-built-in-datatypes"/>
<context ref="ansi-datatypes"/>
diff --git a/gtksourceview/language-specs/t2t.lang b/gtksourceview/language-specs/t2t.lang
index 4456925..76e5915 100644
--- a/gtksourceview/language-specs/t2t.lang
+++ b/gtksourceview/language-specs/t2t.lang
@@ -63,7 +63,7 @@
</include>
</context>
- <context id="comment" style-ref="comment" end-at-line-end="true">
+ <context id="comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>^%</start>
</context>
@@ -133,7 +133,7 @@
<end>^```$</end>
</context>
- <context id="t2t">
+ <context id="t2t" class="no-spell-check">
<include>
<context ref="header"/>
<context ref="sections"/>
diff --git a/gtksourceview/language-specs/texinfo.lang b/gtksourceview/language-specs/texinfo.lang
index 03ed47c..c04421b 100644
--- a/gtksourceview/language-specs/texinfo.lang
+++ b/gtksourceview/language-specs/texinfo.lang
@@ -42,17 +42,20 @@
<definitions>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment">
<start>@c(omment)? </start>
+ <context subpattern="0" where="start" class="no-spell-check"/>
<include>
<context ref="def:in-comment"/>
</include>
</context>
- <context id="block-comment" style-ref="comment">
+ <context id="block-comment" style-ref="comment" class="comment">
<start>^ ignore\s*$</start>
<end>^ end ignore\s*$</end>
<include>
+ <context subpattern="0" where="start" class="no-spell-check"/>
+ <context subpattern="0" where="end" class="no-spell-check"/>
<context ref="def:in-comment"/>
</include>
</context>
@@ -66,7 +69,7 @@
<end>\}</end>
</context>
- <context id="macros-b" style-ref="macros">
+ <context id="macros-b" style-ref="macros" class="no-spell-check">
<prefix>^@</prefix>
<suffix>\b</suffix>
<keyword>alias</keyword>
@@ -82,7 +85,7 @@
<keyword>synindex</keyword>
</context>
- <context id="macros-dollar" style-ref="macros">
+ <context id="macros-dollar" style-ref="macros" class="no-spell-check">
<prefix>^@</prefix>
<suffix>\s*$</suffix>
<keyword>bye</keyword>
@@ -110,7 +113,7 @@
</include>
</context>
- <context id="indexing" style-ref="keyword">
+ <context id="indexing" style-ref="keyword" class="no-spell-check">
<prefix>^@</prefix>
<keyword>cindex</keyword>
<keyword>findex</keyword>
@@ -120,7 +123,7 @@
<keyword>vindex</keyword>
</context>
- <context id="file-attributes-b" style-ref="file-attributes">
+ <context id="file-attributes-b" style-ref="file-attributes" class="no-spell-check">
<prefix>^@</prefix>
<suffix>\b</suffix>
<keyword>dircategory</keyword>
@@ -143,7 +146,7 @@
<keyword>titlefont</keyword>
</context>
- <context id="file-attributes-dollar" style-ref="file-attributes">
+ <context id="file-attributes-dollar" style-ref="file-attributes" class="no-spell-check">
<prefix>^@</prefix>
<suffix>\s*$</suffix>
<keyword>afivepaper</keyword>
@@ -166,7 +169,7 @@
</include>
</context>
- <context id="generated-content" style-ref="generated-content">
+ <context id="generated-content" style-ref="generated-content" class="no-spell-check">
<prefix></prefix>
<suffix></suffix>
<keyword>^ contents\s*$</keyword>
@@ -188,14 +191,14 @@
<keyword>^ verbatiminclude\b</keyword>
</context>
- <context id="include" style-ref="include">
+ <context id="include" style-ref="include" class="no-spell-check">
<prefix></prefix>
<keyword>^\\input</keyword>
<keyword>^ include</keyword>
<keyword>@image</keyword>
</context>
- <context id="markup-inline" style-ref="keyword">
+ <context id="markup-inline" style-ref="keyword" class="no-spell-check">
<prefix>@</prefix>
<keyword>acronym</keyword>
<keyword>anchor</keyword>
@@ -226,7 +229,7 @@
<keyword>xref</keyword>
</context>
- <context id="markup-block-b" style-ref="keyword">
+ <context id="markup-block-b" style-ref="keyword" class="no-spell-check">
<prefix>^@</prefix>
<suffix>\b</suffix>
<keyword>author</keyword>
@@ -258,7 +261,7 @@
<keyword>vtable</keyword>
</context>
- <context id="markup-block-dollar" style-ref="keyword">
+ <context id="markup-block-dollar" style-ref="keyword" class="no-spell-check">
<prefix>^@</prefix>
<suffix>\s*$</suffix>
<keyword>(end )?copying</keyword>
@@ -306,7 +309,7 @@
</include>
</context>
- <context id="sectioning" style-ref="keyword">
+ <context id="sectioning" style-ref="keyword" class="no-spell-check">
<prefix>^@</prefix>
<suffix></suffix>
<keyword>appendix\b</keyword>
@@ -331,7 +334,7 @@
<keyword>unnumberedsub(sub)?sec\b</keyword>
</context>
- <context id="formatting" style-ref="keyword">
+ <context id="formatting" style-ref="keyword" class="no-spell-check">
<prefix></prefix>
<suffix></suffix>
<keyword>@(( )|$)</keyword>
@@ -362,7 +365,7 @@
<keyword>@w\b</keyword>
</context>
- <context id="characters" style-ref="keyword">
+ <context id="characters" style-ref="keyword" class="no-spell-check">
<prefix>@</prefix>
<suffix></suffix>
<keyword>!</keyword>
@@ -417,7 +420,7 @@
<keyword>v\b</keyword>
</context>
- <context id="keyword" style-ref="others">
+ <context id="keyword" style-ref="others" class="no-spell-check">
<match>((^[\\])|([ ]))(end )?[a-zA-Z]+(\{\})?</match>
</context>
diff --git a/gtksourceview/language-specs/vala.lang b/gtksourceview/language-specs/vala.lang
index 5be711b..ae84462 100644
--- a/gtksourceview/language-specs/vala.lang
+++ b/gtksourceview/language-specs/vala.lang
@@ -48,14 +48,14 @@
<definitions>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-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="multiline-comment" style-ref="comment">
+ <context id="multiline-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
@@ -67,7 +67,7 @@
<match>\*/(?!\*)</match>
</context>
- <context id="multiline-string" style-ref="string">
+ <context id="multiline-string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>@"([^"]|"")*</start>
<end>"</end>
<include>
@@ -206,7 +206,7 @@
</match>
</context>
- <context id="vala">
+ <context id="vala" class="no-spell-check">
<include>
<context ref="def:string"/>
<context ref="def:single-quoted-string"/>
diff --git a/gtksourceview/language-specs/vbnet.lang b/gtksourceview/language-specs/vbnet.lang
index e0157eb..563c434 100644
--- a/gtksourceview/language-specs/vbnet.lang
+++ b/gtksourceview/language-specs/vbnet.lang
@@ -41,21 +41,21 @@
<definitions>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-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="old-style-comment" style-ref="comment" end-at-line-end="true">
+ <context id="old-style-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>^rem</start>
<include>
<context ref="def:in-line-comment"/>
</include>
</context>
- <context id="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
</context>
@@ -226,7 +226,7 @@
<keyword>true</keyword>
</context>
- <context id="vbnet">
+ <context id="vbnet" class="no-spell-check">
<include>
<context ref="line-comment"/>
<context ref="old-style-comment"/>
diff --git a/gtksourceview/language-specs/verilog.lang b/gtksourceview/language-specs/verilog.lang
index 3b6377f..bfa8633 100644
--- a/gtksourceview/language-specs/verilog.lang
+++ b/gtksourceview/language-specs/verilog.lang
@@ -41,14 +41,14 @@
<definitions>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-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="block-comment" style-ref="comment">
+ <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
<start>/\*</start>
<end>\*/</end>
<include>
@@ -228,7 +228,7 @@
</match>
</context>
- <context id="verilog">
+ <context id="verilog" class="no-spell-check">
<include>
<context ref="line-comment"/>
<context ref="block-comment"/>
diff --git a/gtksourceview/language-specs/vhdl.lang b/gtksourceview/language-specs/vhdl.lang
index ad1e5b3..e097a2e 100644
--- a/gtksourceview/language-specs/vhdl.lang
+++ b/gtksourceview/language-specs/vhdl.lang
@@ -43,14 +43,14 @@
<definitions>
- <context id="line-comment" style-ref="comment" end-at-line-end="true">
+ <context id="line-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="string" style-ref="string" end-at-line-end="true">
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
</context>
@@ -228,7 +228,7 @@
</match>
</context>
- <context id="vhdl">
+ <context id="vhdl" class="no-spell-check">
<include>
<context ref="line-comment"/>
<context ref="string"/>
diff --git a/gtksourceview/language-specs/xml.lang b/gtksourceview/language-specs/xml.lang
index bdc1784..cb09aa7 100644
--- a/gtksourceview/language-specs/xml.lang
+++ b/gtksourceview/language-specs/xml.lang
@@ -49,7 +49,7 @@
<define-regex id="name">[a-zA-Z_][a-zA-Z0-9.:_-]*</define-regex>
- <context id="entity" style-ref="entity">
+ <context id="entity" style-ref="entity" class="no-spell-check">
<match>&\%{name};</match>
</context>
@@ -61,7 +61,7 @@
<match>[&<]</match>
</context>
- <context id="comment" style-ref="comment">
+ <context id="comment" style-ref="comment" class="comment">
<start><!--</start>
<end>--></end>
<include>
@@ -72,7 +72,7 @@
</include>
</context>
- <context id="doctype">
+ <context id="doctype" class="no-spell-check">
<start>(<!DOCTYPE)\s+(\%{name})</start>
<end>></end>
<include>
@@ -106,11 +106,11 @@
</include>
</context>
- <context id="cdata">
+ <context id="cdata" class="no-spell-check">
<start><!\[CDATA\[</start>
<end>\]\]></end>
<include>
- <context sub-pattern="0" where="start" style-ref="cdata-delim"/>
+ <context sub-pattern="0" where="start" style-ref="cdata-delim" class="no-spell-check"/>
<context sub-pattern="0" where="end" style-ref="cdata-delim"/>
</include>
</context>
@@ -124,18 +124,18 @@
dialect lang files, to custommize highlighting, e.g.
highlighting docbook tags as keywords -->
- <context id="namespace" style-ref="namespace">
+ <context id="namespace" style-ref="namespace" class="no-spell-check">
<match>(?<!:)\%{prefix}:</match>
</context>
<!-- Match attribute-name before element-name otherwise
"text" in <fo:block text-align="left"> is detected as
element -->
- <context id="attribute-name" style-ref="attribute-name">
+ <context id="attribute-name" style-ref="attribute-name" class="no-spell-check">
<match>\b\%{name}\s*=</match>
</context>
- <context id="attribute-value" style-ref="attribute-value">
+ <context id="attribute-value" style-ref="attribute-value" class="string" class-disabled="no-spell-check">
<start>["']</start>
<end>\%{0 start}</end>
<include>
@@ -145,11 +145,11 @@
</include>
</context>
- <context id="element-name" once-only="true" style-ref="element-name">
+ <context id="element-name" once-only="true" style-ref="element-name" class="no-spell-check">
<match>\b\%{name}\b(?!\s*=)</match>
</context>
- <context id="prolog">
+ <context id="prolog" class="no-spell-check">
<start><\?xml</start>
<end>\?></end>
<include>
@@ -160,7 +160,7 @@
</include>
</context>
- <context id="start-tag" style-ref="tag">
+ <context id="start-tag" style-ref="tag" class="no-spell-check">
<start><(?!/)</start>
<end>/?></end>
<include>
@@ -179,7 +179,7 @@
</include>
</context>
- <context id="end-tag" style-ref="tag">
+ <context id="end-tag" style-ref="tag" class="no-spell-check">
<start></</start>
<end>></end>
<include>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]