aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-04-07 22:27:29 +0000
committerBibiko <bibiko@eva.mpg.de>2009-04-07 22:27:29 +0000
commitdaa8f9af6ab131b0e0e3b6cabda1e194841aa78a (patch)
tree5b68a12e8fb31d099210d6f384f4d433c8c19978 /Source/CMTextView.m
parentf541505474502acb111756c0ab6160d541ac5903 (diff)
downloadsequelpro-daa8f9af6ab131b0e0e3b6cabda1e194841aa78a.tar.gz
sequelpro-daa8f9af6ab131b0e0e3b6cabda1e194841aa78a.tar.bz2
sequelpro-daa8f9af6ab131b0e0e3b6cabda1e194841aa78a.zip
• optimized syntax highlighting a bit
• added syntax highlighting for numeric values • changed syntax highlighting for 'order' and 'group' to 'order by' resp. 'group by' (useful also for visual syntax checking while typing) • fixed the issue to highlight a keyword if that keyword is the name a variable (e.g. @set := 1)
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r--Source/CMTextView.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index e8bb59ba..a1b6c9fe 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -924,6 +924,7 @@ SYNTAX HIGHLIGHTING!
NSColor *quoteColor = [NSColor colorWithDeviceRed:0.769 green:0.102 blue:0.086 alpha:1.000];
NSColor *keywordColor = [NSColor colorWithDeviceRed:0.200 green:0.250 blue:1.000 alpha:1.000];
NSColor *backtickColor = [NSColor colorWithDeviceRed:0.0 green:0.0 blue:0.658 alpha:1.000];
+ NSColor *numericColor = [NSColor colorWithDeviceRed:0.506 green:0.263 blue:0.0 alpha:1.000];
NSColor *tokenColor;
@@ -956,6 +957,9 @@ SYNTAX HIGHLIGHTING!
case SPT_RESERVED_WORD:
tokenColor = keywordColor;
break;
+ case SPT_NUMERIC:
+ tokenColor = numericColor;
+ break;
case SPT_COMMENT:
tokenColor = commentColor;
break;