runtime(i3config): Line continuation is not detected for 'set' command (#14531)

Commit: 
https://github.com/vim/vim/commit/5392970921aba5112f529a5d93407ae65c285fb1
Author: julio-b <julio.ba...@gmail.com>
Date:   Sat Apr 13 16:10:10 2024 +0000

    runtime(i3config): Line continuation is not detected for 'set' command 
(https://github.com/vim/vim/issues/14531)
    
    Problem:  Valid i3config syntax is highlighted as error.
    Solution: Skip over line-breaks correctly.
    
    Signed-off-by: Julio B <julio.ba...@gmail.com>
    Signed-off-by: Josef Litoš <54900518+josefli...@users.noreply.github.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/i3config.vim b/runtime/syntax/i3config.vim
index 8131639a1..2a43b3d9e 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

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rvg1w-008JTb-CS%40256bit.org.

Raspunde prin e-mail lui