Mercurial > vim
comparison runtime/autoload/syntaxcomplete.vim @ 17758:f2c2f9126a82
Update runtime files.
commit https://github.com/vim/vim/commit/56c860c315c517d304320e12bf7b5c1479546dae
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 17 20:09:31 2019 +0200
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 17 Aug 2019 20:15:03 +0200 |
parents | eb6ab7e78925 |
children | ef454a7f485d |
comparison
equal
deleted
inserted
replaced
17757:39fe82460b5d | 17758:f2c2f9126a82 |
---|---|
1 " Vim completion script | 1 " Vim completion script |
2 " Language: All languages, uses existing syntax highlighting rules | 2 " Language: All languages, uses existing syntax highlighting rules |
3 " Maintainer: David Fishburn <dfishburn dot vim at gmail dot com> | 3 " Maintainer: David Fishburn <dfishburn dot vim at gmail dot com> |
4 " Version: 13.0 | 4 " Version: 13.0 |
5 " Last Change: 2013 May 14 | 5 " Last Change: 2019 Aug 08 |
6 " Usage: For detailed help, ":help ft-syntax-omni" | 6 " Usage: For detailed help, ":help ft-syntax-omni" |
7 | 7 |
8 " History | 8 " History |
9 " | 9 " |
10 " Version 13.0 | 10 " Version 13.0 |
595 " Remove any words < 3 characters | 595 " Remove any words < 3 characters |
596 let syn_list = substitute( syn_list, '\%(\<match \/[^/]\{-}\)\@<=\<\w\{1,2}\>\ze.\{-}\\\@<!\/\%(\%(ms\|me\|hs\|he\|rs\|re\|lc\)\S\+\)\?\s\+', '', 'g' ) | 596 let syn_list = substitute( syn_list, '\%(\<match \/[^/]\{-}\)\@<=\<\w\{1,2}\>\ze.\{-}\\\@<!\/\%(\%(ms\|me\|hs\|he\|rs\|re\|lc\)\S\+\)\?\s\+', '', 'g' ) |
597 " Remove all non-word characters | 597 " Remove all non-word characters |
598 " let syn_list = substitute( syn_list, '\<match /\zs.\{-}\<\W\+\>.\{-}\ze\/ ', "", 'g' ) | 598 " let syn_list = substitute( syn_list, '\<match /\zs.\{-}\<\W\+\>.\{-}\ze\/ ', "", 'g' ) |
599 " let syn_list = substitute( syn_list, '\%(\<match \/[^/]\{-}\)\@<=\W\+\ze.\{-}\/ ', ' ', 'g' ) | 599 " let syn_list = substitute( syn_list, '\%(\<match \/[^/]\{-}\)\@<=\W\+\ze.\{-}\/ ', ' ', 'g' ) |
600 " Do this by using the outer substitue() call to gather all | 600 " Do this by using the outer substitute() call to gather all |
601 " text between the match /.../ tags. | 601 " text between the match /.../ tags. |
602 " The inner substitute() call operates on the text selected | 602 " The inner substitute() call operates on the text selected |
603 " and replaces all non-word characters. | 603 " and replaces all non-word characters. |
604 let syn_list = substitute( syn_list, '\<match \/\zs\(.\{-}\)\ze\\\@<!\/\%(\%(ms\|me\|hs\|he\|rs\|re\|lc\)\S\+\)\?\s\+' | 604 let syn_list = substitute( syn_list, '\<match \/\zs\(.\{-}\)\ze\\\@<!\/\%(\%(ms\|me\|hs\|he\|rs\|re\|lc\)\S\+\)\?\s\+' |
605 \ , '\=substitute(submatch(1), "\\W\\+", " ", "g")' | 605 \ , '\=substitute(submatch(1), "\\W\\+", " ", "g")' |