Allow to set let g:python_highlight_all = 0, closes #474

This commit is contained in:
Adam Stankiewicz
2020-08-18 20:52:00 +02:00
parent c6936aeeb1
commit f8cee0172b
2 changed files with 38 additions and 36 deletions

View File

@@ -78,6 +78,7 @@ call s:SetDefault('g:vim_json_syntax_conceal', 0)
call s:SetDefault('g:filetype_euphoria', 'elixir')
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)
@@ -95,7 +96,7 @@ 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"])

View File

@@ -28,6 +28,7 @@ call s:SetDefault('g:vim_json_syntax_conceal', 0)
call s:SetDefault('g:filetype_euphoria', 'elixir')
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)
@@ -45,7 +46,7 @@ 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
if index(g:polyglot_disabled, 'acpiasl') == -1
au BufNewFile,BufRead *.asl set ft=asl