[Kde-scm-interest] Kate syntax for svn2git import rules

Nicolas Alvarez nicolas.alvarez at gmail.com
Sun Dec 5 03:10:14 CET 2010


Hi all,

Writing svn2git import rules, but hate seeing all-black code? This is just 
what you need. I'm working on a Kate syntax highlighting script for rule 
files. It's working quite well, although a few things aren't yet supported.

You may download it from:
http://gitweb.kde.org/scratch/nalvarez/svn2git-kate.git

Just copy svn2git.xml to ~/.kde/share/apps/katepart/syntax.


"create repository", "end repository", etc. are considered individual 
keywords; "create" alone isn't highlighted. Similarly, most keywords are 
only supported inside the correct blocks. "branch" is only highlighted 
inside a "match", "revision" only works after "min" or "max", etc.

I'm not sure if this is the right approach. For example, it may look bad to 
start typing "create repository" and not see "create" formatted as a keyword 
immediately. Only way to know is with some real-world testing.

Feedback very welcome.

-- 
Nicolas




More information about the Kde-scm-interest mailing list