1 " qmake project syntax file
2 " Language: qmake project
3 " Maintainer: Arto Jonsson <ajonsson@kapsi.fi>
4 " https://github.com/artoj/qmake-syntax-vim/
6 if exists("b:current_syntax")
13 syn match qmakeComment "#.*"
16 syn match qmakeVariable /[A-Z_]\+\s*=/he=e-1
17 syn match qmakeVariable /[A-Z_]\+\s*\(+\|-\||\|*\|\~\)=/he=e-2
20 syn match qmakeValue /$$[A-Z_]\+/
21 syn match qmakeValue /$${[A-Z_]\+}/
23 " Environment variable
24 syn match qmakeEnvVariable /$([A-Z_]\+)/
25 syn match qmakeEnvVariable /$$([A-Z_]\+)/
27 " Qt build configuration
28 syn match qmakeQtConfiguration /$$\[[A-Z_]\+\]/
33 syn keyword qmakeBuiltin basename count dirname error exists
34 syn keyword qmakeBuiltin find for include infile isEmpty join member message
35 syn keyword qmakeBuiltin prompt quote sprintf system unique warning
38 syn match qmakeScope /[0-9A-Za-z_-]\+\(|\|:\)/he=e-1
39 syn match qmakeScope /[0-9A-Za-z_-]\+\s*{/he=e-1
41 hi def link qmakeComment Comment
42 hi def link qmakeVariable Identifier
43 hi def link qmakeBuiltin Function
44 hi def link qmakeValue PreProc
45 hi def link qmakeEnvVariable PreProc
46 hi def link qmakeQtConfiguration PreProc
47 hi def link qmakeScope Conditional
49 let b:current_syntax = "qmake"