[gtksourceview/cherry-pick-36944967] Merge branch 'patch-sh' into 'master'
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/cherry-pick-36944967] Merge branch 'patch-sh' into 'master'
- Date: Wed, 13 May 2020 16:08:02 +0000 (UTC)
commit e0a4c7239621c051bbc31eb42d68b096cf20a118
Author: Christian Hergert <christian hergert me>
Date: Wed May 13 16:07:18 2020 +0000
Merge branch 'patch-sh' into 'master'
sh.lang: Disable spell checking in child contexts of "double-quoted-string"
See merge request GNOME/gtksourceview!142
(cherry picked from commit 36944967015497864af43504589827a854f5fad5)
3a01d015 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]