bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#21526: 24.5; prolog-mode: broken indentation for if-then-else constr


From: Markus Triska
Subject: bug#21526: 24.5; prolog-mode: broken indentation for if-then-else construct
Date: Thu, 01 Oct 2015 08:22:00 +0200

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Thanks.  Could you update prolog-smie-grammar accordingly?

Here is a patch:

2015-10-01  Markus Triska  <triska@metalevel.at>

        * prolog.el: Add common directives to operator table.

        (prolog-smie-grammar): Add discontiguous, dynamic etc.

diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el
index ff2769e..a305b03 100644
--- a/lisp/progmodes/prolog.el
+++ b/lisp/progmodes/prolog.el
@@ -913,6 +913,13 @@ prolog-smie-grammar
     (">>" -400 -400)
     ("**" -200 -200)
     ("^" -200 -200)
+    ;; directives declaring predicate properties
+    ("discontiguous" -1150 -1150)
+    ("dynamic" -1150 -1150)
+    ("meta_predicate" -1150 -1150)
+    ("module_transparent" -1150 -1150)
+    ("multifile" -1150 -1150)
+    ("public" -1150 -1150)
     ;; Prefix
     ;; ("+" 200 200)
     ;; ("-" 200 200)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]