summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsbrandt <sbrandt@17b73243-c579-4c4c-a9d2-2d5706c11dac>2013-02-25 18:49:05 +0000
committersbrandt <sbrandt@17b73243-c579-4c4c-a9d2-2d5706c11dac>2013-02-25 18:49:05 +0000
commita5859b9764af44f1e9e9c6faf5043a3e691072ab (patch)
treeedf31e92139e5004cf57d873a9c6d14437169da1 /src
parent4730bc03f50318da9432bbd17f7c9cc91de1eb21 (diff)
Allow for unquoted file names so long as they begin with ./ or /
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4961 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src')
-rw-r--r--src/piraha/Call.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/piraha/Call.cc b/src/piraha/Call.cc
index 766ebf9a..0ccce795 100644
--- a/src/piraha/Call.cc
+++ b/src/piraha/Call.cc
@@ -185,7 +185,8 @@ extern "C" int PirahaParser(const char *buffer,unsigned long buffersize,int (*se
"name = [@a-zA-Z_][@/a-zA-Z0-9_-]*\n"
"inquot = ({var}|\\\\.|[^\\\\\"])*\n"
- "quot = \"{inquot}\"\n"
+ "fname = \\.?/[-\\./0-9a-zA-Z_]+\n"
+ "quot = \"{inquot}\"|{fname}\n"
"num = [-+]?([0-9]+(\\.[0-9]*|)|\\.[0-9]+)(e[+-][0-9]+|)\n"
"env = ENV\\{{name}\\}\n"
"var = \\$({env}|{name}|\\{{name}\\})\n"