Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cpp standard library #86

Merged
merged 9 commits into from
Mar 1, 2017
Prev Previous commit
Next Next commit
Added c-highlight bultins functionality, highlighted cpp stl constants
and built-in functions through PaperColor_C_Highlight_Builtins
  • Loading branch information
pappasam committed Feb 27, 2017
commit 973630d4791e74a08401c57f8eb4d93d84676523
20 changes: 16 additions & 4 deletions colors/PaperColor.vim
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,15 @@ fun! s:cpp_highlight_standard_library(value_if_bool, default)
return s:value_if_global_boolean_else_other(
\'PaperColor_CPP_Highlight_Standard_Library',
\a:value_if_bool,
\a:default)
\a:)
endfun

fun! s:c_highlight_builtins(value_if_bool, default)
" g:PaperColor_CPP_Highlight_Standard_Library
return s:value_if_global_boolean_else_other(
\'PaperColor_C_Highlight_Builtins',
\a:value_if_bool,
\a:)
endfun

" }}}
Expand Down Expand Up @@ -976,7 +984,7 @@ fun! s:set_highlightings_variable()
" call s:HL("cSemiColon","", s:blue, "")
call s:HL("cOperator",s:aqua, "", "")
" call s:HL("cStatement",s:pink, "", "")
call s:HL("cFunction", s:foreground, "", "")
call s:HL("cFunction", s:c_highlight_builtins(s:blue, s:foreground), "", "")
" call s:HL("cTodo", s:comment, "", s:bold)
" call s:HL("cStructure", s:blue, "", s:bold)
call s:HL("cCustomParen", s:foreground, "", "")
Expand All @@ -987,15 +995,19 @@ fun! s:set_highlightings_variable()
" CPP highlighting
call s:HL("cppBoolean", s:navy, "", "")
call s:HL("cppSTLnamespace", s:purple, "", "")
call s:HL("cppSTLconstant", s:foreground, "", "")
call s:HL("cppSTLconstant",
\cpp_highlight_standard_library(s:green, s:foreground),
\"",
\cpp_highlight_standard_library(s:bold, ""))
call s:HL("cppSTLtype",
\s:cpp_highlight_standard_library(s:pink, s:foreground),
\"",
\s:cpp_highlight_standard_library(s:bold, ""))
call s:HL("cppSTLexception", s:pink, "", "")
call s:HL("cppSTLfunctional", s:foreground, "", s:bold)
call s:HL("cppSTLiterator", s:foreground, "", s:bold)
" call s:HL("cppSTLfunction", s:aqua, "", s:bold)
call s:HL("cppSTLfunction",
\ s:cpp_highlight_standard_library(s:blue, s:foreground), "", "")
call s:HL("cppExceptions", s:red, "", "")
call s:HL("cppStatement", s:blue, "", "")
call s:HL("cppStorageClass", s:navy, "", s:bold)
Expand Down