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 'alert.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::Alerts;
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(@_);
27 'Normal Text' => 'Normal',
29 $self->listAdd('alerts',
40 callback => \&parseNormalText,
41 attribute => 'Normal Text',
45 $self->deliminators('\\s||\\.|\\(|\\)|:|\\!|\\+|,|-|<|=|>|\\%|\\&|\\*|\\/|;|\\?|\\[|\\]|\\^|\\{|\\||\\}|\\~|\\\\');
46 $self->basecontext('Normal Text');
47 $self->keywordscase(0);
49 bless ($self, $class);
58 my ($self, $text) = @_;
60 # attribute => 'Alert'
63 if ($self->testKeyword($text, 'alerts', 0, undef, 0, '#stay', 'Alert')) {
76 Syntax::Highlight::Engine::Kate::Alerts - a Plugin for Alerts syntax highlighting
80 require Syntax::Highlight::Engine::Kate::Alerts;
81 my $sh = new Syntax::Highlight::Engine::Kate::Alerts([
86 Syntax::Highlight::Engine::Kate::Alerts is a plugin module that provides syntax highlighting
87 for Alerts to the Syntax::Haghlight::Engine::Kate highlighting engine.
89 This code is generated from the syntax definition files used
91 It works quite fine, but can use refinement and optimization.
93 It inherits Syntax::Higlight::Engine::Kate::Template. See also there.
99 Hans Jeuken (haje <at> toneel <dot> demon <dot> nl)
105 Unknown. If you find any, please contact the author