summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Wenninger <jowenn@kde.org>2014-01-24 00:15:37 (GMT)
committerJoseph Wenninger <jowenn@kde.org>2014-01-24 00:15:37 (GMT)
commit5a5c7f37c061bf8b68346861057848df65268b7a (patch)
treefaafbb3e7d4bf03a9ab5f3559597c241f2ed2cf8
parent7319cec115df54f0c818fc79d10c1f23ad1fee92 (diff)
This should fix "length of input parameter" highlighting for bash
BUG: 314993 FIXED-IN: 5.0
-rw-r--r--src/syntax/data/bash.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/syntax/data/bash.xml b/src/syntax/data/bash.xml
index 0e92d00..b7307c4 100644
--- a/src/syntax/data/bash.xml
+++ b/src/syntax/data/bash.xml
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.1" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd"
[
<!ENTITY funcname "[A-Za-z_:][A-Za-z0-9_:#&#37;@-]*">
@@ -633,6 +633,7 @@
<RegExpr attribute="Variable" context="#stay" String="\$\{[*@#?$!_0-9-]\}" />
<RegExpr attribute="Variable" context="#stay" String="\$\{#&varname;(\[[*@]\])?\}" />
<RegExpr attribute="Variable" context="#stay" String="\$\{!&varname;(\[[*@]\]|[*@])?\}" />
+ <RegExpr attribute="Variable" context="#stay" String="\$\{#[0-9]+\}" />
<RegExpr attribute="Variable" context="VarBrace" String="\$\{&varname;" />
<RegExpr attribute="Variable" context="VarBrace" String="\$\{[*@#?$!_0-9-](?=[:#%/=?+-])" />
<StringDetect attribute="Variable" context="ExprDblParenSubst" String="$((" beginRegion="expression" />