summaryrefslogtreecommitdiffstats
path: root/build.py
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-08-18 20:52:00 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-08-18 20:52:00 +0200
commitf8cee0172b311d5c9b78cf7a44b8829b218cc64e (patch)
tree8b429bbcdc6eed3ac671d7f0ee213b9a7d9cc738 /build.py
parentc6936aeeb1e0540328c3a0d3b932f0b0f48618fd (diff)
downloadvim-polyglot-f8cee0172b311d5c9b78cf7a44b8829b218cc64e.tar.gz
vim-polyglot-f8cee0172b311d5c9b78cf7a44b8829b218cc64e.zip
Allow to set let g:python_highlight_all = 0, closes #474
Diffstat (limited to 'build.py')
-rwxr-xr-xbuild.py37
1 files changed, 19 insertions, 18 deletions
diff --git a/build.py b/build.py
index 7008bdf0..4c98ce0d 100755
--- a/build.py
+++ b/build.py
@@ -78,24 +78,25 @@ call s:SetDefault('g:vim_json_syntax_conceal', 0)
call s:SetDefault('g:filetype_euphoria', 'elixir')
-call s:SetDefault('g:python_highlight_builtins', 1)
-call s:SetDefault('g:python_highlight_builtin_objs', 1)
-call s:SetDefault('g:python_highlight_builtin_types', 1)
-call s:SetDefault('g:python_highlight_builtin_funcs', 1)
-call s:SetDefault('g:python_highlight_builtin_funcs_kwarg', 1)
-call s:SetDefault('g:python_highlight_exceptions', 1)
-call s:SetDefault('g:python_highlight_string_formatting', 1)
-call s:SetDefault('g:python_highlight_string_format', 1)
-call s:SetDefault('g:python_highlight_string_templates', 1)
-call s:SetDefault('g:python_highlight_indent_errors', 1)
-call s:SetDefault('g:python_highlight_space_errors', 1)
-call s:SetDefault('g:python_highlight_doctests', 1)
-call s:SetDefault('g:python_highlight_func_calls', 1)
-call s:SetDefault('g:python_highlight_class_vars', 1)
-call s:SetDefault('g:python_highlight_operators', 1)
-call s:SetDefault('g:python_highlight_file_headers_as_comments', 1)
-call s:SetDefault('g:python_slow_sync', 1)
-
+if !exists('g:python_highlight_all')
+ call s:SetDefault('g:python_highlight_builtins', 1)
+ call s:SetDefault('g:python_highlight_builtin_objs', 1)
+ call s:SetDefault('g:python_highlight_builtin_types', 1)
+ call s:SetDefault('g:python_highlight_builtin_funcs', 1)
+ call s:SetDefault('g:python_highlight_builtin_funcs_kwarg', 1)
+ call s:SetDefault('g:python_highlight_exceptions', 1)
+ call s:SetDefault('g:python_highlight_string_formatting', 1)
+ call s:SetDefault('g:python_highlight_string_format', 1)
+ call s:SetDefault('g:python_highlight_string_templates', 1)
+ call s:SetDefault('g:python_highlight_indent_errors', 1)
+ call s:SetDefault('g:python_highlight_space_errors', 1)
+ call s:SetDefault('g:python_highlight_doctests', 1)
+ call s:SetDefault('g:python_highlight_func_calls', 1)
+ call s:SetDefault('g:python_highlight_class_vars', 1)
+ call s:SetDefault('g:python_highlight_operators', 1)
+ call s:SetDefault('g:python_highlight_file_headers_as_comments', 1)
+ call s:SetDefault('g:python_slow_sync', 1)
+endif
""")
language("ASL", polyglot="acpiasl", extensions=[".asl", ".dsl"])