Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
cmakecache.vim61 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:     cmakecache - CMakeCache.txt files generated by CMake3" Author:       bfrg <https://github.com/bfrg>4" Upstream:      https://github.com/bfrg/vim-cmakecache-syntax5" Last Change:  Nov 28, 20196" License:      Same as Vim itself (see :h license)7 8if exists('b:current_syntax')9    finish10endif11 12let s:cpo_save = &cpoptions13set cpoptions&vim14 15" Comments start with # or //16syntax region CMakeCacheComment start="#\|//" end="$"17 18" Match 'key' in key:type=value19syntax match CMakeCacheKey "^\s*\w\+\(-ADVANCED\)\=:"me=e-120 21" Highlight 'str' in key:STRING=str (many thanks to Nickspoons in #vim!)22syntax region CMakeCacheStringVar   matchgroup=CMakeCacheType start=":STRING="ms=s+1,rs=e-1 end="$" contains=CMakeCacheString keepend23syntax region CMakeCacheString      start="="ms=s+1 end="$" contained24 25" Highlight boolean 'value' in key:BOOL=value26syntax region CMakeCacheBoolVar     matchgroup=CMakeCacheType start=":BOOL="ms=s+1,rs=e-1 end="$" contains=CMakeCacheBool keepend27syntax region CMakeCacheBool        start="="ms=s+1 end="$" contained28 29" Highlight 'path' in key:PATH=path30syntax region CMakeCachePathVar     matchgroup=CMakeCacheType start=":PATH="ms=s+1,rs=e-1 end="$" contains=CMakeCachePath keepend31syntax region CMakeCachePath        start="="ms=s+1 end="$" contained32 33" Highlight 'file' in key:FILEPATH=file34syntax region CMakeCacheFilePathVar matchgroup=CMakeCacheType start=":FILEPATH="ms=s+1,rs=e-1 end="$" contains=CMakeCacheFilePath keepend35syntax region CMakeCacheFilePath    start="="ms=s+1 end="$" contained36 37" Highlight 'value' in key:STATIC=value38syntax region CMakeCacheStaticVar   matchgroup=CMakeCacheType start=":STATIC="ms=s+1,rs=e-1 end="$" contains=CMakeCacheStatic keepend39syntax region CMakeCacheStatic      start="="ms=s+1 end="$" contained40 41" Highlight 'value' in key:Internal=value42syntax region CMakeCacheInternalVar matchgroup=CMakeCacheType start=":INTERNAL="ms=s+1,rs=e-1 end="$" contains=CMakeCacheInternal keepend43syntax region CMakeCacheInternal    start="="ms=s+1 end="$" contained44 45hi def link CMakeCacheComment   Comment46hi def link CMakeCacheKey       Identifier47hi def link CMakeCacheString    String48hi def link CMakeCacheBool      Constant49hi def link CMakeCachePath      Directory50hi def link CMakeCacheFilePath  Normal51hi def link CMakeCacheStatic    Normal52hi def link CMakeCacheInternal  Normal53 54" Highlight 'type' in key:type=value55hi def link CMakeCacheType      Type56 57let b:current_syntax = 'cmakecache'58 59let &cpoptions = s:cpo_save60unlet s:cpo_save61 
codekingpro/portable-devtools · Team Ai