Mercurial > vim
view runtime/syntax/fvwm2m4.vim @ 32385:49a13ac4a1b1 v9.0.1524
patch 9.0.1524: passing -1 for bool is not always rejected
Commit: https://github.com/vim/vim/commit/8cf51376b842e0060edf08bd2e5bd9933c552ecf
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon May 8 15:31:38 2023 +0100
patch 9.0.1524: passing -1 for bool is not always rejected
Problem: Passing -1 for bool is not always rejected.
Solution: Check for error in a better way. (closes https://github.com/vim/vim/issues/12358)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 08 May 2023 16:45:03 +0200 |
parents | 43efa4f5a8ea |
children |
line wrap: on
line source
" Vim syntax file " Language: FvwmM4 preprocessed Fvwm2 configuration files " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz> " Last Change: 2002-06-02 " URI: http://physics.muni.cz/~yeti/download/syntax/fvwmm4.vim " Setup " quit when a syntax file was already loaded if exists('b:current_syntax') finish endif " Let included files know they are included if !exists('main_syntax') let main_syntax = 'fvwm2m4' endif " Include M4 syntax runtime! syntax/m4.vim unlet b:current_syntax " Include Fvwm2 syntax (Fvwm1 doesn't have M4 preprocessor) runtime! syntax/fvwm.vim unlet b:current_syntax " That's all! let b:current_syntax = 'fvwm2m4' if main_syntax == 'fvwm2m4' unlet main_syntax endif