annotate runtime/syntax/pamenv.vim @ 31669:4372b50e0a1d v9.0.1167

patch 9.0.1167: EditorConfig files do not have their own filetype Commit: https://github.com/vim/vim/commit/d41262ed06564cef98a3800e2928e6e0db91abbf Author: Gregory Anders <greg@gpanders.com> Date: Mon Jan 9 20:08:00 2023 +0000 patch 9.0.1167: EditorConfig files do not have their own filetype Problem: EditorConfig files do not have their own filetype. Solution: Add the "editorconfig" filetype. (Gregory Anders, closes https://github.com/vim/vim/issues/11779)
author Bram Moolenaar <Bram@vim.org>
date Mon, 09 Jan 2023 21:15: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"