File: 60_multiline_comments.dpatch

package info (click to toggle)
lua-mode 20060625-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 88 kB
  • ctags: 96
  • sloc: lisp: 810; sh: 38; makefile: 33
file content (20 lines) | stat: -rw-r--r-- 762 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh /usr/share/dpatch/dpatch-run
## 60_multiline_comments.dpatch by Jens Peter Secher <jps@debian.org>
##
## DP: Make it possible to comment out multiline-comment lines.

@DPATCH@
diff -urNad lua-mode-1.74~/lua-mode.el lua-mode-1.74/lua-mode.el
--- lua-mode-1.74~/lua-mode.el	2006-02-10 10:28:10.452603760 +0100
+++ lua-mode-1.74/lua-mode.el	2006-02-10 10:29:17.783367928 +0100
@@ -144,8 +144,8 @@
      ; try (setq font-lock-support-mode 'lazy-lock-mode) in your ~/.emacs
 
      ;; Multi-line comment blocks.
-     `("--.*\\(\\[\\[\\(\\]?[^]]\\)*\\]\\]\\)"
-       (1 font-lock-comment-face t))
+     `("\\(^\\|[^-]\\)\\(--\\[\\[\\([^-]\\|-\\([^-]\\|-\\([^]]\\|][^]]\\)\\)\\)*--]]\\)"
+       (2 font-lock-comment-face t))
 
      ;;
      ;; Keywords.