diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-07-19 14:03:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-19 14:03:36 -0400 |
commit | 0595da8d0b9bc9f4ea6f06047d3b25926d72156b (patch) | |
tree | 0d6962c3c80af3ff19cf70f928d424421fe567a1 | |
parent | 291c3c6ff3eadd26e364787600fd4606cb5b1f40 (diff) | |
parent | 90d1ad39750d573750f6af79402cba390a30224d (diff) | |
download | rneovim-0595da8d0b9bc9f4ea6f06047d3b25926d72156b.tar.gz rneovim-0595da8d0b9bc9f4ea6f06047d3b25926d72156b.tar.bz2 rneovim-0595da8d0b9bc9f4ea6f06047d3b25926d72156b.zip |
Merge #5062 from blueyed/fix-genvimvim-funcnames
genvimvim.lua: fix matching functions
-rw-r--r-- | .ci/common/test.sh | 10 | ||||
-rw-r--r-- | scripts/genvimvim.lua | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/.ci/common/test.sh b/.ci/common/test.sh index 225d88e072..1e66ecb239 100644 --- a/.ci/common/test.sh +++ b/.ci/common/test.sh @@ -83,8 +83,9 @@ install_nvim() { exit 1 } + local genvimsynf=syntax/vim/generated.vim # Check that all runtime files were installed - for file in doc/tags syntax/vim/generated.vim $( + for file in doc/tags $genvimsynf $( cd runtime ; git ls-files | grep -e '.vim$' -e '.ps$' -e '.dict$' -e '.py$' -e '.tutor$' ) ; do if ! test -e "${INSTALL_PREFIX}/share/nvim/runtime/$file" ; then @@ -93,6 +94,13 @@ install_nvim() { fi done + # Check that generated syntax file has function names, #5060. + local gpat='syn keyword vimFuncName .*eval' + if ! grep -q "$gpat" "${INSTALL_PREFIX}/share/nvim/runtime/$genvimsynf"; then + echo "It appears that $genvimsynf does not contain $gpat." + exit 1 + fi + for file in $( cd runtime ; git ls-files | grep -e '.awk$' -e '.sh$' -e '.bat$' ) ; do diff --git a/scripts/genvimvim.lua b/scripts/genvimvim.lua index 9135c8e3ab..2a82181841 100644 --- a/scripts/genvimvim.lua +++ b/scripts/genvimvim.lua @@ -123,7 +123,7 @@ for line in eval_fd:lines() do if line == '};' then break end - local func_name = line:match('^ {"(%w+)",') + local func_name = line:match('^ { "([%w_]+)",') if func_name then if lld.line_length > 850 then w('\n' .. vimfun_start) |