diff syntax/unrealcpp.vim @ 0:ba03cac1b1c6

Initial commit.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 24 Sep 2020 23:04:57 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/syntax/unrealcpp.vim	Thu Sep 24 23:04:57 2020 -0700
@@ -0,0 +1,22 @@
+" Vim syntax file
+" Language:	C++ with Unreal extensions
+" Maintainer:	Ludovic Chabant <https://ludovic.chabant.com>
+
+if exists("b:current_syntax")
+  finish
+endif
+
+" Read the C++ syntax to start with
+runtime! syntax/cpp.vim
+unlet b:current_syntax
+
+
+" Highlight Class and Function names
+syn match    cCustomParen    "(" contains=cParen,cCppParen
+syn match    cCustomFunc     "\w\+\s*(" contains=cCustomParen
+syn match    cCustomScope    "::"
+syn match    cCustomClass    "\w\+\s*::" contains=cCustomScope
+
+hi def link cCustomFunc  Function
+hi def link cCustomClass Function
+