added coloring for proc definitions in vim
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Sun, 20 Sep 2020 02:21:12 +0000 (21:21 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Sun, 20 Sep 2020 02:21:12 +0000 (21:21 -0500)
misc/onyx.vim

index c0243d55f627d8f0323ec09c601a5412b1677259..b1378b2dcbe0d298a35d465cf607d66181741886 100644 (file)
@@ -37,6 +37,9 @@ syn keyword onyxCommentStart    contained TODO NOTE BUG HACK
 syn region onyxComment          start="//" end="$" keepend contains=onyxCommentStart
 syn region onyxComment          start="/\*" end="\*/" contains=onyxCommentStart
 
+syn match onyxDefinitionGroup   "\<[a-zA-Z_][a-zA-Z0-9_]*\> *::" contains=onyxDefinition
+syn match onyxDefinition        "\<[a-zA-Z_][a-zA-Z0-9_]*\>" contained
+
 syn region onyxDirective        start="#" end=" "
 
 syn region onyxString              display start=+"+ skip=+\\\\\|\\"+ end=+"+ keepend
@@ -49,6 +52,7 @@ hi def link onyxConstant         Constant
 hi def link onyxDirective        Constant
 hi def link onyxString           String
 hi def link onyxNumber           Number
+hi def link onyxDefinition       Identifier
 
 let b:current_syntax = "onyx"
 let &cpo = s:cpo_save