[gnome-builder] modelines: Add support for Emacs 'js-indent-level' variable



commit dd24cc076a6d83a9f902e15f20ab6e129cc778ee
Author: Martin Blanchard <tchaik gmx com>
Date:   Wed Oct 5 23:08:24 2016 +0200

    modelines: Add support for Emacs 'js-indent-level' variable
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772479

 libide/modelines/modeline-parser.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libide/modelines/modeline-parser.c b/libide/modelines/modeline-parser.c
index 2f81056..fe6e6b3 100644
--- a/libide/modelines/modeline-parser.c
+++ b/libide/modelines/modeline-parser.c
@@ -420,7 +420,8 @@ parse_emacs_modeline (gchar           *s,
                        }
                }
                else if (strcmp (key->str, "indent-offset") == 0 ||
-                        strcmp (key->str, "c-basic-offset") == 0)
+                        strcmp (key->str, "c-basic-offset") == 0 ||
+                        strcmp (key->str, "js-indent-level") == 0)
                {
                        intval = atoi (value->str);
 


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