A series of small changes from Doug Kearns
Allow "@" as a currency-type suffix
More accurately describe a valid Type Specifier
Line numbers can include a colon
Add line-labels
Add highlighting for conditional directives
Update changelog with credit to Doug
Designate Doug Kearns the new maintainer for vb.vim
Normalize tabs-vs-spaces in vb.vim to all spaces for alignment (previously, this was a hodge-podge of spaces and tabs)
https://github.com/vim/vim/pull/9233
(1 file)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
![]()
I'm assuming that Doug already reviewed this. I'll include it, thanks.
Closed #9233.
I did and thanks to Tim for keeping the dream alive all these years.
@dpelle commented on this pull request.
> " String and Character contstants syn region vbString start=+"+ end=+"\|$+ syn region vbComment start="\(^\|\s\)REM\s" end="$" contains=vbTodo syn region vbComment start="\(^\|\s\)\'" end="$" contains=vbTodo -syn match vbLineNumber "^\d\+\(\s\|$\)" -syn match vbTypeSpecifier "[a-zA-Z0-9][\$%&!#]"ms=s+1 +syn match vbLineLabel "^\h\w\+:" +syn match vbLineNumber "^\d\+\(:\|\s\|$\)" +syn match vbTypeSpecifier "\<\a\w*[@\$%&!#]"ms=s+1 syn match vbTypeSpecifier "#[a-zA-Z0-9]"me=e-1
(nitpicky) according to the note below :help regex \x, using \x should be faster than [a-zA-Z0-9], at least with the old regexp engine (set re=1) as I think the new one automatically replaces [a-zA-Z0-9] with \x.
@Gumnos commented on this pull request.
> " String and Character contstants syn region vbString start=+"+ end=+"\|$+ syn region vbComment start="\(^\|\s\)REM\s" end="$" contains=vbTodo syn region vbComment start="\(^\|\s\)\'" end="$" contains=vbTodo -syn match vbLineNumber "^\d\+\(\s\|$\)" -syn match vbTypeSpecifier "[a-zA-Z0-9][\$%&!#]"ms=s+1 +syn match vbLineLabel "^\h\w\+:" +syn match vbLineNumber "^\d\+\(:\|\s\|$\)" +syn match vbTypeSpecifier "\<\a\w*[@\$%&!#]"ms=s+1 syn match vbTypeSpecifier "#[a-zA-Z0-9]"me=e-1
@dpelle, the \x only handles hex characters A–F (plus digits), not the full range of the alphabet (plus digits), so it wouldn't find the appropriate characters in this case.
@Gumnos commented on this pull request.
> " String and Character contstants