Skip to content

Commit

Permalink
Update opensips.vim syntax file
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Jun 11, 2024
1 parent 1768d65 commit f2652a6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions utils/vim/opensips.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: OpenSIPS 2.4 script
" Language: OpenSIPS 3.5 script
" Maintainer: Liviu Chircu <liviu@opensips.org>
" Last Change: 2017 Jul 30
" Last Change: 2024 Jun 11

" Quit when a (custom) syntax file was already loaded
"if exists("b:current_syntax")
Expand All @@ -21,8 +21,10 @@ syn keyword osAction loadmodule modparam async launch
syn keyword specialOperand yes no true false enable disable on off NULL null
syn keyword specialOperand UDP TCP TLS SCTP WS WSS HEP_TCP HEP_UDP INET inet INET6 inet6

syn keyword osGlobalParam xlog_level log_level memdump memlog stderror_enabled syslog_enabled syslog_facility syslog_name
syn keyword osGlobalParam debug_mode udp_workers auto_aliases listen mpath tcp_workers
syn keyword osGlobalParam xlog_level log_level memdump memlog stderror_enabled syslog_enabled
syn keyword osGlobalParam xlog_print_level log_stdout syslog_facility syslog_name
syn keyword osGlobalParam restart_persistency_cache_file restart_persistency_size
syn keyword osGlobalParam debug_mode udp_workers auto_aliases socket mpath tcp_workers
syn keyword osGlobalParam disable_tcp disable_tls check_via dns rev_dns
syn keyword osGlobalParam tcp_send_timeout tcp_connect_timeout tcp_no_new_conn_bflag
syn keyword osGlobalParam disable_dns_failover disable_dns_blacklist dst_blacklist
Expand All @@ -49,6 +51,11 @@ syn keyword osGlobalParam open_files_limit mcast_loopback mcast_ttl tos
syn keyword osGlobalParam max_while_loops disable_stateless_fwd db_default_url
syn keyword osGlobalParam disable_503_translation import_file server_header
syn keyword osGlobalParam tcp_max_msg_time abort_on_assert anycast
syn keyword osGlobalParam log_prefix tcp_parallel_read_on_workers
syn keyword osGlobalParam stderror_log_format syslog_log_format
syn keyword osGlobalParam log_json_buf_size log_msg_buf_size
syn keyword osGlobalParam log_event_enabled log_event_level_filter
syn keyword osGlobalParam shm_memlog_size

" String constants
syn match osSpecial contained display "\\\(x\x\+\|\o\{1,3}\|.\|$\)"
Expand Down

0 comments on commit f2652a6

Please sign in to comment.