From daa8f9af6ab131b0e0e3b6cabda1e194841aa78a Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 7 Apr 2009 22:27:29 +0000 Subject: =?UTF-8?q?=E2=80=A2=20optimized=20syntax=20highlighting=20a=20bit?= =?UTF-8?q?=20=E2=80=A2=20added=20syntax=20highlighting=20for=20numeric=20?= =?UTF-8?q?values=20=E2=80=A2=20changed=20syntax=20highlighting=20for=20'o?= =?UTF-8?q?rder'=20and=20'group'=20to=20'order=20by'=20resp.=20'group=20by?= =?UTF-8?q?'=20(useful=20also=20for=20visual=20syntax=20checking=20while?= =?UTF-8?q?=20typing)=20=E2=80=A2=20fixed=20the=20issue=20to=20highlight?= =?UTF-8?q?=20a=20keyword=20if=20that=20keyword=20is=20the=20name=20a=20va?= =?UTF-8?q?riable=20(e.g.=20@set=20:=3D=201)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CMTextView.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/CMTextView.m') 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; -- cgit v1.2.3