[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tex-mode.el] Subscript in math not fully matched
From: |
Ralf Angeli |
Subject: |
Re: [tex-mode.el] Subscript in math not fully matched |
Date: |
Mon, 17 Apr 2006 15:41:01 +0200 |
* Stefan Monnier (2006-04-17) writes:
>> Matching multiple characters of a complemented character alternative
>> is really more efficient than a call to stuff like `scan-lists'? Okay
>> there is some additional code involved as well, but anyway.
>
> Maybe you're right.
>
>> * textmodes/tex-mode.el (tex-font-lock-match-suscript): New
>> function.
>> (tex-font-lock-keywords-3): Use it.
>
> Thanks, installed.
Thanks. Meanwhile I saw that there is a misplaced paren in the patch.
The following change should fix this. Sorry for the inconvenience.
2006-04-17 Ralf Angeli <address@hidden>
* textmodes/tex-mode.el (tex-font-lock-match-suscript): Fix
misplaced parenthesis.
--- tex-mode.el 17 Apr 2006 12:05:39 -0000 1.181
+++ tex-mode.el 17 Apr 2006 13:33:34 -0000
@@ -604,8 +604,8 @@
(narrow-to-region (point-min) limit)
(condition-case nil (scan-lists (point) 1 1) (error nil)))))
(store-match-data (if end
- (list (match-beginning 0) end beg end))
- (list beg beg beg beg))))
+ (list (match-beginning 0) end beg end)
+ (list beg beg beg beg)))))
t))
(defconst tex-font-lock-keywords-3
--
Ralf