runtime(swayconfig): add focus_follows_mouse and smart_qaps syntax keywords

Commit: 
https://github.com/vim/vim/commit/46d67d22b9baa575de3ef2fb7ff430b11dfa1e26
Author: James Eapen <[email protected]>
Date:   Fri Dec 29 11:51:40 2023 -0500

    runtime(swayconfig): add focus_follows_mouse and smart_qaps syntax keywords
    
    See:
    
https://github.com/swaywm/sway/blob/0aceff74696f03d306dc9de5473d9ed7afb73f67/sway/sway.5.scd?plain=1#L680
    `focus_follows_mouse yes|no|always`
    
https://github.com/swaywm/sway/blob/0aceff74696f03d306dc9de5473d9ed7afb73f67/sway/sway.5.scd?plain=1#L770
    
    closes: #13797
    
    Signed-off-by: James Eapen <[email protected]><author>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/syntax/swayconfig.vim b/runtime/syntax/swayconfig.vim
index 7b1c889d6..69fe26d37 100644
--- a/runtime/syntax/swayconfig.vim
+++ b/runtime/syntax/swayconfig.vim
@@ -2,8 +2,8 @@
 " Language: sway config file
 " Original Author: Josef Litos (JosefLitos/i3config.vim)
 " Maintainer: James Eapen <[email protected]>
-" Version: 1.0.0
-" Last Change: 2023-09-14
+" Version: 1.0.2
+" Last Change: 2023-12-28
 
 " References:
 " http://i3wm.org/docs/userguide.html#configuring
@@ -43,6 +43,12 @@ syn region swayConfigExecBlock start=/exec\(_always\)\? {/ 
end=/^}$/ contains=i3
 syn keyword swayConfigFloatingModifierOpts normal inverse contained
 syn match i3ConfigKeyword /^floating_modifier [$a-zA-Z0-9+]\+ 
\(normal\|inverse\)$/ 
contains=i3ConfigVariable,i3ConfigBindModkey,swayConfigFloatingModifierOpts
 
+syn keyword swayConfigSmartGapsOpts toggle contained
+syn match i3ConfigKeyword /^smart_gaps toggle$/ 
contains=i3ConfigSmartGapOpts,i3ConfigBoolean,swayConfigSmartGapsOpts
+
+syn keyword swayConfigFocusFollowsMouseOpts always contained
+syn match i3ConfigKeyword /^focus_follows_mouse always$/ 
contains=i3ConfigBoolean,swayConfigFocusFollowsMouseOpts
+
 syn match i3ConfigKeyword /^hide_edge_borders --i3 \w*$/ 
contains=i3ConfigEdgeKeyword,i3ConfigShParam
 
 syn keyword i3ConfigBarOpts swaybar_command gaps height pango_markup 
status_edge_padding status_padding wrap_scroll tray_bindcode tray_bindsym 
icon_theme contained
@@ -118,7 +124,9 @@ syn region swayConfigOutput start=/^output/ skip=/\$/ 
end=/$/  contains=swayCon
 syn region swayConfigOutput start=/^output .* {$/ end=/}$/  
contains=swayConfigOutputKeyword,swayConfigOutputMode,swayConfigOutputOpts,swayConfigOutputOptVals,i3ConfigVariable,i3ConfigNumber,i3ConfigString,i3ConfigColor,i3ConfigBoolean,swayConfigDeviceOps,i3ConfigParen
 keepend extend
 
 " Define the highlighting.
+hi def link swayConfigSmartGapsOpts          i3ConfigOption
 hi def link swayConfigFloatingModifierOpts   i3ConfigOption
+hi def link swayConfigFocusFollowsMouseOpts  i3ConfigOption
 hi def link swayConfigBindKeyword            i3ConfigBindKeyword
 hi def link swayConfigXOpt                   i3ConfigOption
 hi def link swayConfigInhibitKeyword         i3ConfigCommand

-- 
-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rQCmW-00HHP1-Po%40256bit.org.

Raspunde prin e-mail lui