mirror of
https://github.com/swarm-game/swarm.git
synced 2024-09-11 14:46:33 +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`) |
||
---|---|---|
.. | ||
BFS-clear.sw | ||
cat.sw | ||
dfs.sw | ||
fact.sw | ||
list.sw | ||
maybe.sw | ||
multi-key-handler.sw | ||
omega.sw | ||
pilotmode.sw | ||
rectypes.sw | ||
wander.sw |