Skip to content
This repository was archived by the owner on Nov 19, 2019. It is now read-only.

Commit 494c43a

Browse files
committed
Merge branch 'release/sql_mode'
2 parents 19a0417 + e271c3c commit 494c43a

File tree

12 files changed

+992
-0
lines changed

12 files changed

+992
-0
lines changed

Modes/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Language | Version | Update Date | Comment | Author
55
---------|---------|-------------|---------|----------
66
c# ([zip](../../../raw/master/Modes/zipped/C%23.seemode.zip)) | 2.0 | 2014-06-18 | Quick simple C# mode | [m4p](https://github.com/m4p)
77
Dtrace ([zip](../../../raw/master/Modes/zipped/Dtrace.seemode.zip)) | 1.0.1 | 2014-06-24 | Mode for DTrace scripts | [tbartelmess](https://github.com/tbartelmess)
8+
SQL ([zip](../../../raw/master/Modes/zipped/SQL.seemode.zip)) | 4.0 | 2014-07-09 | SQL Mode - ported from built-in SEE 3 Mode | [ellduin](https://github.com/ellduin)
89
Swift ([zip](../../../raw/master/Modes/zipped/Swift.seemode.zip)) | 1.0 | 2014-06-21 | Swift Mode - also contains swiftc.sh to write command line tools with full argument and cocoa support | [monkeydom](https://github.com/monkeydom)
910
Thrift ([zip](../../../raw/master/Modes/zipped/Thrift.seemode.zip)) | 1.0 | 2014-06-22 | Mode for Apache thrift | [tbartelmess](https://github.com/tbartelmess)
1011

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleIdentifier</key>
6+
<string>SEEMode.SQL</string>
7+
<key>CFBundleName</key>
8+
<string>SQL</string>
9+
<key>NSHumanReadableCopyright</key>
10+
<string>© 2014 TheCodingMonkeys
11+
http://www.codingmonkeys.de</string>
12+
<key>CFBundleShortVersionString</key>
13+
<string>4.0</string>
14+
<key>CFBundleVersion</key>
15+
<string>4.0</string>
16+
<key>SEEMinimumEngineVersion</key>
17+
<string>4.0</string>
18+
<key>CFBundleInfoDictionaryVersion</key>
19+
<string>6.0</string>
20+
</dict>
21+
</plist>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Changes with Version 4.0 (SEE 4.0)
2+
*) SYNTAX: updated for syntax scopes
3+
*) SYNTAX: markup cleanup
4+
*) added ExampleSyntax.txt
5+
*) added ScopeExamples.plist
6+
7+
Changes with Version 3.5 (SEE 3.5)
8+
*) added code folding
9+
10+
Changes with Version 1.2 (SEE 2.5)
11+
*) Fixed SEE-942: SQL mode does not respect backtick strings.
12+
13+
Changes with Version 1.1
14+
*) EXTENSIONS: Added uppercase variants where appropriate.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-- SQL Example Syntax File
2+
/*
3+
SQL
4+
Example Syntax
5+
File
6+
*/
7+
8+
CREATE TABLE message (text char(15));
9+
INSERT INTO message (text) VALUES ('Hello, world!');
10+
SELECT text FROM message;
11+
DROP TABLE message;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<settings>
3+
<recognition>
4+
<extension>sql</extension>
5+
<extension>mysql</extension>
6+
<extension>postgresql</extension>
7+
</recognition>
8+
</settings>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Mode for SQL.
2+
3+
Ported Version of the formerly built-in SubEthaEdit Mode, July 2014.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE syntax SYSTEM "symbol.dtd">
3+
<symbols>
4+
5+
<blocks>
6+
<beginregex>{</beginregex>
7+
<endregex>}</endregex>
8+
</blocks>
9+
10+
<symbol id="C Funtions" image="SymbolC" indentation="1" ignoreblocks="yes">
11+
<regex>(?i)CREATE[ \t]+TABLE[ \t]*([\w\d_]+)[ \t]*\(</regex>
12+
</symbol>
13+
14+
<symbol id="SQL Triggers" image="SymbolT" indentation="1" ignoreblocks="yes">
15+
<regex>(?i)CREATE[ \t]+TRIGGER[ \t]*([\w\d_]+)</regex>
16+
</symbol>
17+
18+
<symbol id="CVS/SVN conflict" font-weight="bold" image="SymbolWarn" indentation="0" ignoreblocks="no">
19+
<regex>^&lt;&lt;&lt;&lt;&lt;&lt;&lt;([\n\r]|.)*?======([\n\r]|.)*?&gt;&gt;&gt;&gt;&gt;&gt;&gt;</regex>
20+
<postprocess>
21+
<find>.*</find>
22+
<replace>Versioning conflict!</replace>
23+
</postprocess>
24+
</symbol>
25+
26+
</symbols>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>keyword.type</key>
6+
<string>BLOB FLOAT TIME</string>
7+
<key>support.subroutine.function</key>
8+
<string>ABS CURRENT_DATE</string>
9+
<key>keyword.constant</key>
10+
<string>FALSE NULL TRUE</string>
11+
<key>keyword</key>
12+
<string>ALL BUILD CHECK</string>
13+
<key>language.constant.numeric</key>
14+
<string>42</string>
15+
<key>comment.block</key>
16+
<string>/* Comment */</string>
17+
<key>comment.line.number-sign</key>
18+
<string># Comment (mysql)</string>
19+
<key>comment.line.double-dash</key>
20+
<string>-- Comment</string>
21+
<key>string.single</key>
22+
<string>'Strings'</string>
23+
<key>string.double</key>
24+
<string>"Strings"</string>
25+
<key>string.single.backtick</key>
26+
<string>`Strings`</string>
27+
</dict>
28+
</plist>

0 commit comments

Comments
 (0)