Skip to content

Commit

Permalink
Merge branch 'release/sql_mode'
Browse files Browse the repository at this point in the history
  • Loading branch information
ellduin committed Jul 9, 2014
2 parents 19a0417 + e271c3c commit 494c43a
Show file tree
Hide file tree
Showing 12 changed files with 992 additions and 0 deletions.
1 change: 1 addition & 0 deletions Modes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Language | Version | Update Date | Comment | Author
---------|---------|-------------|---------|----------
c# ([zip](../../../raw/master/Modes/zipped/C%23.seemode.zip)) | 2.0 | 2014-06-18 | Quick simple C# mode | [m4p](https://github.com/m4p)
Dtrace ([zip](../../../raw/master/Modes/zipped/Dtrace.seemode.zip)) | 1.0.1 | 2014-06-24 | Mode for DTrace scripts | [tbartelmess](https://github.com/tbartelmess)
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)
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)
Thrift ([zip](../../../raw/master/Modes/zipped/Thrift.seemode.zip)) | 1.0 | 2014-06-22 | Mode for Apache thrift | [tbartelmess](https://github.com/tbartelmess)

Expand Down
21 changes: 21 additions & 0 deletions Modes/SQL.seemode/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
<string>SEEMode.SQL</string>
<key>CFBundleName</key>
<string>SQL</string>
<key>NSHumanReadableCopyright</key>
<string>© 2014 TheCodingMonkeys
http://www.codingmonkeys.de</string>
<key>CFBundleShortVersionString</key>
<string>4.0</string>
<key>CFBundleVersion</key>
<string>4.0</string>
<key>SEEMinimumEngineVersion</key>
<string>4.0</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
</dict>
</plist>
14 changes: 14 additions & 0 deletions Modes/SQL.seemode/Contents/Resources/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Changes with Version 4.0 (SEE 4.0)
*) SYNTAX: updated for syntax scopes
*) SYNTAX: markup cleanup
*) added ExampleSyntax.txt
*) added ScopeExamples.plist

Changes with Version 3.5 (SEE 3.5)
*) added code folding

Changes with Version 1.2 (SEE 2.5)
*) Fixed SEE-942: SQL mode does not respect backtick strings.

Changes with Version 1.1
*) EXTENSIONS: Added uppercase variants where appropriate.
11 changes: 11 additions & 0 deletions Modes/SQL.seemode/Contents/Resources/ExampleSyntax.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- SQL Example Syntax File
/*
SQL
Example Syntax
File
*/

CREATE TABLE message (text char(15));
INSERT INTO message (text) VALUES ('Hello, world!');
SELECT text FROM message;
DROP TABLE message;
8 changes: 8 additions & 0 deletions Modes/SQL.seemode/Contents/Resources/ModeSettings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<recognition>
<extension>sql</extension>
<extension>mysql</extension>
<extension>postgresql</extension>
</recognition>
</settings>
3 changes: 3 additions & 0 deletions Modes/SQL.seemode/Contents/Resources/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Mode for SQL.

Ported Version of the formerly built-in SubEthaEdit Mode, July 2014.
26 changes: 26 additions & 0 deletions Modes/SQL.seemode/Contents/Resources/RegexSymbols.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE syntax SYSTEM "symbol.dtd">
<symbols>

<blocks>
<beginregex>{</beginregex>
<endregex>}</endregex>
</blocks>

<symbol id="C Funtions" image="SymbolC" indentation="1" ignoreblocks="yes">
<regex>(?i)CREATE[ \t]+TABLE[ \t]*([\w\d_]+)[ \t]*\(</regex>
</symbol>

<symbol id="SQL Triggers" image="SymbolT" indentation="1" ignoreblocks="yes">
<regex>(?i)CREATE[ \t]+TRIGGER[ \t]*([\w\d_]+)</regex>
</symbol>

<symbol id="CVS/SVN conflict" font-weight="bold" image="SymbolWarn" indentation="0" ignoreblocks="no">
<regex>^&lt;&lt;&lt;&lt;&lt;&lt;&lt;([\n\r]|.)*?======([\n\r]|.)*?&gt;&gt;&gt;&gt;&gt;&gt;&gt;</regex>
<postprocess>
<find>.*</find>
<replace>Versioning conflict!</replace>
</postprocess>
</symbol>

</symbols>
28 changes: 28 additions & 0 deletions Modes/SQL.seemode/Contents/Resources/ScopeExamples.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>keyword.type</key>
<string>BLOB FLOAT TIME</string>
<key>support.subroutine.function</key>
<string>ABS CURRENT_DATE</string>
<key>keyword.constant</key>
<string>FALSE NULL TRUE</string>
<key>keyword</key>
<string>ALL BUILD CHECK</string>
<key>language.constant.numeric</key>
<string>42</string>
<key>comment.block</key>
<string>/* Comment */</string>
<key>comment.line.number-sign</key>
<string># Comment (mysql)</string>
<key>comment.line.double-dash</key>
<string>-- Comment</string>
<key>string.single</key>
<string>'Strings'</string>
<key>string.double</key>
<string>"Strings"</string>
<key>string.single.backtick</key>
<string>`Strings`</string>
</dict>
</plist>
Loading

0 comments on commit 494c43a

Please sign in to comment.