Commits

Ivan Andrus  committed 21b76aa

Prevent treating ;; differently than ;

  • Participants
  • Parent commits 89e3062

Comments (0)

Files changed (1)

             ("if" if-body "fi")
             ("return" exp)
             ("local" exps))
-
-      (insts (insts ";" insts) (inst))
+      (insts (insts ";" insts) (insts ";;" insts) (inst))
       (exp ("(" exps ")")
            ("[" exps "]")
            ("{" exps "}")
       (ielsei (itheni) (itheni "else" insts))
       (if-body (ielsei) (if-body "elif" if-body)))
 
-    '((assoc ";"))
+    '((assoc ";" ";;"))
     '((assoc ","))
     '((assoc "elif"))
     '((assoc "not")
                      `"elif" `"do" `"repeat" `"while"))
      gap-indent-step)
 
-    (`(:before . ";")
+    (`(:before . ,(or `";" `";;"))
      (cond
       ((smie-rule-parent-p "function" "repeat" "while" "for"
                            "if" "then" "elif" "else" "when")
 
     (`(:after . ,(or "=" ":=" "+" "-" "*" "/" "^"
                      ">" "<" ">=" "<=" "<>" "and" "or"))
-     (if (smie-rule-parent-p ";" nil) gap-indent-step))))
+     (if (smie-rule-parent-p ";" ";;" nil) gap-indent-step))))
 
 (provide 'gap-smie)