diff options
| author | Stefan Monnier | 2000-10-15 22:13:01 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-10-15 22:13:01 +0000 |
| commit | 5299cb8e97ea86a570ce9c5103841d578dc87e96 (patch) | |
| tree | 9d88654ebd315da7f41449b6e56bd474a5e09cab | |
| parent | d671382e9399a341e45c731d6ace47e9d13291ae (diff) | |
| download | emacs-5299cb8e97ea86a570ce9c5103841d578dc87e96.tar.gz emacs-5299cb8e97ea86a570ce9c5103841d578dc87e96.zip | |
(font-lock-syntactic-keywords): Fix docstring.
| -rw-r--r-- | lisp/font-lock.el | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index a6b05e5f870..6cff0e1e2fe 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -525,28 +525,26 @@ the differences are listed below. MATCH-HIGHLIGHT should be of the form: | |||
| 525 | 525 | ||
| 526 | (MATCH SYNTAX OVERRIDE LAXMATCH) | 526 | (MATCH SYNTAX OVERRIDE LAXMATCH) |
| 527 | 527 | ||
| 528 | where SYNTAX can be of the form (SYNTAX-CODE . MATCHING-CHAR) (see | 528 | where SYNTAX can be a string (as taken by `modify-syntax-entry'), a syntax |
| 529 | also `string-to-syntax'), the name of a syntax table, or an expression | 529 | table, a cons cell (as returned by `string-to-syntax') or an expression whose |
| 530 | whose value is such a form or a syntax table. OVERRIDE cannot be | 530 | value is such a form. OVERRIDE cannot be `prepend' or `append'. |
| 531 | `prepend' or `append'. | ||
| 532 | 531 | ||
| 533 | For example, an element of the form highlights syntactically: | 532 | For example, an element of the form highlights syntactically: |
| 534 | 533 | ||
| 535 | (\"\\\\$\\\\(#\\\\)\" 1 (1 . nil)) | 534 | (\"\\\\$\\\\(#\\\\)\" 1 \".\") |
| 536 | 535 | ||
| 537 | a hash character when following a dollar character, with a SYNTAX-CODE of | 536 | a hash character when following a dollar character, with a SYNTAX of |
| 538 | 1 (meaning punctuation syntax). Assuming that the buffer syntax table does | 537 | \".\" (meaning punctuation syntax). Assuming that the buffer syntax table does |
| 539 | specify hash characters to have comment start syntax, the element will only | 538 | specify hash characters to have comment start syntax, the element will only |
| 540 | highlight hash characters that do not follow dollar characters as comments | 539 | highlight hash characters that do not follow dollar characters as comments |
| 541 | syntactically. | 540 | syntactically. |
| 542 | 541 | ||
| 543 | (\"\\\\('\\\\).\\\\('\\\\)\" | 542 | (\"\\\\('\\\\).\\\\('\\\\)\" |
| 544 | (1 (7 . ?')) | 543 | (1 \"\\\"\") |
| 545 | (2 (7 . ?'))) | 544 | (2 \"\\\"\")) |
| 546 | 545 | ||
| 547 | both single quotes which surround a single character, with a SYNTAX-CODE of | 546 | both single quotes which surround a single character, with a SYNTAX of |
| 548 | 7 (meaning string quote syntax) and a MATCHING-CHAR of a single quote (meaning | 547 | \"\\\"\" (meaning string quote syntax). Assuming that the buffer syntax table |
| 549 | a single quote matches a single quote). Assuming that the buffer syntax table | ||
| 550 | does not specify single quotes to have quote syntax, the element will only | 548 | does not specify single quotes to have quote syntax, the element will only |
| 551 | highlight single quotes of the form 'c' as strings syntactically. | 549 | highlight single quotes of the form 'c' as strings syntactically. |
| 552 | Other forms, such as foo'bar or 'fubar', will not be highlighted as strings. | 550 | Other forms, such as foo'bar or 'fubar', will not be highlighted as strings. |