Highlight comment syntax. Fix uncommenting.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 21 Mar 2016 23:52:51 +0200
changeset 373 51565d9fe630
parent 372 e14e384267ee
child 374 aeaa3f721014
Highlight comment syntax. Fix uncommenting.
contrib/gadict.el
--- a/contrib/gadict.el	Mon Mar 21 23:24:13 2016 +0200
+++ b/contrib/gadict.el	Mon Mar 21 23:52:51 2016 +0200
@@ -18,8 +18,8 @@
 ;;; Code:
 
 (defvar gadict-font-lock-keywords
-  '( ("^\\(_\\{2\\}\\)\n\n\\(\\w.*\\)$"
-      (1 font-lock-function-name-face) (2 font-lock-keyword-face))
+  '( ("^\\(_\\{2\\}\\)\n\n\\(\\w.*\\)$" (1 font-lock-function-name-face) (2 font-lock-keyword-face))
+     ("^#.*" . font-lock-comment-face)
      ("^ +\\[[^]\n]+]" . font-lock-type-face)
      ("^\\(?:en\\|ru\\|uk\\|la\\): " . font-lock-type-face)
      ("^\\(?:en\\|ru\\|uk\\|la\\)> " . font-lock-doc-face)
@@ -40,7 +40,7 @@
   (set (make-local-variable 'comment-end)  "")
   (set (make-local-variable 'comment-end-skip)  nil)
   (set (make-local-variable 'comment-multi-line)  nil)
-  (set (make-local-variable 'comment-use-syntax)  t) )
+  (set (make-local-variable 'comment-use-syntax)  nil) )
 
 (defun gadict-setup-paragraph ()
   (set (make-local-variable 'paragraph-separate)  "__$")