mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-12 05:23:51 -05:00
Add cuesheet support, closes #366
This commit is contained in:
30
syntax/cuesheet.vim
Normal file
30
syntax/cuesheet.vim
Normal file
@@ -0,0 +1,30 @@
|
||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cue') != -1
|
||||
finish
|
||||
endif
|
||||
|
||||
" Language: Cue sheet
|
||||
" Maintainer: Matěj Grabovský
|
||||
" URL: http://github.com/mgrabovsky
|
||||
" License: MIT
|
||||
|
||||
" Bail if our syntax is already loaded.
|
||||
if exists('b:current_syntax') && b:current_syntax == 'cuesheet'
|
||||
finish
|
||||
endif
|
||||
|
||||
syn case match
|
||||
setl conceallevel=2
|
||||
|
||||
syn region String matchgroup=cueString start=/"/ skip=/\\"/ end=/"/
|
||||
\ transparent contains=NONE
|
||||
syn region Comment start=/^\s*REM / end=/$/ contains=specialComment
|
||||
syn keyword SpecialComment COMMENT DATE DISCID GENRE
|
||||
syn keyword Function CATALOG CDTEXTFILE FILE FLAGS INDEX ISRC PERFORMER POSTGAP
|
||||
\ PREGAP SONGWRITER TITLE TRACK
|
||||
syn keyword StorageClass AIFF AUDIO MP3 WAVE
|
||||
syn match Number /[+-]\=\<\d\+\%(\.\d\+\)\=\>/
|
||||
syn match Number /\<\d\+\%(:\d\{2}\)\{2}\>/
|
||||
|
||||
let b:current_syntax='cuesheet'
|
||||
|
||||
" vim: nowrap sw=2 sts=2 ts=8:
|
||||
Reference in New Issue
Block a user