Mercurial > vim
view runtime/indent/context.vim @ 20486:8ddcdb0d1074 v8.2.0797
patch 8.2.0797: MS-Windows: compiler still can't handle C99 construct
Commit: https://github.com/vim/vim/commit/904e48a22be7e227a73c70e520cf9d8bc50fc1b2
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 19 10:33:02 2020 +0200
patch 8.2.0797: MS-Windows: compiler still can't handle C99 construct
Problem: MS-Windows: compiler still can't handle C99 construct.
Solution: Change to C90 construct. (Dominique Pelle, closes https://github.com/vim/vim/issues/6106)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 19 May 2020 10:45:04 +0200 |
parents | 07d2b5a3b7cc |
children | f00c56ee8118 |
line wrap: on
line source
" ConTeXt indent file " Language: ConTeXt typesetting engine " Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com> " Last Change: 2016 Oct 15 if exists("b:did_indent") finish endif if !get(b:, 'context_metapost', get(g:, 'context_metapost', 1)) finish endif " Load MetaPost indentation script runtime! indent/mp.vim let s:keepcpo= &cpo set cpo&vim setlocal indentexpr=GetConTeXtIndent() let b:undo_indent = "setl indentexpr<" function! GetConTeXtIndent() " Use MetaPost rules inside MetaPost graphic environments if len(synstack(v:lnum, 1)) > 0 && \ synIDattr(synstack(v:lnum, 1)[0], "name") ==# 'contextMPGraphic' return GetMetaPostIndent() endif return -1 endfunc let &cpo = s:keepcpo unlet s:keepcpo " vim:sw=2