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 'tibasic.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::TI_Basic;
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 'Assignment' => 'Others',
26 'Keyword' => 'Keyword',
28 'Normal Text' => 'Normal',
29 'Special operators' => 'Normal',
32 $self->listAdd('keywords',
64 $self->listAdd('special_sym',
73 callback => \&parseNormal,
74 attribute => 'Normal Text',
77 callback => \&parseString,
78 attribute => 'String',
81 $self->deliminators('\\s||\\.|\\(|\\)|:|\\!|\\+|,|-|=|\\&|\\*|\\/|;|\\?|\\[|\\]|\\^|\\{|\\||\\}|\\~|\\\\|\\%|<|>');
82 $self->basecontext('Normal');
83 $self->keywordscase(0);
85 bless ($self, $class);
94 my ($self, $text) = @_;
95 # String => 'keywords'
96 # attribute => 'Keyword'
99 if ($self->testKeyword($text, 'keywords', 0, undef, 0, '#stay', 'Keyword')) {
102 # String => 'special_sym'
103 # attribute => 'Special operators'
106 if ($self->testKeyword($text, 'special_sym', 0, undef, 0, '#stay', 'Special operators')) {
109 # attribute => 'Assignment'
113 # type => 'Detect2Chars'
114 if ($self->testDetect2Chars($text, '-', '>', 0, 0, 0, undef, 0, '#stay', 'Assignment')) {
117 # attribute => 'Assignment'
121 # type => 'Detect2Chars'
122 if ($self->testDetect2Chars($text, 's', 't', 0, 0, 0, undef, 0, '#stay', 'Assignment')) {
126 # attribute => 'Matrix'
129 if ($self->testRegExpr($text, '\\[\\w\\]', 0, 0, 0, undef, 0, '#stay', 'Matrix')) {
132 # attribute => 'String'
134 # context => 'String'
135 # type => 'DetectChar'
136 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String')) {
143 my ($self, $text) = @_;
144 # attribute => 'String'
147 # type => 'DetectChar'
148 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'String')) {
161 Syntax::Highlight::Engine::Kate::TI_Basic - a Plugin for TI Basic syntax highlighting
165 require Syntax::Highlight::Engine::Kate::TI_Basic;
166 my $sh = new Syntax::Highlight::Engine::Kate::TI_Basic([
171 Syntax::Highlight::Engine::Kate::TI_Basic is a plugin module that provides syntax highlighting
172 for TI Basic to the Syntax::Haghlight::Engine::Kate highlighting engine.
174 This code is generated from the syntax definition files used
176 It works quite fine, but can use refinement and optimization.
178 It inherits Syntax::Higlight::Engine::Kate::Template. See also there.
184 Hans Jeuken (haje <at> toneel <dot> demon <dot> nl)
190 Unknown. If you find any, please contact the author