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



commit ccaa1e636884f668c3ef2ec259bac35f4dd2e554
Author: Martin Blanchard <tchaik gmx com>
Date:   Sun Oct 9 16:56:51 2016 +0200

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

 plugins/modelines/modeline-parser.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/modelines/modeline-parser.c b/plugins/modelines/modeline-parser.c
index 095c0ae..989e111 100644
--- a/plugins/modelines/modeline-parser.c
+++ b/plugins/modelines/modeline-parser.c
@@ -426,7 +426,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]