SLP service registration config highlighting

Volker Kuhlmann list0570 at paradise.net.nz
Thu Mar 27 10:06:04 CET 2008


I have made syntax highlighting patterns for SLP (Service Location
Protocol) registration config files. These are found with openslp in
/etc/slp.reg.d/*

Would some kind soul please upload the attached .pats file to
ftp://ftp.nedit.org/pub/NEdit/contrib/highlighting/ ?

Until then, there is a copy (and a pattern test file) in

http://volker.top.geek.nz/soft/nedit/SLP-0.9.pats
http://volker.top.geek.nz/soft/nedit/SLP_test.reg

Thanks + greetings,

Volker

-- 
Volker Kuhlmann			is list0570 with the domain in header
http://volker.dnsalias.net/	Please do not CC list postings to me.
-------------- next part --------------
! NEdit Syntax Highlighting Patterns for SLP (Service Location Protocol) service
! registration config files (as found in /etc/slp.reg.d/).
! Tested with nedit 5.5 and openslp 1.2.0.
!
! Load this file by starting nedit with:
!
!     nedit -import <the name of this file>
!
! The patterns can then be saved permanently into nedit's own resource file
! by using Save Defaults from the Preferences menu.
!
! Note: This language mode's extension (*.reg) collides with nedit's default of
! recognising *.reg files as containing regular expressions. After loading these
! patterns with -import, there are 2 choices for using the *.reg extension with
! language modes as configured in
! nedit->Preferences->Default Settings->Language Modes:
! 1) Leave the setting for Regex to claim the .reg file name extension, and
!    delete the same from the SLP language mode.
! 2) Delete the extension .reg from the Regex language mode and leave it with
!    the SLP mode. If you're interested in using SLP you probably wnat this.
!
! Download:
!    http://volker.top.geek.nz/soft/nedit/
!    and perhaps:
!    ftp://ftp.nedit.org/pub/NEdit/contrib/highlighting/
!
! Copyright (C) by Volker Kuhlmann <VolkerKuhlmann at gmx.de>
! Released under the same license as NEdit itself, or, at your option, under
! the GNU General Public Licence, Version 2.
!
! ChangeLog:
!   0.9, 27 Mar 2008: Volker Kuhlmann
!	- Initial release.

nedit.languageModes: \
	SLP:.reg:"^(service:|description=)"::::::

nedit.highlightPatterns: \
	SLP:1:0{\n\
		comment:"^[ \\t]*[#;]":"$"::Comment::\n\
		attrib_service:"^[ \\t]*(service)[^A-Za-z]":"$"::Keyword::\n\
		attrib_service1:"([^:]+):([^,]*),([^,]*),(.*)":"$"::Plain:attrib_service:\n\
		attrib_description:"^[ \\t]*(description)[=: ]":"$"::Keyword::\n\
		attrib_scopes:"^[ \\t]*(?iscopes)[=: ]":"$"::Keyword::\n\
		attrib:"^[ \\t]*[^:= ]+":"$"::Keyword::\n\
		service:"\\1":""::Text Key:attrib_service1:C\n\
		url:"\\2":""::Text Arg2:attrib_service1:C\n\
		description:".":"$"::String:attrib_description:\n\
		scopes:".":"$"::Text Key1:attrib_scopes:\n\
		value:".":"$"::Plain:attrib:\n\
	}


More information about the Discuss mailing list