Mercurial > vim
view runtime/indent/context.vim @ 27686:63e7adbe7223 v8.2.4369
patch 8.2.4369: redundant #ifdef argument
Commit: https://github.com/vim/vim/commit/f7fbeed0ac8e694a6865cab26b82caeea0870966
Author: ola.soder@axis.com <ola.soder@axis.com>
Date: Sun Feb 13 12:24:21 2022 +0000
patch 8.2.4369: redundant #ifdef argument
Problem: Redundant #ifdef argument.
Solution: Remove unused MSWIN. (Ola S?der, closes https://github.com/vim/vim/issues/9758)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Feb 2022 13:30:03 +0100 |
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