New installer: 2021-04-29
This commit is contained in:
@@ -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,33 +426,32 @@
|
||||
</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>
|
||||
<context sub-pattern="0" where="start" style-ref="variable"/>
|
||||
<context sub-pattern="0" where="end" style-ref="variable"/>
|
||||
<!-- The order of the two following contexts matters -->
|
||||
<context id="array-variable" once-only="true">
|
||||
<start>([!#])?(\%{identifier})(\[)</start>
|
||||
<end>\]</end>
|
||||
<context id="parameter" once-only="true">
|
||||
<start>(?<=\$\{)([!#]?)(\%{identifier}|\%{special-parameter})</start>
|
||||
<end>\%{def:always-match}</end>
|
||||
<include>
|
||||
<context sub-pattern="1" where="start" style-ref="keyword"/>
|
||||
<context sub-pattern="2" where="start" style-ref="variable"/>
|
||||
<context sub-pattern="3" where="start" style-ref="keyword"/>
|
||||
<context sub-pattern="0" where="end" style-ref="keyword"/>
|
||||
<context ref="expansion-nesting"/>
|
||||
<context ref="expansion-precedence"/>
|
||||
</include>
|
||||
</context>
|
||||
<context id="simple-variable" once-only="true" style-ref="variable">
|
||||
<match>([!#])?\%{identifier}|\%{special-parameter}</match>
|
||||
<include>
|
||||
<context sub-pattern="1" style-ref="keyword"/>
|
||||
<context id="array-part" once-only="true">
|
||||
<start>\[</start>
|
||||
<end>\]</end>
|
||||
<include>
|
||||
<context sub-pattern="0" where="start" style-ref="keyword"/>
|
||||
<context sub-pattern="0" where="end" style-ref="keyword"/>
|
||||
<context ref="expansion-nesting"/>
|
||||
<context ref="expansion-precedence"/>
|
||||
</include>
|
||||
</context>
|
||||
</include>
|
||||
</context>
|
||||
<!-- Must be included first, to ensure unescaped boundaries -->
|
||||
@@ -574,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]*) | (\?)[^?]+(\?|$)
|
||||
|
||||
Reference in New Issue
Block a user