Mercurial > vim
comparison runtime/syntax/swayconfig.vim @ 31200:a7801222c9c5
Update runtime files
Commit: https://github.com/vim/vim/commit/b59ae59a58706e454ef8c78276f021b1f58466e7
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 23 23:46:31 2022 +0000
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Nov 2022 01:00:06 +0100 |
parents | 2acb87ee55fc |
children | 635de73eeb4c |
comparison
equal
deleted
inserted
replaced
31199:2a1806eb1a4e | 31200:a7801222c9c5 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: sway window manager config | 2 " Language: sway window manager config |
3 " Original Author: James Eapen <james.eapen@vai.org> | 3 " Original Author: James Eapen <james.eapen@vai.org> |
4 " Maintainer: James Eapen <james.eapen@vai.org> | 4 " Maintainer: James Eapen <james.eapen@vai.org> |
5 " Version: 0.11.1 | 5 " Version: 0.1.6 |
6 " Reference version (jamespeapen/swayconfig.vim): 0.11.6 | |
6 " Last Change: 2022 Aug 08 | 7 " Last Change: 2022 Aug 08 |
7 | 8 |
8 " References: | 9 " References: |
9 " http://i3wm.org/docs/userguide.html#configuring | 10 " http://i3wm.org/docs/userguide.html#configuring |
10 " https://github.com/swaywm/sway/blob/b69d637f7a34e239e48a4267ae94a5e7087b5834/sway/sway.5.scd | 11 " https://github.com/swaywm/sway/blob/b69d637f7a34e239e48a4267ae94a5e7087b5834/sway/sway.5.scd |
21 scriptencoding utf-8 | 22 scriptencoding utf-8 |
22 | 23 |
23 " Error | 24 " Error |
24 "syn match swayConfigError /.*/ | 25 "syn match swayConfigError /.*/ |
25 | 26 |
26 " Group mode/bar | |
27 syn keyword swayConfigBlockKeyword set input contained | |
28 syn region swayConfigBlock start=+.*s\?{$+ end=+^}$+ contains=i3ConfigBlockKeyword,swayConfigBlockKeyword,i3ConfigString,i3ConfigBind,i3ConfigComment,i3ConfigFont,i3ConfigFocusWrappingType,i3ConfigColor,i3ConfigVariable transparent keepend extend | |
29 | |
30 " binding | 27 " binding |
31 syn keyword swayConfigBindKeyword bindswitch bindgesture contained | 28 syn keyword swayConfigBindKeyword bindswitch bindgesture contained |
32 syn match swayConfigBind /^\s*\(bindswitch\)\s\+.*$/ contains=i3ConfigVariable,i3ConfigBindKeyword,swayConfigBindKeyword,i3ConfigVariableAndModifier,i3ConfigNumber,i3ConfigUnit,i3ConfigUnitOr,i3ConfigBindArgument,i3ConfigModifier,i3ConfigAction,i3ConfigString,i3ConfigGapStyleKeyword,i3ConfigBorderStyleKeyword | 29 syn match swayConfigBind /^\s*\(bindswitch\)\s\+.*$/ contains=i3ConfigVariable,i3ConfigBindKeyword,swayConfigBindKeyword,i3ConfigVariableAndModifier,i3ConfigNumber,i3ConfigUnit,i3ConfigUnitOr,i3ConfigBindArgument,i3ConfigModifier,i3ConfigAction,i3ConfigString,i3ConfigGapStyleKeyword,i3ConfigBorderStyleKeyword |
33 | 30 |
34 " bindgestures | 31 " bindgestures |
43 syn keyword swayConfigFloatingKeyword floating contained | 40 syn keyword swayConfigFloatingKeyword floating contained |
44 syn match swayConfigFloating /^\s*floating\s\+\(enable\|disable\|toggle\)\s*$/ contains=swayConfigFloatingKeyword | 41 syn match swayConfigFloating /^\s*floating\s\+\(enable\|disable\|toggle\)\s*$/ contains=swayConfigFloatingKeyword |
45 | 42 |
46 syn clear i3ConfigFloatingModifier | 43 syn clear i3ConfigFloatingModifier |
47 syn keyword swayConfigFloatingModifier floating_modifier contained | 44 syn keyword swayConfigFloatingModifier floating_modifier contained |
48 syn match swayConfigFloatingMouseAction /^\s\?.*floating_modifier\s.*\(normal\|inverted\)$/ contains=swayConfigFloatingModifier,i3ConfigVariable | 45 syn match swayConfigFloatingMouseAction /^\s\?.*floating_modifier\s\S\+\s\?\(normal\|inverted\|none\)\?$/ contains=swayConfigFloatingModifier,i3ConfigVariable |
49 | 46 |
50 " Gaps | 47 " Gaps |
51 syn clear i3ConfigSmartBorderKeyword | 48 syn clear i3ConfigSmartBorderKeyword |
52 syn clear i3ConfigSmartBorder | 49 syn clear i3ConfigSmartBorder |
53 syn keyword swayConfigSmartBorderKeyword on no_gaps off contained | 50 syn keyword swayConfigSmartBorderKeyword on no_gaps off contained |
55 | 52 |
56 " Changing colors | 53 " Changing colors |
57 syn keyword swayConfigClientColorKeyword focused_tab_title contained | 54 syn keyword swayConfigClientColorKeyword focused_tab_title contained |
58 syn match swayConfigClientColor /^\s*client.\w\+\s\+.*$/ contains=i3ConfigClientColorKeyword,i3ConfigColor,i3ConfigVariable,i3ConfigClientColorKeyword,swayConfigClientColorKeyword | 55 syn match swayConfigClientColor /^\s*client.\w\+\s\+.*$/ contains=i3ConfigClientColorKeyword,i3ConfigColor,i3ConfigVariable,i3ConfigClientColorKeyword,swayConfigClientColorKeyword |
59 | 56 |
57 " Input config | |
58 syn keyword swayConfigInputKeyword input contained | |
59 syn match swayConfigInput /^\s*input\s\+.*$/ contains=swayConfigInputKeyword | |
60 | |
60 " set display outputs | 61 " set display outputs |
61 syn match swayConfigOutput /^\s*output\s\+.*$/ contains=i3ConfigOutput | 62 syn match swayConfigOutput /^\s*output\s\+.*$/ contains=i3ConfigOutput |
62 | 63 |
63 " set display focus | 64 " set display focus |
64 syn keyword swayConfigFocusKeyword focus contained | 65 syn keyword swayConfigFocusKeyword focus contained |
65 syn keyword swayConfigFocusType output contained | 66 syn keyword swayConfigFocusType output contained |
66 syn match swayConfigFocus /^\s*focus\soutput\s.*$/ contains=swayConfigFocusKeyword,swayConfigFocusType | 67 syn match swayConfigFocus /^\s*focus\soutput\s.*$/ contains=swayConfigFocusKeyword,swayConfigFocusType |
67 | 68 |
69 " focus follows mouse | |
70 syn clear i3ConfigFocusFollowsMouseType | |
71 syn clear i3ConfigFocusFollowsMouse | |
72 | |
73 syn keyword swayConfigFocusFollowsMouseType yes no always contained | |
74 syn match swayConfigFocusFollowsMouse /^\s*focus_follows_mouse\s\+\(yes\|no\|always\)\s\?$/ contains=i3ConfigFocusFollowsMouseKeyword,swayConfigFocusFollowsMouseType | |
75 | |
76 | |
68 " xwayland | 77 " xwayland |
69 syn keyword swayConfigXwaylandKeyword xwayland contained | 78 syn keyword swayConfigXwaylandKeyword xwayland contained |
70 syn match swayConfigXwaylandModifier /^\s*xwayland\s\+\(enable\|disable\|force\)\s\?$/ contains=swayConfigXwaylandKeyword | 79 syn match swayConfigXwaylandModifier /^\s*xwayland\s\+\(enable\|disable\|force\)\s\?$/ contains=swayConfigXwaylandKeyword |
80 | |
81 " Group mode/bar | |
82 syn clear i3ConfigBlock | |
83 syn region swayConfigBlock start=+.*s\?{$+ end=+^}$+ contains=i3ConfigBlockKeyword,i3ConfigString,i3ConfigBind,i3ConfigInitializeKeyword,i3ConfigComment,i3ConfigFont,i3ConfigFocusWrappingType,i3ConfigColor,i3ConfigVariable,swayConfigInputKeyword,i3ConfigOutput transparent keepend extend | |
71 | 84 |
72 "hi def link swayConfigError Error | 85 "hi def link swayConfigError Error |
73 hi def link i3ConfigFloating Error | 86 hi def link i3ConfigFloating Error |
74 hi def link swayConfigFloating Type | 87 hi def link swayConfigFloating Type |
75 hi def link swayConfigFloatingMouseAction Type | 88 hi def link swayConfigFloatingMouseAction Type |
76 hi def link swayConfigFocusKeyword Type | 89 hi def link swayConfigFocusKeyword Type |
77 hi def link swayConfigSmartBorderKeyword Type | 90 hi def link swayConfigSmartBorderKeyword Type |
91 hi def link swayConfigInputKeyword Type | |
92 hi def link swayConfigFocusFollowsMouseType Type | |
78 hi def link swayConfigBindGestureCommand Identifier | 93 hi def link swayConfigBindGestureCommand Identifier |
79 hi def link swayConfigBindGestureDirection Constant | 94 hi def link swayConfigBindGestureDirection Constant |
80 hi def link swayConfigBindGesturePinchDirection Constant | 95 hi def link swayConfigBindGesturePinchDirection Constant |
81 hi def link swayConfigBindKeyword Identifier | 96 hi def link swayConfigBindKeyword Identifier |
82 hi def link swayConfigBlockKeyword Identifier | |
83 hi def link swayConfigClientColorKeyword Identifier | 97 hi def link swayConfigClientColorKeyword Identifier |
84 hi def link swayConfigFloatingKeyword Identifier | 98 hi def link swayConfigFloatingKeyword Identifier |
85 hi def link swayConfigFloatingModifier Identifier | 99 hi def link swayConfigFloatingModifier Identifier |
86 hi def link swayConfigFocusType Identifier | 100 hi def link swayConfigFocusType Identifier |
87 hi def link swayConfigSmartBorder Identifier | 101 hi def link swayConfigSmartBorder Identifier |