diff --git a/Commands/add to chuck.tmCommand b/Commands/add to chuck.tmCommand new file mode 100644 index 0000000..9e00890 --- /dev/null +++ b/Commands/add to chuck.tmCommand @@ -0,0 +1,24 @@ + + + + + beforeRunningCommand + nop + command + /usr/bin/chuck + "$TM_FILEPATH" +"$TM_FILEPATH"|pre +Echo: "added." + input + document + keyEquivalent + ^@+ + name + add to chuck + output + showAsTooltip + scope + source.chuck + uuid + 7EEB991E-91C3-46E0-B710-DA15D00CEDDE + + diff --git a/Commands/run chuck in Terminal.tmCommand b/Commands/run chuck in Terminal.tmCommand new file mode 100644 index 0000000..ffb3f7a --- /dev/null +++ b/Commands/run chuck in Terminal.tmCommand @@ -0,0 +1,22 @@ + + + + + beforeRunningCommand + nop + command + osascript -e 'try' -e 'tell application "Terminal"' -e 'activate' -e 'do script with command "chuck -l"' -e 'end tell' -e 'end try' + input + none + keyEquivalent + ^@. + name + run chuck in Terminal + output + showAsTooltip + scope + source.chuck + uuid + 040E6448-455F-43D6-82B4-70582121D6AC + + diff --git a/Preferences/Completitions.tmPreferences b/Preferences/Completitions.tmPreferences new file mode 100644 index 0000000..4718e2e --- /dev/null +++ b/Preferences/Completitions.tmPreferences @@ -0,0 +1,20 @@ + + + + + name + Completitions + scope + source.chuck + settings + + completions + + add + now + + + uuid + 62C8DDB1-B212-41D9-94FA-B6299BC6C94E + + diff --git a/Preferences/Miscellaneous.tmPreferences b/Preferences/Miscellaneous.tmPreferences new file mode 100644 index 0000000..a2a0f3a --- /dev/null +++ b/Preferences/Miscellaneous.tmPreferences @@ -0,0 +1,17 @@ + + + + + name + Miscellaneous + scope + source.chuck + settings + + increaseIndentPattern + ^.*(\{[^}"']*|\([^)"']*)$ + + uuid + 0392537A-5A41-4A53-A1B1-886F192935B6 + + diff --git a/Syntaxes/ChucK.tmLanguage b/Syntaxes/ChucK.tmLanguage new file mode 100644 index 0000000..0e1293a --- /dev/null +++ b/Syntaxes/ChucK.tmLanguage @@ -0,0 +1,46 @@ + + + + + fileTypes + + ck + + foldingStartMarker + /\*\*|\{\s*$ + foldingStopMarker + \*\*/|^\s*\} + name + ChucK + patterns + + + match + \b(if|while|for|return)\b + name + keyword.control.chuck + + + begin + " + end + " + name + string.quoted.double.chuck + patterns + + + match + \\. + name + constant.character.escaped.chuck + + + + + scopeName + source.chuck + uuid + 15D5F74F-C569-4437-A935-036D85605FF8 + + diff --git a/info.plist b/info.plist new file mode 100644 index 0000000..d1f793b --- /dev/null +++ b/info.plist @@ -0,0 +1,18 @@ + + + + + name + ChucK + ordering + + 7EEB991E-91C3-46E0-B710-DA15D00CEDDE + 040E6448-455F-43D6-82B4-70582121D6AC + 15D5F74F-C569-4437-A935-036D85605FF8 + 0392537A-5A41-4A53-A1B1-886F192935B6 + 62C8DDB1-B212-41D9-94FA-B6299BC6C94E + + uuid + 626313F5-D9CA-4004-84A0-9C6498B207B4 + +