LoginSignup
0
0

More than 5 years have passed since last update.

sublime text3 で lua を Build したい。

Posted at

引用自記事: http://yukinko-music.hatenablog.com/

実用性はあるのかは知らない。
取り敢えず出力結果を見たかったので導入してみる。
上のタブにて[ Tool > build System > New Build System ] と移動し出てきたファイルに下の文をコピペする。

lua.sublime-build
{
"cmd": ["/usr/local/bin/lua", "$file"],
"file_regex": "^(?:(?:\t)|(?:.+: ))(.+):([0-9]+): (.*)$",
"selector": "source.lua"
}
test.lua
for i = 1, 10 do
print(i)
end

などを書いて ⌘ + B をして「1,2,3,4,5,6,7,8,9,10」と表示されれればおしまい

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0