From 348753c360051cad612f4ea228b96b1087cf9795 Mon Sep 17 00:00:00 2001
From: "p.kosyh"
Date: Thu, 5 Nov 2009 06:05:14 +0000
Subject: [PATCH] - is delimiter too
---
src/sdl-instead/graphics.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/sdl-instead/graphics.c b/src/sdl-instead/graphics.c
index a4c0fff..64ce332 100644
--- a/src/sdl-instead/graphics.c
+++ b/src/sdl-instead/graphics.c
@@ -1536,6 +1536,7 @@ static int is_delim(int c)
case ':':
case '!':
case '+':
+ case '-':
case '?':
case '/':
return 1;
@@ -1567,7 +1568,7 @@ static const char *lookup_token_or_sp(const char *ptr)
char *eptr;
const char *p = ptr;
while (*p) {
- p += strcspn(p, " .,:!+?/<\t\n");
+ p += strcspn(p, " .,:!+-?/<\t\n");
if (*p != '<' ) {
while (is_delim(*p))
p ++;