Saturday, May 7, 2022

vim9script syntax file how to deal with s:cpo_save

hi,

after migrating vim to vim9script syntax file, this one embbeded these kind of lines code :

vim9script

if exists("b:current_syntax")
  finish
endif

s:cpo_save = &cpo
set cpo&vim




so i encounter these error now :

"foobar.log" [converted] 12550L, 1485333B
Error detected while processing BufRead Autocommands for "*.log"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>19_SynSet[25]..script Z:\soft\Vim\vimfiles\syntax\log.vim:
line   11:
E1089: Unknown variable: s:cpo_save
Error detected while processing BufEnter Autocommands for "*.log"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>19_SynSet[25]..script  Z:\soft  \Vim\vimfiles\syntax\log.vim:
line   11:
E1089: Unknown variable: s:cpo_save

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/3ff87010-cfbc-4e99-a292-1a9d818ebab2n%40googlegroups.com.

No comments: