Mercurial > emacs
comparison lisp/progmodes/python.el @ 58739:2761697b0e2f
(python-font-lock-syntactic-keywords): Fix previous change.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Fri, 03 Dec 2004 00:10:23 +0000 |
| parents | d0581f1eef46 |
| children | 54d81a8baaa6 f2ebccfa87d4 |
comparison
equal
deleted
inserted
replaced
| 58738:ffd48e9f6a57 | 58739:2761697b0e2f |
|---|---|
| 101 (1 font-lock-keyword-face) (2 font-lock-function-name-face)))) | 101 (1 font-lock-keyword-face) (2 font-lock-function-name-face)))) |
| 102 | 102 |
| 103 (defconst python-font-lock-syntactic-keywords | 103 (defconst python-font-lock-syntactic-keywords |
| 104 ;; Make outer chars of matching triple-quote sequences into generic | 104 ;; Make outer chars of matching triple-quote sequences into generic |
| 105 ;; string delimiters. Fixme: Is there a better way? | 105 ;; string delimiters. Fixme: Is there a better way? |
| 106 `((,(rx (and (or buffer-start (not (syntax escape))) ; avoid escaped | 106 `((,(rx (and (or line-start buffer-start (not (syntax escape))) ; avoid escaped |
| 107 ; leading quote | 107 ; leading quote |
| 108 (group (optional (any "uUrR"))) ; prefix gets syntax property | 108 (group (optional (any "uUrR"))) ; prefix gets syntax property |
| 109 (optional (any "rR")) ; possible second prefix | 109 (optional (any "rR")) ; possible second prefix |
| 110 (group (syntax string-quote)) ; maybe gets property | 110 (group (syntax string-quote)) ; maybe gets property |
| 111 (backref 2) ; per first quote | 111 (backref 2) ; per first quote |
