1 # Copyright (c) 2005 - 2006 Hans Jeuken. All rights reserved.
2 # This program is free software; you can redistribute it and/or
3 # modify it under the same terms as Perl itself.
5 # This file was generated from the 'changelog.xml' file of the syntax highlight
6 # engine of the kate text editor (http://www.kate-editor.org
10 #kate author Dominik Haumann (dhdev@gmx.de)
11 #generated: Sun Feb 3 22:02:04 2008, localtime
13 package Syntax::Highlight::Engine::Kate::ChangeLog;
15 our $VERSION = '0.06';
19 use base('Syntax::Highlight::Engine::Kate::Template');
23 my $class = ref($proto) || $proto;
24 my $self = $class->SUPER::new(@_);
30 'Normal Text' => 'Normal',
34 callback => \&parseNormal,
35 attribute => 'Normal Text',
38 callback => \&parseentry,
39 attribute => 'Normal Text',
43 callback => \&parseline,
44 attribute => 'Normal Text',
48 $self->deliminators('\\s||\\.|\\(|\\)|:|\\!|\\+|,|-|<|=|>|\\%|\\&|\\*|\\/|;|\\?|\\[|\\]|\\^|\\{|\\||\\}|\\~|\\\\');
49 $self->basecontext('Normal');
50 $self->keywordscase(0);
52 bless ($self, $class);
61 my ($self, $text) = @_;
62 # attribute => 'Entry'
65 # firstNonSpace => 'true'
66 # type => 'DetectChar'
67 if ($self->testDetectChar($text, '*', 0, 0, 0, undef, 1, 'entry', 'Entry')) {
70 # String => '\d\d\d\d\s*-\s*\d\d\s*-\s*\d\d\s*'
75 if ($self->testRegExpr($text, '\\d\\d\\d\\d\\s*-\\s*\\d\\d\\s*-\\s*\\d\\d\\s*', 0, 0, 0, 0, 0, 'line', 'Date')) {
82 my ($self, $text) = @_;
84 # attribute => 'Entry'
88 if ($self->testRegExpr($text, '.*?:', 0, 0, 0, undef, 0, '#pop', 'Entry')) {
95 my ($self, $text) = @_;
96 # String => '(\w\s*)+'
100 if ($self->testRegExpr($text, '(\\w\\s*)+', 0, 0, 0, undef, 0, '#stay', 'Name')) {
103 # String => '<.*>\s*$'
104 # attribute => 'E-Mail'
107 if ($self->testRegExpr($text, '<.*>\\s*$', 0, 0, 0, undef, 0, '#pop', 'E-Mail')) {
120 Syntax::Highlight::Engine::Kate::ChangeLog - a Plugin for ChangeLog syntax highlighting
124 require Syntax::Highlight::Engine::Kate::ChangeLog;
125 my $sh = new Syntax::Highlight::Engine::Kate::ChangeLog([
130 Syntax::Highlight::Engine::Kate::ChangeLog is a plugin module that provides syntax highlighting
131 for ChangeLog to the Syntax::Haghlight::Engine::Kate highlighting engine.
133 This code is generated from the syntax definition files used
135 It works quite fine, but can use refinement and optimization.
137 It inherits Syntax::Higlight::Engine::Kate::Template. See also there.
143 Hans Jeuken (haje <at> toneel <dot> demon <dot> nl)
149 Unknown. If you find any, please contact the author