]> git.cworth.org Git - mnemon/blobdiff - mnemon.c
Recognize '-' as a numeric characeter as well
[mnemon] / mnemon.c
index ac7c7652d5fd07c6c0dc8c32669eeede5a52947f..33f2c260132a6efff082da9989da5ca6be6ef739 100644 (file)
--- a/mnemon.c
+++ b/mnemon.c
@@ -578,7 +578,7 @@ mnemon_load_category (mnemon_t              *mnemon,
 
        /* An initial digit means we hit an item. Trigger the
         * spaghetti machine. */
-       if (*line >= '0' && *line <= '9')
+       if ((*line >= '0' && *line <= '9') || *line == '-')
            goto PARSE_BIN;
 
        equal = strchr (line, '=');