Kate/PHP_HTML.pm

filter: Statementstmt 23.6% 73 / 309 Branchbran 16.0% 37 / 230 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 33.3% 11 / 33 Podpod 0.0% 0 / 30 totaltotal 20.1% 122 / 607 SCAR 88.5
CC
117
Cov
20%
parseComment
56.0
parseDoctypeInternalSubset
56.0
parseFindHTML
53.1
CRAP 7000.4
« Kate/CSS_PHP.pm ↑ Summary Kate/Asm6502.pm »
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.
4  
5 # This file was generated from the 'html-php.xml' file of the syntax highlight
6 # engine of the kate text editor (http://www.kate-editor.org
7  
8 #kate xml version 1.98
9 #kate version 2.4
10 #kate author Wilbert Berendsen (wilbert@kde.nl)
11 #generated: Sun Feb 3 22:02:06 2008, localtime
12  
13 package Syntax::Highlight::Engine::Kate::PHP_HTML;
14  
15 2 our $VERSION = '0.14';
16  
17 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 2 ▶use base('Syntax::Highlight::Engine::Kate::Template');
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 sub new {
22 3 ▶ my $proto = shift;
Subroutine new: called CC=2 SCAR=7.0
Pod undocumented
23 3 ▶ my $class = ref($proto) || $proto;
Condition33%1/3
ref $proto || $proto
l!l&&r!l&&!r
030
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
24 3 my $self = $class->SUPER::new(@_);
25 3 $self->attributes({
26 'Attribute' => 'Others',
27 'CDATA' => 'BaseN',
28 'Comment' => 'Comment',
29 'Doctype' => 'DataType',
30 'Element' => 'Keyword',
31 'EntityRef' => 'DecVal',
32 'Error' => 'Error',
33 'Normal Text' => 'Normal',
34 'PEntityRef' => 'DecVal',
35 'Processing Instruction' => 'Keyword',
36 'Value' => 'String',
37 });
38 3 $self->contextdata({
39 'CDATA' => {
40 callback => \&parseCDATA,
41 attribute => 'Normal Text',
42 },
43 'CSS' => {
44 callback => \&parseCSS,
45 attribute => 'Normal Text',
46 },
47 'CSS content' => {
48 callback => \&parseCSScontent,
49 attribute => 'Normal Text',
50 },
51 'Comment' => {
52 callback => \&parseComment,
53 attribute => 'Comment',
54 },
55 'Doctype' => {
56 callback => \&parseDoctype,
57 attribute => 'Normal Text',
58 },
59 'Doctype Internal Subset' => {
60 callback => \&parseDoctypeInternalSubset,
61 attribute => 'Normal Text',
62 },
63 'Doctype Markupdecl' => {
64 callback => \&parseDoctypeMarkupdecl,
65 attribute => 'Normal Text',
66 },
67 'Doctype Markupdecl DQ' => {
68 callback => \&parseDoctypeMarkupdeclDQ,
69 attribute => 'Value',
70 },
71 'Doctype Markupdecl SQ' => {
72 callback => \&parseDoctypeMarkupdeclSQ,
73 attribute => 'Value',
74 },
75 'El Close' => {
76 callback => \&parseElClose,
77 attribute => 'Normal Text',
78 },
79 'El Close 2' => {
80 callback => \&parseElClose2,
81 attribute => 'Normal Text',
82 },
83 'El Close 3' => {
84 callback => \&parseElClose3,
85 attribute => 'Normal Text',
86 },
87 'El Open' => {
88 callback => \&parseElOpen,
89 attribute => 'Normal Text',
90 },
91 'FindAttributes' => {
92 callback => \&parseFindAttributes,
93 attribute => 'Normal Text',
94 },
95 'FindDTDRules' => {
96 callback => \&parseFindDTDRules,
97 attribute => 'Normal Text',
98 },
99 'FindEntityRefs' => {
100 callback => \&parseFindEntityRefs,
101 attribute => 'Normal Text',
102 },
103 'FindHTML' => {
104 callback => \&parseFindHTML,
105 attribute => 'Normal Text',
106 },
107 'FindPEntityRefs' => {
108 callback => \&parseFindPEntityRefs,
109 attribute => 'Normal Text',
110 },
111 'FindPHP' => {
112 callback => \&parseFindPHP,
113 },
114 'JS' => {
115 callback => \&parseJS,
116 attribute => 'Normal Text',
117 },
118 'JS comment close' => {
119 callback => \&parseJScommentclose,
120 attribute => 'Comment',
121 lineending => '#pop',
122 },
123 'JS content' => {
124 callback => \&parseJScontent,
125 attribute => 'Normal Text',
126 },
127 'PI' => {
128 callback => \&parsePI,
129 attribute => 'Normal Text',
130 },
131 'Start' => {
132 callback => \&parseStart,
133 attribute => 'Normal Text',
134 },
135 'Value' => {
136 callback => \&parseValue,
137 attribute => 'Normal Text',
138 fallthrough => 'Value NQ',
139 },
140 'Value DQ' => {
141 callback => \&parseValueDQ,
142 attribute => 'Value',
143 },
144 'Value NQ' => {
145 callback => \&parseValueNQ,
146 attribute => 'Normal Text',
147 lineending => '#pop#pop',
148 fallthrough => '#pop#pop',
149 },
150 'Value SQ' => {
151 callback => \&parseValueSQ,
152 attribute => 'Value',
153 },
154 });
155 3 $self->deliminators('\\s||\\.|\\(|\\)|:|\\!|\\+|,|-|<|=|>|\\%|\\&|\\*|\\/|;|\\?|\\[|\\]|\\^|\\{|\\||\\}|\\~|\\\\');
156 3 $self->basecontext('Start');
157 3 $self->keywordscase(1);
158 3 $self->initialize;
159 3 bless ($self, $class);
160 3 return $self;
161 }
162  
163 sub language {
164 0 ▶ return 'PHP (HTML)';
Subroutine language: not called CC=1 SCAR=6.9
Pod undocumented
165 }
166  
167 sub parseCDATA {
168 0 ▶ my ($self, $text) = @_;
Subroutine parseCDATA: not called CC=6 SCAR=37.4
Pod undocumented
169 # context => 'FindPHP'
170 # type => 'IncludeRules'
171 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
172 0 return 1
173 }
174 # type => 'DetectSpaces'
175 0 ▶ if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectSpaces($text, 0, undef, 0, "#stay", undef)) 0 0 0
176 0 return 1
177 }
178 # type => 'DetectIdentifier'
179 0 ▶ if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectIdentifier($text, 0, undef, 0, "#stay", undef)) 0 0 0
180 0 return 1
181 }
182 # String => ']]>'
183 # attribute => 'CDATA'
184 # context => '#pop'
185 # endRegion => 'cdata'
186 # type => 'StringDetect'
187 0 ▶ if ($self->testStringDetect($text, ']]>', 0, 0, 0, undef, 0, '#pop', 'CDATA')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testStringDetect($text, "]]>", 0, 0, 0, undef, 0, "#pop", "CDATA")) 0 0 0
188 0 return 1
189 }
190 # String => ']]&gt;'
191 # attribute => 'EntityRef'
192 # context => '#stay'
193 # type => 'StringDetect'
194 0 ▶ if ($self->testStringDetect($text, ']]&gt;', 0, 0, 0, undef, 0, '#stay', 'EntityRef')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testStringDetect($text, "]]&gt;", 0, 0, 0, undef, 0, "#stay", "EntityRef")) 0 0 0
195 0 return 1
196 }
197 0 return 0;
198 };
199  
200 sub parseCSS {
201 0 ▶ my ($self, $text) = @_;
Subroutine parseCSS: not called CC=6 SCAR=37.4
Pod undocumented
202 # context => 'FindPHP'
203 # type => 'IncludeRules'
204 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
205 0 return 1
206 }
207 # attribute => 'Element'
208 # char => '/'
209 # char1 => '>'
210 # context => '#pop'
211 # endRegion => 'style'
212 # type => 'Detect2Chars'
213 0 ▶ if ($self->testDetect2Chars($text, '/', '>', 0, 0, 0, undef, 0, '#pop', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetect2Chars($text, "/", ">", 0, 0, 0, undef, 0, "#pop", "Element")) 0 0 0
214 0 return 1
215 }
216 # attribute => 'Element'
217 # char => '>'
218 # context => 'CSS content'
219 # type => 'DetectChar'
220 0 ▶ if ($self->testDetectChar($text, '>', 0, 0, 0, undef, 0, 'CSS content', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, ">", 0, 0, 0, undef, 0, "CSS content", "Element")) 0 0 0
221 0 return 1
222 }
223 # context => 'FindAttributes'
224 # type => 'IncludeRules'
225 0 ▶ if ($self->includeRules('FindAttributes', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindAttributes", $text)) 0 0 0
226 0 return 1
227 }
228 # String => '\S'
229 # attribute => 'Error'
230 # context => '#stay'
231 # type => 'RegExpr'
232 0 ▶ if ($self->testRegExpr($text, '\\S', 0, 0, 0, undef, 0, '#stay', 'Error')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "\\S", 0, 0, 0, undef, 0, "#stay", "Error")) 0 0 0
233 0 return 1
234 }
235 0 return 0;
236 };
237  
238 sub parseCSScontent {
239 0 ▶ my ($self, $text) = @_;
Subroutine parseCSScontent: not called CC=4 SCAR=30.0
Pod undocumented
240 # context => 'FindPHP'
241 # type => 'IncludeRules'
242 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
243 0 return 1
244 }
245 # String => '</style\b'
246 # attribute => 'Element'
247 # context => 'El Close 2'
248 # endRegion => 'style'
249 # insensitive => 'TRUE'
250 # type => 'RegExpr'
251 0 ▶ if ($self->testRegExpr($text, '</style\\b', 1, 0, 0, undef, 0, 'El Close 2', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "</style\\b", 1, 0, 0, undef, 0, "El Close 2", "Element")) 0 0 0
252 0 return 1
253 }
254 # context => '##CSS/PHP'
255 # includeAttrib => 'true'
256 # type => 'IncludeRules'
257 0 ▶ if ($self->includePlugin('CSS/PHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includePlugin("CSS/PHP", $text)) 0 0 0
258 0 return 1
259 }
260 0 return 0;
261 };
262  
263 sub parseComment {
264 0 ▶ my ($self, $text) = @_;
Subroutine parseComment: not called CC=7 SCAR=40.3
Pod undocumented
265 # context => 'FindPHP'
266 # type => 'IncludeRules'
267 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
268 0 return 1
269 }
270 # type => 'DetectSpaces'
271 0 ▶ if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectSpaces($text, 0, undef, 0, "#stay", undef)) 0 0 0
272 0 return 1
273 }
274 # context => '##Alerts'
275 # type => 'IncludeRules'
276 0 ▶ if ($self->includePlugin('Alerts', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includePlugin("Alerts", $text)) 0 0 0
277 0 return 1
278 }
279 # type => 'DetectIdentifier'
280 0 ▶ if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectIdentifier($text, 0, undef, 0, "#stay", undef)) 0 0 0
281 0 return 1
282 }
283 # String => '-->'
284 # attribute => 'Comment'
285 # context => '#pop'
286 # endRegion => 'comment'
287 # type => 'StringDetect'
288 0 ▶ if ($self->testStringDetect($text, '-->', 0, 0, 0, undef, 0, '#pop', 'Comment')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testStringDetect($text, "-->", 0, 0, 0, undef, 0, "#pop", "Comment")) 0 0 0
289 0 return 1
290 }
291 # String => '-(-(?!->))+'
292 # attribute => 'Error'
293 # context => '#stay'
294 # type => 'RegExpr'
295 0 ▶ if ($self->testRegExpr($text, '-(-(?!->))+', 0, 0, 0, undef, 0, '#stay', 'Error')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "-(-(?!->))+", 0, 0, 0, undef, 0, "#stay", "Error")) 0 0 0
296 0 return 1
297 }
298 0 return 0;
299 };
300  
301 sub parseDoctype {
302 0 ▶ my ($self, $text) = @_;
Subroutine parseDoctype: not called CC=4 SCAR=30.0
Pod undocumented
303 # context => 'FindPHP'
304 # type => 'IncludeRules'
305 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
306 0 return 1
307 }
308 # attribute => 'Doctype'
309 # char => '>'
310 # context => '#pop'
311 # endRegion => 'doctype'
312 # type => 'DetectChar'
313 0 ▶ if ($self->testDetectChar($text, '>', 0, 0, 0, undef, 0, '#pop', 'Doctype')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, ">", 0, 0, 0, undef, 0, "#pop", "Doctype")) 0 0 0
314 0 return 1
315 }
316 # attribute => 'Doctype'
317 # beginRegion => 'int_subset'
318 # char => '['
319 # context => 'Doctype Internal Subset'
320 # type => 'DetectChar'
321 0 ▶ if ($self->testDetectChar($text, '[', 0, 0, 0, undef, 0, 'Doctype Internal Subset', 'Doctype')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, "[", 0, 0, 0, undef, 0, "Doctype Internal Subset", "Doctype")) 0 0 0
322 0 return 1
323 }
324 0 return 0;
325 };
326  
327 sub parseDoctypeInternalSubset {
328 0 ▶ my ($self, $text) = @_;
Subroutine parseDoctypeInternalSubset: not called CC=7 SCAR=40.3
Pod undocumented
329 # context => 'FindPHP'
330 # type => 'IncludeRules'
331 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
332 0 return 1
333 }
334 # attribute => 'Doctype'
335 # char => ']'
336 # context => '#pop'
337 # endRegion => 'int_subset'
338 # type => 'DetectChar'
339 0 ▶ if ($self->testDetectChar($text, ']', 0, 0, 0, undef, 0, '#pop', 'Doctype')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, "]", 0, 0, 0, undef, 0, "#pop", "Doctype")) 0 0 0
340 0 return 1
341 }
342 # context => 'FindDTDRules'
343 # type => 'IncludeRules'
344 0 ▶ if ($self->includeRules('FindDTDRules', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindDTDRules", $text)) 0 0 0
345 0 return 1
346 }
347 # String => '<!--'
348 # attribute => 'Comment'
349 # beginRegion => 'comment'
350 # context => 'Comment'
351 # type => 'StringDetect'
352 0 ▶ if ($self->testStringDetect($text, '<!--', 0, 0, 0, undef, 0, 'Comment', 'Comment')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testStringDetect($text, "<!--", 0, 0, 0, undef, 0, "Comment", "Comment")) 0 0 0
353 0 return 1
354 }
355 # String => '<\?[\w:-]*'
356 # attribute => 'Processing Instruction'
357 # beginRegion => 'pi'
358 # context => 'PI'
359 # type => 'RegExpr'
360 0 ▶ if ($self->testRegExpr($text, '<\\?[\\w:-]*', 0, 0, 0, undef, 0, 'PI', 'Processing Instruction')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "<\\?[\\w:-]*", 0, 0, 0, undef, 0, "PI", "Processing Instruction")) 0 0 0
361 0 return 1
362 }
363 # context => 'FindPEntityRefs'
364 # type => 'IncludeRules'
365 0 ▶ if ($self->includeRules('FindPEntityRefs', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPEntityRefs", $text)) 0 0 0
366 0 return 1
367 }
368 0 return 0;
369 };
370  
371 sub parseDoctypeMarkupdecl {
372 0 ▶ my ($self, $text) = @_;
Subroutine parseDoctypeMarkupdecl: not called CC=5 SCAR=34.0
Pod undocumented
373 # context => 'FindPHP'
374 # type => 'IncludeRules'
375 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
376 0 return 1
377 }
378 # attribute => 'Doctype'
379 # char => '>'
380 # context => '#pop'
381 # type => 'DetectChar'
382 0 ▶ if ($self->testDetectChar($text, '>', 0, 0, 0, undef, 0, '#pop', 'Doctype')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, ">", 0, 0, 0, undef, 0, "#pop", "Doctype")) 0 0 0
383 0 return 1
384 }
385 # attribute => 'Value'
386 # char => '"'
387 # context => 'Doctype Markupdecl DQ'
388 # type => 'DetectChar'
389 0 ▶ if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'Doctype Markupdecl DQ', 'Value')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, "\"", 0, 0, 0, undef, 0, "Doctype Markupdecl DQ", "Value")) 0 0 0
390 0 return 1
391 }
392 # attribute => 'Value'
393 # char => '''
394 # context => 'Doctype Markupdecl SQ'
395 # type => 'DetectChar'
396 0 ▶ if ($self->testDetectChar($text, '\'', 0, 0, 0, undef, 0, 'Doctype Markupdecl SQ', 'Value')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, "'", 0, 0, 0, undef, 0, "Doctype Markupdecl SQ", "Value")) 0 0 0
397 0 return 1
398 }
399 0 return 0;
400 };
401  
402 sub parseDoctypeMarkupdeclDQ {
403 0 ▶ my ($self, $text) = @_;
Subroutine parseDoctypeMarkupdeclDQ: not called CC=4 SCAR=30.0
Pod undocumented
404 # context => 'FindPHP'
405 # type => 'IncludeRules'
406 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
407 0 return 1
408 }
409 # attribute => 'Value'
410 # char => '"'
411 # context => '#pop'
412 # type => 'DetectChar'
413 0 ▶ if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'Value')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, "\"", 0, 0, 0, undef, 0, "#pop", "Value")) 0 0 0
414 0 return 1
415 }
416 # context => 'FindPEntityRefs'
417 # type => 'IncludeRules'
418 0 ▶ if ($self->includeRules('FindPEntityRefs', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPEntityRefs", $text)) 0 0 0
419 0 return 1
420 }
421 0 return 0;
422 };
423  
424 sub parseDoctypeMarkupdeclSQ {
425 0 ▶ my ($self, $text) = @_;
Subroutine parseDoctypeMarkupdeclSQ: not called CC=4 SCAR=30.0
Pod undocumented
426 # context => 'FindPHP'
427 # type => 'IncludeRules'
428 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
429 0 return 1
430 }
431 # attribute => 'Value'
432 # char => '''
433 # context => '#pop'
434 # type => 'DetectChar'
435 0 ▶ if ($self->testDetectChar($text, '\'', 0, 0, 0, undef, 0, '#pop', 'Value')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, "'", 0, 0, 0, undef, 0, "#pop", "Value")) 0 0 0
436 0 return 1
437 }
438 # context => 'FindPEntityRefs'
439 # type => 'IncludeRules'
440 0 ▶ if ($self->includeRules('FindPEntityRefs', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPEntityRefs", $text)) 0 0 0
441 0 return 1
442 }
443 0 return 0;
444 };
445  
446 sub parseElClose {
447 2 ▶ my ($self, $text) = @_;
Subroutine parseElClose: called CC=4 SCAR=19.4
Pod undocumented
448 # context => 'FindPHP'
449 # type => 'IncludeRules'
450 2 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 2 2
451 0 return 1
452 }
453 # attribute => 'Element'
454 # char => '>'
455 # context => '#pop'
456 # type => 'DetectChar'
457 2 ▶ if ($self->testDetectChar($text, '>', 0, 0, 0, undef, 0, '#pop', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, ">", 0, 0, 0, undef, 0, "#pop", "Element")) 2 0 2
458 2 return 1
459 }
460 # String => '\S'
461 # attribute => 'Error'
462 # context => '#stay'
463 # type => 'RegExpr'
464 0 ▶ if ($self->testRegExpr($text, '\\S', 0, 0, 0, undef, 0, '#stay', 'Error')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "\\S", 0, 0, 0, undef, 0, "#stay", "Error")) 0 0 0
465 0 return 1
466 }
467 0 return 0;
468 };
469  
470 sub parseElClose2 {
471 0 ▶ my ($self, $text) = @_;
Subroutine parseElClose2: not called CC=4 SCAR=30.0
Pod undocumented
472 # context => 'FindPHP'
473 # type => 'IncludeRules'
474 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
475 0 return 1
476 }
477 # attribute => 'Element'
478 # char => '>'
479 # context => '#pop#pop#pop'
480 # type => 'DetectChar'
481 0 ▶ if ($self->testDetectChar($text, '>', 0, 0, 0, undef, 0, '#pop#pop#pop', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, ">", 0, 0, 0, undef, 0, "#pop#pop#pop", "Element")) 0 0 0
482 0 return 1
483 }
484 # String => '\S'
485 # attribute => 'Error'
486 # context => '#stay'
487 # type => 'RegExpr'
488 0 ▶ if ($self->testRegExpr($text, '\\S', 0, 0, 0, undef, 0, '#stay', 'Error')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "\\S", 0, 0, 0, undef, 0, "#stay", "Error")) 0 0 0
489 0 return 1
490 }
491 0 return 0;
492 };
493  
494 sub parseElClose3 {
495 0 ▶ my ($self, $text) = @_;
Subroutine parseElClose3: not called CC=4 SCAR=30.0
Pod undocumented
496 # context => 'FindPHP'
497 # type => 'IncludeRules'
498 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
499 0 return 1
500 }
501 # attribute => 'Element'
502 # char => '>'
503 # context => '#pop#pop#pop#pop'
504 # type => 'DetectChar'
505 0 ▶ if ($self->testDetectChar($text, '>', 0, 0, 0, undef, 0, '#pop#pop#pop#pop', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, ">", 0, 0, 0, undef, 0, "#pop#pop#pop#pop", "Element")) 0 0 0
506 0 return 1
507 }
508 # String => '\S'
509 # attribute => 'Error'
510 # context => '#stay'
511 # type => 'RegExpr'
512 0 ▶ if ($self->testRegExpr($text, '\\S', 0, 0, 0, undef, 0, '#stay', 'Error')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "\\S", 0, 0, 0, undef, 0, "#stay", "Error")) 0 0 0
513 0 return 1
514 }
515 0 return 0;
516 };
517  
518 sub parseElOpen {
519 2 ▶ my ($self, $text) = @_;
Subroutine parseElOpen: called CC=6 SCAR=27.3
Pod undocumented
520 # context => 'FindPHP'
521 # type => 'IncludeRules'
522 2 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 2 2
523 0 return 1
524 }
525 # attribute => 'Element'
526 # char => '/'
527 # char1 => '>'
528 # context => '#pop'
529 # type => 'Detect2Chars'
530 2 ▶ if ($self->testDetect2Chars($text, '/', '>', 0, 0, 0, undef, 0, '#pop', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetect2Chars($text, "/", ">", 0, 0, 0, undef, 0, "#pop", "Element")) 0 2 2
531 0 return 1
532 }
533 # attribute => 'Element'
534 # char => '>'
535 # context => '#pop'
536 # type => 'DetectChar'
537 2 ▶ if ($self->testDetectChar($text, '>', 0, 0, 0, undef, 0, '#pop', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, ">", 0, 0, 0, undef, 0, "#pop", "Element")) 2 0 2
538 2 return 1
539 }
540 # context => 'FindAttributes'
541 # type => 'IncludeRules'
542 0 ▶ if ($self->includeRules('FindAttributes', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindAttributes", $text)) 0 0 0
543 0 return 1
544 }
545 # String => '\S'
546 # attribute => 'Error'
547 # context => '#stay'
548 # type => 'RegExpr'
549 0 ▶ if ($self->testRegExpr($text, '\\S', 0, 0, 0, undef, 0, '#stay', 'Error')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "\\S", 0, 0, 0, undef, 0, "#stay", "Error")) 0 0 0
550 0 return 1
551 }
552 0 return 0;
553 };
554  
555 sub parseFindAttributes {
556 0 ▶ my ($self, $text) = @_;
Subroutine parseFindAttributes: not called CC=5 SCAR=34.0
Pod undocumented
557 # context => 'FindPHP'
558 # type => 'IncludeRules'
559 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
560 0 return 1
561 }
562 # String => '[A-Za-z_:][\w.:_-]*'
563 # attribute => 'Attribute'
564 # column => '0'
565 # context => '#stay'
566 # type => 'RegExpr'
567 0 ▶ if ($self->testRegExpr($text, '[A-Za-z_:][\\w.:_-]*', 0, 0, 0, 0, 0, '#stay', 'Attribute')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "[A-Za-z_:][\\w.:_-]*", 0, 0, 0, 0, 0, "#stay", "Attribute")) 0 0 0
568 0 return 1
569 }
570 # String => '\s+[A-Za-z_:][\w.:_-]*'
571 # attribute => 'Attribute'
572 # context => '#stay'
573 # type => 'RegExpr'
574 0 ▶ if ($self->testRegExpr($text, '\\s+[A-Za-z_:][\\w.:_-]*', 0, 0, 0, undef, 0, '#stay', 'Attribute')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "\\s+[A-Za-z_:][\\w.:_-]*", 0, 0, 0, undef, 0, "#stay", "Attribute")) 0 0 0
575 0 return 1
576 }
577 # attribute => 'Attribute'
578 # char => '='
579 # context => 'Value'
580 # type => 'DetectChar'
581 0 ▶ if ($self->testDetectChar($text, '=', 0, 0, 0, undef, 0, 'Value', 'Attribute')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, "=", 0, 0, 0, undef, 0, "Value", "Attribute")) 0 0 0
582 0 return 1
583 }
584 0 return 0;
585 };
586  
587 sub parseFindDTDRules {
588 2 ▶ my ($self, $text) = @_;
Subroutine parseFindDTDRules: called CC=3 SCAR=12.7
Pod undocumented
589 # context => 'FindPHP'
590 # type => 'IncludeRules'
591 2 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 2 2
592 0 return 1
593 }
594 # String => '<!(ELEMENT|ENTITY|ATTLIST|NOTATION)\b'
595 # attribute => 'Doctype'
596 # context => 'Doctype Markupdecl'
597 # type => 'RegExpr'
598 2 ▶ if ($self->testRegExpr($text, '<!(ELEMENT|ENTITY|ATTLIST|NOTATION)\\b', 0, 0, 0, undef, 0, 'Doctype Markupdecl', 'Doctype')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "<!(ELEMENT|ENTITY|ATTLIST|NOTATION)\\b", 0, 0, 0, undef, 0, "Doctype Markupdecl", "Doctype")) 0 2 2
599 0 return 1
600 }
601 2 return 0;
602 };
603  
604 sub parseFindEntityRefs {
605 2 ▶ my ($self, $text) = @_;
Subroutine parseFindEntityRefs: called CC=4 SCAR=16.6
Pod undocumented
606 # context => 'FindPHP'
607 # type => 'IncludeRules'
608 2 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 2 2
609 0 return 1
610 }
611 # String => '&(#[0-9]+|#[xX][0-9A-Fa-f]+|[A-Za-z_:][\w.:_-]*);'
612 # attribute => 'EntityRef'
613 # context => '#stay'
614 # type => 'RegExpr'
615 2 ▶ if ($self->testRegExpr($text, '&(#[0-9]+|#[xX][0-9A-Fa-f]+|[A-Za-z_:][\\w.:_-]*);', 0, 0, 0, undef, 0, '#stay', 'EntityRef')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "&(#[0-9]+|#[xX][0-9A-Fa-f]+|[A-Za-z_:][\\w.:_-]*);", 0, 0, 0, undef, 0, "#stay", "EntityRef")) 0 2 2
616 0 return 1
617 }
618 # String => '&<'
619 # attribute => 'Error'
620 # context => '#stay'
621 # type => 'AnyChar'
622 2 ▶ if ($self->testAnyChar($text, '&<', 0, 0, undef, 0, '#stay', 'Error')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testAnyChar($text, "&<", 0, 0, undef, 0, "#stay", "Error")) 0 2 2
623 0 return 1
624 }
625 2 return 0;
626 };
627  
628 sub parseFindHTML {
629 6 ▶ my ($self, $text) = @_;
Subroutine parseFindHTML: called CC=20 SCAR=39.7
Pod undocumented
630 # context => 'FindPHP'
631 # type => 'IncludeRules'
632 6 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 6 6
633 0 return 1
634 }
635 # type => 'DetectSpaces'
636 6 ▶ if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectSpaces($text, 0, undef, 0, "#stay", undef)) 0 6 6
637 0 return 1
638 }
639 # type => 'DetectIdentifier'
640 6 ▶ if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectIdentifier($text, 0, undef, 0, "#stay", undef)) 0 6 6
641 0 return 1
642 }
643 # String => '<!--'
644 # attribute => 'Comment'
645 # beginRegion => 'comment'
646 # context => 'Comment'
647 # type => 'StringDetect'
648 6 ▶ if ($self->testStringDetect($text, '<!--', 0, 0, 0, undef, 0, 'Comment', 'Comment')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testStringDetect($text, "<!--", 0, 0, 0, undef, 0, "Comment", "Comment")) 0 6 6
649 0 return 1
650 }
651 # String => '<![CDATA['
652 # attribute => 'CDATA'
653 # beginRegion => 'cdata'
654 # context => 'CDATA'
655 # type => 'StringDetect'
656 6 ▶ if ($self->testStringDetect($text, '<![CDATA[', 0, 0, 0, undef, 0, 'CDATA', 'CDATA')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testStringDetect($text, "<![CDATA[", 0, 0, 0, undef, 0, "CDATA", "CDATA")) 0 6 6
657 0 return 1
658 }
659 # String => '<!DOCTYPE\s+'
660 # attribute => 'Doctype'
661 # beginRegion => 'doctype'
662 # context => 'Doctype'
663 # type => 'RegExpr'
664 6 ▶ if ($self->testRegExpr($text, '<!DOCTYPE\\s+', 0, 0, 0, undef, 0, 'Doctype', 'Doctype')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "<!DOCTYPE\\s+", 0, 0, 0, undef, 0, "Doctype", "Doctype")) 0 6 6
665 0 return 1
666 }
667 # String => '<\?[\w:-]*'
668 # attribute => 'Processing Instruction'
669 # beginRegion => 'pi'
670 # context => 'PI'
671 # type => 'RegExpr'
672 6 ▶ if ($self->testRegExpr($text, '<\\?[\\w:-]*', 0, 0, 0, undef, 0, 'PI', 'Processing Instruction')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "<\\?[\\w:-]*", 0, 0, 0, undef, 0, "PI", "Processing Instruction")) 0 6 6
673 0 return 1
674 }
675 # String => '<style\b'
676 # attribute => 'Element'
677 # beginRegion => 'style'
678 # context => 'CSS'
679 # insensitive => 'TRUE'
680 # type => 'RegExpr'
681 6 ▶ if ($self->testRegExpr($text, '<style\\b', 1, 0, 0, undef, 0, 'CSS', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "<style\\b", 1, 0, 0, undef, 0, "CSS", "Element")) 0 6 6
682 0 return 1
683 }
684 # String => '<script\b'
685 # attribute => 'Element'
686 # beginRegion => 'script'
687 # context => 'JS'
688 # insensitive => 'TRUE'
689 # type => 'RegExpr'
690 6 ▶ if ($self->testRegExpr($text, '<script\\b', 1, 0, 0, undef, 0, 'JS', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "<script\\b", 1, 0, 0, undef, 0, "JS", "Element")) 0 6 6
691 0 return 1
692 }
693 # String => '<pre\b'
694 # attribute => 'Element'
695 # beginRegion => 'pre'
696 # context => 'El Open'
697 # insensitive => 'TRUE'
698 # type => 'RegExpr'
699 6 ▶ if ($self->testRegExpr($text, '<pre\\b', 1, 0, 0, undef, 0, 'El Open', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "<pre\\b", 1, 0, 0, undef, 0, "El Open", "Element")) 0 6 6
700 0 return 1
701 }
702 # String => '<div\b'
703 # attribute => 'Element'
704 # beginRegion => 'div'
705 # context => 'El Open'
706 # insensitive => 'TRUE'
707 # type => 'RegExpr'
708 6 ▶ if ($self->testRegExpr($text, '<div\\b', 1, 0, 0, undef, 0, 'El Open', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "<div\\b", 1, 0, 0, undef, 0, "El Open", "Element")) 0 6 6
709 0 return 1
710 }
711 # String => '<table\b'
712 # attribute => 'Element'
713 # beginRegion => 'table'
714 # context => 'El Open'
715 # insensitive => 'TRUE'
716 # type => 'RegExpr'
717 6 ▶ if ($self->testRegExpr($text, '<table\\b', 1, 0, 0, undef, 0, 'El Open', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "<table\\b", 1, 0, 0, undef, 0, "El Open", "Element")) 0 6 6
718 0 return 1
719 }
720 # String => '<[A-Za-z_:][\w.:_-]*'
721 # attribute => 'Element'
722 # context => 'El Open'
723 # type => 'RegExpr'
724 6 ▶ if ($self->testRegExpr($text, '<[A-Za-z_:][\\w.:_-]*', 0, 0, 0, undef, 0, 'El Open', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "<[A-Za-z_:][\\w.:_-]*", 0, 0, 0, undef, 0, "El Open", "Element")) 2 4 6
725 2 return 1
726 }
727 # String => '</pre\b'
728 # attribute => 'Element'
729 # context => 'El Close'
730 # endRegion => 'pre'
731 # insensitive => 'TRUE'
732 # type => 'RegExpr'
733 4 ▶ if ($self->testRegExpr($text, '</pre\\b', 1, 0, 0, undef, 0, 'El Close', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "</pre\\b", 1, 0, 0, undef, 0, "El Close", "Element")) 0 4 4
734 0 return 1
735 }
736 # String => '</div\b'
737 # attribute => 'Element'
738 # context => 'El Close'
739 # endRegion => 'div'
740 # insensitive => 'TRUE'
741 # type => 'RegExpr'
742 4 ▶ if ($self->testRegExpr($text, '</div\\b', 1, 0, 0, undef, 0, 'El Close', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "</div\\b", 1, 0, 0, undef, 0, "El Close", "Element")) 0 4 4
743 0 return 1
744 }
745 # String => '</table\b'
746 # attribute => 'Element'
747 # context => 'El Close'
748 # endRegion => 'table'
749 # insensitive => 'TRUE'
750 # type => 'RegExpr'
751 4 ▶ if ($self->testRegExpr($text, '</table\\b', 1, 0, 0, undef, 0, 'El Close', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "</table\\b", 1, 0, 0, undef, 0, "El Close", "Element")) 0 4 4
752 0 return 1
753 }
754 # String => '</[A-Za-z_:][\w.:_-]*'
755 # attribute => 'Element'
756 # context => 'El Close'
757 # type => 'RegExpr'
758 4 ▶ if ($self->testRegExpr($text, '</[A-Za-z_:][\\w.:_-]*', 0, 0, 0, undef, 0, 'El Close', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "</[A-Za-z_:][\\w.:_-]*", 0, 0, 0, undef, 0, "El Close", "Element")) 2 2 4
759 2 return 1
760 }
761 # context => 'FindDTDRules'
762 # type => 'IncludeRules'
763 2 ▶ if ($self->includeRules('FindDTDRules', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindDTDRules", $text)) 0 2 2
764 0 return 1
765 }
766 # context => 'FindEntityRefs'
767 # type => 'IncludeRules'
768 2 ▶ if ($self->includeRules('FindEntityRefs', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindEntityRefs", $text)) 0 2 2
769 0 return 1
770 }
771 2 return 0;
772 };
773  
774 sub parseFindPEntityRefs {
775 0 ▶ my ($self, $text) = @_;
Subroutine parseFindPEntityRefs: not called CC=5 SCAR=34.0
Pod undocumented
776 # context => 'FindPHP'
777 # type => 'IncludeRules'
778 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
779 0 return 1
780 }
781 # String => '&(#[0-9]+|#[xX][0-9A-Fa-f]+|[A-Za-z_:][\w.:_-]*);'
782 # attribute => 'EntityRef'
783 # context => '#stay'
784 # type => 'RegExpr'
785 0 ▶ if ($self->testRegExpr($text, '&(#[0-9]+|#[xX][0-9A-Fa-f]+|[A-Za-z_:][\\w.:_-]*);', 0, 0, 0, undef, 0, '#stay', 'EntityRef')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "&(#[0-9]+|#[xX][0-9A-Fa-f]+|[A-Za-z_:][\\w.:_-]*);", 0, 0, 0, undef, 0, "#stay", "EntityRef")) 0 0 0
786 0 return 1
787 }
788 # String => '%[A-Za-z_:][\w.:_-]*;'
789 # attribute => 'PEntityRef'
790 # context => '#stay'
791 # type => 'RegExpr'
792 0 ▶ if ($self->testRegExpr($text, '%[A-Za-z_:][\\w.:_-]*;', 0, 0, 0, undef, 0, '#stay', 'PEntityRef')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "%[A-Za-z_:][\\w.:_-]*;", 0, 0, 0, undef, 0, "#stay", "PEntityRef")) 0 0 0
793 0 return 1
794 }
795 # String => '&%'
796 # attribute => 'Error'
797 # context => '#stay'
798 # type => 'AnyChar'
799 0 ▶ if ($self->testAnyChar($text, '&%', 0, 0, undef, 0, '#stay', 'Error')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testAnyChar($text, "&%", 0, 0, undef, 0, "#stay", "Error")) 0 0 0
800 0 return 1
801 }
802 0 return 0;
803 };
804  
805 sub parseFindPHP {
806 26 ▶ my ($self, $text) = @_;
Subroutine parseFindPHP: called CC=2 SCAR=6.9
Pod undocumented
807 # String => '<\?(?:=|php)?'
808 # context => '##PHP/PHP'
809 # lookAhead => 'true'
810 # type => 'RegExpr'
811 26 ▶ if ($self->testRegExpr($text, '<\\?(?:=|php)?', 0, 0, 1, undef, 0, '##PHP/PHP', undef)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "<\\?(?:=|php)?", 0, 0, 1, undef, 0, "##PHP/PHP", undef)) 6 20 26
812 6 return 1
813 }
814 20 return 0;
815 };
816  
817 sub parseJS {
818 0 ▶ my ($self, $text) = @_;
Subroutine parseJS: not called CC=6 SCAR=37.4
Pod undocumented
819 # context => 'FindPHP'
820 # type => 'IncludeRules'
821 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
822 0 return 1
823 }
824 # attribute => 'Element'
825 # char => '/'
826 # char1 => '>'
827 # context => '#pop'
828 # endRegion => 'script'
829 # type => 'Detect2Chars'
830 0 ▶ if ($self->testDetect2Chars($text, '/', '>', 0, 0, 0, undef, 0, '#pop', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetect2Chars($text, "/", ">", 0, 0, 0, undef, 0, "#pop", "Element")) 0 0 0
831 0 return 1
832 }
833 # attribute => 'Element'
834 # char => '>'
835 # context => 'JS content'
836 # type => 'DetectChar'
837 0 ▶ if ($self->testDetectChar($text, '>', 0, 0, 0, undef, 0, 'JS content', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, ">", 0, 0, 0, undef, 0, "JS content", "Element")) 0 0 0
838 0 return 1
839 }
840 # context => 'FindAttributes'
841 # type => 'IncludeRules'
842 0 ▶ if ($self->includeRules('FindAttributes', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindAttributes", $text)) 0 0 0
843 0 return 1
844 }
845 # String => '\S'
846 # attribute => 'Error'
847 # context => '#stay'
848 # type => 'RegExpr'
849 0 ▶ if ($self->testRegExpr($text, '\\S', 0, 0, 0, undef, 0, '#stay', 'Error')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "\\S", 0, 0, 0, undef, 0, "#stay", "Error")) 0 0 0
850 0 return 1
851 }
852 0 return 0;
853 };
854  
855 sub parseJScommentclose {
856 0 ▶ my ($self, $text) = @_;
Subroutine parseJScommentclose: not called CC=4 SCAR=30.0
Pod undocumented
857 # context => 'FindPHP'
858 # type => 'IncludeRules'
859 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
860 0 return 1
861 }
862 # String => '</script\b'
863 # attribute => 'Element'
864 # context => 'El Close 3'
865 # endRegion => 'script'
866 # insensitive => 'TRUE'
867 # type => 'RegExpr'
868 0 ▶ if ($self->testRegExpr($text, '</script\\b', 1, 0, 0, undef, 0, 'El Close 3', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "</script\\b", 1, 0, 0, undef, 0, "El Close 3", "Element")) 0 0 0
869 0 return 1
870 }
871 # context => '##Alerts'
872 # type => 'IncludeRules'
873 0 ▶ if ($self->includePlugin('Alerts', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includePlugin("Alerts", $text)) 0 0 0
874 0 return 1
875 }
876 0 return 0;
877 };
878  
879 sub parseJScontent {
880 0 ▶ my ($self, $text) = @_;
Subroutine parseJScontent: not called CC=5 SCAR=34.0
Pod undocumented
881 # context => 'FindPHP'
882 # type => 'IncludeRules'
883 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
884 0 return 1
885 }
886 # String => '</script\b'
887 # attribute => 'Element'
888 # context => 'El Close 2'
889 # endRegion => 'script'
890 # insensitive => 'TRUE'
891 # type => 'RegExpr'
892 0 ▶ if ($self->testRegExpr($text, '</script\\b', 1, 0, 0, undef, 0, 'El Close 2', 'Element')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "</script\\b", 1, 0, 0, undef, 0, "El Close 2", "Element")) 0 0 0
893 0 return 1
894 }
895 # String => '//(?=.*</script\b)'
896 # attribute => 'Comment'
897 # context => 'JS comment close'
898 # insensitive => 'TRUE'
899 # type => 'RegExpr'
900 0 ▶ if ($self->testRegExpr($text, '//(?=.*</script\\b)', 1, 0, 0, undef, 0, 'JS comment close', 'Comment')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "//(?=.*</script\\b)", 1, 0, 0, undef, 0, "JS comment close", "Comment")) 0 0 0
901 0 return 1
902 }
903 # context => '##JavaScript/PHP'
904 # includeAttrib => 'true'
905 # type => 'IncludeRules'
906 0 ▶ if ($self->includePlugin('JavaScript/PHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includePlugin("JavaScript/PHP", $text)) 0 0 0
907 0 return 1
908 }
909 0 return 0;
910 };
911  
912 sub parsePI {
913 0 ▶ my ($self, $text) = @_;
Subroutine parsePI: not called CC=3 SCAR=24.8
Pod undocumented
914 # context => 'FindPHP'
915 # type => 'IncludeRules'
916 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
917 0 return 1
918 }
919 # attribute => 'Processing Instruction'
920 # char => '?'
921 # char1 => '>'
922 # context => '#pop'
923 # endRegion => 'pi'
924 # type => 'Detect2Chars'
925 0 ▶ if ($self->testDetect2Chars($text, '?', '>', 0, 0, 0, undef, 0, '#pop', 'Processing Instruction')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetect2Chars($text, "?", ">", 0, 0, 0, undef, 0, "#pop", "Processing Instruction")) 0 0 0
926 0 return 1
927 }
928 0 return 0;
929 };
930  
931 sub parseStart {
932 12 ▶ my ($self, $text) = @_;
Subroutine parseStart: called CC=3 SCAR=11.0
Pod undocumented
933 # context => 'FindPHP'
934 # type => 'IncludeRules'
935 12 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 6 6 12
936 6 return 1
937 }
938 # context => 'FindHTML'
939 # type => 'IncludeRules'
940 6 ▶ if ($self->includeRules('FindHTML', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindHTML", $text)) 4 2 6
941 4 return 1
942 }
943 2 return 0;
944 };
945  
946 sub parseValue {
947 0 ▶ my ($self, $text) = @_;
Subroutine parseValue: not called CC=5 SCAR=34.0
Pod undocumented
948 # context => 'FindPHP'
949 # type => 'IncludeRules'
950 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
951 0 return 1
952 }
953 # attribute => 'Value'
954 # char => '"'
955 # context => 'Value DQ'
956 # type => 'DetectChar'
957 0 ▶ if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'Value DQ', 'Value')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, "\"", 0, 0, 0, undef, 0, "Value DQ", "Value")) 0 0 0
958 0 return 1
959 }
960 # attribute => 'Value'
961 # char => '''
962 # context => 'Value SQ'
963 # type => 'DetectChar'
964 0 ▶ if ($self->testDetectChar($text, '\'', 0, 0, 0, undef, 0, 'Value SQ', 'Value')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, "'", 0, 0, 0, undef, 0, "Value SQ", "Value")) 0 0 0
965 0 return 1
966 }
967 # type => 'DetectSpaces'
968 0 ▶ if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectSpaces($text, 0, undef, 0, "#stay", undef)) 0 0 0
969 0 return 1
970 }
971 0 return 0;
972 };
973  
974 sub parseValueDQ {
975 0 ▶ my ($self, $text) = @_;
Subroutine parseValueDQ: not called CC=4 SCAR=30.0
Pod undocumented
976 # context => 'FindPHP'
977 # type => 'IncludeRules'
978 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
979 0 return 1
980 }
981 # attribute => 'Value'
982 # char => '"'
983 # context => '#pop#pop'
984 # type => 'DetectChar'
985 0 ▶ if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop#pop', 'Value')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, "\"", 0, 0, 0, undef, 0, "#pop#pop", "Value")) 0 0 0
986 0 return 1
987 }
988 # context => 'FindEntityRefs'
989 # type => 'IncludeRules'
990 0 ▶ if ($self->includeRules('FindEntityRefs', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindEntityRefs", $text)) 0 0 0
991 0 return 1
992 }
993 0 return 0;
994 };
995  
996 sub parseValueNQ {
997 0 ▶ my ($self, $text) = @_;
Subroutine parseValueNQ: not called CC=5 SCAR=34.0
Pod undocumented
998 # context => 'FindPHP'
999 # type => 'IncludeRules'
1000 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
1001 0 return 1
1002 }
1003 # context => 'FindEntityRefs'
1004 # type => 'IncludeRules'
1005 0 ▶ if ($self->includeRules('FindEntityRefs', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindEntityRefs", $text)) 0 0 0
1006 0 return 1
1007 }
1008 # String => '/(?!>)'
1009 # attribute => 'Value'
1010 # context => '#stay'
1011 # type => 'RegExpr'
1012 0 ▶ if ($self->testRegExpr($text, '/(?!>)', 0, 0, 0, undef, 0, '#stay', 'Value')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "/(?!>)", 0, 0, 0, undef, 0, "#stay", "Value")) 0 0 0
1013 0 return 1
1014 }
1015 # String => '[^/><"'\s]'
1016 # attribute => 'Value'
1017 # context => '#stay'
1018 # type => 'RegExpr'
1019 0 ▶ if ($self->testRegExpr($text, '[^/><"\'\\s]', 0, 0, 0, undef, 0, '#stay', 'Value')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testRegExpr($text, "[^/><\"'\\s]", 0, 0, 0, undef, 0, "#stay", "Value")) 0 0 0
1020 0 return 1
1021 }
1022 0 return 0;
1023 };
1024  
1025 sub parseValueSQ {
1026 0 ▶ my ($self, $text) = @_;
Subroutine parseValueSQ: not called CC=4 SCAR=30.0
Pod undocumented
1027 # context => 'FindPHP'
1028 # type => 'IncludeRules'
1029 0 ▶ if ($self->includeRules('FindPHP', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindPHP", $text)) 0 0 0
1030 0 return 1
1031 }
1032 # attribute => 'Value'
1033 # char => '''
1034 # context => '#pop#pop'
1035 # type => 'DetectChar'
1036 0 ▶ if ($self->testDetectChar($text, '\'', 0, 0, 0, undef, 0, '#pop#pop', 'Value')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->testDetectChar($text, "'", 0, 0, 0, undef, 0, "#pop#pop", "Value")) 0 0 0
1037 0 return 1
1038 }
1039 # context => 'FindEntityRefs'
1040 # type => 'IncludeRules'
1041 0 ▶ if ($self->includeRules('FindEntityRefs', $text)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->includeRules("FindEntityRefs", $text)) 0 0 0
1042 0 return 1
1043 }
1044 0 return 0;
1045 };
1046  
1047  
1048 2 1;
1049  
1050 __END__
« Kate/CSS_PHP.pm ↑ Summary Kate/Asm6502.pm »