" Vim syntax file " Language: Fvwm{1,2} configuration file " Maintainer: Haakon Riiser " Last Change: 1999 Dec 16 " Clear old syntax defs syn clear " Fvwm configuration files are case insensitive syn case ignore set iskeyword=_,-,+,.,a-z,A-Z,48-57 " Read system colors from the color database (rgb.txt) if exists("rgb_file") " We don't want any hit-return prompts, so we make sure that " &shortmess is set to `O' let __fvwm_oldshm = &shortmess set shortmess=O " And we set &report to a huge number, so that no hit-return prompts " will be given let __fvwm_oldreport = &report set report=10000 " Append the color database to the fvwm configuration, and read the " colors from this buffer let __fvwm_i = line("$") + 1 exe "$r" rgb_file let __fvwm_lastline = line("$") while __fvwm_i <= __fvwm_lastline let __fvwm_s = matchstr(getline(__fvwm_i), '^\s*\d\+\s\+\d\+\s\+\d\+\s\+\h.*$') if __fvwm_s != "" exe "syn keyword fvwmColors ".substitute(__fvwm_s, '^\s*\d\+\s\+\d\+\s\+\d\+\s\+\(\h.*\)$', '\1', "") endif let __fvwm_i = __fvwm_i + 1 endwhile " Remove the appended data undo " Goto first line again 1 " and restore the old values of the variables let &shortmess = __fvwm_oldshm let &report = __fvwm_oldreport unlet __fvwm_i __fvwm_s __fvwm_lastline __fvwm_oldshm __fvwm_oldreport endif " done reading colors syn match fvwmWhitespace "\s\+" contained syn match fvwmEnvVar "\$\w\+" syn match fvwmModConf "^\s*\*\a\+" contains=fvwmWhitespace syn match fvwmString '".\{-}"' syn match fvwmRGBValue "#\x\{3}" syn match fvwmRGBValue "#\x\{6}" syn match fvwmRGBValue "#\x\{9}" syn match fvwmRGBValue "#\x\{12}" syn match fvwmRGBValue "rgb:\x\{1,4}/\x\{1,4}/\x\{1,4}" syn match fvwmPath "\