Sublime Forum

Comment with key for custom syntax

#1

I’ve started creating a custom syntax file for exim. How to add a support to comment with key combination Ctr + / with string "# " ?

[code]<?xml version="1.0" encoding="UTF-8"?>

fileTypes exim.conf exim.conf.erb name Exim patterns captures 1 name punctuation.definition.comment.exim match ^(\s)*(#).*$\n? name comment.line.hash.ini captures 1 name constant.language match ^\s*(begin)\s(acl|routers|transports|retry|rewrite|authenticators)(\,|) name constant.language captures 1 name support.function.exim match ^\s*(acl_check_connect|acl_check_helo|acl_check_mail|acl_check_rcpt|acl_check_predata|acl_check_data|acl_smtp_dkim|acl_check_mime|spf_check|greylist_mail|write_known_resenders|acl_smtp_quit|acl_smtp_notquit)(:) name support.function.exim captures 1 name keyword.exim match ^\s*(accept|deny|warn|drop|defer|require)\s(\,|) name keyword.exim captures 1 name entity.name.function.exim match \s(message|log_message|logwrite)\s(\,|) name entity.name.function.exim captures 1 name support.function.exim match ^\s*(batv_redirect|smart_host_vld|smart_host_delset|po_stat|all_atlas|dnslookup|system_aliases|adsi_check|adsi_check_atlas2|backup_mail|smart_host)(:) name support.function.exim captures 1 name support.function.exim match ^\s*(remote_smtp|remote_smtp_internal|backup_all|dspam_spamcheck_socket)(:) name support.function.exim scopeName source.exim uuid efd0298c-f23b-43e0-8ddb-e36d5d6090c2 [/code]
0 Likes