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: Sat, 15 Mar 2014 13:47:26 +0000

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        14/03/15 13:47:26

Modified files:
        .              : markdown.c 

Log message:
        fix small issues in markdown-mode
        
        * skip initial * in colorizer
        * force indentation with spaces
        * default to word-wrap mode

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

Patches:
Index: markdown.c
===================================================================
RCS file: /sources/qemacs/qemacs/markdown.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- markdown.c  10 Mar 2014 22:11:24 -0000      1.5
+++ markdown.c  15 Mar 2014 13:47:26 -0000      1.6
@@ -295,14 +295,18 @@
         for (j = i + 1; qe_isdigit(str[j]); j++)
             continue;
         if (str[j] == '.' && qe_isblank(str[j + 1])) {
-            base_style = QE_STYLE_MKD_DLIST;
             level++;
+            base_style = QE_STYLE_MKD_DLIST;
+            SET_COLOR(str, i, j, base_style);
+            i = j;
         }
     } else
     if ((str[i] == '-' || str[i] == '*' || str[i] == '+')
     &&  qe_isblank(str[i + 1])) {
-        base_style = QE_STYLE_MKD_LIST;
         level++;
+        base_style = QE_STYLE_MKD_LIST;
+        SET_COLOR(str, i, j, base_style);
+        i = j;
     }
 
     for (;;) {
@@ -812,6 +816,8 @@
 {
     text_mode_init(s, saved_data);
     s->b->tab_width = 4;
+    s->indent_tabs_mode = 0;
+    s->wrap = WRAP_WORD;
     return 0;
 }
 



reply via email to

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