Mercurial > vim-unreal
comparison syntax/unrealcpp.vim @ 0:ba03cac1b1c6
Initial commit.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 24 Sep 2020 23:04:57 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ba03cac1b1c6 |
---|---|
1 " Vim syntax file | |
2 " Language: C++ with Unreal extensions | |
3 " Maintainer: Ludovic Chabant <https://ludovic.chabant.com> | |
4 | |
5 if exists("b:current_syntax") | |
6 finish | |
7 endif | |
8 | |
9 " Read the C++ syntax to start with | |
10 runtime! syntax/cpp.vim | |
11 unlet b:current_syntax | |
12 | |
13 | |
14 " Highlight Class and Function names | |
15 syn match cCustomParen "(" contains=cParen,cCppParen | |
16 syn match cCustomFunc "\w\+\s*(" contains=cCustomParen | |
17 syn match cCustomScope "::" | |
18 syn match cCustomClass "\w\+\s*::" contains=cCustomScope | |
19 | |
20 hi def link cCustomFunc Function | |
21 hi def link cCustomClass Function | |
22 |