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> |
| 4 | " Last Change: Oct 23, 2014 |
| 5 | " Version: 5 |
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 | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 39 | " Only when an item doesn't have highlighting yet |
| 40 | command -nargs=+ HiLink hi def link <args> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 41 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 42 | HiLink exportsKeyOptSet exportsKeySettings |
| 43 | HiLink exportsOptSet exportsSettings |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 44 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 45 | HiLink exportsComment Comment |
| 46 | HiLink exportsKeyOptions Type |
| 47 | HiLink exportsKeySettings Keyword |
| 48 | HiLink exportsOptions Constant |
| 49 | HiLink exportsSeparator Constant |
| 50 | HiLink exportsSettings Constant |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 51 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 52 | HiLink exportsOptError Error |
| 53 | HiLink exportsOptSetError Error |
| 54 | HiLink exportsSetError Error |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 55 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 56 | delcommand HiLink |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 57 | |
| 58 | let b:current_syntax = "exports" |
| 59 | " vim: ts=10 |