mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 04:23:51 -05:00
Allow to set let g:python_highlight_all = 0, closes #474
This commit is contained in:
37
build.py
37
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:filetype_euphoria', 'elixir')
|
||||||
|
|
||||||
call s:SetDefault('g:python_highlight_builtins', 1)
|
if !exists('g:python_highlight_all')
|
||||||
call s:SetDefault('g:python_highlight_builtin_objs', 1)
|
call s:SetDefault('g:python_highlight_builtins', 1)
|
||||||
call s:SetDefault('g:python_highlight_builtin_types', 1)
|
call s:SetDefault('g:python_highlight_builtin_objs', 1)
|
||||||
call s:SetDefault('g:python_highlight_builtin_funcs', 1)
|
call s:SetDefault('g:python_highlight_builtin_types', 1)
|
||||||
call s:SetDefault('g:python_highlight_builtin_funcs_kwarg', 1)
|
call s:SetDefault('g:python_highlight_builtin_funcs', 1)
|
||||||
call s:SetDefault('g:python_highlight_exceptions', 1)
|
call s:SetDefault('g:python_highlight_builtin_funcs_kwarg', 1)
|
||||||
call s:SetDefault('g:python_highlight_string_formatting', 1)
|
call s:SetDefault('g:python_highlight_exceptions', 1)
|
||||||
call s:SetDefault('g:python_highlight_string_format', 1)
|
call s:SetDefault('g:python_highlight_string_formatting', 1)
|
||||||
call s:SetDefault('g:python_highlight_string_templates', 1)
|
call s:SetDefault('g:python_highlight_string_format', 1)
|
||||||
call s:SetDefault('g:python_highlight_indent_errors', 1)
|
call s:SetDefault('g:python_highlight_string_templates', 1)
|
||||||
call s:SetDefault('g:python_highlight_space_errors', 1)
|
call s:SetDefault('g:python_highlight_indent_errors', 1)
|
||||||
call s:SetDefault('g:python_highlight_doctests', 1)
|
call s:SetDefault('g:python_highlight_space_errors', 1)
|
||||||
call s:SetDefault('g:python_highlight_func_calls', 1)
|
call s:SetDefault('g:python_highlight_doctests', 1)
|
||||||
call s:SetDefault('g:python_highlight_class_vars', 1)
|
call s:SetDefault('g:python_highlight_func_calls', 1)
|
||||||
call s:SetDefault('g:python_highlight_operators', 1)
|
call s:SetDefault('g:python_highlight_class_vars', 1)
|
||||||
call s:SetDefault('g:python_highlight_file_headers_as_comments', 1)
|
call s:SetDefault('g:python_highlight_operators', 1)
|
||||||
call s:SetDefault('g:python_slow_sync', 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"])
|
language("ASL", polyglot="acpiasl", extensions=[".asl", ".dsl"])
|
||||||
|
|||||||
@@ -28,24 +28,25 @@ call s:SetDefault('g:vim_json_syntax_conceal', 0)
|
|||||||
|
|
||||||
call s:SetDefault('g:filetype_euphoria', 'elixir')
|
call s:SetDefault('g:filetype_euphoria', 'elixir')
|
||||||
|
|
||||||
call s:SetDefault('g:python_highlight_builtins', 1)
|
if !exists('g:python_highlight_all')
|
||||||
call s:SetDefault('g:python_highlight_builtin_objs', 1)
|
call s:SetDefault('g:python_highlight_builtins', 1)
|
||||||
call s:SetDefault('g:python_highlight_builtin_types', 1)
|
call s:SetDefault('g:python_highlight_builtin_objs', 1)
|
||||||
call s:SetDefault('g:python_highlight_builtin_funcs', 1)
|
call s:SetDefault('g:python_highlight_builtin_types', 1)
|
||||||
call s:SetDefault('g:python_highlight_builtin_funcs_kwarg', 1)
|
call s:SetDefault('g:python_highlight_builtin_funcs', 1)
|
||||||
call s:SetDefault('g:python_highlight_exceptions', 1)
|
call s:SetDefault('g:python_highlight_builtin_funcs_kwarg', 1)
|
||||||
call s:SetDefault('g:python_highlight_string_formatting', 1)
|
call s:SetDefault('g:python_highlight_exceptions', 1)
|
||||||
call s:SetDefault('g:python_highlight_string_format', 1)
|
call s:SetDefault('g:python_highlight_string_formatting', 1)
|
||||||
call s:SetDefault('g:python_highlight_string_templates', 1)
|
call s:SetDefault('g:python_highlight_string_format', 1)
|
||||||
call s:SetDefault('g:python_highlight_indent_errors', 1)
|
call s:SetDefault('g:python_highlight_string_templates', 1)
|
||||||
call s:SetDefault('g:python_highlight_space_errors', 1)
|
call s:SetDefault('g:python_highlight_indent_errors', 1)
|
||||||
call s:SetDefault('g:python_highlight_doctests', 1)
|
call s:SetDefault('g:python_highlight_space_errors', 1)
|
||||||
call s:SetDefault('g:python_highlight_func_calls', 1)
|
call s:SetDefault('g:python_highlight_doctests', 1)
|
||||||
call s:SetDefault('g:python_highlight_class_vars', 1)
|
call s:SetDefault('g:python_highlight_func_calls', 1)
|
||||||
call s:SetDefault('g:python_highlight_operators', 1)
|
call s:SetDefault('g:python_highlight_class_vars', 1)
|
||||||
call s:SetDefault('g:python_highlight_file_headers_as_comments', 1)
|
call s:SetDefault('g:python_highlight_operators', 1)
|
||||||
call s:SetDefault('g:python_slow_sync', 1)
|
call s:SetDefault('g:python_highlight_file_headers_as_comments', 1)
|
||||||
|
call s:SetDefault('g:python_slow_sync', 1)
|
||||||
|
endif
|
||||||
|
|
||||||
if index(g:polyglot_disabled, 'acpiasl') == -1
|
if index(g:polyglot_disabled, 'acpiasl') == -1
|
||||||
au BufNewFile,BufRead *.asl set ft=asl
|
au BufNewFile,BufRead *.asl set ft=asl
|
||||||
|
|||||||
Reference in New Issue
Block a user