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