From 112600774798e53e2ffbab6e0bbbc6fe625bf88b Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 10 Mar 2015 19:00:06 +0100 Subject: added the <"I> conditional for checking a directory separator * It is still useful to have this in macros since you may want to work with non-normalized file names. For instance, env variables (including $SCITECOPATH and $SCITECOCONFIG) may (and will probably) include backward-slash separators on Windows --- src/parser.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index 1514e24..2a83a66 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1602,6 +1602,10 @@ StateCondCommand::custom(gchar chr) BEGIN_EXEC(&States::start); result = g_ascii_isdigit((gchar)value); break; + case 'I': + BEGIN_EXEC(&States::start); + result = G_IS_DIR_SEPARATOR((gchar)value); + break; case 'S': case 'T': BEGIN_EXEC(&States::start); -- cgit v1.2.3