mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 20:43:52 -05:00
Add rspec file support
This commit is contained in:
21
syntax/vim-rspec.vim
Normal file
21
syntax/vim-rspec.vim
Normal file
@@ -0,0 +1,21 @@
|
||||
syntax match rspecHeader /^*.*/
|
||||
syntax match rspecTitle /^\[.\+/
|
||||
syntax match rspecOk /^+.\+/
|
||||
syntax match rspecOk /PASS.\+/
|
||||
syntax match rspecError /^-.\+/
|
||||
syntax match rspecError /FAIL.\+/
|
||||
syntax match rspecError /^|.\+/
|
||||
syntax match rspecErrorDetail /^ \w.\+/
|
||||
syntax match rspecErrorURL /^ \/.\+/
|
||||
syntax match rspecNotImplemented /^#.\+/
|
||||
syntax match rspecCode /^ \d\+:/
|
||||
syntax match rspecNotImplemented /Example disabled.*/
|
||||
|
||||
highlight link rspecHeader Identifier
|
||||
highlight link rspecTitle Identifier
|
||||
highlight link rspecOk Statement
|
||||
highlight link rspecError Error
|
||||
highlight link rspecErrorDetail Constant
|
||||
highlight link rspecErrorURL PreProc
|
||||
highlight link rspecNotImplemented Todo
|
||||
highlight link rspecCode Type
|
||||
Reference in New Issue
Block a user