Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
squid.vim141 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	Squid config file3" Maintainer:	Klaus Muth <klaus@hampft.de>4" Last Change:	2005 Jun 125" URL:		http://www.hampft.de/vim/syntax/squid.vim6" ThanksTo:	Ilya Sher <iso8601@mail.ru>,7"               Michael Dotzler <Michael.Dotzler@leoni.com>8 9 10" quit when a syntax file was already loaded11if exists("b:current_syntax")12  finish13endif14 15" squid.conf syntax seems to be case insensitive16syn case ignore17 18syn keyword	squidTodo	contained TODO19syn match	squidComment	"#.*$" contains=squidTodo,squidTag20syn match	squidTag	contained "TAG: .*$"21 22" Lots & lots of Keywords!23syn keyword	squidConf	acl always_direct announce_host announce_period24syn keyword	squidConf	announce_port announce_to anonymize_headers25syn keyword	squidConf	append_domain as_whois_server auth_param_basic26syn keyword	squidConf	authenticate_children authenticate_program27syn keyword	squidConf	authenticate_ttl broken_posts buffered_logs28syn keyword	squidConf	cache_access_log cache_announce cache_dir29syn keyword	squidConf	cache_dns_program cache_effective_group30syn keyword	squidConf	cache_effective_user cache_host cache_host_acl31syn keyword	squidConf	cache_host_domain cache_log cache_mem32syn keyword	squidConf	cache_mem_high cache_mem_low cache_mgr33syn keyword	squidConf	cachemgr_passwd cache_peer cache_peer_access34syn keyword	squidConf	cache_replacement_policy cache_stoplist35syn keyword	squidConf	cache_stoplist_pattern cache_store_log cache_swap36syn keyword	squidConf	cache_swap_high cache_swap_log cache_swap_low37syn keyword	squidConf	client_db client_lifetime client_netmask38syn keyword	squidConf	connect_timeout coredump_dir dead_peer_timeout39syn keyword	squidConf	debug_options delay_access delay_class40syn keyword	squidConf	delay_initial_bucket_level delay_parameters41syn keyword	squidConf	delay_pools deny_info dns_children dns_defnames42syn keyword	squidConf	dns_nameservers dns_testnames emulate_httpd_log43syn keyword	squidConf	err_html_text fake_user_agent firewall_ip44syn keyword	squidConf	forwarded_for forward_snmpd_port fqdncache_size45syn keyword	squidConf	ftpget_options ftpget_program ftp_list_width46syn keyword	squidConf	ftp_passive ftp_user half_closed_clients47syn keyword	squidConf	header_access header_replace hierarchy_stoplist48syn keyword	squidConf	high_response_time_warning high_page_fault_warning49syn keyword	squidConf	htcp_port http_access http_anonymizer httpd_accel50syn keyword	squidConf	httpd_accel_host httpd_accel_port51syn keyword	squidConf	httpd_accel_uses_host_header52syn keyword	squidConf	httpd_accel_with_proxy http_port http_reply_access53syn keyword	squidConf	icp_access icp_hit_stale icp_port54syn keyword	squidConf	icp_query_timeout ident_lookup ident_lookup_access55syn keyword	squidConf	ident_timeout incoming_http_average56syn keyword	squidConf	incoming_icp_average inside_firewall ipcache_high57syn keyword	squidConf	ipcache_low ipcache_size local_domain local_ip58syn keyword	squidConf	logfile_rotate log_fqdn log_icp_queries59syn keyword	squidConf	log_mime_hdrs maximum_object_size60syn keyword	squidConf	maximum_single_addr_tries mcast_groups61syn keyword	squidConf	mcast_icp_query_timeout mcast_miss_addr62syn keyword	squidConf	mcast_miss_encode_key mcast_miss_port memory_pools63syn keyword	squidConf	memory_pools_limit memory_replacement_policy64syn keyword	squidConf	mime_table min_http_poll_cnt min_icp_poll_cnt65syn keyword	squidConf	minimum_direct_hops minimum_object_size66syn keyword	squidConf	minimum_retry_timeout miss_access negative_dns_ttl67syn keyword	squidConf	negative_ttl neighbor_timeout neighbor_type_domain68syn keyword	squidConf	netdb_high netdb_low netdb_ping_period69syn keyword	squidConf	netdb_ping_rate never_direct no_cache70syn keyword	squidConf	passthrough_proxy pconn_timeout pid_filename71syn keyword	squidConf	pinger_program positive_dns_ttl prefer_direct72syn keyword	squidConf	proxy_auth proxy_auth_realm query_icmp quick_abort73syn keyword	squidConf	quick_abort quick_abort_max quick_abort_min74syn keyword	squidConf	quick_abort_pct range_offset_limit read_timeout75syn keyword	squidConf	redirect_children redirect_program76syn keyword	squidConf	redirect_rewrites_host_header reference_age77syn keyword	squidConf	reference_age refresh_pattern reload_into_ims78syn keyword	squidConf	request_body_max_size request_size request_timeout79syn keyword	squidConf	shutdown_lifetime single_parent_bypass80syn keyword	squidConf	siteselect_timeout snmp_access81syn keyword	squidConf	snmp_incoming_address snmp_port source_ping82syn keyword	squidConf	ssl_proxy store_avg_object_size83syn keyword	squidConf	store_objects_per_bucket strip_query_terms84syn keyword	squidConf	swap_level1_dirs swap_level2_dirs85syn keyword	squidConf	tcp_incoming_address tcp_outgoing_address86syn keyword	squidConf	tcp_recv_bufsize test_reachability udp_hit_obj87syn keyword	squidConf	udp_hit_obj_size udp_incoming_address88syn keyword	squidConf	udp_outgoing_address unique_hostname89syn keyword	squidConf	unlinkd_program uri_whitespace useragent_log90syn keyword	squidConf	visible_hostname wais_relay wais_relay_host91syn keyword	squidConf	wais_relay_port92 93syn keyword	squidOpt	proxy-only weight ttl no-query default94syn keyword	squidOpt	round-robin multicast-responder95syn keyword	squidOpt	on off all deny allow96syn keyword	squidopt	via parent no-digest heap lru realm97syn keyword	squidopt	children credentialsttl none disable98syn keyword	squidopt	offline_toggle diskd q1 q299 100" Security Actions for cachemgr_passwd101syn keyword	squidAction	shutdown info parameter server_list102syn keyword	squidAction	client_list103syn match	squidAction	"stats/\(objects\|vm_objects\|utilization\|ipcache\|fqdncache\|dns\|redirector\|io\|reply_headers\|filedescriptors\|netdb\)"104syn match	squidAction	"log\(/\(status\|enable\|disable\|clear\)\)\="105syn match	squidAction	"squid\.conf"106 107" Keywords for the acl-config108syn keyword	squidAcl	url_regex urlpath_regex referer_regex port proto109syn keyword	squidAcl	req_mime_type rep_mime_type110syn keyword	squidAcl	method browser user src dst111syn keyword	squidAcl	time dstdomain ident snmp_community112 113syn match	squidNumber	"\<\d\+\>"114syn match	squidIP		"\<\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\>"115syn match	squidStr	"\(^\s*acl\s\+\S\+\s\+\(\S*_regex\|re[pq]_mime_type\|browser\|_domain\|user\)\+\s\+\)\@<=.*" contains=squidRegexOpt116syn match	squidRegexOpt	contained "\(^\s*acl\s\+\S\+\s\+\S\+\(_regex\|_mime_type\)\s\+\)\@<=[-+]i\s\+"117 118" All config is in one line, so this has to be sufficient119" Make it fast like hell :)120syn sync minlines=3121 122" Define the default highlighting.123" Only when an item doesn't have highlighting yet124 125hi def link squidTodo	Todo126hi def link squidComment	Comment127hi def link squidTag	Special128hi def link squidConf	Keyword129hi def link squidOpt	Constant130hi def link squidAction	String131hi def link squidNumber	Number132hi def link squidIP	Number133hi def link squidAcl	Keyword134hi def link squidStr	String135hi def link squidRegexOpt	Special136 137 138let b:current_syntax = "squid"139 140" vim: ts=8141 
codekingpro/portable-devtools · Team Ai