Skip to content

Instantly share code, notes, and snippets.

@snsinfu
Created May 18, 2021 13:52
Show Gist options
  • Save snsinfu/5201f5192430403933930655c6c9b580 to your computer and use it in GitHub Desktop.
Save snsinfu/5201f5192430403933930655c6c9b580 to your computer and use it in GitHub Desktop.
hi def link cppSTLfunction Function
hi def link cppSTLfunctional NONE
hi def link cppSTLconstant NONE
hi def link cppSTLnamespace cppNamespaceStd
hi def link cppSTLexception NONE
hi def link cppSTLiterator NONE
hi def link cppSTLiterator_tag NONE
hi def link cppSTLenum NONE
hi def link cppSTLios NONE
hi def link cppSTLcast NONE
hi def link cppSTLtype NONE
hi def link cppSTLbool NONE
hi def link cppSTLconcept NONE
syn match cOpenParen "?=(" contains=cParen,cCppParen
syn match cFunc "\w\+\s*(\@=" contains=cOpenParen
syn match cComma ","
syn match cSingleLetter "\<[a-z]\>"
hi def link cFunc Function
hi def link cComma myStandout
hi def link cSingleLetter mySmell
syn match cppReceiver "[_a-zA-Z]\w*\s*\."me=e-1
syn match cppIndexee "\w\+\s*\["me=e-1
syn match cppNamespace "\w\+\s*::"me=e-2
syn match cppNamespaceStd "std\s*::"me=e-2
syn match cppColonColon "::"
syn keyword cppAuto auto
syn keyword cppConst const
hi def link cppNamespace myShadow
hi def link cppColonColon myShadow
hi def link cppIndexee cppReceiver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment