Mercurial > vim
comparison runtime/doc/textprop.txt @ 15194:8b334e4cb97f
Update runtime files.
commit https://github.com/vim/vim/commit/9d87a37ee9d87f5bdbc779bc940d5f1e6f055d0a
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 18 21:41:50 2018 +0100
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 18 Dec 2018 21:45:08 +0100 |
parents | 9df130fd5e0d |
children | 97b40b4c6911 |
comparison
equal
deleted
inserted
replaced
15193:0154f020f97e | 15194:8b334e4cb97f |
---|---|
1 *textprop.txt* For Vim version 8.1. Last change: 2018 Dec 13 | 1 *textprop.txt* For Vim version 8.1. Last change: 2018 Dec 14 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
70 | 70 |
71 The number 123 is smaller than 4567. | 71 The number 123 is smaller than 4567. |
72 | 72 |
73 To highlight the numbers: > | 73 To highlight the numbers: > |
74 call prop_type_add('number', {'highlight': 'Constant'}) | 74 call prop_type_add('number', {'highlight': 'Constant'}) |
75 call prop_add(11, 12, {'length': 3, 'type': 'number}) | 75 call prop_add(11, 12, {'length': 3, 'type': 'number'}) |
76 call prop_add(11, 32, {'length': 4, 'type': 'number}) | 76 call prop_add(11, 32, {'length': 4, 'type': 'number'}) |
77 | 77 |
78 Setting "start_incl" and "end_incl" is useful when white space surrounds the | 78 Setting "start_incl" and "end_incl" is useful when white space surrounds the |
79 text, e.g. for a function name. Using false is useful when the text starts | 79 text, e.g. for a function name. Using false is useful when the text starts |
80 and/or ends with a specific character, such as the quote surrounding a string. | 80 and/or ends with a specific character, such as the quote surrounding a string. |
81 | 81 |
84 | 84 |
85 var = "text"; ~ | 85 var = "text"; ~ |
86 ^^^^^^ property with start_incl and end_incl not set | 86 ^^^^^^ property with start_incl and end_incl not set |
87 | 87 |
88 Nevertheless, when text is inserted or deleted the text may need to be parsed | 88 Nevertheless, when text is inserted or deleted the text may need to be parsed |
89 and the text properties updated. But this can be done asynchrnously. | 89 and the text properties updated. But this can be done asynchronously. |
90 | 90 |
91 ============================================================================== | 91 ============================================================================== |
92 2. Functions *text-prop-functions* | 92 2. Functions *text-prop-functions* |
93 | 93 |
94 Manipulating text property types: | 94 Manipulating text property types: |