Mercurial > vim
annotate runtime/ftplugin/masm.vim @ 27464:a14c4d3e3260 v8.2.4260
patch 8.2.4260: Vim9: can still use a global function without g:
Commit: https://github.com/vim/vim/commit/848faddb870f3ba4d84fcacd1cccb5cdbbfd9c41
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 30 15:28:30 2022 +0000
patch 8.2.4260: Vim9: can still use a global function without g:
Problem: Vim9: can still use a global function without g: at the script
level.
Solution: Also check for g: at the script level. (issue #9637)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 30 Jan 2022 16:30:04 +0100 |
parents | 7f88f6a3ed4c |
children | 4d76b3e07c07 |
rev | line source |
---|---|
20379 | 1 " Vim filetype plugin file |
2 " Language: Microsoft Macro Assembler (80x86) | |
3 " Maintainer: Wu Yongwei <wuyongwei@gmail.com> | |
4 " Last Change: 2020-05-09 23:02:05 +0800 | |
5 | |
6 if exists("b:did_ftplugin") | |
7 finish | |
8 endif | |
9 let b:did_ftplugin = 1 | |
10 | |
11 let s:cpo_save = &cpo | |
12 set cpo&vim | |
13 | |
14 let b:undo_ftplugin = "setl iskeyword<" | |
15 | |
16 setlocal iskeyword=@,48-57,_,36,60,62,63,@-@ | |
17 | |
18 let &cpo = s:cpo_save | |
19 unlet s:cpo_save |