annotate runtime/syntax/gitrebase.vim @ 30196:381462ee23fd v9.0.0434

patch 9.0.0434: gitignore files are not recognized Commit: https://github.com/vim/vim/commit/9ba2786f15f0b53a90fd221832a5bedfc6dbfe20 Author: ObserverOfTime <chronobserver@disroot.org> Date: Sat Sep 10 11:04:24 2022 +0100 patch 9.0.0434: gitignore files are not recognized Problem: gitignore files are not recognized. Solution: Add patterns for the gitignore filetype. (closes https://github.com/vim/vim/issues/11102)
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Sep 2022 12:15:04 +0200
parents 3e661b0cf500
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
1 " Vim syntax file
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
2 " Language: git rebase --interactive
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1620
diff changeset
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org>
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
4 " Filenames: git-rebase-todo
27036
3e661b0cf500 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18831
diff changeset
5 " Last Change: 2022 Jan 05
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
6
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
7 if exists("b:current_syntax")
2202
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
8 finish
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
9 endif
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
10
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
11 syn case match
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
12
27036
3e661b0cf500 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18831
diff changeset
13 let s:c = escape((matchstr(getline('$'), '^[#;@!$%^&|:]\S\@!') . '#')[0], '^$.*[]~\"/')
3e661b0cf500 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18831
diff changeset
14
3e661b0cf500 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18831
diff changeset
15 syn match gitrebaseHash "\v<\x{7,}>" contained contains=@NoSpell
3e661b0cf500 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18831
diff changeset
16 syn match gitrebaseCommit "\v<\x{7,}>" nextgroup=gitrebaseSummary skipwhite contains=@NoSpell
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
17 syn match gitrebasePick "\v^p%(ick)=>" nextgroup=gitrebaseCommit skipwhite
2202
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
18 syn match gitrebaseReword "\v^r%(eword)=>" nextgroup=gitrebaseCommit skipwhite
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
19 syn match gitrebaseEdit "\v^e%(dit)=>" nextgroup=gitrebaseCommit skipwhite
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
20 syn match gitrebaseSquash "\v^s%(quash)=>" nextgroup=gitrebaseCommit skipwhite
2202
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
21 syn match gitrebaseFixup "\v^f%(ixup)=>" nextgroup=gitrebaseCommit skipwhite
3465
161d01cbb165 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2202
diff changeset
22 syn match gitrebaseExec "\v^%(x|exec)>" nextgroup=gitrebaseCommand skipwhite
18818
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
23 syn match gitrebaseBreak "\v^b%(reak)=>"
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 4681
diff changeset
24 syn match gitrebaseDrop "\v^d%(rop)=>" nextgroup=gitrebaseCommit skipwhite
18818
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
25 syn match gitrebaseNoop "\v^noop>"
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
26 syn match gitrebaseMerge "\v^m(erge)=>" nextgroup=gitrebaseMergeOption,gitrebaseName skipwhite
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
27 syn match gitrebaseLabel "\v^l(abel)=>" nextgroup=gitrebaseName skipwhite
18831
6848b809a26e Runtime file updates.
Bram Moolenaar <Bram@vim.org>
parents: 18818
diff changeset
28 syn match gitrebaseReset "\v^(t|reset)=>" nextgroup=gitrebaseName skipwhite
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
29 syn match gitrebaseSummary ".*" contains=gitrebaseHash contained
3465
161d01cbb165 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2202
diff changeset
30 syn match gitrebaseCommand ".*" contained
27036
3e661b0cf500 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18831
diff changeset
31 exe 'syn match gitrebaseComment " \@<=' . s:c . ' empty$" containedin=gitrebaseSummary contained'
3e661b0cf500 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18831
diff changeset
32 exe 'syn match gitrebaseComment "^\s*' . s:c . '.*" contains=gitrebaseHash'
2202
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
33 syn match gitrebaseSquashError "\v%^%(s%(quash)=>|f%(ixup)=>)" nextgroup=gitrebaseCommit skipwhite
18818
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
34 syn match gitrebaseMergeOption "\v-[Cc]>" nextgroup=gitrebaseMergeCommit skipwhite contained
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
35 syn match gitrebaseMergeCommit "\v<\x{7,}>" nextgroup=gitrebaseName skipwhite contained
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
36 syn match gitrebaseName "\v[^[:space:].*?i:^~/-]\S+" nextgroup=gitrebaseMergeComment skipwhite contained
27036
3e661b0cf500 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18831
diff changeset
37 exe 'syn match gitrebaseMergeComment "' . s:c . '" nextgroup=gitrebaseSummary skipwhite contained'
3e661b0cf500 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18831
diff changeset
38
3e661b0cf500 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18831
diff changeset
39 unlet s:c
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
40
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
41 hi def link gitrebaseCommit gitrebaseHash
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
42 hi def link gitrebaseHash Identifier
18818
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
43 hi def link gitrebasePick Type
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
44 hi def link gitrebaseReword Conditional
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
45 hi def link gitrebaseEdit PreProc
18818
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
46 hi def link gitrebaseSquash Statement
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
47 hi def link gitrebaseFixup Repeat
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
48 hi def link gitrebaseExec Operator
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
49 hi def link gitrebaseBreak Macro
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 4681
diff changeset
50 hi def link gitrebaseDrop Comment
18818
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
51 hi def link gitrebaseNoop Comment
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
52 hi def link gitrebaseMerge Exception
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
53 hi def link gitrebaseLabel Label
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
54 hi def link gitrebaseReset Keyword
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
55 hi def link gitrebaseSummary String
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
56 hi def link gitrebaseComment Comment
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1620
diff changeset
57 hi def link gitrebaseSquashError Error
18818
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
58 hi def link gitrebaseMergeCommit gitrebaseCommit
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
59 hi def link gitrebaseMergeComment gitrebaseComment
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
60 hi def link gitrebaseName Tag
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
61
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
62 let b:current_syntax = "gitrebase"