Skip to content

Commit 5392970

Browse files
authored
runtime(i3config): Line continuation is not detected for 'set' command (#14531)
Problem: Valid i3config syntax is highlighted as error. Solution: Skip over line-breaks correctly. Signed-off-by: Julio B <julio.bacel@gmail.com> Signed-off-by: Josef Litoš <54900518+JosefLitos@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent c51578f commit 5392970

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/syntax/i3config.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ syn match i3ConfigKeyword /^no_focus .*$/ contains=i3ConfigCondition
100100
" 4.17 Variables
101101
syn match i3ConfigVariable /\$[0-9A-Za-z_:|[\]-]\+/
102102
syn keyword i3ConfigSetKeyword set contained
103-
syn match i3ConfigSet /^set \$.*$/ contains=i3ConfigSetKeyword,i3ConfigVariable,i3ConfigColor,i3ConfigString,i3ConfigNumber,i3ConfigShCommand,i3ConfigShDelim,i3ConfigShParam,i3ConfigShOper,i3ConfigBindModkey
103+
syn region i3ConfigSet start=/^set\s\+\$/ skip=/\\$/ end=/$/ contains=i3ConfigSetKeyword,i3ConfigVariable,i3ConfigColor,i3ConfigString,i3ConfigNumber,i3ConfigShCommand,i3ConfigShDelim,i3ConfigShParam,i3ConfigShOper,i3ConfigBindModkey keepend
104104

105105
" 4.18 X resources
106106
syn keyword i3ConfigResourceKeyword set_from_resource contained

0 commit comments

Comments
 (0)