aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-12-28 23:56:11 +0000
committerrowanbeentje <rowan@beent.je>2009-12-28 23:56:11 +0000
commitb7bfae119265c7b09dad7160175844198c9289bc (patch)
tree90dfe7af6206ed354385b82c45b14001b0777e6b /Source
parentbf7ed8561accb5a3ce2e7cb8f681017adcd8f055 (diff)
downloadsequelpro-b7bfae119265c7b09dad7160175844198c9289bc.tar.gz
sequelpro-b7bfae119265c7b09dad7160175844198c9289bc.tar.bz2
sequelpro-b7bfae119265c7b09dad7160175844198c9289bc.zip
- Replace /* */ notation in long comments with unicode look-alikes to fix warnings and improve source readability
Diffstat (limited to 'Source')
-rw-r--r--Source/CustomQuery.m6
-rw-r--r--Source/SPSQLParser.h6
-rw-r--r--Source/SPSQLParser.m2
3 files changed, 7 insertions, 7 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index 4805ea45..137ac017 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -1032,7 +1032,7 @@
}
/*
- * Add or remove "/* *~/" for each line in the current query
+ * Add or remove "⁄* *⁄" for each line in the current query
* a given selection
*/
- (void)commentOutCurrentQueryTakingSelection:(BOOL)takeSelection
@@ -1085,8 +1085,8 @@
/*
* Add or remove "-- " for each line in the current query or selection,
- * if the selection is in-line wrap selection into /* block comments and
- * place the caret after /* to allow to enter !xxxxxx e.g.
+ * if the selection is in-line wrap selection into ⁄* block comments and
+ * place the caret after ⁄* to allow to enter !xxxxxx e.g.
*/
- (void)commentOut
{
diff --git a/Source/SPSQLParser.h b/Source/SPSQLParser.h
index 40d23e6d..9625f8a4 100644
--- a/Source/SPSQLParser.h
+++ b/Source/SPSQLParser.h
@@ -42,9 +42,9 @@
* While some methods may look similar to NSScanner methods, and others look like they could be
* achieved with Regex libraries or other string parsing libraries, this class was written with
* the following goals in mind:
- * - SQL comments, in "/* ... * /", "#" and "--[\s]" form, are ignored automatically while parsing -
+ * - SQL comments, in "⁄* ... *⁄", "#" and "--[\s]" form, are ignored automatically while parsing -
*but* are left in the strings in question, to allow (for example) MySQL-version specific query
- support, eg /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT * /
+ support, eg ⁄*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *⁄
* - Support for quoted strings in most commands, allowing strings quoted with ", ', and ` characters -
including support for \-escaping of the quote characters within "- and '-terminated strings.
* - Optional support for bracket capturing in most commands. This can allow simpler parsing of strings
@@ -80,7 +80,7 @@ typedef enum _SPCommentTypes {
- (void) setIgnoringCommentStrings:(BOOL)ignoringCommentStrings;
/*
- * Removes comments within the current string, trimming "#", "--[/s]", and "/* * /" style strings.
+ * Removes comments within the current string, trimming "#", "--[/s]", and "⁄* *⁄" style strings.
*/
- (void) deleteComments;
diff --git a/Source/SPSQLParser.m b/Source/SPSQLParser.m
index 68000722..f9ac506e 100644
--- a/Source/SPSQLParser.m
+++ b/Source/SPSQLParser.m
@@ -48,7 +48,7 @@ TO_BUFFER_STATE to_scan_string (const char *);
}
/*
- * Removes comments within the current string, trimming "#", "--[/s]", and "/* * /" style strings.
+ * Removes comments within the current string, trimming "#", "--[/s]", and "⁄* *⁄" style strings.
*/
- (void) deleteComments
{