annotate runtime/syntax/pamenv.vim @ 23579:4569ede6f294

Added tag v8.2.2331 for changeset 85ce241ff9e339648a886bd2b621ff1738aa6744
author Bram Moolenaar <Bram@vim.org>
date Mon, 11 Jan 2021 21:30:04 +0100
parents 7f88f6a3ed4c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20379
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: pam_env.conf(5) configuration file
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Latest Revision: 2020-05-10
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 if exists("b:current_syntax")
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 finish
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 endif
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 syn keyword pamenvTodo contained TODO FIXME XXX NOTE
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 syn region pamenvComment start='^#' end='$' display oneline contains=pamenvTodo,@Spells
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 syn match pamenvVars '^[A-Z_][A-Z_0-9]*' nextgroup=pamenvKeywords skipwhite
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 syn keyword pamenvKeywords contained DEFAULT OVERRIDE nextgroup=pamenvVarEq
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 syn match pamenvVarEq contained '=' nextgroup=pamenvValue,pamenvValueWithQuote
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 syn match pamenvValue contained '[^ \t]*' skipwhite nextgroup=pamenvKeywords
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 syn region pamenvValueWithQuote contained start='"' end='"' skipwhite nextgroup=pamenvKeywords
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 hi def link pamenvTodo Todo
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 hi def link pamenvComment Comment
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 hi def link pamenvKeywords Keyword
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 hi def link pamenvVars Identifier
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 hi def link pamenvValue String
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 hi def link pamenvValueWithQuote String
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 let b:current_syntax = "pamenv"