view runtime/syntax/gitignore.vim @ 32311:10a03ae8ba60 v9.0.1487

patch 9.0.1487: Content-type header for LSP channel not according to spec Commit: https://github.com/vim/vim/commit/c3eddd2068620ceb4e475961192c1d8cae3350cd Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Tue Apr 25 14:54:54 2023 +0100 patch 9.0.1487: Content-type header for LSP channel not according to spec Problem: Content-type header for LSP channel not according to spec. Solution: Use "vscode-jsonrpc" instead of "vim-jsonrpc". (Yegappan Lakshmanan, closes #12295)
author Bram Moolenaar <Bram@vim.org>
date Tue, 25 Apr 2023 16:00:09 +0200
parents fee9eccee266
children
line wrap: on
line source

" Vim syntax file
" Language:	git ignore
" Maintainer:	ObserverOfTime <chronobserver@disroot.org>
" Filenames:	.gitignore, *.git/info/exclude
" Last Change:	2022 Sep 10

if exists('b:current_syntax')
    finish
endif

" Comment
syn keyword gitignoreTodo contained TODO FIXME XXX
syn match gitignoreComment /^#.*/ contains=gitignoreTodo

" Pattern
syn match gitignorePattern /^#\@!.*$/ contains=gitignoreNegation,gitignoreGlob,gitignoreRange,gitignoreSeparator
syn match gitignoreNegation /^!/ contained
syn match gitignoreGlob /\\\@1<![?*]/ contained
syn match gitignoreRange /\\\@1<!\[.\{-}\]/ contained
syn match gitignoreSeparator '/' contained

hi def link gitignoreComment Comment
hi def link gitignoreGlob Special
hi def link gitignoreNegation SpecialChar
hi def link gitignoreRange Special
hi def link gitignoreSeparator Delimiter
hi def link gitignoreTodo Todo

let b:current_syntax = 'gitignore'