diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-04-13 18:32:39 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-04-13 22:41:51 +0200 |
commit | b87212e66962c2738bbe763e85b450be5e6b2090 (patch) | |
tree | efd6cd6744a76342b236a78a3c706518f03e3f2a | |
parent | ee18c26f26452ef40ec5a99412071d7a6143a1ba (diff) | |
download | rneovim-b87212e66962c2738bbe763e85b450be5e6b2090.tar.gz rneovim-b87212e66962c2738bbe763e85b450be5e6b2090.tar.bz2 rneovim-b87212e66962c2738bbe763e85b450be5e6b2090.zip |
vim-patch:5392970921ab
runtime(i3config): Line continuation is not detected for 'set' command (vim/vim#14531)
Problem: Valid i3config syntax is highlighted as error.
Solution: Skip over line-breaks correctly.
https://github.com/vim/vim/commit/5392970921aba5112f529a5d93407ae65c285fb1
Co-authored-by: julio-b <julio.bacel@gmail.com>
-rw-r--r-- | runtime/syntax/i3config.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/syntax/i3config.vim b/runtime/syntax/i3config.vim index 8131639a11..2a43b3d9e5 100644 --- a/runtime/syntax/i3config.vim +++ b/runtime/syntax/i3config.vim @@ -100,7 +100,7 @@ syn match i3ConfigKeyword /^no_focus .*$/ contains=i3ConfigCondition " 4.17 Variables syn match i3ConfigVariable /\$[0-9A-Za-z_:|[\]-]\+/ syn keyword i3ConfigSetKeyword set contained -syn match i3ConfigSet /^set \$.*$/ contains=i3ConfigSetKeyword,i3ConfigVariable,i3ConfigColor,i3ConfigString,i3ConfigNumber,i3ConfigShCommand,i3ConfigShDelim,i3ConfigShParam,i3ConfigShOper,i3ConfigBindModkey +syn region i3ConfigSet start=/^set\s\+\$/ skip=/\\$/ end=/$/ contains=i3ConfigSetKeyword,i3ConfigVariable,i3ConfigColor,i3ConfigString,i3ConfigNumber,i3ConfigShCommand,i3ConfigShDelim,i3ConfigShParam,i3ConfigShOper,i3ConfigBindModkey keepend " 4.18 X resources syn keyword i3ConfigResourceKeyword set_from_resource contained |