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 'winehq.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::WINE_Config;
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',
27 'Normal Text' => 'Normal',
28 'RegistryBeginEnd' => 'Float',
29 'Section' => 'Keyword',
30 'Value' => 'Variable',
31 'ValueFilesystem1' => 'BaseN',
32 'ValueFilesystem2' => 'DecVal',
36 callback => \&parseNormal,
37 attribute => 'Normal Text',
40 callback => \&parseValue,
41 attribute => 'Normal Text',
45 $self->deliminators('\\s||\\.|\\(|\\)|:|\\!|\\+|,|-|<|=|>|\\%|\\&|\\*|\\/|;|\\?|\\[|\\]|\\^|\\{|\\||\\}|\\~|\\\\');
46 $self->basecontext('Normal');
47 $self->keywordscase(1);
49 bless ($self, $class);
58 my ($self, $text) = @_;
59 # String => 'WINE REGISTRY Version.*$'
60 # attribute => 'RegistryBeginEnd'
63 if ($self->testRegExpr($text, 'WINE REGISTRY Version.*$', 0, 0, 0, undef, 0, '#stay', 'RegistryBeginEnd')) {
66 # String => '#\s*<\s*wineconf\s*>'
67 # attribute => 'RegistryBeginEnd'
71 if ($self->testRegExpr($text, '#\\s*<\\s*wineconf\\s*>', 0, 0, 0, 0, 0, '#stay', 'RegistryBeginEnd')) {
74 # String => '#\s*<\s*\/\s*wineconf\s*>'
75 # attribute => 'RegistryBeginEnd'
79 if ($self->testRegExpr($text, '#\\s*<\\s*\\/\\s*wineconf\\s*>', 0, 0, 0, 0, 0, '#stay', 'RegistryBeginEnd')) {
83 # attribute => 'Section'
87 if ($self->testRegExpr($text, '\\[.*\\]$', 0, 0, 0, 0, 0, '#stay', 'Section')) {
91 # attribute => 'Comment'
94 if ($self->testRegExpr($text, ';.*$', 0, 0, 0, undef, 0, '#stay', 'Comment')) {
97 # String => '\s*"\s*[a-zA-Z0-9_.:*]*\s*"'
101 if ($self->testRegExpr($text, '\\s*"\\s*[a-zA-Z0-9_.:*]*\\s*"', 0, 0, 0, undef, 0, '#stay', 'Key')) {
104 # attribute => 'Normal Text'
107 # type => 'DetectChar'
108 if ($self->testDetectChar($text, '=', 0, 0, 0, undef, 0, 'Value', 'Normal Text')) {
115 my ($self, $text) = @_;
116 # String => '\s*".*"'
117 # attribute => 'Value'
120 if ($self->testRegExpr($text, '\\s*".*"', 0, 0, 0, undef, 0, '#stay', 'Value')) {
124 # attribute => 'Comment'
127 if ($self->testRegExpr($text, ';.*$', 0, 0, 0, undef, 0, '#stay', 'Comment')) {
140 Syntax::Highlight::Engine::Kate::WINE_Config - a Plugin for WINE Config syntax highlighting
144 require Syntax::Highlight::Engine::Kate::WINE_Config;
145 my $sh = new Syntax::Highlight::Engine::Kate::WINE_Config([
150 Syntax::Highlight::Engine::Kate::WINE_Config is a plugin module that provides syntax highlighting
151 for WINE Config to the Syntax::Haghlight::Engine::Kate highlighting engine.
153 This code is generated from the syntax definition files used
155 It works quite fine, but can use refinement and optimization.
157 It inherits Syntax::Higlight::Engine::Kate::Template. See also there.
163 Hans Jeuken (haje <at> toneel <dot> demon <dot> nl)
169 Unknown. If you find any, please contact the author