|
1 | 1 | " Vim completion script |
2 | 2 | " Language: All languages, uses existing syntax highlighting rules |
3 | 3 | " Maintainer: David Fishburn <dfishburn dot vim at gmail dot com> |
4 | | -" Version: 13.0 |
5 | | -" Last Change: 2019 Aug 08 |
| 4 | +" Version: 14.0 |
| 5 | +" Last Change: 2020 Dec 30 |
6 | 6 | " Usage: For detailed help, ":help ft-syntax-omni" |
7 | 7 |
|
8 | 8 | " History |
9 | 9 | " |
| 10 | +" Version 14.0 |
| 11 | +" - Fixed issue with single quotes and is_keyword |
| 12 | +" https://github.com/vim/vim/issues/7463 |
| 13 | +" |
10 | 14 | " Version 13.0 |
11 | 15 | " - Extended the option omni_syntax_group_include_{filetype} |
12 | 16 | " to accept a comma separated list of regex's rather than |
@@ -179,7 +183,8 @@ function! syntaxcomplete#Complete(findstart, base) |
179 | 183 | endif |
180 | 184 |
|
181 | 185 | " let base = s:prepended . a:base |
182 | | - let base = s:prepended |
| 186 | + " let base = s:prepended |
| 187 | + let base = substitute(s:prepended, "'", "''", 'g') |
183 | 188 |
|
184 | 189 | let filetype = substitute(&filetype, '\.', '_', 'g') |
185 | 190 | let list_idx = index(s:cache_name, filetype, 0, &ignorecase) |
@@ -548,7 +553,7 @@ function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full ) |
548 | 553 | " let syn_list = substitute( @l, '^.*xxx\s*\%(contained\s*\)\?', "", '' ) |
549 | 554 | " let syn_list = substitute( @l, '^.*xxx\s*', "", '' ) |
550 | 555 |
|
551 | | - " We only want the words for the lines begining with |
| 556 | + " We only want the words for the lines beginning with |
552 | 557 | " containedin, but there could be other items. |
553 | 558 |
|
554 | 559 | " Tried to remove all lines that do not begin with contained |
|
0 commit comments