mirror of
https://github.com/swarm-game/swarm.git
synced 2024-07-07 11:16:35 +03:00
Currently, operator names are generated only for vscode only using the command `cabal run swarm:swarm-docs -- editors --code`. With this PR, I intend to bring that behaviour to all the editors. Changes include: - `cabal run swarm:swarm-docs -- editors` command now supports `vim` as well. - `operatorNames` can generate operator list catering to all the editors supporting Swarm. - Update operator list in `swarm-mode.el`, `swarm.vim` and `swarm.tmLanguage.yaml`. How to test emacs syntax: - Open `editors/emacs/swarm-mode.el` in emacs. - Then `M-x eval-buffer` - Open up any of the `.sw` file under `examples`. - Then `M-x swarm-mode` How to test vim syntax: - Copy swarm.vim to vim directory using `cp editors/vim/swarm.vim ~/.vim/syntax/sw.vim` - Setup auto detect in vim. `echo 'autocmd BufRead,BufNewFile *.sw set filetype=sw' > ~/.vim/ftdetect/sw.vim` - Open up any of the `.sw` files under `examples`. (Also ensure that you have syntax on in vim. `ESC :syntax on`) |
||
---|---|---|
.. | ||
doc | ||
scene | ||
Swarm | ||
tournament | ||
Main.hs |