summaryrefslogtreecommitdiffstats
path: root/syntax/modules
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-03-23 11:28:19 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2017-03-23 11:28:28 +0100
commit0801eac01aab5940fc1e4409ba749383cc353bc2 (patch)
tree9034c9f6cd0c7592a09e6c65521c6948c3a983af /syntax/modules
parent9f735b1fe77072e001a593f7f6660703bf4a8c9c (diff)
downloadvim-polyglot-0801eac01aab5940fc1e4409ba749383cc353bc2.tar.gz
vim-polyglot-0801eac01aab5940fc1e4409ba749383cc353bc2.zip
Update
Diffstat (limited to 'syntax/modules')
-rw-r--r--syntax/modules/afcgi.vim4
-rw-r--r--syntax/modules/geoip2.vim43
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