Closed nemesit closed 10 years ago
I adjusted the run command to not be dependent on a specific Xcode beta and added the save_if_untitled("swift"). The ruby shebang is also fixed as is the semantic class :-)
Made a couple minor changes and added a couple commits and pulled, thanks!
A little late, but why add a specific license for the language grammar?
The bundle already had a license in README.md which is the standard license we use for bundles.
the language grammar is only partly from myself so i included the license until i'm finished with my grammar
I do not have the Xcode 6 beta, but I think you should be able to run ‘swift’ via ‘xcrun’, e.g.: xcrun --sdk MacOSX10.10.sdk swift
With respect to saving document before executing, set the command to “Save: Modified Documents” and in the command:
That way, TextMate will save the document whenever there is a path (doing necessary stuff with encoding, will/did save hooks, etc.) and otherwise the command (by calling ‘save_if_untitled’) will save stdin to a temporary path with a ‘.swift’ extension and update TM_FILEPATH and related variables.
The shebang should be: #!/usr/bin/env ruby18
The command should have a semantic class of: process.run.swift (this is not something we currently use, but it will allow us to make semantic queries in the future to populate a toolbar, palette, or similiar).
I’ll let @Infininight handle merging (I just took a look at the run command).
On 14 Jul 2014, at 22:31, nemesit wrote: