aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/syntaxcomplete.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-02 10:19:25 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-02 10:23:35 -0400
commit6a8436065ca7282569fd4d96b1c02a8ba8eaacf1 (patch)
tree57c7c58d216376a56fa65e217a80177624a5619f /runtime/autoload/syntaxcomplete.vim
parent2081504a331f2ca97922056f6b42b8d0e6c2e306 (diff)
downloadrneovim-6a8436065ca7282569fd4d96b1c02a8ba8eaacf1.tar.gz
rneovim-6a8436065ca7282569fd4d96b1c02a8ba8eaacf1.tar.bz2
rneovim-6a8436065ca7282569fd4d96b1c02a8ba8eaacf1.zip
vim-patch:9faec4e3d439
Update runtime files. https://github.com/vim/vim/commit/9faec4e3d439968e21ad74e917aebb289df8f849 Omit vim9.
Diffstat (limited to 'runtime/autoload/syntaxcomplete.vim')
-rw-r--r--runtime/autoload/syntaxcomplete.vim11
1 files changed, 8 insertions, 3 deletions
diff --git a/runtime/autoload/syntaxcomplete.vim b/runtime/autoload/syntaxcomplete.vim
index ea72204cbb..6ba262b9aa 100644
--- a/runtime/autoload/syntaxcomplete.vim
+++ b/runtime/autoload/syntaxcomplete.vim
@@ -1,12 +1,16 @@
" Vim completion script
" Language: All languages, uses existing syntax highlighting rules
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
-" Version: 13.0
-" Last Change: 2019 Aug 08
+" Version: 14.0
+" Last Change: 2020 Dec 30
" Usage: For detailed help, ":help ft-syntax-omni"
" History
"
+" Version 14.0
+" - Fixed issue with single quotes and is_keyword
+" https://github.com/vim/vim/issues/7463
+"
" Version 13.0
" - Extended the option omni_syntax_group_include_{filetype}
" to accept a comma separated list of regex's rather than
@@ -179,7 +183,8 @@ function! syntaxcomplete#Complete(findstart, base)
endif
" let base = s:prepended . a:base
- let base = s:prepended
+ " let base = s:prepended
+ let base = substitute(s:prepended, "'", "''", 'g')
let filetype = substitute(&filetype, '\.', '_', 'g')
let list_idx = index(s:cache_name, filetype, 0, &ignorecase)