Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 1 | " Vim syntax file |
| 2 | " Language: i3 config file |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 3 | " Original Author: Josef Litos (JosefLitos/i3config.vim) |
Bram Moolenaar | 2f0936c | 2022-01-08 21:51:59 +0000 | [diff] [blame] | 4 | " Maintainer: Quentin Hibon (github user hiqua) |
James Eapen | a39af02 | 2023-12-29 11:50:33 -0500 | [diff] [blame] | 5 | " Version: 1.0.2 |
| 6 | " Last Change: 2023-12-28 |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 7 | |
| 8 | " References: |
| 9 | " http://i3wm.org/docs/userguide.html#configuring |
| 10 | " http://vimdoc.sourceforge.net/htmldoc/syntax.html |
| 11 | " |
| 12 | " |
| 13 | " Quit when a syntax file was already loaded |
| 14 | if exists("b:current_syntax") |
| 15 | finish |
| 16 | endif |
| 17 | |
| 18 | scriptencoding utf-8 |
| 19 | |
Bram Moolenaar | 2ecbe53 | 2022-07-29 21:36:21 +0100 | [diff] [blame] | 20 | " Error |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 21 | syn match i3ConfigError /.\+/ |
Bram Moolenaar | 2ecbe53 | 2022-07-29 21:36:21 +0100 | [diff] [blame] | 22 | |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 23 | " Todo |
| 24 | syn keyword i3ConfigTodo TODO FIXME XXX contained |
| 25 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 26 | " Helper type definitions |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 27 | syn match i3ConfigSeparator /[,;\\]/ contained |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 28 | syn match i3ConfigParen /[{}]/ contained |
| 29 | syn keyword i3ConfigBoolean yes no enabled disabled on off true false contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 30 | syn region i3ConfigString start=/\W\@<="/ skip=/\\\("\|$\)/ end=/"\|$/ contained contains=i3ConfigShCommand,i3ConfigShDelim,i3ConfigShOper,i3ConfigShParam,i3ConfigNumber,i3ConfigVariable,i3ConfigExecAction keepend extend |
| 31 | syn region i3ConfigString start=/\W\@<='/ skip=/\\$/ end=/'\|$/ contained contains=i3ConfigShCommand,i3ConfigShDelim,i3ConfigShOper,i3ConfigShParam,i3ConfigNumber,i3ConfigVariable,i3ConfigExecAction keepend extend |
| 32 | syn match i3ConfigColor /#[0-9A-Fa-f]\{3,8}/ contained |
| 33 | syn match i3ConfigNumber /[0-9A-Za-z_$-]\@<!-\?\d\+\w\@!/ contained |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 34 | |
| 35 | " 4.1 Include directive |
| 36 | syn keyword i3ConfigIncludeKeyword include contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 37 | syn match i3ConfigIncludeCommand /`[^`]*`/ contained contains=i3ConfigShDelim,i3ConfigShParam,i3ConfigShOper,i3ConfigShCommand,i3ConfigString |
| 38 | syn match i3ConfigParamLine /^include .*$/ contains=i3ConfigIncludeKeyword,i3ConfigString,i3ConfigVariable,i3ConfigIncludeCommand,i3ConfigShOper |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 39 | |
| 40 | " 4.2 Comments |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 41 | syn match i3ConfigComment /^\s*#.*$/ contains=i3ConfigTodo |
| 42 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 43 | " 4.3 Fonts |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 44 | syn keyword i3ConfigFontKeyword font contained |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 45 | syn match i3ConfigColonOperator /:/ contained |
| 46 | syn match i3ConfigFontNamespace /\w\+:/ contained contains=i3ConfigColonOperator |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 47 | syn match i3ConfigFontSize / \d\+\(px\)\?\s\?$/ contained |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 48 | syn region i3ConfigFont start=/^\s*font / skip=/\\$/ end=/$/ contains=i3ConfigFontKeyword,i3ConfigFontNamespace,i3ConfigFontSize,i3ConfigSeparator keepend |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 49 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 50 | " 4.4-4.5 Keyboard/Mouse bindings |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 51 | syn keyword i3ConfigBindKeyword bindsym bindcode contained |
| 52 | syn match i3ConfigBindArgument /--\(release\|border\|whole-window\|exclude-titlebar\)/ contained |
| 53 | syn match i3ConfigBindModifier /+/ contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 54 | syn keyword i3ConfigBindModkey Ctrl Shift Mod1 Mod2 Mod3 Mod4 Mod5 contained |
| 55 | syn match i3ConfigBindCombo /[$0-9A-Za-z_+]\+ / contained contains=i3ConfigBindModifier,i3ConfigVariable,i3ConfigBindModkey |
| 56 | syn match i3ConfigBindComboLine /bind\(sym\|code\)\( --[a-z-]\+\)* [$0-9A-Za-z_+]\+ / contained contains=i3ConfigBindKeyword,i3ConfigBindArgument,i3ConfigBindCombo |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 57 | syn region i3ConfigBind start=/^\s*bind\(sym\|code\) / skip=/\\$/ end=/$/ contains=i3ConfigBindComboLine,i3ConfigCriteria,i3ConfigAction,i3ConfigSeparator,i3ConfigActionKeyword,i3ConfigOption,i3ConfigString,i3ConfigNumber,i3ConfigVariable,i3ConfigBoolean keepend |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 58 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 59 | " 4.6 Binding modes |
| 60 | syn region i3ConfigKeyword start=/^mode\( --pango_markup\)\? \([^'" {]\+\|'[^']\+'\|".\+"\)\s\+{$/ end=/^\s*}$/ contains=i3ConfigShParam,i3ConfigString,i3ConfigBind,i3ConfigComment,i3ConfigNumber,i3ConfigParen,i3ConfigVariable fold keepend extend |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 61 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 62 | " 4.7 Floating modifier |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 63 | syn match i3ConfigKeyword /^floating_modifier [$0-9A-Za-z]*$/ contains=i3ConfigVariable,i3ConfigBindModkey |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 64 | |
| 65 | " 4.8 Floating window size |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 66 | syn keyword i3ConfigSizeSpecial x contained |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 67 | syn match i3ConfigSize / -\?\d\+ x -\?\d\+/ contained contains=i3ConfigSizeSpecial,i3ConfigNumber |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 68 | syn match i3ConfigKeyword /^floating_\(maximum\|minimum\)_size .*$/ contains=i3ConfigSize |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 69 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 70 | " 4.9 Orientation |
| 71 | syn keyword i3ConfigOrientationOpts vertical horizontal auto contained |
| 72 | syn match i3ConfigKeyword /^default_orientation \w*$/ contains=i3ConfigOrientationOpts |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 73 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 74 | " 4.10 Layout mode |
| 75 | syn keyword i3ConfigWorkspaceLayoutOpts default stacking tabbed contained |
| 76 | syn match i3ConfigKeyword /^workspace_layout \w*$/ contains=i3ConfigWorkspaceLayoutOpts |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 77 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 78 | " 4.11 Title alignment |
| 79 | syn keyword i3ConfigTitleAlignOpts left center right contained |
| 80 | syn match i3ConfigKeyword /^title_align .*$/ contains=i3ConfigTitleAlignOpts |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 81 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 82 | " 4.12 Border style |
| 83 | syn keyword i3ConfigBorderOpts none normal pixel contained |
| 84 | syn match i3ConfigKeyword /^default\(_floating\)\?_border .*$/ contains=i3ConfigBorderOpts,i3ConfigNumber,i3ConfigVariable |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 85 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 86 | " 4.13 Hide edge borders |
| 87 | syn keyword i3ConfigEdgeOpts none vertical horizontal both smart smart_no_gaps contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 88 | syn match i3ConfigKeyword /^hide_edge_borders \w*$/ contains=i3ConfigEdgeOpts |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 89 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 90 | " 4.14 Smart Borders |
| 91 | syn keyword i3ConfigSmartBorderOpts no_gaps contained |
| 92 | syn match i3ConfigKeyword /^smart_borders \(on\|off\|no_gaps\)$/ contains=i3ConfigSmartBorderOpts,i3ConfigBoolean |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 93 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 94 | " 4.15 Arbitrary commands |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 95 | syn region i3ConfigKeyword start=/^for_window / end=/$/ contains=i3ConfigForWindowKeyword,i3ConfigCriteria keepend |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 96 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 97 | " 4.16 No opening focus |
| 98 | syn match i3ConfigKeyword /^no_focus .*$/ contains=i3ConfigCondition |
| 99 | |
| 100 | " 4.17 Variables |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 101 | syn match i3ConfigVariable /\$[0-9A-Za-z_:|[\]-]\+/ |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 102 | syn keyword i3ConfigSetKeyword set contained |
julio-b | 5392970 | 2024-04-13 16:10:10 +0000 | [diff] [blame] | 103 | syn region i3ConfigSet start=/^set\s\+\$/ skip=/\\$/ end=/$/ contains=i3ConfigSetKeyword,i3ConfigVariable,i3ConfigColor,i3ConfigString,i3ConfigNumber,i3ConfigShCommand,i3ConfigShDelim,i3ConfigShParam,i3ConfigShOper,i3ConfigBindModkey keepend |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 104 | |
| 105 | " 4.18 X resources |
| 106 | syn keyword i3ConfigResourceKeyword set_from_resource contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 107 | syn match i3ConfigParamLine /^set_from_resource\s\+.*$/ contains=i3ConfigResourceKeyword,i3ConfigCondition,i3ConfigColor,i3ConfigVariable,i3ConfigString,i3ConfigNumber |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 108 | |
| 109 | " 4.19 Assign clients to workspaces |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 110 | syn keyword i3ConfigAssignKeyword assign contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 111 | syn match i3ConfigAssignSpecial /→\|number/ contained |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 112 | syn match i3ConfigAssign /^assign .*$/ contains=i3ConfigAssignKeyword,i3ConfigAssignSpecial,i3ConfigCondition,i3ConfigVariable,i3ConfigString,i3ConfigNumber |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 113 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 114 | " 4.20 Executing shell commands |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 115 | syn keyword i3ConfigExecKeyword exec contained |
| 116 | syn keyword i3ConfigExecAlwaysKeyword exec_always contained |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 117 | syn match i3ConfigShCmdDelim /\$(/ contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 118 | syn region i3ConfigShCommand start=/\$(/ end=/)/ contained contains=i3ConfigShCmdDelim,i3ConfigExecAction,i3ConfigShCommand,i3ConfigShDelim,i3ConfigShOper,i3ConfigShParam,i3ConfigString,i3ConfigNumber,i3ConfigVariable keepend extend |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 119 | syn match i3ConfigShDelim /[[\]{}();`]\+/ contained |
| 120 | syn match i3ConfigShOper /[<>&|+=~^*!.?]\+/ contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 121 | syn match i3ConfigShParam /\<-[0-9A-Za-z_-]\+\>/ contained containedin=i3ConfigVar |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 122 | syn region i3ConfigExec start=/^\s*exec\(_always\)\?\( --no-startup-id\)\? [^{]/ skip=/\\$/ end=/$/ contains=i3ConfigExecKeyword,i3ConfigExecAlwaysKeyword,i3ConfigShCommand,i3ConfigShDelim,i3ConfigShOper,i3ConfigShParam,i3ConfigNumber,i3ConfigString,i3ConfigVariable,i3ConfigExecAction keepend |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 123 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 124 | " 4.21 Workspaces per output |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 125 | syn keyword i3ConfigWorkspaceKeyword workspace contained |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 126 | syn keyword i3ConfigWorkspaceOutput output contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 127 | syn keyword i3ConfigWorkspaceDir prev next back_and_forth number contained |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 128 | syn region i3ConfigWorkspaceLine start=/^workspace / skip=/\\$/ end=/$/ contains=i3ConfigWorkspaceKeyword,i3ConfigNumber,i3ConfigString,i3ConfigGaps,i3ConfigWorkspaceOutput,i3ConfigVariable,i3ConfigBoolean,i3ConfigSeparator keepend |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 129 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 130 | " 4.22 Changing colors |
| 131 | syn match i3ConfigDotOperator /\./ contained |
| 132 | syn keyword i3ConfigClientOpts focused focused_inactive unfocused urgent placeholder background contained |
| 133 | syn match i3ConfigKeyword /^client\..*$/ contains=i3ConfigDotOperator,i3ConfigClientOpts,i3ConfigColor,i3ConfigVariable |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 134 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 135 | " 4.23 Interprocess communication |
| 136 | syn match i3ConfigIpcKeyword /ipc-socket/ contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 137 | syn match i3ConfigParamLine /^ipc-socket .*$/ contains=i3ConfigIpcKeyword |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 138 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 139 | " 4.24 Focus follows mouse |
James Eapen | a39af02 | 2023-12-29 11:50:33 -0500 | [diff] [blame] | 140 | syn match i3ConfigKeyword /^focus_follows_mouse \(yes\|no\)$/ contains=i3ConfigBoolean |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 141 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 142 | " 4.25 Mouse warping |
| 143 | syn keyword i3ConfigMouseWarpingOpts output container none contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 144 | syn match i3ConfigKeyword /^mouse_warping \w*$/ contains=i3ConfigMouseWarpingOpts |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 145 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 146 | " 4.26 Popups while fullscreen |
| 147 | syn keyword i3ConfigPopupFullscreenOpts smart ignore leave_fullscreen contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 148 | syn match i3ConfigKeyword /^popup_during_fullscreen \w*$/ contains=i3ConfigPopupFullscreenOpts |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 149 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 150 | " 4.27 Focus wrapping |
| 151 | syn keyword i3ConfigFocusWrappingOpts force workspace contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 152 | syn match i3ConfigKeyword /^focus_wrapping \(yes\|no\|force\|workspace\)$/ contains=i3ConfigBoolean,i3ConfigFocusWrappingOpts |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 153 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 154 | " 4.28 Forcing Xinerama |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 155 | syn match i3ConfigKeyword /^force_xinerama \(yes\|no\)$/ contains=i3ConfigBoolean |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 156 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 157 | " 4.29 Automatic workspace back-and-forth |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 158 | syn match i3ConfigKeyword /^workspace_auto_back_and_forth \(yes\|no\)$/ contains=i3ConfigBoolean |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 159 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 160 | " 4.30 Delay urgency hint |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 161 | syn keyword i3ConfigTimeUnit ms contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 162 | syn match i3ConfigKeyword /^force_display_urgency_hint \d\+\( ms\)\?$/ contains=i3ConfigNumber,i3ConfigTimeUnit |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 163 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 164 | " 4.31 Focus on window activation |
| 165 | syn keyword i3ConfigFocusOnActivationOpts smart urgent focus none contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 166 | syn match i3ConfigKeyword /^focus_on_window_activation \w*$/ contains=i3ConfigFocusOnActivationOpts |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 167 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 168 | " 4.32 Show marks in title |
| 169 | syn match i3ConfigShowMarks /^show_marks \(yes\|no\)$/ contains=i3ConfigBoolean |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 170 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 171 | " 4.34 Tiling drag |
| 172 | syn keyword i3ConfigTilingDragOpts modifier titlebar contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 173 | syn match i3ConfigKeyword /^tiling_drag\( off\|\( modifier\| titlebar\)\{1,2\}\)$/ contains=i3ConfigTilingDragOpts,i3ConfigBoolean |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 174 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 175 | " 4.35 Gaps |
| 176 | syn keyword i3ConfigGapsOpts inner outer horizontal vertical left right top bottom current all set plus minus toggle contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 177 | syn region i3ConfigGaps start=/gaps/ skip=/\\$/ end=/[,;]\|$/ contained contains=i3ConfigGapsOpts,i3ConfigNumber,i3ConfigVariable,i3ConfigSeparator keepend |
| 178 | syn match i3ConfigGapsLine /^gaps .*$/ contains=i3ConfigGaps |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 179 | syn keyword i3ConfigSmartGapOpts inverse_outer contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 180 | syn match i3ConfigKeyword /^smart_gaps \(on\|off\|inverse_outer\)$/ contains=i3ConfigSmartGapOpts,i3ConfigBoolean |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 181 | |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 182 | " 5 Configuring bar |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 183 | syn match i3ConfigBarModifier /^\s\+modifier \S\+$/ contained contains=i3ConfigBindModifier,i3ConfigVariable,i3ConfigBindModkey,i3ConfigBarOptVals |
Ivan Grimaldi | 5994329 | 2023-11-11 13:09:26 +0100 | [diff] [blame] | 184 | syn keyword i3ConfigBarOpts bar i3bar_command status_command workspace_command mode hidden_state id position output tray_output tray_padding separator_symbol workspace_buttons workspace_min_width strip_workspace_numbers strip_workspace_name binding_mode_indicator padding contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 185 | syn keyword i3ConfigBarOptVals dock hide invisible show none top bottom primary nonprimary contained |
| 186 | syn region i3ConfigBarBlock start=/^bar {$/ end=/^}$/ contains=i3ConfigBarOpts,i3ConfigBarOptVals,i3ConfigBarModifier,i3ConfigBind,i3ConfigString,i3ConfigComment,i3ConfigFont,i3ConfigBoolean,i3ConfigNumber,i3ConfigParen,i3ConfigColor,i3ConfigVariable,i3ConfigColorsBlock,i3ConfigShOper,i3ConfigShCommand fold keepend extend |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 187 | |
| 188 | " 5.16 Color block |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 189 | syn keyword i3ConfigColorsKeyword colors contained |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 190 | syn match i3ConfigColorsOpts /\(focused_\)\?\(background\|statusline\|separator\)\|\(focused\|active\|inactive\|urgent\)_workspace\|binding_mode/ contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 191 | syn region i3ConfigColorsBlock start=/^\s\+colors {$/ end=/^\s\+}$/ contained contains=i3ConfigColorsKeyword,i3ConfigColorsOpts,i3ConfigColor,i3ConfigVariable,i3ConfigComment,i3ConfigParen fold keepend extend |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 192 | |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 193 | " 6.0 Command criteria |
| 194 | syn keyword i3ConfigConditionProp class instance window_role window_type machine id title urgent workspace con_mark con_id floating_from tiling_from contained |
| 195 | syn keyword i3ConfigConditionSpecial __focused__ all floating tiling contained |
| 196 | syn region i3ConfigCondition start=/\[/ end=/\]/ contained contains=i3ConfigShDelim,i3ConfigConditionProp,i3ConfigShOper,i3ConfigConditionSpecial,i3ConfigNumber,i3ConfigString keepend extend |
| 197 | syn region i3ConfigCriteria start=/\[/ skip=/\\$/ end=/\(;\|$\)/ contained contains=i3ConfigCondition,i3ConfigAction,i3ConfigActionKeyword,i3ConfigOption,i3ConfigBoolean,i3ConfigNumber,i3ConfigVariable,i3ConfigSeparator keepend transparent |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 198 | |
| 199 | " 6.1 Actions through shell |
| 200 | syn match i3ConfigExecActionKeyword /i3-msg/ contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 201 | syn region i3ConfigExecAction start=/[a-z3-]\+msg "/ skip=/ "\|\\$/ end=/"\|$/ contained contains=i3ConfigExecActionKeyword,i3ConfigShCommand,i3ConfigNumber,i3ConfigShOper,i3ConfigCriteria,i3ConfigAction,i3ConfigActionKeyword,i3ConfigOption,i3ConfigVariable keepend extend |
| 202 | syn region i3ConfigExecAction start=/[a-z3-]\+msg '/ skip=/ '\|\\$/ end=/'\|$/ contained contains=i3ConfigExecActionKeyword,i3ConfigShCommand,i3ConfigNumber,i3ConfigShOper,i3ConfigCriteria,i3ConfigAction,i3ConfigActionKeyword,i3ConfigOption,i3ConfigVariable keepend extend |
| 203 | syn region i3ConfigExecAction start=/[a-z3-]\+msg ['"-]\@!/ skip=/\\$/ end=/[&|;})'"]\@=\|$/ contained contains=i3ConfigExecActionKeyword,i3ConfigShCommand,i3ConfigNumber,i3ConfigShOper,i3ConfigCriteria,i3ConfigAction,i3ConfigActionKeyword,i3ConfigOption,i3ConfigVariable keepend extend |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 204 | " 6.1 Executing applications (4.20) |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 205 | syn region i3ConfigAction start=/exec/ skip=/\\$/ end=/[,;]\|$/ contained contains=i3ConfigExecKeyword,i3ConfigExecAction,i3ConfigShCommand,i3ConfigShDelim,i3ConfigShOper,i3ConfigShParam,i3ConfigNumber,i3ConfigString,i3ConfigVariable,i3ConfigSeparator keepend |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 206 | |
| 207 | " 6.3 Manipulating layout |
| 208 | syn keyword i3ConfigLayoutKeyword layout contained |
| 209 | syn keyword i3ConfigLayoutOpts default tabbed stacking splitv splith toggle split all contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 210 | syn region i3ConfigAction start=/layout/ skip=/\\$/ end=/[,;]\|$/ contained contains=i3ConfigLayoutKeyword,i3ConfigLayoutOpts,i3ConfigSeparator keepend transparent |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 211 | |
| 212 | " 6.4 Focusing containers |
| 213 | syn keyword i3ConfigFocusKeyword focus contained |
Ivan Grimaldi | 5994329 | 2023-11-11 13:09:26 +0100 | [diff] [blame] | 214 | syn keyword i3ConfigFocusOpts left right up down workspace parent child next prev sibling floating tiling mode_toggle contained |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 215 | syn keyword i3ConfigFocusOutputOpts left right down up current primary nonprimary next prev contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 216 | syn region i3ConfigFocusOutput start=/ output / skip=/\\$/ end=/[,;]\|$/ contained contains=i3ConfigWorkspaceOutput,i3ConfigFocusOutputOpts,i3ConfigString,i3ConfigNumber,i3ConfigSeparator keepend |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 217 | syn match i3ConfigFocusOutputLine /^focus output .*$/ contains=i3ConfigFocusKeyword,i3ConfigFocusOutput |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 218 | syn region i3ConfigAction start=/focus/ skip=/\\$/ end=/[,;]\|$/ contained contains=i3ConfigFocusKeyword,i3ConfigFocusOpts,i3ConfigFocusOutput,i3ConfigString,i3ConfigSeparator keepend transparent |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 219 | |
| 220 | " 6.8 Focusing workspaces (4.21) |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 221 | syn region i3ConfigAction start=/workspace / skip=/\\$/ end=/[,;]\|$/ contained contains=i3ConfigWorkspaceKeyword,i3ConfigWorkspaceDir,i3ConfigNumber,i3ConfigString,i3ConfigGaps,i3ConfigWorkspaceOutput,i3ConfigVariable,i3ConfigBoolean,i3ConfigSeparator keepend transparent |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 222 | |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 223 | " 6.8.2 Renaming workspaces |
| 224 | syn keyword i3ConfigRenameKeyword rename contained |
| 225 | syn region i3ConfigAction start=/rename workspace/ end=/[,;]\|$/ contained contains=i3ConfigRenameKeyword,i3ConfigMoveDir,i3ConfigMoveType,i3ConfigNumber,i3ConfigVariable,i3ConfigString keepend transparent |
| 226 | |
| 227 | " 6.5,6.9-6.11 Moving containers |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 228 | syn keyword i3ConfigMoveKeyword move contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 229 | syn keyword i3ConfigMoveDir left right down up position absolute center to current contained |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 230 | syn keyword i3ConfigMoveType window container workspace output mark mouse scratchpad contained |
| 231 | syn match i3ConfigUnit / px\| ppt/ contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 232 | syn region i3ConfigAction start=/move/ skip=/\\$/ end=/[,;]\|$/ contained contains=i3ConfigMoveKeyword,i3ConfigMoveDir,i3ConfigMoveType,i3ConfigWorkspaceDir,i3ConfigUnit,i3ConfigNumber,i3ConfigVariable,i3ConfigString,i3ConfigSeparator,i3ConfigShParam keepend transparent |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 233 | |
| 234 | " 6.12 Resizing containers/windows |
| 235 | syn keyword i3ConfigResizeKeyword resize contained |
| 236 | syn keyword i3ConfigResizeOpts grow shrink up down left right set width height or contained |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 237 | syn region i3ConfigAction start=/resize/ skip=/\\$/ end=/[,;]\|$/ contained contains=i3ConfigResizeKeyword,i3ConfigResizeOpts,i3ConfigNumber,i3ConfigUnit,i3ConfigSeparator keepend transparent |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 238 | |
| 239 | " 6.14 VIM-like marks |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 240 | syn match i3ConfigMark /mark\( --\(add\|replace\)\( --toggle\)\?\)\?/ contained contains=i3ConfigShParam |
| 241 | syn region i3ConfigAction start=/\<mark/ skip=/\\$/ end=/[,;]\|$/ contained contains=i3ConfigMark,i3ConfigNumber,i3ConfigString,i3ConfigSeparator keepend transparent |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 242 | |
| 243 | " 6.24 Changing gaps (4.35) |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 244 | syn region i3ConfigAction start=/gaps/ skip=/\\$/ end=/[,;]\|$/ contained contains=i3ConfigGaps keepend transparent |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 245 | |
| 246 | " Commands useable in keybinds |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 247 | syn keyword i3ConfigActionKeyword mode append_layout kill open fullscreen sticky split floating swap unmark show_marks title_window_icon title_format border restart reload exit scratchpad nop bar contained |
| 248 | syn keyword i3ConfigOption default enable disable toggle key restore current horizontal vertical auto none normal pixel show container with id con_id padding hidden_state hide dock invisible contained |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 249 | |
| 250 | " Define the highlighting. |
Bram Moolenaar | 2ecbe53 | 2022-07-29 21:36:21 +0100 | [diff] [blame] | 251 | hi def link i3ConfigError Error |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 252 | hi def link i3ConfigTodo Todo |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 253 | hi def link i3ConfigKeyword Keyword |
| 254 | hi def link i3ConfigCommand Statement |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 255 | hi def link i3ConfigParamLine i3ConfigString |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 256 | hi def link i3ConfigOperator Operator |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 257 | hi def link i3ConfigSeparator i3ConfigOperator |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 258 | hi def link i3ConfigParen Delimiter |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 259 | hi def link i3ConfigBoolean Boolean |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 260 | hi def link i3ConfigString String |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 261 | hi def link i3ConfigColor Constant |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 262 | hi def link i3ConfigNumber Number |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 263 | hi def link i3ConfigIncludeKeyword i3ConfigKeyword |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 264 | hi def link i3ConfigComment Comment |
| 265 | hi def link i3ConfigFontKeyword i3ConfigKeyword |
| 266 | hi def link i3ConfigColonOperator i3ConfigOperator |
| 267 | hi def link i3ConfigFontNamespace i3ConfigOption |
| 268 | hi def link i3ConfigFontSize i3ConfigNumber |
| 269 | hi def link i3ConfigFont i3ConfigString |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 270 | hi def link i3ConfigBindKeyword i3ConfigKeyword |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 271 | hi def link i3ConfigBindArgument i3ConfigShParam |
| 272 | hi def link i3ConfigBindModifier i3ConfigOperator |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 273 | hi def link i3ConfigBindModkey Special |
| 274 | hi def link i3ConfigBindCombo SpecialChar |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 275 | hi def link i3ConfigSizeSpecial i3ConfigOperator |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 276 | hi def link i3ConfigOrientationOpts i3ConfigOption |
| 277 | hi def link i3ConfigWorkspaceLayoutOpts i3ConfigOption |
| 278 | hi def link i3ConfigTitleAlignOpts i3ConfigOption |
| 279 | hi def link i3ConfigBorderOpts i3ConfigOption |
| 280 | hi def link i3ConfigEdgeOpts i3ConfigOption |
| 281 | hi def link i3ConfigSmartBorderOpts i3ConfigOption |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 282 | hi def link i3ConfigVariable Variable |
| 283 | hi def link i3ConfigSetKeyword i3ConfigKeyword |
| 284 | hi def link i3ConfigResourceKeyword i3ConfigKeyword |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 285 | hi def link i3ConfigAssignKeyword i3ConfigKeyword |
| 286 | hi def link i3ConfigAssignSpecial i3ConfigOption |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 287 | hi def link i3ConfigExecKeyword i3ConfigCommand |
| 288 | hi def link i3ConfigExecAlwaysKeyword i3ConfigKeyword |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 289 | hi def link i3ConfigShParam PreProc |
| 290 | hi def link i3ConfigShDelim Delimiter |
| 291 | hi def link i3ConfigShOper Operator |
| 292 | hi def link i3ConfigShCmdDelim i3ConfigShDelim |
| 293 | hi def link i3ConfigShCommand Normal |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 294 | hi def link i3ConfigWorkspaceKeyword i3ConfigCommand |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 295 | hi def link i3ConfigWorkspaceOutput i3ConfigMoveType |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 296 | hi def link i3ConfigWorkspaceDir i3ConfigOption |
| 297 | hi def link i3ConfigDotOperator i3ConfigOperator |
| 298 | hi def link i3ConfigClientOpts i3ConfigOption |
| 299 | hi def link i3ConfigIpcKeyword i3ConfigKeyword |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 300 | hi def link i3ConfigMouseWarpingOpts i3ConfigOption |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 301 | hi def link i3ConfigPopupFullscreenOpts i3ConfigOption |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 302 | hi def link i3ConfigFocusWrappingOpts i3ConfigOption |
Josef Litoš | 62145db | 2023-09-11 20:12:48 +0200 | [diff] [blame] | 303 | hi def link i3ConfigTimeUnit i3ConfigNumber |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 304 | hi def link i3ConfigFocusOnActivationOpts i3ConfigOption |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 305 | hi def link i3ConfigShowMarks i3ConfigCommand |
| 306 | hi def link i3ConfigTilingDragOpts i3ConfigOption |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 307 | hi def link i3ConfigGapsOpts i3ConfigOption |
| 308 | hi def link i3ConfigGaps i3ConfigCommand |
| 309 | hi def link i3ConfigSmartGapOpts i3ConfigOption |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 310 | hi def link i3ConfigBarModifier i3ConfigKeyword |
| 311 | hi def link i3ConfigBarOpts i3ConfigKeyword |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 312 | hi def link i3ConfigBarOptVals i3ConfigOption |
| 313 | hi def link i3ConfigColorsKeyword i3ConfigKeyword |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 314 | hi def link i3ConfigColorsOpts i3ConfigOption |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 315 | hi def link i3ConfigConditionProp i3ConfigShParam |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 316 | hi def link i3ConfigConditionSpecial Constant |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 317 | hi def link i3ConfigExecActionKeyword i3ConfigShCommand |
| 318 | hi def link i3ConfigExecAction i3ConfigString |
| 319 | hi def link i3ConfigLayoutKeyword i3ConfigCommand |
| 320 | hi def link i3ConfigLayoutOpts i3ConfigOption |
| 321 | hi def link i3ConfigFocusKeyword i3ConfigCommand |
| 322 | hi def link i3ConfigFocusOpts i3ConfigOption |
| 323 | hi def link i3ConfigFocusOutputOpts i3ConfigOption |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 324 | hi def link i3ConfigRenameKeyword i3ConfigCommand |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 325 | hi def link i3ConfigMoveKeyword i3ConfigCommand |
| 326 | hi def link i3ConfigMoveDir i3ConfigOption |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 327 | hi def link i3ConfigMoveType Constant |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 328 | hi def link i3ConfigUnit i3ConfigNumber |
| 329 | hi def link i3ConfigResizeKeyword i3ConfigCommand |
| 330 | hi def link i3ConfigResizeOpts i3ConfigOption |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 331 | hi def link i3ConfigMark i3ConfigCommand |
Josef Litoš | f5356bf | 2023-09-12 20:20:25 +0200 | [diff] [blame] | 332 | hi def link i3ConfigActionKeyword i3ConfigCommand |
| 333 | hi def link i3ConfigOption Type |
Bram Moolenaar | 0e6adf8 | 2021-12-16 14:41:10 +0000 | [diff] [blame] | 334 | |
Josef Litoš | 02774f9 | 2023-09-27 18:57:24 +0200 | [diff] [blame] | 335 | let b:current_syntax = "i3config" |