1 # vim:ts=2:sw=2:expandtab
3 # i3 - an improved dynamic tiling window manager
4 # © 2009-2012 Michael Stapelberg and contributors (see also: LICENSE)
6 # parser-specs/config.spec: Specification file for generate-command-parser.pl
7 # which will generate the appropriate header files for our C parser.
9 # Use :source highlighting.vim in vim to get syntax highlighting
12 # TODO: get it to parse the default config :)
13 # TODO: comment handling (on their own line, at the end of a line)
16 # We have an end token here for all the commands which just call some
17 # function without using an explicit 'end' token.
19 #'[' -> call cmd_criteria_init(); CRITERIA
22 exectype = 'exec_always', 'exec'
25 # <exec|exec_always> [--no-startup-id] command
27 no_startup_id = '--no-startup-id'
30 -> call cfg_exec($exectype, $no_startup_id, $command)
34 -> call cfg_enter_mode($modename); MODEBRACE
41 bindtype = 'bindsym', 'bindcode'
47 modifiers = 'Mod1', 'Mod2', 'Mod3', 'Mod4', 'Mod5', 'Shift', 'Control'
54 state MODE_BINDCOMMAND:
56 -> call cfg_mode_binding($bindtype, $modifiers, $key, $command); MODE
60 -> call cfg_font($font)