diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-09 22:57:13 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-09 22:57:13 +0200 |
commit | 0d48ba92455548018105670980552e54930f60eb (patch) | |
tree | ce1b41ae7a984eff3709073ae97809bce876f147 /after | |
parent | 1993b9f68fff3cb87413fdc2e328763c291578c4 (diff) | |
download | vim-polyglot-0d48ba92455548018105670980552e54930f60eb.tar.gz vim-polyglot-0d48ba92455548018105670980552e54930f60eb.zip |
Fix detecting of some filetypes, closes #579
Diffstat (limited to 'after')
-rw-r--r-- | after/syntax/cpp.vim | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/after/syntax/cpp.vim b/after/syntax/cpp.vim index 730bb819..ec3f1fcf 100644 --- a/after/syntax/cpp.vim +++ b/after/syntax/cpp.vim @@ -6,13 +6,20 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cpp-modern') == " Original Author: Jon Haggblad <https://github.com/octol> " Maintainer: bfrg <https://github.com/bfrg> " Website: https://github.com/bfrg/vim-cpp-modern -" Last Change: Oct 4, 2020 +" Last Change: Oct 8, 2020 " " This syntax file is based on: " https://github.com/octol/vim-cpp-enhanced-highlight -" http://www.vim.org/scripts/script.php?script_id=4293 " ============================================================================== +" C++ attributes {{{1 +if get(g:, 'cpp_attributes_highlight', 0) + syntax region cppAttribute matchgroup=cppAttributeBrackets start='\[\[' end=']]' contains=cString + hi def link cppAttribute Macro + hi def link cppAttributeBrackets Identifier +endif + + " Standard library {{{1 syntax keyword cppSTLdefine \ MB_CUR_MAX MB_LEN_MAX WCHAR_MAX WCHAR_MIN WEOF __STDC_UTF_16__ __STDC_UTF_32__ |