Skip to content

Instantly share code, notes, and snippets.

@ferki
Last active April 22, 2025 16:20
Show Gist options
  • Select an option

  • Save ferki/d83ebd67ce828ef9d00f to your computer and use it in GitHub Desktop.

Select an option

Save ferki/d83ebd67ce828ef9d00f to your computer and use it in GitHub Desktop.
Rex highlighting for vim
# put this file into ~/.vim/after/syntax/perl/rex.vim and then remove this line
syn keyword perlStatementScalar after after_task_finished before before_task_start bios_boot cache cat case checkout command content create_home delete_lines_according_to delete_lines_matching do_task desc download ensure entry extract group groups_file home initialize is_dir is_file is_symlink key_auth kmod line LOCAL ls mode needs no_overwrite no_ssh on_change on_rollback only_if options owner parallelism partition pass_auth password path private_key public_key regexp report repository rm sayformat share size source ssh_key sudo sudo_password transaction type umount unless unlink update_package_db update_system user upload
syn keyword perlStatementList account append_if_no_such_line append_or_amend_line batch can_run chgrp chmod chown clearpart cmdb cp create_user cron_entry file get i_run ln mount mv pkg run run_task say sed service symlink task template
syn keyword perlStatementHash environment set
syn keyword perlString FALSE TRUE
syn match perlStatementHash "auth for"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment