mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:70881ba: runtime(dockerfile): do not set commentstring in syntax script
fixes: vim/vim#16268
70881ba195
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:

committed by
Christian Clason

parent
0fea57bc71
commit
5f8fac00bf
@@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin
|
" Vim filetype plugin
|
||||||
" Language: Dockerfile
|
" Language: Dockerfile
|
||||||
" Maintainer: Honza Pokorny <http://honza.ca>
|
" Maintainer: Honza Pokorny <http://honza.ca>
|
||||||
" Last Change: 2014 Aug 29
|
" Last Change: 2024 Dec 20
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
@@ -11,6 +11,6 @@ endif
|
|||||||
" Don't load another plugin for this buffer
|
" Don't load another plugin for this buffer
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
let b:undo_ftplugin = "setl commentstring<"
|
|
||||||
|
|
||||||
setlocal commentstring=#\ %s
|
setlocal commentstring=#\ %s
|
||||||
|
|
||||||
|
let b:undo_ftplugin = "setl commentstring<"
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
" dockerfile.vim - Syntax highlighting for Dockerfiles
|
" dockerfile.vim - Syntax highlighting for Dockerfiles
|
||||||
" Maintainer: Honza Pokorny <https://honza.ca>
|
" Maintainer: Honza Pokorny <https://honza.ca>
|
||||||
" Last Change: 2024 Jul 03
|
" Last Change: 2024 Dec 20
|
||||||
" License: BSD
|
" License: BSD
|
||||||
|
|
||||||
" https://docs.docker.com/engine/reference/builder/
|
" https://docs.docker.com/engine/reference/builder/
|
||||||
@@ -35,7 +35,6 @@ syntax region dockerfileShell contained keepend start=/\v/ skip=/\v\\\_./ end=/
|
|||||||
syntax region dockerfileValue contained keepend start=/\v/ skip=/\v\\\_./ end=/\v$/ contains=dockerfileString
|
syntax region dockerfileValue contained keepend start=/\v/ skip=/\v\\\_./ end=/\v$/ contains=dockerfileString
|
||||||
|
|
||||||
syntax region dockerfileComment start=/\v^\s*#/ end=/\v$/ contains=@Spell
|
syntax region dockerfileComment start=/\v^\s*#/ end=/\v$/ contains=@Spell
|
||||||
set commentstring=#\ %s
|
|
||||||
|
|
||||||
hi def link dockerfileString String
|
hi def link dockerfileString String
|
||||||
hi def link dockerfileKeyword Keyword
|
hi def link dockerfileKeyword Keyword
|
||||||
|
Reference in New Issue
Block a user