swarm/app
Nitin Prakash 4dc0976fc1
Generate operators for all editors (#1950)
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`)
2024-06-18 17:01:37 +00:00
..
doc Generate operators for all editors (#1950) 2024-06-18 17:01:37 +00:00
scene preview rendered world with inotify (#1756) 2024-01-31 19:23:43 +00:00
Swarm Remove Benchmark dependence on AppState and TUI (#1746) 2024-01-26 17:56:39 +00:00
tournament Implement GitHub authentication (#1856) 2024-05-22 00:27:21 +00:00
Main.hs Add format --v0.5 option to port code from older syntax (#1851) 2024-05-22 00:09:31 +00:00