Skip to content

Commit

Permalink
Improved regex to match [% ... %]
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Jun 15, 2002
1 parent 8585c96 commit 6d12e8d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tt-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@
;; Something similar may well work for you.
;;
;; $Log$
;; Revision 1.1 2002/06/15 13:51:56 dave
;; Initial revision
;; Revision 1.2 2002/06/15 14:35:26 dave
;; Improved regex to match [% ... %]
;;
;; Revision 1.1.1.1 2002/06/15 13:51:56 dave
;; Initial Version
;;
;;

Expand All @@ -34,7 +37,7 @@
(defvar tt-font-lock-keywords
(list
;; Fontify [& ... &] expressions
'("\\(\\[%.*%\\]\\)" 1 font-lock-keyword-face t)
'("\\(\\[%[^%]+%\\]\\)" 1 font-lock-keyword-face t)
)
"Expressions to font-lock in tt-mode.")

Expand Down

0 comments on commit 6d12e8d

Please sign in to comment.