[gtksourceview: 1/2] sh.lang: Disable spell checking in child contexts of "double-quoted-string"
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview: 1/2] sh.lang: Disable spell checking in child contexts of "double-quoted-string"
- Date: Wed, 13 May 2020 16:07:30 +0000 (UTC)
commit 3a01d0152d0c81f78d2a93eb6c1cdde07fbb6576
Author: neyfag <11970-neyfag users noreply gitlab gnome org>
Date: Wed May 13 16:48:03 2020 +0200
sh.lang: Disable spell checking in child contexts of "double-quoted-string"
data/language-specs/sh.lang | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/data/language-specs/sh.lang b/data/language-specs/sh.lang
index c62b80f7..b574243a 100644
--- a/data/language-specs/sh.lang
+++ b/data/language-specs/sh.lang
@@ -95,7 +95,7 @@
</include>
</context>
- <context id="command-substitution" style-ref="subshell">
+ <context id="command-substitution" style-ref="subshell" class="no-spell-check">
<start>\$\((?!\()</start>
<end>\)</end>
<include>
@@ -202,7 +202,7 @@
</include>
</context>
- <context id="arithmetic-expansion">
+ <context id="arithmetic-expansion" class="no-spell-check">
<start>\$\({2}(?!\()</start>
<end>\){2}</end>
<include>
@@ -228,7 +228,7 @@
<!-- Treated separately, not including itself nor command-like contexts
(see https://gitlab.gnome.org/GNOME/gtksourceview/issues/94) -->
- <context id="backtick-subshell" style-ref="subshell">
+ <context id="backtick-subshell" style-ref="subshell" class="no-spell-check">
<start>`</start>
<end>`</end>
<include>
@@ -426,11 +426,11 @@
</include>
</context>
- <context id="short-parameter-expansion" style-ref="variable">
+ <context id="short-parameter-expansion" style-ref="variable" class="no-spell-check">
<match>\$(\%{special-parameter}|\%{identifier})</match>
</context>
- <context id="parameter-expansion" style-ref="def:statement" style-inside="true">
+ <context id="parameter-expansion" style-ref="def:statement" style-inside="true" class="no-spell-check">
<start>\$\{(?=[!#]?\%{identifier}|\%{special-parameter})</start>
<end>\}</end>
<include>
@@ -573,7 +573,7 @@
</include>
</context>
- <context id="history-expansion-command">
+ <context id="history-expansion-command" class="no-spell-check">
<start extended="true">
# Event Designator
((?<!\\)!) (?: (!|\#|-?[1-9][0-9]*) | (\?)[^?]+(\?|$)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]