From: Ben Beltran Date: Fri, 3 Jul 2015 16:51:41 +0000 (-0500) Subject: Uses proper character classes to support namespacing X-Git-Url: https://git.r.bdr.sh/rbdr/api-notation.vim/commitdiff_plain/2a91fdd05b953f7cf21853cd8a6b7d59a300a2ee?ds=sidebyside Uses proper character classes to support namespacing --- diff --git a/syntax/api-notation.vim b/syntax/api-notation.vim index d2fc97a..360f805 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 '^[\w\.]\+' +syn match moduleName '^[a-zA-Z0-9_.]\+' syn match classMembers '^\s\+\(\(<+\)\|\(<\~\)\|\(<-\)\|\(+>\)\|\(\~>\)\|\(->\)\|-\|+\|\(::\)\|#\)' nextgroup=memberName skipwhite syn match internalOperators '\(\(<+\)\|\(<\~\)\|\(<-\)\|\(+>\)\|\(\~>\)\|\(->\)\|-\|+\|\(::\)\|#\)' contained nextgroup=memberName skipwhite