aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-05-20 08:01:34 +0000
committerBibiko <bibiko@eva.mpg.de>2009-05-20 08:01:34 +0000
commit9d186d35c19ab8eff4e2bc69c929dda2819ab0c5 (patch)
tree55516cac51fce20ffa0c590cfb40e621e453f57d /Source/CMTextView.m
parent8acc75e7ccd43314b6aa687fdd5241ed369c1f37 (diff)
downloadsequelpro-9d186d35c19ab8eff4e2bc69c929dda2819ab0c5.tar.gz
sequelpro-9d186d35c19ab8eff4e2bc69c929dda2819ab0c5.tar.bz2
sequelpro-9d186d35c19ab8eff4e2bc69c929dda2819ab0c5.zip
• improved completion suggestion for variable name; added delimiter “@” for word detection
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r--Source/CMTextView.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index 366adf16..ad66a874 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -695,7 +695,7 @@ YY_BUFFER_STATE yy_scan_string (const char *);
// Only parse for words if text size is less than 6MB
if([[self string] length]<6000000)
{
- NSCharacterSet *separators = [NSCharacterSet characterSetWithCharactersInString:@" \t\r\n,()\"'`-!;=+|?:~"];
+ NSCharacterSet *separators = [NSCharacterSet characterSetWithCharactersInString:@" \t\r\n,()\"'`-!;=+|?:~@"];
NSArray *textViewWords = [[self string] componentsSeparatedByCharactersInSet:separators];
[possibleCompletions addObjectsFromArray:textViewWords];
}