Skip to content
Browse files

• support for SciLab [1] provided by Jiun Wei Chia.

Scilab is a numerical computational package developed by INRIA and ENPC in France. It is similar in functionality to MATLAB and is available to download at no cost.

[1]: http://www.scilab.org/


git-svn-id: http://svn.textmate.org/trunk/Bundles/Scilab.tmbundle@6745 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
0 parents commit ad238d0111aefe53a3d2ef51dad082a459f7cdb6 @sorbits sorbits committed Mar 6, 2007
62 Commands/Help.tmCommand
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>. "$TM_SUPPORT_PATH/lib/webpreview.sh"
+html_header "Scilab Bundle Help" "Scilab"
+
+"$TM_SUPPORT_PATH/lib/markdown_to_help.rb" &lt;&lt;'EOF'
+
+# Help for Scilab Bundle (v0.11)
+
+This Scilab bundle was created to help make editing Scilab scripts in TextMate a little easier. The two main benefits are:
+
+1. **Syntax Highlighting**
+
+ Most conventional Scilab scripts should be interpreted correctly using the language grammar provided with this bundle. You'll get all the benefits of syntax highlighting, function pop-ups, and code folding.
+
+2. **Run Script Command**
+
+ If you have `Scilab-4.1.app` installed, you'll be able to run the current script in a new instance of Scilab by simply pressing &amp;#x2318;R. You can also load all functions defined in the working directory first (using getd) by pressing &amp;#x21E7;&amp;#x2318;R.
+
+ You can obtain `Scilab-4.1.app` at &lt;a href="javascript:TextMate.system('open http://www.lmac.utc.fr/~mottelet/Darwin/', null);"&gt;http://www.lmac.utc.fr/~mottelet/Darwin/&lt;/a&gt;.
+
+If you have any suggestions or bug reports, feel free to send them to &lt;a href="mailto:jc483@cornell.edu?subject=Scilab Bundle"&gt;jc483@cornell.edu&lt;/a&gt; with the subject "Scilab Bundle".
+
+# Version History
+
+- v0.11 (March 5th, 2007)
+ - Thanks to Allan Odgaard for reviewing this bundle
+ - Help now uses `markdown_to_help.rb` instead of `Markdown.pl`
+ - `Scilab-4.1.app` is now located using `find_app`
+- v0.1 (March 3rd, 2007)
+ - Initial release
+
+# About This Bundle
+
+## Disclaimer
+
+I'm just an amateur programmer, so it's very likely that there are better ways to automate some of the things that this bundle attempts to do. Feel free to correct any errors you may find, and if you want, you can publish your changes for everyone's benefit.
+
+## Credits
+
+Created by Jiun Wei Chia. Various code stolen from the default TextMate bundles.
+
+EOF
+
+html_footer</string>
+ <key>input</key>
+ <string>none</string>
+ <key>name</key>
+ <string>Help</string>
+ <key>output</key>
+ <string>showAsHTML</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>uuid</key>
+ <string>B2908B89-B064-447E-B3A7-C03D4BEE6D1C</string>
+</dict>
+</plist>
34 Commands/Run Script (with getd).tmCommand
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>saveActiveFile</string>
+ <key>command</key>
+ <string>export APP=`find_app Scilab-4.1.app`
+LAUNCHER=$APP/Contents/Resources/launcher.sh
+if [ -x "$LAUNCHER" ]
+then
+ DIRECTORY=`echo "$TM_DIRECTORY" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`
+ FILEPATH=`echo "$TM_FILEPATH" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`
+ echo "cd('$DIRECTORY'); getd('$DIRECTORY'); exec('$FILEPATH');" &gt; /tmp/scilab.sce
+ $LAUNCHER -f /tmp/scilab.sce
+else
+ echo "Scilab 4.1 not found."
+ echo "Please copy Scilab-4.1.app to the Applications directory."
+fi
+</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>@R</string>
+ <key>name</key>
+ <string>Run Script (with getd)</string>
+ <key>output</key>
+ <string>showAsTooltip</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>uuid</key>
+ <string>FCD467AA-0FAF-4B63-A613-E7175B80709A</string>
+</dict>
+</plist>
34 Commands/Run Script.tmCommand
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>saveActiveFile</string>
+ <key>command</key>
+ <string>export APP=`find_app Scilab-4.1.app`
+LAUNCHER=$APP/Contents/Resources/launcher.sh
+if [ -x "$LAUNCHER" ]
+then
+ DIRECTORY=`echo "$TM_DIRECTORY" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`
+ FILEPATH=`echo "$TM_FILEPATH" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`
+ echo "cd('$DIRECTORY'); exec('$FILEPATH');" &gt; /tmp/scilab.sce
+ $LAUNCHER -f /tmp/scilab.sce
+else
+ echo "Scilab 4.1 not found."
+ echo "Please copy Scilab-4.1.app to the Applications directory."
+fi
+</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>@r</string>
+ <key>name</key>
+ <string>Run Script</string>
+ <key>output</key>
+ <string>showAsTooltip</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>uuid</key>
+ <string>14038705-CA2C-4386-8B21-3EEF52A15537</string>
+</dict>
+</plist>
27 DragCommands/Insert _sce _tst _dem.tmDragCommand
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>DROPPED_FILE=`echo "$TM_DROPPED_FILE" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`
+echo "exec(\"$DROPPED_FILE\");"</string>
+ <key>draggedFileExtensions</key>
+ <array>
+ <string>sce</string>
+ <string>tst</string>
+ <string>dem</string>
+ </array>
+ <key>input</key>
+ <string>selection</string>
+ <key>name</key>
+ <string>Insert .sce .tst .dem</string>
+ <key>output</key>
+ <string>insertAsSnippet</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>uuid</key>
+ <string>D584442F-F817-457C-B894-205B5F154A0E</string>
+</dict>
+</plist>
25 DragCommands/Insert _sci.tmDragCommand
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>DROPPED_FILE=`echo "$TM_DROPPED_FILE" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`
+echo "getf(\"$DROPPED_FILE\");"</string>
+ <key>draggedFileExtensions</key>
+ <array>
+ <string>sci</string>
+ </array>
+ <key>input</key>
+ <string>selection</string>
+ <key>name</key>
+ <string>Insert .sci</string>
+ <key>output</key>
+ <string>insertAsSnippet</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>uuid</key>
+ <string>B4242F8A-C36A-4275-BC65-1DD4BE1AD758</string>
+</dict>
+</plist>
24 Preferences/Comments.tmPreferences
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>name</key>
+ <string>Comments</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>settings</key>
+ <dict>
+ <key>shellVariables</key>
+ <array>
+ <dict>
+ <key>name</key>
+ <string>TM_COMMENT_START</string>
+ <key>value</key>
+ <string>// </string>
+ </dict>
+ </array>
+ </dict>
+ <key>uuid</key>
+ <string>334A45F4-210A-48E2-A539-2576F882C4FE</string>
+</dict>
+</plist>
17 Snippets/case.tmSnippet
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>case ${1:expression} then
+ $0</string>
+ <key>name</key>
+ <string>case</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>case</string>
+ <key>uuid</key>
+ <string>C4962F23-F7E2-42E4-A375-3CEE9E5B4C22</string>
+</dict>
+</plist>
17 Snippets/elseif.tmSnippet
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>elseif ${1:condition} then
+ $0</string>
+ <key>name</key>
+ <string>elseif</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>elseif</string>
+ <key>uuid</key>
+ <string>9D1CCE73-07D7-4F3C-A181-76C5950A0D1E</string>
+</dict>
+</plist>
16 Snippets/exec(__).tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>exec("${0:script.sce}")</string>
+ <key>name</key>
+ <string>exec(..)</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>exec</string>
+ <key>uuid</key>
+ <string>CD8A35E6-C4F3-4D94-BF65-B2D8916AAD44</string>
+</dict>
+</plist>
16 Snippets/eye(__).tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>eye(${1:size}, ${2:$1})</string>
+ <key>name</key>
+ <string>eye(..)</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>eye</string>
+ <key>uuid</key>
+ <string>ADFCB962-5271-4BD9-8A1F-9E9913C1EFAA</string>
+</dict>
+</plist>
18 Snippets/for ___ end.tmSnippet
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>for ${1:i} = ${2:array}
+ $0
+end</string>
+ <key>name</key>
+ <string>for ... end</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>for</string>
+ <key>uuid</key>
+ <string>B9B4D734-CF90-4D19-9EC6-3B57CFF3F759</string>
+</dict>
+</plist>
18 Snippets/function.tmSnippet
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>function ${3:output} = ${1:name}($2)
+ // ${4:Description of $1($2)}
+endfunction</string>
+ <key>name</key>
+ <string>function</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>function</string>
+ <key>uuid</key>
+ <string>B2D06182-E594-40F4-8FFE-E96B9F45EC1C</string>
+</dict>
+</plist>
16 Snippets/get_absolute_file_path(__).tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>get_absolute_file_path("${0:`echo "$TM_FILEPATH" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`}");</string>
+ <key>name</key>
+ <string>get_absolute_file_path(..)</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>path</string>
+ <key>uuid</key>
+ <string>1A24ECE9-7AF7-4CAB-9C8F-5C1B7B5E2231</string>
+</dict>
+</plist>
16 Snippets/getd(__).tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>getd("${0:`echo "$TM_DIRECTORY" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`}")</string>
+ <key>name</key>
+ <string>getd(..)</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>getd</string>
+ <key>uuid</key>
+ <string>38FBBBEA-4064-4A06-9FC5-09B286892CB7</string>
+</dict>
+</plist>
16 Snippets/getf(__).tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>getf("${0:script.sci}")</string>
+ <key>name</key>
+ <string>getf(..)</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>getf</string>
+ <key>uuid</key>
+ <string>A41372BE-D782-4236-ACFC-BF88630D78AC</string>
+</dict>
+</plist>
20 Snippets/if ___ else ___ end.tmSnippet
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>if ${1:condition} then
+ $2
+else
+ $3
+end</string>
+ <key>name</key>
+ <string>if ... else ... end</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>ifelse</string>
+ <key>uuid</key>
+ <string>38B7443F-1F47-42AB-A74A-79EB40FDE7C0</string>
+</dict>
+</plist>
18 Snippets/if ___ end.tmSnippet
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>if ${1:condition} then
+ $0
+end</string>
+ <key>name</key>
+ <string>if ... end</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>if</string>
+ <key>uuid</key>
+ <string>59BFC296-FAB3-45EE-B9D3-B57841A4D3C5</string>
+</dict>
+</plist>
16 Snippets/legend(__).tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>legend("${1:Graph 1}", "${2:Graph 2}")</string>
+ <key>name</key>
+ <string>legend(..)</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>legend</string>
+ <key>uuid</key>
+ <string>CF4617F0-175E-482B-990B-70AA75DA1231</string>
+</dict>
+</plist>
16 Snippets/ones(__).tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>ones(${1:rows}, ${2:cols})</string>
+ <key>name</key>
+ <string>ones(..)</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>ones</string>
+ <key>uuid</key>
+ <string>6D03A104-F2A7-4141-B102-54CB1BAA58F1</string>
+</dict>
+</plist>
16 Snippets/plot(__).tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>plot(${1:x}, ${2:y}, ${3:'-'})</string>
+ <key>name</key>
+ <string>plot(..)</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>plot</string>
+ <key>uuid</key>
+ <string>2B4C5133-C32A-4305-B6B1-CB88FB2A28BE</string>
+</dict>
+</plist>
16 Snippets/plot3d(__).tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>plot3d(${1:x}, ${2:y}, ${3:z})</string>
+ <key>name</key>
+ <string>plot3d(..)</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>plot3d</string>
+ <key>uuid</key>
+ <string>C05BF6A0-185E-4093-BBCE-DEC0F0C16915</string>
+</dict>
+</plist>
19 Snippets/select ___ case ___ end.tmSnippet
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>select ${1:variable}
+ case ${2:expression} then
+ $0
+end</string>
+ <key>name</key>
+ <string>select ... case ... end</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>select</string>
+ <key>uuid</key>
+ <string>997D2E8F-7379-44CA-BFCF-93F46ACA3D24</string>
+</dict>
+</plist>
18 Snippets/while ___ end.tmSnippet
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>while ${1:condition} then
+ $0
+end</string>
+ <key>name</key>
+ <string>while ... end</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>while</string>
+ <key>uuid</key>
+ <string>A76108A2-B2DF-4635-B693-FA64609D65E6</string>
+</dict>
+</plist>
16 Snippets/xtitle(__).tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>xtitle("${1:Main Title}", "${2:x-axis}", "${3:y-axis}")</string>
+ <key>name</key>
+ <string>xtitle(..)</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>title</string>
+ <key>uuid</key>
+ <string>0CC94185-7A16-4ACE-9D81-CF20D175E465</string>
+</dict>
+</plist>
16 Snippets/zeros(__).tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>zeros(${1:rows}, ${2:cols})</string>
+ <key>name</key>
+ <string>zeros(..)</string>
+ <key>scope</key>
+ <string>source.scilab</string>
+ <key>tabTrigger</key>
+ <string>zeros</string>
+ <key>uuid</key>
+ <string>E10F3484-A015-4C1E-AC21-3AFE10B24DA8</string>
+</dict>
+</plist>
109 Syntaxes/Scilab.tmLanguage
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>fileTypes</key>
+ <array>
+ <string>sce</string>
+ <string>sci</string>
+ <string>tst</string>
+ <string>dem</string>
+ </array>
+ <key>foldingStartMarker</key>
+ <string>^(?!.*//.*).*\b(if|while|for|function|select)\b</string>
+ <key>foldingStopMarker</key>
+ <string>\b(endfunction|end)\b</string>
+ <key>name</key>
+ <string>Scilab</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>begin</key>
+ <string>//</string>
+ <key>end</key>
+ <string>$\n?</string>
+ <key>name</key>
+ <string>comment.line.double-slash.scilab</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>\b(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?\b</string>
+ <key>name</key>
+ <string>constant.numeric.scilab</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>(%inf|%i|%pi|%eps|%e|%nan|%s|%t|%f)\b</string>
+ <key>name</key>
+ <string>support.constant.scilab</string>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>"</string>
+ <key>end</key>
+ <string>"(?!")</string>
+ <key>name</key>
+ <string>string.quoted.double.scilab</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>''|""</string>
+ <key>name</key>
+ <string>constant.character.escape.scilab</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>(?&lt;![\w\]\)])'</string>
+ <key>end</key>
+ <string>'(?!')</string>
+ <key>name</key>
+ <string>string.quoted.single.scilab</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>''|""</string>
+ <key>name</key>
+ <string>constant.character.escape.scilab</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>keyword.control.scilab</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>entity.name.function.scilab</string>
+ </dict>
+ </dict>
+ <key>match</key>
+ <string>\b(function)\s+(?:[^=]+=\s*)?(\w+)(?:\s*\(.*\))?</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>\b(if|then|else|elseif|while|for|function|end|endfunction|return|select|case|break|global)\b</string>
+ <key>name</key>
+ <string>keyword.control.scilab</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>\.\.\.\s*$</string>
+ <key>name</key>
+ <string>punctuation.separator.continuation.scilab</string>
+ </dict>
+ </array>
+ <key>scopeName</key>
+ <string>source.scilab</string>
+ <key>uuid</key>
+ <string>14374AA3-A329-4623-8DFA-1ACC2CE222B9</string>
+</dict>
+</plist>
102 info.plist
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>contactEmailRot13</key>
+ <string>wp483@pbearyy.rqh</string>
+ <key>contactName</key>
+ <string>Jiun Wei Chia</string>
+ <key>description</key>
+ <string>&lt;a href=&quot;http://www.scilab.org/&quot;&gt;Scilab&lt;/a&gt; is a numerical computational package developed by INRIA and ENPC in France. It is similar in functionality to MATLAB and is available to download at no cost.</string>
+ <key>mainMenu</key>
+ <dict>
+ <key>items</key>
+ <array>
+ <string>14038705-CA2C-4386-8B21-3EEF52A15537</string>
+ <string>FCD467AA-0FAF-4B63-A613-E7175B80709A</string>
+ <string>------------------------------------</string>
+ <string>07939D64-FDFF-4319-9659-755597BEBC15</string>
+ <string>B1615F0A-61DF-45DD-82AA-0A6410A29E14</string>
+ <string>------------------------------------</string>
+ <string>B2908B89-B064-447E-B3A7-C03D4BEE6D1C</string>
+ </array>
+ <key>submenus</key>
+ <dict>
+ <key>07939D64-FDFF-4319-9659-755597BEBC15</key>
+ <dict>
+ <key>items</key>
+ <array>
+ <string>B2D06182-E594-40F4-8FFE-E96B9F45EC1C</string>
+ <string>------------------------------------</string>
+ <string>B9B4D734-CF90-4D19-9EC6-3B57CFF3F759</string>
+ <string>------------------------------------</string>
+ <string>59BFC296-FAB3-45EE-B9D3-B57841A4D3C5</string>
+ <string>38B7443F-1F47-42AB-A74A-79EB40FDE7C0</string>
+ <string>9D1CCE73-07D7-4F3C-A181-76C5950A0D1E</string>
+ <string>------------------------------------</string>
+ <string>997D2E8F-7379-44CA-BFCF-93F46ACA3D24</string>
+ <string>C4962F23-F7E2-42E4-A375-3CEE9E5B4C22</string>
+ <string>------------------------------------</string>
+ <string>A76108A2-B2DF-4635-B693-FA64609D65E6</string>
+ </array>
+ <key>name</key>
+ <string>Code Blocks</string>
+ </dict>
+ <key>B1615F0A-61DF-45DD-82AA-0A6410A29E14</key>
+ <dict>
+ <key>items</key>
+ <array>
+ <string>6D03A104-F2A7-4141-B102-54CB1BAA58F1</string>
+ <string>E10F3484-A015-4C1E-AC21-3AFE10B24DA8</string>
+ <string>ADFCB962-5271-4BD9-8A1F-9E9913C1EFAA</string>
+ <string>------------------------------------</string>
+ <string>CD8A35E6-C4F3-4D94-BF65-B2D8916AAD44</string>
+ <string>A41372BE-D782-4236-ACFC-BF88630D78AC</string>
+ <string>38FBBBEA-4064-4A06-9FC5-09B286892CB7</string>
+ <string>1A24ECE9-7AF7-4CAB-9C8F-5C1B7B5E2231</string>
+ <string>------------------------------------</string>
+ <string>2B4C5133-C32A-4305-B6B1-CB88FB2A28BE</string>
+ <string>C05BF6A0-185E-4093-BBCE-DEC0F0C16915</string>
+ <string>CF4617F0-175E-482B-990B-70AA75DA1231</string>
+ <string>0CC94185-7A16-4ACE-9D81-CF20D175E465</string>
+ </array>
+ <key>name</key>
+ <string>Common Functions</string>
+ </dict>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>Scilab</string>
+ <key>ordering</key>
+ <array>
+ <string>14038705-CA2C-4386-8B21-3EEF52A15537</string>
+ <string>FCD467AA-0FAF-4B63-A613-E7175B80709A</string>
+ <string>B2908B89-B064-447E-B3A7-C03D4BEE6D1C</string>
+ <string>14374AA3-A329-4623-8DFA-1ACC2CE222B9</string>
+ <string>B2D06182-E594-40F4-8FFE-E96B9F45EC1C</string>
+ <string>B9B4D734-CF90-4D19-9EC6-3B57CFF3F759</string>
+ <string>59BFC296-FAB3-45EE-B9D3-B57841A4D3C5</string>
+ <string>38B7443F-1F47-42AB-A74A-79EB40FDE7C0</string>
+ <string>9D1CCE73-07D7-4F3C-A181-76C5950A0D1E</string>
+ <string>997D2E8F-7379-44CA-BFCF-93F46ACA3D24</string>
+ <string>C4962F23-F7E2-42E4-A375-3CEE9E5B4C22</string>
+ <string>A76108A2-B2DF-4635-B693-FA64609D65E6</string>
+ <string>334A45F4-210A-48E2-A539-2576F882C4FE</string>
+ <string>6D03A104-F2A7-4141-B102-54CB1BAA58F1</string>
+ <string>E10F3484-A015-4C1E-AC21-3AFE10B24DA8</string>
+ <string>ADFCB962-5271-4BD9-8A1F-9E9913C1EFAA</string>
+ <string>CD8A35E6-C4F3-4D94-BF65-B2D8916AAD44</string>
+ <string>A41372BE-D782-4236-ACFC-BF88630D78AC</string>
+ <string>38FBBBEA-4064-4A06-9FC5-09B286892CB7</string>
+ <string>1A24ECE9-7AF7-4CAB-9C8F-5C1B7B5E2231</string>
+ <string>2B4C5133-C32A-4305-B6B1-CB88FB2A28BE</string>
+ <string>C05BF6A0-185E-4093-BBCE-DEC0F0C16915</string>
+ <string>CF4617F0-175E-482B-990B-70AA75DA1231</string>
+ <string>0CC94185-7A16-4ACE-9D81-CF20D175E465</string>
+ <string>B4242F8A-C36A-4275-BC65-1DD4BE1AD758</string>
+ <string>D584442F-F817-457C-B894-205B5F154A0E</string>
+ </array>
+ <key>uuid</key>
+ <string>C397B72C-7519-44CD-8533-7AB7F701C4E4</string>
+</dict>
+</plist>

0 comments on commit ad238d0

Please sign in to comment.
Something went wrong with that request. Please try again.