aboutsummaryrefslogtreecommitdiffstats
path: root/main/augeas/0010-Shellvars-use-sto_to_semicol-in-condition-lens.patch
blob: 96cd8b53fee1de14a426ed6758dccef9e42939d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 5a3d3528b63986a91baedaca028c646b796961d8 Mon Sep 17 00:00:00 2001
From: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
Date: Mon, 13 Jul 2015 14:48:18 +0300
Subject: [PATCH 10/15] Shellvars: use sto_to_semicol in condition lens

---
 lenses/shellvars.aug | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lenses/shellvars.aug b/lenses/shellvars.aug
index aab9d50..bb0e875 100644
--- a/lenses/shellvars.aug
+++ b/lenses/shellvars.aug
@@ -98,9 +98,8 @@ module Shellvars =
     . ( Util.del_ws_spc . store Rx.integer )?
 
   let condition =
-       let sto_cond = store /[^[#; \t\n][^#;\n]+[^]#; \t\n]|[^[]#; \t\n]+/
-    in let cond (start:string) (end:string) = [ label "type" . store start ]
-                                            . Util.del_ws_spc . sto_cond
+       let cond (start:string) (end:string) = [ label "type" . store start ]
+                                            . Util.del_ws_spc . sto_to_semicol
                                             . Util.del_ws_spc . Util.del_str end
     in Util.indent . label "@condition" . (cond "[" "]" | cond "[[" "]]")
 
-- 
2.1.0