Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | " Vim syntax file |
| 2 | " Language: exports |
Bram Moolenaar | e271909 | 2015-01-10 15:09:25 +0100 | [diff] [blame] | 3 | " Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz> |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 4 | " Last Change: Aug 31, 2016 |
| 5 | " Version: 7 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6 | " Notes: This file includes both SysV and BSD 'isms |
Bram Moolenaar | e271909 | 2015-01-10 15:09:25 +0100 | [diff] [blame] | 7 | " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_EXPORTS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 9 | " quit when a syntax file was already loaded |
| 10 | if exists("b:current_syntax") |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11 | finish |
| 12 | endif |
| 13 | |
| 14 | " Options: -word |
| 15 | syn keyword exportsKeyOptions contained alldirs nohide ro wsync |
| 16 | syn keyword exportsKeyOptions contained kerb o rw |
| 17 | syn match exportsOptError contained "[a-z]\+" |
| 18 | |
| 19 | " Settings: word= |
| 20 | syn keyword exportsKeySettings contained access anon root rw |
| 21 | syn match exportsSetError contained "[a-z]\+" |
| 22 | |
| 23 | " OptSet: -word= |
| 24 | syn keyword exportsKeyOptSet contained mapall maproot mask network |
| 25 | syn match exportsOptSetError contained "[a-z]\+" |
| 26 | |
| 27 | " options and settings |
| 28 | syn match exportsSettings "[a-z]\+=" contains=exportsKeySettings,exportsSetError |
| 29 | syn match exportsOptions "-[a-z]\+" contains=exportsKeyOptions,exportsOptError |
| 30 | syn match exportsOptSet "-[a-z]\+=" contains=exportsKeyOptSet,exportsOptSetError |
| 31 | |
| 32 | " Separators |
| 33 | syn match exportsSeparator "[,:]" |
| 34 | |
| 35 | " comments |
| 36 | syn match exportsComment "^\s*#.*$" contains=@Spell |
| 37 | |
| 38 | " Define the default highlighting. |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 39 | if !exists("skip_exports_syntax_inits") |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 40 | |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 41 | hi def link exportsKeyOptSet exportsKeySettings |
| 42 | hi def link exportsOptSet exportsSettings |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 43 | |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 44 | hi def link exportsComment Comment |
| 45 | hi def link exportsKeyOptions Type |
| 46 | hi def link exportsKeySettings Keyword |
| 47 | hi def link exportsOptions Constant |
| 48 | hi def link exportsSeparator Constant |
| 49 | hi def link exportsSettings Constant |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 50 | |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 51 | hi def link exportsOptError Error |
| 52 | hi def link exportsOptSetError Error |
| 53 | hi def link exportsSetError Error |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 54 | |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 55 | endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 56 | |
| 57 | let b:current_syntax = "exports" |
| 58 | " vim: ts=10 |