On 12/8/2019 5:11 PM, DJ Lucas via lfs-dev wrote:
Step 5: Why? This works just fine despite vim's broken highlighting - I need to fix that too. Can copy the expressions from the bind syntax files and upstream.

Way OT, but it was bugging me. I ripped off the ones in bind's syntax files (just dropped the second), so I added the following values for "resolvIPNameserver" in resolv.vim:

/\<\(\x\{1,4}:\)\{6}\(\x\{1,4}:\x\{1,4}\)\>/
/\s\@<=::\(\(\x\{1,4}:\)\{,6}\x\{1,4}\)\>/
/\<\(\x\{1,4}:\)\{1}:\(\(\x\{1,4}:\)\{,5}\x\{1,4}\)\>/
/\<\(\x\{1,4}:\)\{2}:\(\(\x\{1,4}:\)\{,4}\x\{1,4}\)\>/
/\<\(\x\{1,4}:\)\{3}:\(\(\x\{1,4}:\)\{,3}\x\{1,4}\)\>/
/\<\(\x\{1,4}:\)\{4}:\(\(\x\{1,4}:\)\{,2}\x\{1,4}\)\>/
/\<\(\x\{1,4}:\)\{5}:\(\(\x\{1,4}:\)\{,1}\x\{1,4}\)\>/
/\<\(\x\{1,4}:\)\{6}:\x\{1,4}\>/
/\<\(\x\{1,4}:\)\{1,7}:\(\s\|;\|$\)\@=/

I really don't understand vim syntax rules, so it may not be entirely correct, but this worked for all possible variants I threw at it. I'll see about sending upstream. Even if it's only partially complete, that should be enough for somebody who knows it well to fix it correctly. If anybody does and would like to validate/correct it, it's here: http://www.linuxfromscratch.org/~dj/resolv.vim

--DJ

--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to