From f3a9ddaec02a734fcf2a300d878a79133716fbd4 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 20 Jan 2011 11:19:41 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20syntax=20highlighting=20for=20comme?= =?UTF-8?q?nts=20like=20'--\n'=20or=20'--\r'=20since=20these're=20also=20v?= =?UTF-8?q?alid=20=20comments=20in=20MySQL=20(=20http://dev.mysql.com/doc/?= =?UTF-8?q?refman/5.1/en/comments.html=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPEditorTokens.l | 1 + 1 file changed, 1 insertion(+) (limited to 'Source') diff --git a/Source/SPEditorTokens.l b/Source/SPEditorTokens.l index a5726cce..3be705ce 100644 --- a/Source/SPEditorTokens.l +++ b/Source/SPEditorTokens.l @@ -87,6 +87,7 @@ keywords (X(OR|509|A)|S(MALLINT|SL|H(OW({s}(E(NGINE(S)?|RRORS)|M(ASTER|UTEX)|BIN */ #[^\n\r]*(\n|\r)? | /* # Comments */ +--[\n\r] { return SPT_COMMENT; } /* -- */ --[ \t][^\n\r]*(\n|\r)? { return SPT_COMMENT; } /* -- Comments */ {variable}/{ops} { BEGIN(varequation); return SPT_VARIABLE; }/* SQL variables before operator*/ -- cgit v1.2.3