From 79bbfb27c38f368beb68121dae2d10d7ad13a157 Mon Sep 17 00:00:00 2001 From: Charlie Gordon Date: Sun, 1 Jan 2017 15:33:18 +0000 Subject: [PATCH] markdown: fix language detection for C# and C++ --- markdown.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown.c b/markdown.c index 49e5baf..c2eac56 100644 --- a/markdown.c +++ b/markdown.c @@ -1,7 +1,7 @@ /* * Markdown mode for QEmacs. * - * Copyright (c) 2014-2016 Charlie Gordon. + * Copyright (c) 2014-2017 Charlie Gordon. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -229,7 +229,7 @@ static void mkd_colorize_line(QEColorizeContext *cp, colstate &= ~(IN_MKD_BLOCK | IN_MKD_LANG_STATE); for (i += 3; qe_isblank(str[i]); i++) continue; - for (len = 0; i < n && qe_isalnum_(str[i]); i++) { + for (len = 0; i < n && !qe_isblank(str[i]); i++) { if (len < countof(lang_name) - 1) lang_name[len++] = str[i]; }