" General syntax & highlighting for .X(resource|default)s syn match App "^\(\s*\)\@<=[^ .*:]\+\(.*:\)\@=" syn match Resource "[.*]\@<=[^ .*:]\+\(.*:\)\@=" syn match Comment "^\s*!.*$" let b:current_syntax = "xres"