qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs markdown.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs markdown.c
Date: Sun, 1 Jan 2017 10:33:18 -0500 (EST)

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        17/01/01 10:33:18

Modified files:
        .              : markdown.c 

Log message:
        markdown: fix language detection for C# and C++

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/markdown.c?cvsroot=qemacs&r1=1.24&r2=1.25

Patches:
Index: markdown.c
===================================================================
RCS file: /sources/qemacs/qemacs/markdown.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- markdown.c  6 Mar 2016 19:53:06 -0000       1.24
+++ markdown.c  1 Jan 2017 15:33:18 -0000       1.25
@@ -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 @@
         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];
         }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]