From: Ben Beltran Date: Fri, 3 Jul 2015 16:59:53 +0000 (-0500) Subject: Adds dataType support to module names X-Git-Url: https://git.r.bdr.sh/rbdr/api-notation.vim/commitdiff_plain/76926b3dc6c380e82fca37af65913942663968ce?ds=sidebyside Adds dataType support to module names Use a comma separated list of modules that extend this one. --- diff --git a/syntax/api-notation.vim b/syntax/api-notation.vim index 360f805..13ed776 100644 --- a/syntax/api-notation.vim +++ b/syntax/api-notation.vim @@ -7,7 +7,7 @@ if exists("b:current_syntax") finish endif -syn match moduleName '^[a-zA-Z0-9_.]\+' +syn match moduleName '^[a-zA-Z0-9_.]\+\s*' nextgroup=dataType syn match classMembers '^\s\+\(\(<+\)\|\(<\~\)\|\(<-\)\|\(+>\)\|\(\~>\)\|\(->\)\|-\|+\|\(::\)\|#\)' nextgroup=memberName skipwhite syn match internalOperators '\(\(<+\)\|\(<\~\)\|\(<-\)\|\(+>\)\|\(\~>\)\|\(->\)\|-\|+\|\(::\)\|#\)' contained nextgroup=memberName skipwhite