add edgy syntax highlighting to sources.list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vim |
Fix Released
|
Undecided
|
Unassigned | ||
vim (Ubuntu) |
Fix Released
|
Low
|
Sebastian Dröge |
Bug Description
When using VIM to edit apts sources.list, it uses syntax highlighting for Debian (main, contrib, nonfree), instead of Ubuntus main, restricted, universe, and multiverse.
As of the time of posting, it also lacks colouration of the word `dapper`, however all previous versions of ubuntu are colourised.
Bellow is a diff (produced with diff -u) that should help to fix the syntax highlighting.
--- debsources.vim 2006-02-08 18:27:14.000000000 +1030
+++ debsources.vim2 2006-02-08 18:28:06.000000000 +1030
@@ -22,15 +22,15 @@
setlocal iskeyword+=-
" A bunch of useful keywords
-syn keyword sourcesKeyword deb deb-src
-syn keyword sourcesKeyword main contrib non-free
+syn keyword sourcesKeyword deb deb-src
+syn keyword sourcesKeyword main restricted universe multiverse
" Match comments
syn match sourcesComment /#.*/
" Match uri's
syn match sourcesUri +\(http://\|ftp://\|file:///\)[^' <>"]\++
-syn match sourcesDistrKeyword +\([[:alnum:
+syn match sourcesDistrKeyword +\([[:alnum:
" Associate our matches and regions with pretty colours
if version >= 508 || !exists(
Changed in vim: | |
status: | Unconfirmed → Confirmed |
its not so important, so minor, and i dont know if there is a way to make it not on `vim (upstream)`, since its our (ubuntus) problem.