]> git.r.bdr.sh - rbdr/api-notation.vim/blobdiff - syntax/api-notation.vim
Adds dataType support to module names
[rbdr/api-notation.vim] / syntax / api-notation.vim
index d2fc97a6861b3b38a3873fcd18d860755666f8d4..13ed776f4fbb3125182782eae481cfe047a2af8e 100644 (file)
@@ -7,7 +7,7 @@ if exists("b:current_syntax")
   finish
 endif
 
-syn match moduleName '^[\w\.]\+'
+syn match moduleName '^[a-zA-Z0-9_.]\+\s*' nextgroup=dataType
 
 syn match classMembers '^\s\+\(\(<+\)\|\(<\~\)\|\(<-\)\|\(+>\)\|\(\~>\)\|\(->\)\|-\|+\|\(::\)\|#\)' nextgroup=memberName skipwhite
 syn match internalOperators '\(\(<+\)\|\(<\~\)\|\(<-\)\|\(+>\)\|\(\~>\)\|\(->\)\|-\|+\|\(::\)\|#\)' contained nextgroup=memberName skipwhite