2022-05-22 15:53:39 +02:00
|
|
|
" Vim syntax file
|
|
|
|
" Language: Musique
|
|
|
|
" Maintainer: Robert Bendun
|
|
|
|
" Latest Change: 2022-05-22
|
|
|
|
" Filenames: *.mq
|
|
|
|
|
|
|
|
if exists("b:current_syntax")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2022-09-18 16:34:43 +02:00
|
|
|
syn keyword musiqueVariableDeclaration :=
|
|
|
|
syn keyword musiqueOperators * + - / < <= == >= > != . ** and or
|
2022-05-24 13:37:24 +02:00
|
|
|
|
|
|
|
syn match musiqueParameterSplitter display "|"
|
|
|
|
syn match musiqueExpressionDelimiter display ";"
|
2022-05-22 15:53:39 +02:00
|
|
|
|
|
|
|
syn match musiqueInteger display "[0-9][0-9_]*"
|
|
|
|
|
|
|
|
syn keyword musiqueConstant true false nil
|
|
|
|
|
2022-09-18 16:34:43 +02:00
|
|
|
syn keyword musiqueDefaultBuiltins bpm call ceil chord down flat floor fold for hash if incoming instrument len max min mix note_off note_on nprimes oct par partition permute pgmchange play program_change range reverse rotate round shuffle sim sort try typeof uniq unique up update
|
2022-05-24 13:37:24 +02:00
|
|
|
syn keyword musiqueLinuxBuiltins say
|
|
|
|
|
2022-05-22 15:53:39 +02:00
|
|
|
syn match musiqueComment "--.*$"
|
|
|
|
syn match musiqueComment "#!.*$"
|
|
|
|
|
2022-05-24 13:37:24 +02:00
|
|
|
syn region musiqueComment start="----*" end="----*"
|
|
|
|
|
2022-05-22 15:53:39 +02:00
|
|
|
syn region musiqueBlock matchgroup=musiqueParen start="\[" skip="|.\{-}|" matchgroup=musiqueParen end="\]" fold transparent
|
|
|
|
|
|
|
|
let b:current_syntax = "musique"
|
|
|
|
|
|
|
|
hi def link musiqueVariableDeclaration Define
|
2022-05-24 13:37:24 +02:00
|
|
|
hi def link musiqueParameterSplitter Delimiter
|
|
|
|
hi def link musiqueExpressionDelimiter Delimiter
|
2022-05-22 15:53:39 +02:00
|
|
|
hi def link musiqueParen Delimiter
|
|
|
|
hi def link musiqueOperators Operator
|
|
|
|
hi def link musiqueComment Comment
|
|
|
|
hi def link musiqueInteger Number
|
|
|
|
hi def link musiqueConstant Constant
|
2022-05-24 13:37:24 +02:00
|
|
|
hi def link musiqueDefaultBuiltins Function
|
|
|
|
hi def link musiqueLinuxBuiltins Function
|