# HG changeset patch # User Oleksandr Gavenko # Date 1458597171 -7200 # Node ID 51565d9fe630d081ecfa5d74950316e6c434d9d8 # Parent e14e384267ee1ad69064930c036051b39f85ffb0 Highlight comment syntax. Fix uncommenting. diff -r e14e384267ee -r 51565d9fe630 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) "__$")