]> code.delx.au - gnu-emacs-elpa/commitdiff
-
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 27 May 2010 22:01:05 +0000 (18:01 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 27 May 2010 22:01:05 +0000 (18:01 -0400)
.bzrignore
sml-mode.el

index 7472467b36c4737db4316c69c68bf64e1ca4099d..e587edaf37e4abf0d2d2157c8fc0f4dda034c9f9 100644 (file)
@@ -1,2 +1,3 @@
 *.elc
 sml-mode-startup.el
+testcases.sml.new
index 14ded69440c2af8cb2d2facb00eaa9e78ddef75b..1e07ea731bff22143459e2a33854609a2c7948d3 100644 (file)
@@ -380,6 +380,7 @@ Regexp match data 0 points to the chars."
             ("fn" sexp "=>" exp))
        (sexp (sexp ":" type) ("(" exps ")")
              (sexp "orelse" sexp)
+             (marg ":>" type)
              (sexp "andalso" sexp))
        (cmds (cmds ";" cmds) (exp))
        (exps (exps "," exps) (exp))     ; (exps ";" exps)
@@ -390,6 +391,9 @@ Regexp match data 0 points to the chars."
               (sexp "d=" databranches)
               (sexp "=of" type)         ;After "exception".
               ("local" decls "in" decls "end")
+              (decls "functor" decls)
+              (decls "signature" decls)
+              (decls "structure" decls)
               (decls "type" decls)
               (decls "open" decls)
               (decls "and" decls)
@@ -404,18 +408,18 @@ Regexp match data 0 points to the chars."
              (type "*" type))
        (databranches (sexp "=of" type) (databranches "d|" databranches))
        ;; Module language.
-       (mexp ("functor" marg "d=" mexp)
-             ("structure" marg "d=" mexp)
-             ("signature" marg "d=" mexp)
-             ("struct" decls "end")
-             ("sig" decls "end"))
+       ;; (mexp ("functor" marg "d=" mexp)
+       ;;       ("structure" marg "d=" mexp)
+       ;;       ("signature" marg "d=" mexp)
+       ;;       ("struct" decls "end")
+       ;;       ("sig" decls "end"))
        (marg (marg ":" type) (marg ":>" type)))
      ;; '((nonassoc "else") (right "handle"))
      '((nonassoc "of") (assoc "|"))  ; "case a of b => case c of d => e | f"
      '((nonassoc "handle") (assoc "|")) ; Idem for "handle".
      '((assoc "->") (assoc "*"))
      '((assoc "val" "fun" "type" "datatype" "abstype" "open" "infix" "infixr"
-              "nonfix")
+              "nonfix" "functor" "signature" "structure")
        (assoc "and"))
      '((assoc "orelse") (assoc "andalso") (nonassoc ":"))
      '((assoc ";")) '((assoc ",")) '((assoc "d|")))