]> git.r.bdr.sh - rbdr/api-notation.vim/commitdiff
Uses proper character classes to support namespacing
authorBen Beltran <redacted>
Fri, 3 Jul 2015 16:51:41 +0000 (11:51 -0500)
committerBen Beltran <redacted>
Fri, 3 Jul 2015 16:51:41 +0000 (11:51 -0500)
syntax/api-notation.vim

index d2fc97a6861b3b38a3873fcd18d860755666f8d4..360f805e6c5e9ac025fbae3912ee7a8be5539f02 100644 (file)
@@ -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