aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/context.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/context.cpp b/src/context.cpp
index ce1dfee..22bea57 100644
--- a/src/context.cpp
+++ b/src/context.cpp
@@ -212,9 +212,20 @@ Bu::String Context::expand( const Bu::String &sInS )
212 } 212 }
213 else if( *b == '(' && iPass == 1 ) 213 else if( *b == '(' && iPass == 1 )
214 { 214 {
215 Bu::String sCmd;
215 b++; 216 b++;
216 e = b.find(')'); 217 for( e = b; e != ')'; e++ )
217 Bu::String sCmd( b, e ); 218 {
219 if( *e == '\\' && *(e+1) == ')' )
220 {
221 sCmd += ')';
222 e++;
223 }
224 else
225 sCmd += *e;
226 }
227 //e = b.find(')');
228// Bu::String sCmd( b, e );
218 Bu::String sBuf; 229 Bu::String sBuf;
219 try 230 try
220 { 231 {