Package: vim-runtime
Version: 2:8.1.2269-1
Tags: patch
Thanks for adding support for UNRELEASED to debchangelog.vim!
Unfortunately, it doesn't quite work as it should: the space before
"UNRELEASED" is still highlighted as error.
The attached patch should fix this — but I have no idea what I'm doing.
-- System Information:
Architecture: i386
Versions of packages vim-runtime recommends:
ii vim 2:8.1.2269-1
ii vim-gtk3 2:8.1.2269-1
--
Jakub Wilk
diff --git a/syntax/debchangelog.vim b/syntax/debchangelog.vim
index eb82613..3b6213c 100644
--- a/syntax/debchangelog.vim
+++ b/syntax/debchangelog.vim
@@ -43,7 +43,7 @@ exe 'syn match debchangelogFirstKV contained "; \('.s:urgency.'\|'.s:binNMU.'\)"
exe 'syn match debchangelogOtherKV contained ", \('.s:urgency.'\|'.s:binNMU.'\)"'
exe 'syn match debchangelogTarget contained "\%( \%('.join(s:supported, '\|').'\)\>[-[:alnum:]]*\)\+"'
exe 'syn match debchangelogUnsupportedTarget contained "\%( \%('.join(s:unsupported, '\|').'\)\>[-[:alnum:]]*\)\+"'
-syn keyword debchangelogUnreleased contained UNRELEASED
+syn match debchangelogUnreleased contained " UNRELEASED"
syn match debchangelogVersion contained "(.\{-})"
syn match debchangelogCloses contained "closes:\_s*\(bug\)\=#\=\_s\=\d\+\(,\_s*\(bug\)\=#\=\_s\=\d\+\)*"
syn match debchangelogLP contained "\clp:\s\+#\d\+\(,\s*#\d\+\)*"