summaryrefslogtreecommitdiffstats
path: root/src/expressions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/expressions.c')
-rw-r--r--src/expressions.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/expressions.c b/src/expressions.c
index 83bceae7a..8ea4ebc50 100644
--- a/src/expressions.c
+++ b/src/expressions.c
@@ -446,6 +446,19 @@ parse_expression (memory_pool_t *pool, char *line)
}
state = READ_OPERATOR;
}
+ else if (*(p + 1) == '\0') {
+ /* In fact it is not function, but symbol */
+ p ++;
+ if (c != p) {
+ str = memory_pool_alloc (pool, p - c + 1);
+ g_strlcpy (str, c, (p - c + 1));
+ g_strstrip (str);
+ if (strlen (str) > 0) {
+ insert_expression (pool, &expr, EXPR_STR, 0, str);
+ }
+ }
+ state = SKIP_SPACES;
+ }
else {
p ++;
}