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 'taskjuggler.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:06 2008, localtime
12 package Syntax::Highlight::Engine::Kate::TaskJuggler;
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 'Builtin Function' => 'Function',
27 'Comment' => 'Comment',
28 'Data Types' => 'DataType',
29 'Decimal' => 'DecVal',
32 'Keyword' => 'Keyword',
33 'Normal Text' => 'Normal',
36 'String Char' => 'Char',
39 $self->listAdd('builtinfuncs',
208 $self->listAdd('keywords',
216 $self->listAdd('types',
246 'isAllocatedToProject',
281 'pathcriticalnessdown',
282 'pathcriticalnessup',
316 callback => \&parseComment1,
317 attribute => 'Comment',
318 lineending => '#pop',
321 callback => \&parseComment2,
322 attribute => 'Comment',
325 callback => \&parseNormal,
326 attribute => 'Normal Text',
329 callback => \&parseString1,
330 attribute => 'String',
333 callback => \&parseString2,
334 attribute => 'String',
337 $self->deliminators('\\s||\\.|\\(|\\)|:|\\!|\\+|,|-|<|=|>|\\%|\\&|\\*|\\/|;|\\?|\\[|\\]|\\^|\\{|\\||\\}|\\~|\\\\');
338 $self->basecontext('Normal');
339 $self->keywordscase(0);
341 bless ($self, $class);
346 return 'TaskJuggler';
350 my ($self, $text) = @_;
351 # context => '##Alerts'
352 # type => 'IncludeRules'
353 if ($self->includePlugin('Alerts', $text)) {
360 my ($self, $text) = @_;
361 # attribute => 'Comment'
365 # type => 'Detect2Chars'
366 if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop', 'Comment')) {
373 my ($self, $text) = @_;
374 # String => 'builtinfuncs'
375 # attribute => 'Builtin Function'
378 if ($self->testKeyword($text, 'builtinfuncs', 0, undef, 0, '#stay', 'Builtin Function')) {
381 # String => 'keywords'
382 # attribute => 'Keyword'
385 if ($self->testKeyword($text, 'keywords', 0, undef, 0, '#stay', 'Keyword')) {
389 # attribute => 'Data Types'
392 if ($self->testKeyword($text, 'types', 0, undef, 0, '#stay', 'Data Types')) {
395 # attribute => 'Symbol'
396 # beginRegion => 'Brace2'
399 # type => 'DetectChar'
400 if ($self->testDetectChar($text, '{', 0, 0, 0, undef, 0, '#stay', 'Symbol')) {
403 # attribute => 'Symbol'
406 # endRegion => 'Brace2'
407 # type => 'DetectChar'
408 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#stay', 'Symbol')) {
411 # attribute => 'Symbol'
412 # beginRegion => 'Brace1'
415 # type => 'DetectChar'
416 if ($self->testDetectChar($text, '[', 0, 0, 0, undef, 0, '#stay', 'Symbol')) {
419 # attribute => 'Symbol'
422 # endRegion => 'Brace1'
423 # type => 'DetectChar'
424 if ($self->testDetectChar($text, ']', 0, 0, 0, undef, 0, '#stay', 'Symbol')) {
427 # attribute => 'Float'
429 # items => 'ARRAY(0x1782620)'
431 if ($self->testFloat($text, 0, undef, 0, '#stay', 'Float')) {
433 # attribute => 'Float'
436 if ($self->testAnyChar($text, 'fF', 0, 0, undef, 0, '#stay', 'Float')) {
440 # attribute => 'Decimal'
442 # items => 'ARRAY(0x16a0c30)'
444 if ($self->testInt($text, 0, undef, 0, '#stay', 'Decimal')) {
446 # attribute => 'Decimal'
448 # insensitive => 'TRUE'
449 # type => 'StringDetect'
450 if ($self->testStringDetect($text, 'ULL', 1, 0, 0, undef, 0, '#stay', 'Decimal')) {
454 # attribute => 'Decimal'
456 # insensitive => 'TRUE'
457 # type => 'StringDetect'
458 if ($self->testStringDetect($text, 'LUL', 1, 0, 0, undef, 0, '#stay', 'Decimal')) {
462 # attribute => 'Decimal'
464 # insensitive => 'TRUE'
465 # type => 'StringDetect'
466 if ($self->testStringDetect($text, 'LLU', 1, 0, 0, undef, 0, '#stay', 'Decimal')) {
470 # attribute => 'Decimal'
472 # insensitive => 'TRUE'
473 # type => 'StringDetect'
474 if ($self->testStringDetect($text, 'UL', 1, 0, 0, undef, 0, '#stay', 'Decimal')) {
478 # attribute => 'Decimal'
480 # insensitive => 'TRUE'
481 # type => 'StringDetect'
482 if ($self->testStringDetect($text, 'LU', 1, 0, 0, undef, 0, '#stay', 'Decimal')) {
486 # attribute => 'Decimal'
488 # insensitive => 'TRUE'
489 # type => 'StringDetect'
490 if ($self->testStringDetect($text, 'LL', 1, 0, 0, undef, 0, '#stay', 'Decimal')) {
494 # attribute => 'Decimal'
496 # insensitive => 'TRUE'
497 # type => 'StringDetect'
498 if ($self->testStringDetect($text, 'U', 1, 0, 0, undef, 0, '#stay', 'Decimal')) {
502 # attribute => 'Decimal'
504 # insensitive => 'TRUE'
505 # type => 'StringDetect'
506 if ($self->testStringDetect($text, 'L', 1, 0, 0, undef, 0, '#stay', 'Decimal')) {
510 # attribute => 'String'
512 # context => 'String1'
513 # type => 'DetectChar'
514 if ($self->testDetectChar($text, '\'', 0, 0, 0, undef, 0, 'String1', 'String')) {
517 # attribute => 'String'
519 # context => 'String2'
520 # type => 'DetectChar'
521 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String2', 'String')) {
524 # attribute => 'Comment'
526 # context => 'Comment1'
527 # type => 'DetectChar'
528 if ($self->testDetectChar($text, '#', 0, 0, 0, undef, 0, 'Comment1', 'Comment')) {
531 # attribute => 'Comment'
534 # context => 'Comment2'
535 # type => 'Detect2Chars'
536 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Comment2', 'Comment')) {
543 my ($self, $text) = @_;
544 # attribute => 'String'
547 # type => 'DetectChar'
548 if ($self->testDetectChar($text, '\'', 0, 0, 0, undef, 0, '#pop', 'String')) {
555 my ($self, $text) = @_;
556 # attribute => 'String'
559 # type => 'DetectChar'
560 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'String')) {
573 Syntax::Highlight::Engine::Kate::TaskJuggler - a Plugin for TaskJuggler syntax highlighting
577 require Syntax::Highlight::Engine::Kate::TaskJuggler;
578 my $sh = new Syntax::Highlight::Engine::Kate::TaskJuggler([
583 Syntax::Highlight::Engine::Kate::TaskJuggler is a plugin module that provides syntax highlighting
584 for TaskJuggler to the Syntax::Haghlight::Engine::Kate highlighting engine.
586 This code is generated from the syntax definition files used
588 It works quite fine, but can use refinement and optimization.
590 It inherits Syntax::Higlight::Engine::Kate::Template. See also there.
596 Hans Jeuken (haje <at> toneel <dot> demon <dot> nl)
602 Unknown. If you find any, please contact the author