diff options
Diffstat (limited to 'syntax/modules')
| -rw-r--r-- | syntax/modules/afcgi.vim | 4 | ||||
| -rw-r--r-- | syntax/modules/geoip2.vim | 43 | 
2 files changed, 44 insertions, 3 deletions
| diff --git a/syntax/modules/afcgi.vim b/syntax/modules/afcgi.vim index 32d7fd25..fdf85725 100644 --- a/syntax/modules/afcgi.vim +++ b/syntax/modules/afcgi.vim @@ -35,8 +35,8 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nginx') == -1  " syn keyword ngxDirectiveThirdParty fastcgi_store_access  " syn keyword ngxDirectiveThirdParty fastcgi_temp_file_write_size  " syn keyword ngxDirectiveThirdParty fastcgi_temp_path -syn keyword ngxDirectiveThirdParty fastcgi_upstream_fail_timeout -syn keyword ngxDirectiveThirdParty fastcgi_upstream_max_fails +syn keyword ngxDirectiveDeprecated fastcgi_upstream_fail_timeout +syn keyword ngxDirectiveDeprecated fastcgi_upstream_max_fails  endif diff --git a/syntax/modules/geoip2.vim b/syntax/modules/geoip2.vim index c6d7822c..6a5189a8 100644 --- a/syntax/modules/geoip2.vim +++ b/syntax/modules/geoip2.vim @@ -2,7 +2,48 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nginx') == -1  " GeoIP 2 Module <https://github.com/leev/ngx_http_geoip2_module>  " Creates variables with values from the maxmind geoip2 databases based on the client IP -syn keyword ngxDirectiveThirdParty geoip2 +syn keyword ngxDirectiveThirdParty      geoip2 nextgroup=ngxThirdPartyGeoIP2Database skipwhite skipempty +syn match   ngxThirdPartyGeoIP2Database /\S\+/ contained nextgroup=ngxThirdPartyGeoIP2Block skipwhite skipempty +syn region  ngxThirdPartyGeoIP2Block    start=/{/ end=/}/ contained contains=ngxThirdPartyGeoIP2Keyword,ngxVariable +syn keyword ngxThirdPartyGeoIP2Keyword  de en es fr ja pt-BR ru zh-CN contained +syn match   ngxThirdPartyGeoIP2Keyword  /pt-BR|zh-CN/ contained +syn keyword ngxThirdPartyGeoIP2Keyword  default source contained +" Common Keys +syn keyword ngxThirdPartyGeoIP2Keyword  code confidence geoname_id names iso_code contained +" /Common Keys +syn keyword ngxThirdPartyGeoIP2Keyword  city contained +syn keyword ngxThirdPartyGeoIP2Keyword  continent contained +syn keyword ngxThirdPartyGeoIP2Keyword  country contained +syn keyword ngxThirdPartyGeoIP2Keyword  location contained +" Location Keys +syn keyword ngxThirdPartyGeoIP2Keyword  accuracy_radius contained +syn keyword ngxThirdPartyGeoIP2Keyword  average_income contained +syn keyword ngxThirdPartyGeoIP2Keyword  latitude contained +syn keyword ngxThirdPartyGeoIP2Keyword  longitude contained +syn keyword ngxThirdPartyGeoIP2Keyword  metro_code contained +syn keyword ngxThirdPartyGeoIP2Keyword  population_density contained +syn keyword ngxThirdPartyGeoIP2Keyword  time_zone contained +syn keyword ngxThirdPartyGeoIP2Keyword  postal  contained +" /Location Keys +syn keyword ngxThirdPartyGeoIP2Keyword  registered_country contained +syn keyword ngxThirdPartyGeoIP2Keyword  represented_country contained +" Represented Country Keys +syn keyword ngxThirdPartyGeoIP2Keyword  type contained +" /Represented Country Keys +syn keyword ngxThirdPartyGeoIP2Keyword  subdivisions contained +syn keyword ngxThirdPartyGeoIP2Keyword  traits contained +" Traits Keys +syn keyword ngxThirdPartyGeoIP2Keyword  autonomous_system_number contained +syn keyword ngxThirdPartyGeoIP2Keyword  autonomous_system_organization contained +syn keyword ngxThirdPartyGeoIP2Keyword  domain contained +syn keyword ngxThirdPartyGeoIP2Keyword  ip_address contained +syn keyword ngxThirdPartyGeoIP2Keyword  is_anonymous_proxy contained +syn keyword ngxThirdPartyGeoIP2Keyword  is_satellite_provider contained +syn keyword ngxThirdPartyGeoIP2Keyword  isp contained +syn keyword ngxThirdPartyGeoIP2Keyword  organization contained +syn keyword ngxThirdPartyGeoIP2Keyword  user_type contained +" /Traits Keys +hi link ngxThirdPartyGeoIP2Keyword ngxThirdPartyKeyword  endif | 
