swarm/example
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
..
BFS-clear.sw Require types to start with an uppercase letter (#1583) 2024-05-21 04:16:32 +00:00
cat.sw Require types to start with an uppercase letter (#1583) 2024-05-21 04:16:32 +00:00
dfs.sw Require types to start with an uppercase letter (#1583) 2024-05-21 04:16:32 +00:00
fact.sw Require types to start with an uppercase letter (#1583) 2024-05-21 04:16:32 +00:00
list.sw Generate operators for all editors (#1950) 2024-06-18 17:01:37 +00:00
maybe.sw Type synonyms (#1865) 2024-06-01 21:09:50 +00:00
multi-key-handler.sw Require types to start with an uppercase letter (#1583) 2024-05-21 04:16:32 +00:00
omega.sw Recursive types (#1894) 2024-06-06 15:02:11 +00:00
pilotmode.sw Require types to start with an uppercase letter (#1583) 2024-05-21 04:16:32 +00:00
rectypes.sw Recursive types (#1894) 2024-06-06 15:02:11 +00:00
wander.sw Require types to start with an uppercase letter (#1583) 2024-05-21 04:16:32 +00:00