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 'logohighlightstyle.de_DE.xml' file of the syntax highlight
6 # engine of the kate text editor (http://www.kate-editor.org
10 #generated: Sun Feb 3 22:02:04 2008, localtime
12 package Syntax::Highlight::Engine::Kate::De_DE;
14 our $VERSION = '0.06';
18 use base('Syntax::Highlight::Engine::Kate::Template');
22 my $class = ref($proto) || $proto;
23 my $self = $class->SUPER::new(@_);
25 'Boolean Operators' => 'BString',
26 'Comment' => 'Comment',
27 'Execution Controllers' => 'BaseN',
28 'Expressers' => 'Datatype',
29 'MetaFunctions' => 'Function',
31 'Normal Text' => 'Normal',
33 'Operator' => 'Operator',
34 'Raw String' => 'String',
35 'Scopes' => 'RegionMarker',
36 'Statements' => 'Keyword',
39 $self->listAdd('boolops',
44 $self->listAdd('controllers',
59 $self->listAdd('metafunctions',
62 $self->listAdd('statements',
113 callback => \&parseNormal,
114 attribute => 'Normal Text',
117 callback => \&parseString,
118 attribute => 'String',
121 $self->deliminators('\\s||\\.|\\(|\\)|:|\\!|\\+|,|-|<|=|>|\\%|\\&|\\*|\\/|;|\\?|\\[|\\]|\\^|\\{|\\||\\}|\\~|\\\\');
122 $self->basecontext('Normal');
123 $self->keywordscase(0);
125 bless ($self, $class);
134 my ($self, $text) = @_;
135 # String => 'metafunctions'
136 # attribute => 'MetaFunctions'
139 if ($self->testKeyword($text, 'metafunctions', 0, undef, 0, '#stay', 'MetaFunctions')) {
142 # String => 'statements'
143 # attribute => 'Statements'
146 if ($self->testKeyword($text, 'statements', 0, undef, 0, '#stay', 'Statements')) {
149 # String => 'controllers'
150 # attribute => 'Execution Controllers'
153 if ($self->testKeyword($text, 'controllers', 0, undef, 0, '#stay', 'Execution Controllers')) {
156 # String => 'boolops'
157 # attribute => 'Boolean Operators'
160 if ($self->testKeyword($text, 'boolops', 0, undef, 0, '#stay', 'Boolean Operators')) {
163 # String => '([!=><][=]|[><])'
164 # attribute => 'Expressers'
167 if ($self->testRegExpr($text, '([!=><][=]|[><])', 0, 0, 0, undef, 0, '#stay', 'Expressers')) {
170 # String => '[a-zA-Z_][a-zA-Z_0-9]+'
171 # attribute => 'Normal'
174 if ($self->testRegExpr($text, '[a-zA-Z_][a-zA-Z_0-9]+', 0, 0, 0, undef, 0, '#stay', 'Normal')) {
177 # String => '([0-9]+\.[0-9]*|\.[0-9]+)?|[0-9]*'
178 # attribute => 'Number'
181 if ($self->testRegExpr($text, '([0-9]+\\.[0-9]*|\\.[0-9]+)?|[0-9]*', 0, 0, 0, undef, 0, '#stay', 'Number')) {
185 # attribute => 'Comment'
188 if ($self->testRegExpr($text, '#.*$', 0, 0, 0, undef, 0, '#stay', 'Comment')) {
191 # String => '[+*/\(\)-]'
192 # attribute => 'Operator'
195 if ($self->testRegExpr($text, '[+*/\\(\\)-]', 0, 0, 0, undef, 0, '#stay', 'Operator')) {
199 # attribute => 'Scopes'
202 if ($self->testRegExpr($text, '[\\[\\]]', 0, 0, 0, undef, 0, '#stay', 'Scopes')) {
205 # attribute => 'String'
207 # context => 'String'
208 # type => 'DetectChar'
209 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String')) {
216 my ($self, $text) = @_;
217 # attribute => 'String'
219 # type => 'HlCStringChar'
220 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'String')) {
223 # String => '%[a-zA-Z]'
224 # attribute => 'Operator'
227 if ($self->testRegExpr($text, '%[a-zA-Z]', 0, 0, 0, undef, 0, '#stay', 'Operator')) {
230 # attribute => 'String'
233 # type => 'DetectChar'
234 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'String')) {
247 Syntax::Highlight::Engine::Kate::De_DE - a Plugin for de_DE syntax highlighting
251 require Syntax::Highlight::Engine::Kate::De_DE;
252 my $sh = new Syntax::Highlight::Engine::Kate::De_DE([
257 Syntax::Highlight::Engine::Kate::De_DE is a plugin module that provides syntax highlighting
258 for de_DE to the Syntax::Haghlight::Engine::Kate highlighting engine.
260 This code is generated from the syntax definition files used
262 It works quite fine, but can use refinement and optimization.
264 It inherits Syntax::Higlight::Engine::Kate::Template. See also there.
270 Hans Jeuken (haje <at> toneel <dot> demon <dot> nl)
276 Unknown. If you find any, please contact the author