Skip to content

Commit 982927d

Browse files
committed
Don't highlight A in A::B as a 1.9 symbol
Even with this fix, there's an annoying flash to symbol highlighting when typing A::B. Hopefully a solution to this can be found.
1 parent 2b2b620 commit 982927d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/ruby.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ syn match rubySymbol "[]})\"':]\@<!:\%(\^\|\~\|<<\|<=>\|<=\|<\|===\|==\|=\~\|
101101
syn match rubySymbol "[]})\"':]\@<!:\$\%(-.\|[`~<=>_,;:!?/.'"@$*\&+0]\)"
102102
syn match rubySymbol "[]})\"':]\@<!:\%(\$\|@@\=\)\=\h\w*"
103103
syn match rubySymbol "[]})\"':]\@<!:\h\w*\%([?!=]>\@!\)\="
104-
syn match rubySymbol "[]})\"':]\@<!\h\w*[!?]\=:\@="
104+
syn match rubySymbol "[]})\"':]\@<!\h\w*[!?]\=\%(::\@!\)\@="
105105
syn region rubySymbol start="[]})\"':]\@<!:'" end="'" skip="\\\\\|\\'" contains=rubyQuoteEscape fold
106106
syn region rubySymbol start="[]})\"':]\@<!:\"" end="\"" skip="\\\\\|\\\"" contains=@rubyStringSpecial fold
107107

0 commit comments

Comments
 (0)