On Mon, May 4, 2015 at 3:00 PM, Julian Squires <[email protected]> wrote:
> The third adds the "style" keyword as starting an expression in the emacs
> mode.  Otherwise, any style following another expression will be
> indented incorrectly.

Sorry.  I missed a few places it should be added.  Attached is a
better patch for this.

-- 
Julian Squires
# HG changeset patch
# User Julian Squires <[email protected]>
# Date 1430848986 14400
#      Tue May 05 14:03:06 2015 -0400
# Node ID d6c9752634b9e56658c288c774ea999ed385d0af
# Parent  a82e3ccd5d81aec29ce24f839d54f0def9e5c5b2
Treat "style" as starting an expression in urweb-mode

diff -r a82e3ccd5d81 -r d6c9752634b9 src/elisp/urweb-defs.el
--- a/src/elisp/urweb-defs.el	Mon May 04 16:15:01 2015 -0400
+++ b/src/elisp/urweb-defs.el	Tue May 05 14:03:06 2015 -0400
@@ -108,7 +108,7 @@
                  "datatype" "type" "open" "include"
                  urweb-module-head-syms
                  "con" "map" "where" "extern" "constraint" "constraints"
-                 "table" "sequence" "class" "cookie" "task" "policy" "style")
+                 "table" "sequence" "class" "cookie" "style" "task" "policy")
   "Symbols starting an sexp.")
 
 ;; (defconst urweb-not-arg-start-re
@@ -135,7 +135,7 @@
      (("case" "datatype" "if" "then" "else"
        "let" "open" "sig" "struct" "type" "val"
        "con" "constraint" "table" "sequence" "class" "cookie"
-       "task" "policy")))))
+       "style" "task" "policy")))))
 
 (defconst urweb-starters-indent-after
   (urweb-syms-re "let" "in" "struct" "sig")
@@ -190,7 +190,7 @@
 	  '("datatype" "fun"
 	    "open" "type" "val" "and"
 	    "con" "constraint" "table" "sequence" "class" "cookie"
-            "task" "policy"))
+            "style" "task" "policy"))
   "The starters of new expressions.")
 
 (defconst urweb-exptrail-syms
_______________________________________________
Ur mailing list
[email protected]
http://www.impredicative.com/cgi-bin/mailman/listinfo/ur

Reply via email to