First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 85808
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Vim Maintainers <vim@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Bjarke Istrup Pedersen <gurligebis@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 85808 depends on: Show dependency tree
Bug 85808 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-03-18 12:09 0000
It would be really nice if there where syntax highlighting for the dhcpd.conf
file in vim.
I don't know how big a task it would be to implement :)

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Ciaran McCreesh 2005-03-21 11:48:05 0000 -------
http://www.vim.org/scripts/script.php?script_id=744

^^ try that. If it's any good I'll make a -syntax package for it.

------- Comment #2 From Bjarke Istrup Pedersen 2005-03-21 13:04:32 0000 -------
I tried downloading it to /usr/share/vim/vim63/syntax and run vim on
dhcpd.conf, but it highlights nothing, is there something I should do to "load"
the syntax file?

------- Comment #3 From Ciaran McCreesh 2005-03-21 13:20:43 0000 -------
You'll need to do :setf dhcpd for now. If we go with this one I'll add an
ftdetect file for it that'll do this for you.

------- Comment #4 From Bjarke Istrup Pedersen 2005-03-21 13:25:30 0000 -------
It works nice, though it cannot tell if I define two servers as etc.
ntp-servers like this:
option ntp-servers 193.162.159.194, 192.168.3.1;
"option ntp-servers" is green.
"193.162.159.194," is white (should be red).
"192.168.3.1;" is red.

------- Comment #5 From Ciaran McCreesh 2005-03-24 08:44:02 0000 -------
--- dhcpd.vim.orig	2005-03-24 16:41:59.755564944 +0000
+++ dhcpd.vim	2005-03-24 16:42:15.894111512 +0000
@@ -33,7 +33,7 @@
 " Base constructs {{{
 syn match dhcpdString +"[^"]*"+
 syn match dhcpdDecNumber "\<-\?\d\+\(;\|\s\|$\)"
-syn match dhcpdIPv4 "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\(;\|\s\|$\)"
+syn match dhcpdIPv4 "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\(;\|\s\|,\|$\)"
 syn match dhcpdMAC "\<\(\x\x\?:\)\{5}\x\x\?\(;\|\s\|$\)"
 syn match dhcpdDate "\<[0-6]\s\d\{4}/\d\d/\d\d/\s\d\d:\d\d:\d\d\(;\|\s\|$\)"
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}

How's that?

------- Comment #6 From Bjarke Istrup Pedersen 2005-03-24 15:18:19 0000 -------
Yep, that works :)

------- Comment #7 From Ciaran McCreesh 2005-03-24 15:38:38 0000 -------
app-vim/dhcpd-syntax

First Last Prev Next    No search results available      Search page      Enter new bug