From: Ben Beltran Date: Fri, 3 Jul 2015 17:14:52 +0000 (-0500) Subject: Adds support for comments with // X-Git-Url: https://git.r.bdr.sh/rbdr/api-notation.vim/commitdiff_plain/7bd6f0668c8e64fe20aa99b64b1a0e01a9df2035?ds=sidebyside Adds support for comments with // --- diff --git a/syntax/api-notation.vim b/syntax/api-notation.vim index 13ed776..39a1437 100644 --- a/syntax/api-notation.vim +++ b/syntax/api-notation.vim @@ -9,6 +9,8 @@ endif syn match moduleName '^[a-zA-Z0-9_.]\+\s*' nextgroup=dataType +syn match comment '\s*//\s*.*' + syn match classMembers '^\s\+\(\(<+\)\|\(<\~\)\|\(<-\)\|\(+>\)\|\(\~>\)\|\(->\)\|-\|+\|\(::\)\|#\)' nextgroup=memberName skipwhite syn match internalOperators '\(\(<+\)\|\(<\~\)\|\(<-\)\|\(+>\)\|\(\~>\)\|\(->\)\|-\|+\|\(::\)\|#\)' contained nextgroup=memberName skipwhite syn match returnIdentifiers '\(=>\)' nextgroup=returnValue @@ -42,3 +44,4 @@ hi def link optionalParameters Underlined hi def link dataTypes Constant hi def link separators Comment +hi def link comment Comment