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 'sci.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::Scilab;
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 'Comment' => 'Comment',
26 'Constants-keyword' => 'Variable',
27 'Control-keywords' => 'Operator',
28 'Decimal' => 'DecVal',
30 'Function-keywords' => 'Function',
31 'Normal Text' => 'Normal',
33 'Structure-keywords' => 'Keyword',
34 'Warning-keywords' => 'Others',
35 'functions' => 'Function',
37 $self->listAdd('Constants-keyword',
54 $self->listAdd('Control-keywords',
62 $self->listAdd('Function-keywords',
66 $self->listAdd('Structure-keywords',
77 $self->listAdd('Warning-keywords',
81 $self->listAdd('functions',
879 'pvm_spawn_independent',
1130 'x_message_modeless',
1189 $self->contextdata({
1191 callback => \&parsemain,
1192 attribute => 'Normal Text',
1195 $self->deliminators('\\s||\\.|\\(|\\)|:|\\!|\\+|,|-|<|=|>|\\&|\\*|\\/|;|\\?|\\[|\\]|\\^|\\{|\\||\\}|\\~|\\\\|\\%|\\$');
1196 $self->basecontext('main');
1197 $self->keywordscase(0);
1199 bless ($self, $class);
1208 my ($self, $text) = @_;
1209 # String => 'Structure-keywords'
1210 # attribute => 'Structure-keywords'
1211 # context => '#stay'
1213 if ($self->testKeyword($text, 'Structure-keywords', 0, undef, 0, '#stay', 'Structure-keywords')) {
1216 # String => 'Control-keywords'
1217 # attribute => 'Control-keywords'
1218 # context => '#stay'
1220 if ($self->testKeyword($text, 'Control-keywords', 0, undef, 0, '#stay', 'Control-keywords')) {
1223 # String => 'Function-keywords'
1224 # attribute => 'Function-keywords'
1225 # context => '#stay'
1227 if ($self->testKeyword($text, 'Function-keywords', 0, undef, 0, '#stay', 'Function-keywords')) {
1230 # String => 'Warning-keywords'
1231 # attribute => 'Warning-keywords'
1232 # context => '#stay'
1234 if ($self->testKeyword($text, 'Warning-keywords', 0, undef, 0, '#stay', 'Warning-keywords')) {
1237 # String => 'Constants-keyword'
1238 # attribute => 'Constants-keyword'
1239 # context => '#stay'
1241 if ($self->testKeyword($text, 'Constants-keyword', 0, undef, 0, '#stay', 'Constants-keyword')) {
1244 # String => 'functions'
1245 # attribute => 'functions'
1246 # context => '#stay'
1248 if ($self->testKeyword($text, 'functions', 0, undef, 0, '#stay', 'functions')) {
1251 # attribute => 'Float'
1252 # context => '#stay'
1254 if ($self->testFloat($text, 0, undef, 0, '#stay', 'Float')) {
1257 # attribute => 'Decimal'
1258 # context => '#stay'
1260 if ($self->testInt($text, 0, undef, 0, '#stay', 'Decimal')) {
1264 # attribute => 'Comment'
1265 # context => '#stay'
1267 if ($self->testRegExpr($text, '//.*$', 0, 0, 0, undef, 0, '#stay', 'Comment')) {
1270 # attribute => 'String'
1273 # context => '#stay'
1274 # type => 'RangeDetect'
1275 if ($self->testRangeDetect($text, '"', '"', 0, 0, undef, 0, '#stay', 'String')) {
1288 Syntax::Highlight::Engine::Kate::Scilab - a Plugin for scilab syntax highlighting
1292 require Syntax::Highlight::Engine::Kate::Scilab;
1293 my $sh = new Syntax::Highlight::Engine::Kate::Scilab([
1298 Syntax::Highlight::Engine::Kate::Scilab is a plugin module that provides syntax highlighting
1299 for scilab to the Syntax::Haghlight::Engine::Kate highlighting engine.
1301 This code is generated from the syntax definition files used
1302 by the Kate project.
1303 It works quite fine, but can use refinement and optimization.
1305 It inherits Syntax::Higlight::Engine::Kate::Template. See also there.
1311 Hans Jeuken (haje <at> toneel <dot> demon <dot> nl)
1317 Unknown. If you find any, please contact the author