Browse Source

Merge commit 'a48de7e0179288944d94d570578191c81936ffb9' into develop

Mark Sibly 7 years ago
parent
commit
1e69436fba
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/ted2go/view/CodeTextView.monkey2

+ 5 - 3
src/ted2go/view/CodeTextView.monkey2

@@ -98,9 +98,11 @@ Class CodeTextView Extends TextView
 		
 		While n >= start
 			
-			If text[n] = 46 'dot
+			Local q:=(text[n] = "?"[0])
+			If text[n] = Chars.DOT Or q ' . or ?.
 				If Not withDots Exit
-			ElseIf Not (IsIdent( text[n] ) Or text[n] = 35) '35 => #
+				If q And text[n+1] <> Chars.DOT Exit
+			ElseIf Not (IsIdent( text[n] ) Or text[n] = Chars.GRID) ' #
 				Exit
 			Endif
 			
@@ -109,7 +111,7 @@ Class CodeTextView Extends TextView
 		n+=1
 		Local ident:=(n < cur) ? text.Slice( n,cur ) Else ""
 		
-		Return ident
+		Return ident.Replace( "?.","." )
 	End
 	
 	Property WordAtCursor:String()