view runtime/autoload/contextcomplete.vim @ 29060:a8c0c5865e73 v8.2.5052

patch 8.2.5052: CI checkout step title is a bit cryptic Commit: https://github.com/vim/vim/commit/bfaa24f95343af9c058696644375d04e660f1b00 Author: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Wed Jun 1 21:26:34 2022 +0100 patch 8.2.5052: CI checkout step title is a bit cryptic Problem: CI checkout step title is a bit cryptic. Solution: Add a better title. (closes https://github.com/vim/vim/issues/10509)
author Bram Moolenaar <Bram@vim.org>
date Wed, 01 Jun 2022 22:30:03 +0200
parents 07d2b5a3b7cc
children
line wrap: on
line source

" Language:           ConTeXt typesetting engine
" Maintainer:         Nicola Vitacolonna <nvitacolonna@gmail.com>
" Latest Revision:    2016 Oct 15

let s:keepcpo= &cpo
set cpo&vim

" Complete keywords in MetaPost blocks
function! contextcomplete#Complete(findstart, base)
  if a:findstart == 1
    if len(synstack(line('.'), 1)) > 0 &&
          \ synIDattr(synstack(line('.'), 1)[0], "name") ==# 'contextMPGraphic'
      return syntaxcomplete#Complete(a:findstart, a:base)
    else
      return -3
    endif
  else
    return syntaxcomplete#Complete(a:findstart, a:base)
  endif
endfunction

let &cpo = s:keepcpo
unlet s:keepcpo

" vim: sw=2 fdm=marker