Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

• 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...
commit ad238d0111aefe53a3d2ef51dad082a459f7cdb6 0 parents
Allan Odgaard sorbits authored

Showing 27 changed files with 738 additions and 0 deletions. Show diff stats Hide diff stats

  1. +62 0 Commands/Help.tmCommand
  2. +34 0 Commands/Run Script (with getd).tmCommand
  3. +34 0 Commands/Run Script.tmCommand
  4. +27 0 DragCommands/Insert _sce _tst _dem.tmDragCommand
  5. +25 0 DragCommands/Insert _sci.tmDragCommand
  6. +24 0 Preferences/Comments.tmPreferences
  7. +17 0 Snippets/case.tmSnippet
  8. +17 0 Snippets/elseif.tmSnippet
  9. +16 0 Snippets/exec(__).tmSnippet
  10. +16 0 Snippets/eye(__).tmSnippet
  11. +18 0 Snippets/for ___ end.tmSnippet
  12. +18 0 Snippets/function.tmSnippet
  13. +16 0 Snippets/get_absolute_file_path(__).tmSnippet
  14. +16 0 Snippets/getd(__).tmSnippet
  15. +16 0 Snippets/getf(__).tmSnippet
  16. +20 0 Snippets/if ___ else ___ end.tmSnippet
  17. +18 0 Snippets/if ___ end.tmSnippet
  18. +16 0 Snippets/legend(__).tmSnippet
  19. +16 0 Snippets/ones(__).tmSnippet
  20. +16 0 Snippets/plot(__).tmSnippet
  21. +16 0 Snippets/plot3d(__).tmSnippet
  22. +19 0 Snippets/select ___ case ___ end.tmSnippet
  23. +18 0 Snippets/while ___ end.tmSnippet
  24. +16 0 Snippets/xtitle(__).tmSnippet
  25. +16 0 Snippets/zeros(__).tmSnippet
  26. +109 0 Syntaxes/Scilab.tmLanguage
  27. +102 0 info.plist
62 Commands/Help.tmCommand
... ... @@ -0,0 +1,62 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>beforeRunningCommand</key>
  6 + <string>nop</string>
  7 + <key>command</key>
  8 + <string>. "$TM_SUPPORT_PATH/lib/webpreview.sh"
  9 +html_header "Scilab Bundle Help" "Scilab"
  10 +
  11 +"$TM_SUPPORT_PATH/lib/markdown_to_help.rb" &lt;&lt;'EOF'
  12 +
  13 +# Help for Scilab Bundle (v0.11)
  14 +
  15 +This Scilab bundle was created to help make editing Scilab scripts in TextMate a little easier. The two main benefits are:
  16 +
  17 +1. **Syntax Highlighting**
  18 +
  19 + 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.
  20 +
  21 +2. **Run Script Command**
  22 +
  23 + 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.
  24 +
  25 + 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;.
  26 +
  27 +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".
  28 +
  29 +# Version History
  30 +
  31 +- v0.11 (March 5th, 2007)
  32 + - Thanks to Allan Odgaard for reviewing this bundle
  33 + - Help now uses `markdown_to_help.rb` instead of `Markdown.pl`
  34 + - `Scilab-4.1.app` is now located using `find_app`
  35 +- v0.1 (March 3rd, 2007)
  36 + - Initial release
  37 +
  38 +# About This Bundle
  39 +
  40 +## Disclaimer
  41 +
  42 +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.
  43 +
  44 +## Credits
  45 +
  46 +Created by Jiun Wei Chia. Various code stolen from the default TextMate bundles.
  47 +
  48 +EOF
  49 +
  50 +html_footer</string>
  51 + <key>input</key>
  52 + <string>none</string>
  53 + <key>name</key>
  54 + <string>Help</string>
  55 + <key>output</key>
  56 + <string>showAsHTML</string>
  57 + <key>scope</key>
  58 + <string>source.scilab</string>
  59 + <key>uuid</key>
  60 + <string>B2908B89-B064-447E-B3A7-C03D4BEE6D1C</string>
  61 +</dict>
  62 +</plist>
34 Commands/Run Script (with getd).tmCommand
... ... @@ -0,0 +1,34 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>beforeRunningCommand</key>
  6 + <string>saveActiveFile</string>
  7 + <key>command</key>
  8 + <string>export APP=`find_app Scilab-4.1.app`
  9 +LAUNCHER=$APP/Contents/Resources/launcher.sh
  10 +if [ -x "$LAUNCHER" ]
  11 +then
  12 + DIRECTORY=`echo "$TM_DIRECTORY" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`
  13 + FILEPATH=`echo "$TM_FILEPATH" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`
  14 + echo "cd('$DIRECTORY'); getd('$DIRECTORY'); exec('$FILEPATH');" &gt; /tmp/scilab.sce
  15 + $LAUNCHER -f /tmp/scilab.sce
  16 +else
  17 + echo "Scilab 4.1 not found."
  18 + echo "Please copy Scilab-4.1.app to the Applications directory."
  19 +fi
  20 +</string>
  21 + <key>input</key>
  22 + <string>none</string>
  23 + <key>keyEquivalent</key>
  24 + <string>@R</string>
  25 + <key>name</key>
  26 + <string>Run Script (with getd)</string>
  27 + <key>output</key>
  28 + <string>showAsTooltip</string>
  29 + <key>scope</key>
  30 + <string>source.scilab</string>
  31 + <key>uuid</key>
  32 + <string>FCD467AA-0FAF-4B63-A613-E7175B80709A</string>
  33 +</dict>
  34 +</plist>
34 Commands/Run Script.tmCommand
... ... @@ -0,0 +1,34 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>beforeRunningCommand</key>
  6 + <string>saveActiveFile</string>
  7 + <key>command</key>
  8 + <string>export APP=`find_app Scilab-4.1.app`
  9 +LAUNCHER=$APP/Contents/Resources/launcher.sh
  10 +if [ -x "$LAUNCHER" ]
  11 +then
  12 + DIRECTORY=`echo "$TM_DIRECTORY" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`
  13 + FILEPATH=`echo "$TM_FILEPATH" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`
  14 + echo "cd('$DIRECTORY'); exec('$FILEPATH');" &gt; /tmp/scilab.sce
  15 + $LAUNCHER -f /tmp/scilab.sce
  16 +else
  17 + echo "Scilab 4.1 not found."
  18 + echo "Please copy Scilab-4.1.app to the Applications directory."
  19 +fi
  20 +</string>
  21 + <key>input</key>
  22 + <string>none</string>
  23 + <key>keyEquivalent</key>
  24 + <string>@r</string>
  25 + <key>name</key>
  26 + <string>Run Script</string>
  27 + <key>output</key>
  28 + <string>showAsTooltip</string>
  29 + <key>scope</key>
  30 + <string>source.scilab</string>
  31 + <key>uuid</key>
  32 + <string>14038705-CA2C-4386-8B21-3EEF52A15537</string>
  33 +</dict>
  34 +</plist>
27 DragCommands/Insert _sce _tst _dem.tmDragCommand
... ... @@ -0,0 +1,27 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>beforeRunningCommand</key>
  6 + <string>nop</string>
  7 + <key>command</key>
  8 + <string>DROPPED_FILE=`echo "$TM_DROPPED_FILE" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`
  9 +echo "exec(\"$DROPPED_FILE\");"</string>
  10 + <key>draggedFileExtensions</key>
  11 + <array>
  12 + <string>sce</string>
  13 + <string>tst</string>
  14 + <string>dem</string>
  15 + </array>
  16 + <key>input</key>
  17 + <string>selection</string>
  18 + <key>name</key>
  19 + <string>Insert .sce .tst .dem</string>
  20 + <key>output</key>
  21 + <string>insertAsSnippet</string>
  22 + <key>scope</key>
  23 + <string>source.scilab</string>
  24 + <key>uuid</key>
  25 + <string>D584442F-F817-457C-B894-205B5F154A0E</string>
  26 +</dict>
  27 +</plist>
25 DragCommands/Insert _sci.tmDragCommand
... ... @@ -0,0 +1,25 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>beforeRunningCommand</key>
  6 + <string>nop</string>
  7 + <key>command</key>
  8 + <string>DROPPED_FILE=`echo "$TM_DROPPED_FILE" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`
  9 +echo "getf(\"$DROPPED_FILE\");"</string>
  10 + <key>draggedFileExtensions</key>
  11 + <array>
  12 + <string>sci</string>
  13 + </array>
  14 + <key>input</key>
  15 + <string>selection</string>
  16 + <key>name</key>
  17 + <string>Insert .sci</string>
  18 + <key>output</key>
  19 + <string>insertAsSnippet</string>
  20 + <key>scope</key>
  21 + <string>source.scilab</string>
  22 + <key>uuid</key>
  23 + <string>B4242F8A-C36A-4275-BC65-1DD4BE1AD758</string>
  24 +</dict>
  25 +</plist>
24 Preferences/Comments.tmPreferences
... ... @@ -0,0 +1,24 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>name</key>
  6 + <string>Comments</string>
  7 + <key>scope</key>
  8 + <string>source.scilab</string>
  9 + <key>settings</key>
  10 + <dict>
  11 + <key>shellVariables</key>
  12 + <array>
  13 + <dict>
  14 + <key>name</key>
  15 + <string>TM_COMMENT_START</string>
  16 + <key>value</key>
  17 + <string>// </string>
  18 + </dict>
  19 + </array>
  20 + </dict>
  21 + <key>uuid</key>
  22 + <string>334A45F4-210A-48E2-A539-2576F882C4FE</string>
  23 +</dict>
  24 +</plist>
17 Snippets/case.tmSnippet
... ... @@ -0,0 +1,17 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>case ${1:expression} then
  7 + $0</string>
  8 + <key>name</key>
  9 + <string>case</string>
  10 + <key>scope</key>
  11 + <string>source.scilab</string>
  12 + <key>tabTrigger</key>
  13 + <string>case</string>
  14 + <key>uuid</key>
  15 + <string>C4962F23-F7E2-42E4-A375-3CEE9E5B4C22</string>
  16 +</dict>
  17 +</plist>
17 Snippets/elseif.tmSnippet
... ... @@ -0,0 +1,17 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>elseif ${1:condition} then
  7 + $0</string>
  8 + <key>name</key>
  9 + <string>elseif</string>
  10 + <key>scope</key>
  11 + <string>source.scilab</string>
  12 + <key>tabTrigger</key>
  13 + <string>elseif</string>
  14 + <key>uuid</key>
  15 + <string>9D1CCE73-07D7-4F3C-A181-76C5950A0D1E</string>
  16 +</dict>
  17 +</plist>
16 Snippets/exec(__).tmSnippet
... ... @@ -0,0 +1,16 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>exec("${0:script.sce}")</string>
  7 + <key>name</key>
  8 + <string>exec(..)</string>
  9 + <key>scope</key>
  10 + <string>source.scilab</string>
  11 + <key>tabTrigger</key>
  12 + <string>exec</string>
  13 + <key>uuid</key>
  14 + <string>CD8A35E6-C4F3-4D94-BF65-B2D8916AAD44</string>
  15 +</dict>
  16 +</plist>
16 Snippets/eye(__).tmSnippet
... ... @@ -0,0 +1,16 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>eye(${1:size}, ${2:$1})</string>
  7 + <key>name</key>
  8 + <string>eye(..)</string>
  9 + <key>scope</key>
  10 + <string>source.scilab</string>
  11 + <key>tabTrigger</key>
  12 + <string>eye</string>
  13 + <key>uuid</key>
  14 + <string>ADFCB962-5271-4BD9-8A1F-9E9913C1EFAA</string>
  15 +</dict>
  16 +</plist>
18 Snippets/for ___ end.tmSnippet
... ... @@ -0,0 +1,18 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>for ${1:i} = ${2:array}
  7 + $0
  8 +end</string>
  9 + <key>name</key>
  10 + <string>for ... end</string>
  11 + <key>scope</key>
  12 + <string>source.scilab</string>
  13 + <key>tabTrigger</key>
  14 + <string>for</string>
  15 + <key>uuid</key>
  16 + <string>B9B4D734-CF90-4D19-9EC6-3B57CFF3F759</string>
  17 +</dict>
  18 +</plist>
18 Snippets/function.tmSnippet
... ... @@ -0,0 +1,18 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>function ${3:output} = ${1:name}($2)
  7 + // ${4:Description of $1($2)}
  8 +endfunction</string>
  9 + <key>name</key>
  10 + <string>function</string>
  11 + <key>scope</key>
  12 + <string>source.scilab</string>
  13 + <key>tabTrigger</key>
  14 + <string>function</string>
  15 + <key>uuid</key>
  16 + <string>B2D06182-E594-40F4-8FFE-E96B9F45EC1C</string>
  17 +</dict>
  18 +</plist>
16 Snippets/get_absolute_file_path(__).tmSnippet
... ... @@ -0,0 +1,16 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>get_absolute_file_path("${0:`echo "$TM_FILEPATH" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`}");</string>
  7 + <key>name</key>
  8 + <string>get_absolute_file_path(..)</string>
  9 + <key>scope</key>
  10 + <string>source.scilab</string>
  11 + <key>tabTrigger</key>
  12 + <string>path</string>
  13 + <key>uuid</key>
  14 + <string>1A24ECE9-7AF7-4CAB-9C8F-5C1B7B5E2231</string>
  15 +</dict>
  16 +</plist>
16 Snippets/getd(__).tmSnippet
... ... @@ -0,0 +1,16 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>getd("${0:`echo "$TM_DIRECTORY" | sed -e "s/'/''/g" -e "s/\"/\"\"/g"`}")</string>
  7 + <key>name</key>
  8 + <string>getd(..)</string>
  9 + <key>scope</key>
  10 + <string>source.scilab</string>
  11 + <key>tabTrigger</key>
  12 + <string>getd</string>
  13 + <key>uuid</key>
  14 + <string>38FBBBEA-4064-4A06-9FC5-09B286892CB7</string>
  15 +</dict>
  16 +</plist>
16 Snippets/getf(__).tmSnippet
... ... @@ -0,0 +1,16 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>getf("${0:script.sci}")</string>
  7 + <key>name</key>
  8 + <string>getf(..)</string>
  9 + <key>scope</key>
  10 + <string>source.scilab</string>
  11 + <key>tabTrigger</key>
  12 + <string>getf</string>
  13 + <key>uuid</key>
  14 + <string>A41372BE-D782-4236-ACFC-BF88630D78AC</string>
  15 +</dict>
  16 +</plist>
20 Snippets/if ___ else ___ end.tmSnippet
... ... @@ -0,0 +1,20 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>if ${1:condition} then
  7 + $2
  8 +else
  9 + $3
  10 +end</string>
  11 + <key>name</key>
  12 + <string>if ... else ... end</string>
  13 + <key>scope</key>
  14 + <string>source.scilab</string>
  15 + <key>tabTrigger</key>
  16 + <string>ifelse</string>
  17 + <key>uuid</key>
  18 + <string>38B7443F-1F47-42AB-A74A-79EB40FDE7C0</string>
  19 +</dict>
  20 +</plist>
18 Snippets/if ___ end.tmSnippet
... ... @@ -0,0 +1,18 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>if ${1:condition} then
  7 + $0
  8 +end</string>
  9 + <key>name</key>
  10 + <string>if ... end</string>
  11 + <key>scope</key>
  12 + <string>source.scilab</string>
  13 + <key>tabTrigger</key>
  14 + <string>if</string>
  15 + <key>uuid</key>
  16 + <string>59BFC296-FAB3-45EE-B9D3-B57841A4D3C5</string>
  17 +</dict>
  18 +</plist>
16 Snippets/legend(__).tmSnippet
... ... @@ -0,0 +1,16 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>legend("${1:Graph 1}", "${2:Graph 2}")</string>
  7 + <key>name</key>
  8 + <string>legend(..)</string>
  9 + <key>scope</key>
  10 + <string>source.scilab</string>
  11 + <key>tabTrigger</key>
  12 + <string>legend</string>
  13 + <key>uuid</key>
  14 + <string>CF4617F0-175E-482B-990B-70AA75DA1231</string>
  15 +</dict>
  16 +</plist>
16 Snippets/ones(__).tmSnippet
... ... @@ -0,0 +1,16 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>ones(${1:rows}, ${2:cols})</string>
  7 + <key>name</key>
  8 + <string>ones(..)</string>
  9 + <key>scope</key>
  10 + <string>source.scilab</string>
  11 + <key>tabTrigger</key>
  12 + <string>ones</string>
  13 + <key>uuid</key>
  14 + <string>6D03A104-F2A7-4141-B102-54CB1BAA58F1</string>
  15 +</dict>
  16 +</plist>
16 Snippets/plot(__).tmSnippet
... ... @@ -0,0 +1,16 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>plot(${1:x}, ${2:y}, ${3:'-'})</string>
  7 + <key>name</key>
  8 + <string>plot(..)</string>
  9 + <key>scope</key>
  10 + <string>source.scilab</string>
  11 + <key>tabTrigger</key>
  12 + <string>plot</string>
  13 + <key>uuid</key>
  14 + <string>2B4C5133-C32A-4305-B6B1-CB88FB2A28BE</string>
  15 +</dict>
  16 +</plist>
16 Snippets/plot3d(__).tmSnippet
... ... @@ -0,0 +1,16 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>plot3d(${1:x}, ${2:y}, ${3:z})</string>
  7 + <key>name</key>
  8 + <string>plot3d(..)</string>
  9 + <key>scope</key>
  10 + <string>source.scilab</string>
  11 + <key>tabTrigger</key>
  12 + <string>plot3d</string>
  13 + <key>uuid</key>
  14 + <string>C05BF6A0-185E-4093-BBCE-DEC0F0C16915</string>
  15 +</dict>
  16 +</plist>
19 Snippets/select ___ case ___ end.tmSnippet
... ... @@ -0,0 +1,19 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>select ${1:variable}
  7 + case ${2:expression} then
  8 + $0
  9 +end</string>
  10 + <key>name</key>
  11 + <string>select ... case ... end</string>
  12 + <key>scope</key>
  13 + <string>source.scilab</string>
  14 + <key>tabTrigger</key>
  15 + <string>select</string>
  16 + <key>uuid</key>
  17 + <string>997D2E8F-7379-44CA-BFCF-93F46ACA3D24</string>
  18 +</dict>
  19 +</plist>
18 Snippets/while ___ end.tmSnippet
... ... @@ -0,0 +1,18 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>while ${1:condition} then
  7 + $0
  8 +end</string>
  9 + <key>name</key>
  10 + <string>while ... end</string>
  11 + <key>scope</key>
  12 + <string>source.scilab</string>
  13 + <key>tabTrigger</key>
  14 + <string>while</string>
  15 + <key>uuid</key>
  16 + <string>A76108A2-B2DF-4635-B693-FA64609D65E6</string>
  17 +</dict>
  18 +</plist>
16 Snippets/xtitle(__).tmSnippet
... ... @@ -0,0 +1,16 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>xtitle("${1:Main Title}", "${2:x-axis}", "${3:y-axis}")</string>
  7 + <key>name</key>
  8 + <string>xtitle(..)</string>
  9 + <key>scope</key>
  10 + <string>source.scilab</string>
  11 + <key>tabTrigger</key>
  12 + <string>title</string>
  13 + <key>uuid</key>
  14 + <string>0CC94185-7A16-4ACE-9D81-CF20D175E465</string>
  15 +</dict>
  16 +</plist>
16 Snippets/zeros(__).tmSnippet
... ... @@ -0,0 +1,16 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>content</key>
  6 + <string>zeros(${1:rows}, ${2:cols})</string>
  7 + <key>name</key>
  8 + <string>zeros(..)</string>
  9 + <key>scope</key>
  10 + <string>source.scilab</string>
  11 + <key>tabTrigger</key>
  12 + <string>zeros</string>
  13 + <key>uuid</key>
  14 + <string>E10F3484-A015-4C1E-AC21-3AFE10B24DA8</string>
  15 +</dict>
  16 +</plist>
109 Syntaxes/Scilab.tmLanguage
... ... @@ -0,0 +1,109 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>fileTypes</key>
  6 + <array>
  7 + <string>sce</string>
  8 + <string>sci</string>
  9 + <string>tst</string>
  10 + <string>dem</string>
  11 + </array>
  12 + <key>foldingStartMarker</key>
  13 + <string>^(?!.*//.*).*\b(if|while|for|function|select)\b</string>
  14 + <key>foldingStopMarker</key>
  15 + <string>\b(endfunction|end)\b</string>
  16 + <key>name</key>
  17 + <string>Scilab</string>
  18 + <key>patterns</key>
  19 + <array>
  20 + <dict>
  21 + <key>begin</key>
  22 + <string>//</string>
  23 + <key>end</key>
  24 + <string>$\n?</string>
  25 + <key>name</key>
  26 + <string>comment.line.double-slash.scilab</string>
  27 + </dict>
  28 + <dict>
  29 + <key>match</key>
  30 + <string>\b(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?\b</string>
  31 + <key>name</key>
  32 + <string>constant.numeric.scilab</string>
  33 + </dict>
  34 + <dict>
  35 + <key>match</key>
  36 + <string>(%inf|%i|%pi|%eps|%e|%nan|%s|%t|%f)\b</string>
  37 + <key>name</key>
  38 + <string>support.constant.scilab</string>
  39 + </dict>
  40 + <dict>
  41 + <key>begin</key>
  42 + <string>"</string>
  43 + <key>end</key>
  44 + <string>"(?!")</string>
  45 + <key>name</key>
  46 + <string>string.quoted.double.scilab</string>
  47 + <key>patterns</key>
  48 + <array>
  49 + <dict>
  50 + <key>match</key>
  51 + <string>''|""</string>
  52 + <key>name</key>
  53 + <string>constant.character.escape.scilab</string>
  54 + </dict>
  55 + </array>
  56 + </dict>
  57 + <dict>
  58 + <key>begin</key>
  59 + <string>(?&lt;![\w\]\)])'</string>
  60 + <key>end</key>
  61 + <string>'(?!')</string>
  62 + <key>name</key>
  63 + <string>string.quoted.single.scilab</string>
  64 + <key>patterns</key>
  65 + <array>
  66 + <dict>
  67 + <key>match</key>
  68 + <string>''|""</string>
  69 + <key>name</key>
  70 + <string>constant.character.escape.scilab</string>
  71 + </dict>
  72 + </array>
  73 + </dict>
  74 + <dict>
  75 + <key>captures</key>
  76 + <dict>
  77 + <key>1</key>
  78 + <dict>
  79 + <key>name</key>
  80 + <string>keyword.control.scilab</string>
  81 + </dict>
  82 + <key>2</key>
  83 + <dict>
  84 + <key>name</key>
  85 + <string>entity.name.function.scilab</string>
  86 + </dict>
  87 + </dict>
  88 + <key>match</key>
  89 + <string>\b(function)\s+(?:[^=]+=\s*)?(\w+)(?:\s*\(.*\))?</string>
  90 + </dict>
  91 + <dict>
  92 + <key>match</key>
  93 + <string>\b(if|then|else|elseif|while|for|function|end|endfunction|return|select|case|break|global)\b</string>
  94 + <key>name</key>
  95 + <string>keyword.control.scilab</string>
  96 + </dict>
  97 + <dict>
  98 + <key>match</key>
  99 + <string>\.\.\.\s*$</string>
  100 + <key>name</key>
  101 + <string>punctuation.separator.continuation.scilab</string>
  102 + </dict>
  103 + </array>
  104 + <key>scopeName</key>
  105 + <string>source.scilab</string>
  106 + <key>uuid</key>
  107 + <string>14374AA3-A329-4623-8DFA-1ACC2CE222B9</string>
  108 +</dict>
  109 +</plist>
102 info.plist
... ... @@ -0,0 +1,102 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>contactEmailRot13</key>
  6 + <string>wp483@pbearyy.rqh</string>
  7 + <key>contactName</key>
  8 + <string>Jiun Wei Chia</string>
  9 + <key>description</key>
  10 + <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>
  11 + <key>mainMenu</key>
  12 + <dict>
  13 + <key>items</key>
  14 + <array>
  15 + <string>14038705-CA2C-4386-8B21-3EEF52A15537</string>
  16 + <string>FCD467AA-0FAF-4B63-A613-E7175B80709A</string>
  17 + <string>------------------------------------</string>
  18 + <string>07939D64-FDFF-4319-9659-755597BEBC15</string>
  19 + <string>B1615F0A-61DF-45DD-82AA-0A6410A29E14</string>
  20 + <string>------------------------------------</string>
  21 + <string>B2908B89-B064-447E-B3A7-C03D4BEE6D1C</string>
  22 + </array>
  23 + <key>submenus</key>
  24 + <dict>
  25 + <key>07939D64-FDFF-4319-9659-755597BEBC15</key>
  26 + <dict>
  27 + <key>items</key>
  28 + <array>
  29 + <string>B2D06182-E594-40F4-8FFE-E96B9F45EC1C</string>
  30 + <string>------------------------------------</string>
  31 + <string>B9B4D734-CF90-4D19-9EC6-3B57CFF3F759</string>
  32 + <string>------------------------------------</string>
  33 + <string>59BFC296-FAB3-45EE-B9D3-B57841A4D3C5</string>
  34 + <string>38B7443F-1F47-42AB-A74A-79EB40FDE7C0</string>
  35 + <string>9D1CCE73-07D7-4F3C-A181-76C5950A0D1E</string>
  36 + <string>------------------------------------</string>
  37 + <string>997D2E8F-7379-44CA-BFCF-93F46ACA3D24</string>
  38 + <string>C4962F23-F7E2-42E4-A375-3CEE9E5B4C22</string>
  39 + <string>------------------------------------</string>
  40 + <string>A76108A2-B2DF-4635-B693-FA64609D65E6</string>
  41 + </array>
  42 + <key>name</key>
  43 + <string>Code Blocks</string>
  44 + </dict>
  45 + <key>B1615F0A-61DF-45DD-82AA-0A6410A29E14</key>
  46 + <dict>
  47 + <key>items</key>
  48 + <array>
  49 + <string>6D03A104-F2A7-4141-B102-54CB1BAA58F1</string>
  50 + <string>E10F3484-A015-4C1E-AC21-3AFE10B24DA8</string>
  51 + <string>ADFCB962-5271-4BD9-8A1F-9E9913C1EFAA</string>
  52 + <string>------------------------------------</string>
  53 + <string>CD8A35E6-C4F3-4D94-BF65-B2D8916AAD44</string>
  54 + <string>A41372BE-D782-4236-ACFC-BF88630D78AC</string>
  55 + <string>38FBBBEA-4064-4A06-9FC5-09B286892CB7</string>
  56 + <string>1A24ECE9-7AF7-4CAB-9C8F-5C1B7B5E2231</string>
  57 + <string>------------------------------------</string>
  58 + <string>2B4C5133-C32A-4305-B6B1-CB88FB2A28BE</string>
  59 + <string>C05BF6A0-185E-4093-BBCE-DEC0F0C16915</string>
  60 + <string>CF4617F0-175E-482B-990B-70AA75DA1231</string>
  61 + <string>0CC94185-7A16-4ACE-9D81-CF20D175E465</string>
  62 + </array>
  63 + <key>name</key>
  64 + <string>Common Functions</string>
  65 + </dict>
  66 + </dict>
  67 + </dict>
  68 + <key>name</key>
  69 + <string>Scilab</string>
  70 + <key>ordering</key>
  71 + <array>
  72 + <string>14038705-CA2C-4386-8B21-3EEF52A15537</string>
  73 + <string>FCD467AA-0FAF-4B63-A613-E7175B80709A</string>
  74 + <string>B2908B89-B064-447E-B3A7-C03D4BEE6D1C</string>
  75 + <string>14374AA3-A329-4623-8DFA-1ACC2CE222B9</string>
  76 + <string>B2D06182-E594-40F4-8FFE-E96B9F45EC1C</string>
  77 + <string>B9B4D734-CF90-4D19-9EC6-3B57CFF3F759</string>
  78 + <string>59BFC296-FAB3-45EE-B9D3-B57841A4D3C5</string>
  79 + <string>38B7443F-1F47-42AB-A74A-79EB40FDE7C0</string>
  80 + <string>9D1CCE73-07D7-4F3C-A181-76C5950A0D1E</string>
  81 + <string>997D2E8F-7379-44CA-BFCF-93F46ACA3D24</string>
  82 + <string>C4962F23-F7E2-42E4-A375-3CEE9E5B4C22</string>
  83 + <string>A76108A2-B2DF-4635-B693-FA64609D65E6</string>
  84 + <string>334A45F4-210A-48E2-A539-2576F882C4FE</string>
  85 + <string>6D03A104-F2A7-4141-B102-54CB1BAA58F1</string>
  86 + <string>E10F3484-A015-4C1E-AC21-3AFE10B24DA8</string>
  87 + <string>ADFCB962-5271-4BD9-8A1F-9E9913C1EFAA</string>
  88 + <string>CD8A35E6-C4F3-4D94-BF65-B2D8916AAD44</string>
  89 + <string>A41372BE-D782-4236-ACFC-BF88630D78AC</string>
  90 + <string>38FBBBEA-4064-4A06-9FC5-09B286892CB7</string>
  91 + <string>1A24ECE9-7AF7-4CAB-9C8F-5C1B7B5E2231</string>
  92 + <string>2B4C5133-C32A-4305-B6B1-CB88FB2A28BE</string>
  93 + <string>C05BF6A0-185E-4093-BBCE-DEC0F0C16915</string>
  94 + <string>CF4617F0-175E-482B-990B-70AA75DA1231</string>
  95 + <string>0CC94185-7A16-4ACE-9D81-CF20D175E465</string>
  96 + <string>B4242F8A-C36A-4275-BC65-1DD4BE1AD758</string>
  97 + <string>D584442F-F817-457C-B894-205B5F154A0E</string>
  98 + </array>
  99 + <key>uuid</key>
  100 + <string>C397B72C-7519-44CD-8533-7AB7F701C4E4</string>
  101 +</dict>
  102 +</plist>

0 comments on commit ad238d0

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