annotate runtime/syntax/pbtxt.vim @ 28879:73d490493dc6 v8.2.4962

patch 8.2.4962: files show up in git status Commit: https://github.com/vim/vim/commit/5a8fad32ea9c075f045b37d6c7739891d458f82b Author: shane.xb.qian <shane.qian@foxmail.com> Date: Mon May 16 11:14:09 2022 +0100 patch 8.2.4962: files show up in git status Problem: Files show up in git status. Solution: Adjust the list of ignored files. Clean up more test files. (Shane xb Qian, closes #9929)
author Bram Moolenaar <Bram@vim.org>
date Mon, 16 May 2022 12:15:04 +0200
parents e7c125224b1a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22958
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: Protobuf Text Format
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Lakshay Garg <lakshayg@outlook.in>
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: 2020 Nov 17
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 " Homepage: https://github.com/lakshayg/vim-pbtxt
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 if exists("b:current_syntax")
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 finish
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 endif
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 let s:cpo_save = &cpo
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 set cpo&vim
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 syn case ignore
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 syn keyword pbtxtTodo TODO FIXME contained
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 syn keyword pbtxtBool true false contained
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 syn match pbtxtInt display "\<\(0\|[1-9]\d*\)\>"
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 syn match pbtxtHex display "\<0[xX]\x\+\>"
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 syn match pbtxtFloat display "\(0\|[1-9]\d*\)\=\.\d*"
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 syn match pbtxtMessage display "^\s*\w\+\s*{"me=e-1
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 syn match pbtxtField display "^\s*\w\+:"me=e-1
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 syn match pbtxtEnum display ":\s*\a\w\+"ms=s+1 contains=pbtxtBool
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 syn region pbtxtString start=+"+ skip=+\\"+ end=+"+ contains=@Spell
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 syn region pbtxtComment start="#" end="$" keepend contains=pbtxtTodo,@Spell
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 hi def link pbtxtTodo Todo
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29 hi def link pbtxtBool Boolean
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30 hi def link pbtxtInt Number
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31 hi def link pbtxtHex Number
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32 hi def link pbtxtFloat Float
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33 hi def link pbtxtMessage Structure
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
34 hi def link pbtxtField Identifier
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
35 hi def link pbtxtEnum Define
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
36 hi def link pbtxtString String
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
37 hi def link pbtxtComment Comment
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
38
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
39 let b:current_syntax = "pbtxt"
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
40
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
41 let &cpo = s:cpo_save
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
42 unlet s:cpo_save
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
43
e7c125224b1a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
44 " vim: nowrap sw=2 sts=2 ts=8 noet