config/snippets/Scilab.rb in ver-2010.02 vs config/snippets/Scilab.rb in ver-2010.08
- old
+ new
@@ -1,81 +1,100 @@
# Encoding: UTF-8
-{"case" =>
- {scope: "source.scilab",
- name: "case",
- content: "case ${1:expression} then\n\t$0"},
- "elseif" =>
- {scope: "source.scilab",
- name: "elseif",
- content: "elseif ${1:condition} then\n\t$0"},
- "exec" =>
- {scope: "source.scilab",
- name: "exec(..)",
- content: "exec(\"${0:script.sce}\")"},
- "eye" =>
- {scope: "source.scilab",
- name: "eye(..)",
- content: "eye(${1:size}, ${2:$1})"},
- "for" =>
- {scope: "source.scilab",
- name: "for ... end",
- content: "for ${1:i} = ${2:array}\n\t$0\nend"},
- "function" =>
- {scope: "source.scilab",
- name: "function",
- content:
- "function ${3:output} = ${1:name}($2)\n\t// ${4:Description of $1($2)}\nendfunction"},
- "path" =>
- {scope: "source.scilab",
- name: "get_absolute_file_path(..)",
- content:
- "get_absolute_file_path(\"${0:`echo \"$TM_FILEPATH\" | sed -e \"s/'/''/g\" -e \"s/\\\"/\\\"\\\"/g\"`}\");"},
- "getd" =>
- {scope: "source.scilab",
- name: "getd(..)",
- content:
- "getd(\"${0:`echo \"$TM_DIRECTORY\" | sed -e \"s/'/''/g\" -e \"s/\\\"/\\\"\\\"/g\"`}\")"},
- "getf" =>
- {scope: "source.scilab",
- name: "getf(..)",
- content: "getf(\"${0:script.sci}\")"},
- "ifelse" =>
- {scope: "source.scilab",
- name: "if ... else ... end",
- content: "if ${1:condition} then\n\t$2\nelse\n\t$3\nend"},
- "if" =>
- {scope: "source.scilab",
- name: "if ... end",
- content: "if ${1:condition} then\n\t$0\nend"},
- "legend" =>
- {scope: "source.scilab",
- name: "legend(..)",
- content: "legend(\"${1:Graph 1}\", \"${2:Graph 2}\")"},
- "ones" =>
- {scope: "source.scilab",
- name: "ones(..)",
- content: "ones(${1:rows}, ${2:cols})"},
- "plot" =>
- {scope: "source.scilab",
- name: "plot(..)",
- content: "plot(${1:x}, ${2:y}, ${3:'-'})"},
- "plot3d" =>
- {scope: "source.scilab",
- name: "plot3d(..)",
- content: "plot3d(${1:x}, ${2:y}, ${3:z})"},
- "select" =>
- {scope: "source.scilab",
- name: "select ... case ... end",
- content: "select ${1:variable}\n\tcase ${2:expression} then\n\t\t$0\nend"},
- "while" =>
- {scope: "source.scilab",
- name: "while ... end",
- content: "while ${1:condition} then\n\t$0\nend"},
- "title" =>
- {scope: "source.scilab",
- name: "xtitle(..)",
- content: "xtitle(\"${1:Main Title}\", \"${2:x-axis}\", \"${3:y-axis}\")"},
- "zeros" =>
- {scope: "source.scilab",
- name: "zeros(..)",
- content: "zeros(${1:rows}, ${2:cols})"}}
+[{content: "case ${1:expression} then\n\t$0",
+ name: "case",
+ scope: "source.scilab",
+ tabTrigger: "case",
+ uuid: "C4962F23-F7E2-42E4-A375-3CEE9E5B4C22"},
+ {content: "elseif ${1:condition} then\n\t$0",
+ name: "elseif",
+ scope: "source.scilab",
+ tabTrigger: "elseif",
+ uuid: "9D1CCE73-07D7-4F3C-A181-76C5950A0D1E"},
+ {content: "exec(\"${0:script.sce}\")",
+ name: "exec(..)",
+ scope: "source.scilab",
+ tabTrigger: "exec",
+ uuid: "CD8A35E6-C4F3-4D94-BF65-B2D8916AAD44"},
+ {content: "eye(${1:size}, ${2:$1})",
+ name: "eye(..)",
+ scope: "source.scilab",
+ tabTrigger: "eye",
+ uuid: "ADFCB962-5271-4BD9-8A1F-9E9913C1EFAA"},
+ {content: "for ${1:i} = ${2:array}\n\t$0\nend",
+ name: "for ... end",
+ scope: "source.scilab",
+ tabTrigger: "for",
+ uuid: "B9B4D734-CF90-4D19-9EC6-3B57CFF3F759"},
+ {content:
+ "function ${3:output} = ${1:name}($2)\n\t// ${4:Description of $1($2)}\nendfunction",
+ name: "function",
+ scope: "source.scilab",
+ tabTrigger: "function",
+ uuid: "B2D06182-E594-40F4-8FFE-E96B9F45EC1C"},
+ {content:
+ "get_absolute_file_path(\"${0:`echo \"$TM_FILEPATH\" | sed -e \"s/'/''/g\" -e \"s/\\\"/\\\"\\\"/g\"`}\");",
+ name: "get_absolute_file_path(..)",
+ scope: "source.scilab",
+ tabTrigger: "path",
+ uuid: "1A24ECE9-7AF7-4CAB-9C8F-5C1B7B5E2231"},
+ {content:
+ "getd(\"${0:`echo \"$TM_DIRECTORY\" | sed -e \"s/'/''/g\" -e \"s/\\\"/\\\"\\\"/g\"`}\")",
+ name: "getd(..)",
+ scope: "source.scilab",
+ tabTrigger: "getd",
+ uuid: "38FBBBEA-4064-4A06-9FC5-09B286892CB7"},
+ {content: "getf(\"${0:script.sci}\")",
+ name: "getf(..)",
+ scope: "source.scilab",
+ tabTrigger: "getf",
+ uuid: "A41372BE-D782-4236-ACFC-BF88630D78AC"},
+ {content: "if ${1:condition} then\n\t$2\nelse\n\t$3\nend",
+ name: "if ... else ... end",
+ scope: "source.scilab",
+ tabTrigger: "ifelse",
+ uuid: "38B7443F-1F47-42AB-A74A-79EB40FDE7C0"},
+ {content: "if ${1:condition} then\n\t$0\nend",
+ name: "if ... end",
+ scope: "source.scilab",
+ tabTrigger: "if",
+ uuid: "59BFC296-FAB3-45EE-B9D3-B57841A4D3C5"},
+ {content: "legend(\"${1:Graph 1}\", \"${2:Graph 2}\")",
+ name: "legend(..)",
+ scope: "source.scilab",
+ tabTrigger: "legend",
+ uuid: "CF4617F0-175E-482B-990B-70AA75DA1231"},
+ {content: "ones(${1:rows}, ${2:cols})",
+ name: "ones(..)",
+ scope: "source.scilab",
+ tabTrigger: "ones",
+ uuid: "6D03A104-F2A7-4141-B102-54CB1BAA58F1"},
+ {content: "plot(${1:x}, ${2:y}, ${3:'-'})",
+ name: "plot(..)",
+ scope: "source.scilab",
+ tabTrigger: "plot",
+ uuid: "2B4C5133-C32A-4305-B6B1-CB88FB2A28BE"},
+ {content: "plot3d(${1:x}, ${2:y}, ${3:z})",
+ name: "plot3d(..)",
+ scope: "source.scilab",
+ tabTrigger: "plot3d",
+ uuid: "C05BF6A0-185E-4093-BBCE-DEC0F0C16915"},
+ {content: "select ${1:variable}\n\tcase ${2:expression} then\n\t\t$0\nend",
+ name: "select ... case ... end",
+ scope: "source.scilab",
+ tabTrigger: "select",
+ uuid: "997D2E8F-7379-44CA-BFCF-93F46ACA3D24"},
+ {content: "while ${1:condition} then\n\t$0\nend",
+ name: "while ... end",
+ scope: "source.scilab",
+ tabTrigger: "while",
+ uuid: "A76108A2-B2DF-4635-B693-FA64609D65E6"},
+ {content: "xtitle(\"${1:Main Title}\", \"${2:x-axis}\", \"${3:y-axis}\")",
+ name: "xtitle(..)",
+ scope: "source.scilab",
+ tabTrigger: "title",
+ uuid: "0CC94185-7A16-4ACE-9D81-CF20D175E465"},
+ {content: "zeros(${1:rows}, ${2:cols})",
+ name: "zeros(..)",
+ scope: "source.scilab",
+ tabTrigger: "zeros",
+ uuid: "E10F3484-A015-4C1E-AC21-3AFE10B24DA8"}]