1
1
mirror of https://github.com/casey/just.git synced 2024-11-23 02:44:56 +03:00

Improve syntax highlighting suggestions in readme (#164)

- Recognize Justfile as a justfile for vim filetypes snippet
- Add vim modeline and emacs local variables block
This commit is contained in:
Casey Rodarmor 2017-03-12 19:20:33 -07:00 committed by GitHub
parent d68f7867ca
commit e45164da4d

View File

@ -431,10 +431,19 @@ if exists("did_load_filetypes")
endif
augroup filetypedetect
au BufNewFile,BufRead justfile setf make
au BufNewFile,BufRead Justfile,justfile setf make
augroup END
```
Include the following in a `justfile` to enable syntax highlighting in vim and emacs:
```
# Local Variables:
# mode: makefile
# End:
# vim: set ft=make :
```
Feel free to send me the commands necessary to get syntax hilighting working in your editor of choice so that I may include them here.
### justfile grammar