aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-01-20 11:19:41 +0000
committerBibiko <bibiko@eva.mpg.de>2011-01-20 11:19:41 +0000
commitf3a9ddaec02a734fcf2a300d878a79133716fbd4 (patch)
tree333631f170af933a1dc58e9e01081d811746871b /Source
parent326ad6df4b8c99b3dd103ad2a27de6dc09309191 (diff)
downloadsequelpro-f3a9ddaec02a734fcf2a300d878a79133716fbd4.tar.gz
sequelpro-f3a9ddaec02a734fcf2a300d878a79133716fbd4.tar.bz2
sequelpro-f3a9ddaec02a734fcf2a300d878a79133716fbd4.zip
• fixed syntax highlighting for comments like '--\n' or '--\r' since these're also valid comments in MySQL ( http://dev.mysql.com/doc/refman/5.1/en/comments.html )
Diffstat (limited to 'Source')
-rw-r--r--Source/SPEditorTokens.l1
1 files changed, 1 insertions, 0 deletions
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*/