Simplify regexp.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 19 Dec 2011 22:59:20 +0200
changeset 844 5ddabbad047d
parent 843 2adc2d3542a4
child 845 6c199c07f0c8
Simplify regexp.
dict-mode.el
--- a/dict-mode.el	Thu Dec 15 22:16:25 2011 +0200
+++ b/dict-mode.el	Mon Dec 19 22:59:20 2011 +0200
@@ -27,11 +27,9 @@
   nil
   nil
   '(
-    ("^\\(_____+\\)
-
-\\([^[:blank:]][^
-]*\\)$" (1 font-lock-function-name-face) (2 font-lock-keyword-face))
-    ("^[[:blank:]]*\\(\\[[^]]*]\\)[[:space:]]" (1 font-lock-type-face))
+    ("^\\(_\\{5,\\}\\)\n\n\\([^[:blank:]][^\n]*\\)$"
+     (1 font-lock-function-name-face) (2 font-lock-keyword-face))
+    ("\\[[^]]+]" . font-lock-type-face)
     )
   '("\\.dict-c5$")
   nil