Commit Diff


commit - 72bd97a1e08401e7230bff3e979e6fba21dccaf4
commit + a1ccf51480d1faa27a2ade162a2691a3f129ed26
blob - ade7b96366075302b36e974f14e2ae74569993ea
blob + 9fd25224ee795a4b0ece629d26fdd887878bb699
--- contrib/9ps-mode.el
+++ contrib/9ps-mode.el
@@ -40,17 +40,25 @@
     (modify-syntax-entry ?\{ "(}" st)
     (modify-syntax-entry ?\} "){" st)
     (modify-syntax-entry ?\( "()" st)
+
     ;; - and _ are word constituent
     (modify-syntax-entry ?_ "w" st)
     (modify-syntax-entry ?- "w" st)
+
     ;; both single and double quotes makes strings
     (modify-syntax-entry ?\" "\"" st)
     (modify-syntax-entry ?' "'" st)
+
     ;; one day we'll have escaping (maybe)
     (modify-syntax-entry ?\\ "\\" st)
-    ;; add comments.  is this the correct way?
+
+    ;; add comments. lua-mode does something similar, so it shouldn't
+    ;; bee *too* wrong.
     (modify-syntax-entry ?# "<" st)
     (modify-syntax-entry ?\n ">" st)
+
+    ;; '==' as punctuation
+    (modify-syntax-entry ?= ".")
     st))
 
 (defun 9ps-indent-line ()