From a5859b9764af44f1e9e9c6faf5043a3e691072ab Mon Sep 17 00:00:00 2001 From: sbrandt Date: Mon, 25 Feb 2013 18:49:05 +0000 Subject: 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 --- src/piraha/Call.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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" -- cgit v1.2.3