line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package TSQL::Common::Regexp;
|
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
26575
|
use 5.010;
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
39
|
|
4
|
1
|
|
|
1
|
|
6
|
use strict;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
5
|
1
|
|
|
1
|
|
6
|
use warnings;
|
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
394
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
TSQL::Common::Regexp - Contains regexps common across TSQL::AST and TSQL::SplitStatement
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 VERSION
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Version 0.05
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=cut
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = '0.05';
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
1
|
|
sub qr_id { return q{(?:[#_\w$@][#$:_.\w]*)} ; } ;
|
21
|
0
|
|
|
0
|
1
|
|
sub qr_label { return q{(?:[#_\w$@][#$:_.\w]*[:])} ; } ;
|
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
1
|
|
sub qr_begintoken { return q{(?xi:\A \s* (?:\b begin \b) \s* \z ) } ; } ;
|
24
|
0
|
|
|
0
|
1
|
|
sub qr_endtoken { return q{(?xi:\A \s* (?:\b end \b) \s* \z ) } ; } ;
|
25
|
0
|
|
|
0
|
1
|
|
sub qr_begintrytoken { return q{(?xi:\A \s* (?:\b begin \b \s+ \b try \b ) \s* \z ) } ; } ;
|
26
|
0
|
|
|
0
|
1
|
|
sub qr_endtrytoken { return q{(?xi:\A \s* (?:\b end \b \s+ \b try \b ) \s* \z ) } ; } ;
|
27
|
0
|
|
|
0
|
1
|
|
sub qr_begincatchtoken { return q{(?xi:\A \s* (?:\b begin \b \s+ \b catch \b) \s* \z ) } ; } ;
|
28
|
0
|
|
|
0
|
1
|
|
sub qr_endcatchtoken { return q{(?xi:\A \s* (?:\b end \b \s+ \b catch \b) \s* \z ) } ; } ;
|
29
|
0
|
|
|
0
|
1
|
|
sub qr_iftoken { return q{(?xi:\A \s* (?:\b if \b) ) } ; } ;
|
30
|
0
|
|
|
0
|
1
|
|
sub qr_elsetoken { return q{(?xi:\A \s* (?:\b else \b) ) } ; } ;
|
31
|
0
|
|
|
0
|
1
|
|
sub qr_GOtoken { return q{(?xi:\A \s* (?:\b go \b) ) } ; } ;
|
32
|
0
|
|
|
0
|
1
|
|
sub qr_whiletoken { return q{(?xi:\A \s* (?:\b while \b) ) } ; } ;
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
0
|
1
|
|
sub qr_createproceduretoken { return q{(?xi:\A \s* (?: \b create \s+ proc (?:edure)? \b) ) } ; } ;
|
36
|
0
|
|
|
0
|
1
|
|
sub qr_alterproceduretoken { return q{(?xi:\A \s* (?: \b alter \s+ proc (?:edure)? \b) ) } ; } ;
|
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
0
|
1
|
|
sub qr_createtriggertoken { return q{(?xi:\A \s* (?: \b create \s+ trigger \b) ) } ; } ;
|
39
|
0
|
|
|
0
|
1
|
|
sub qr_altertriggertoken { return q{(?xi:\A \s* (?: \b alter \s+ trigger \b) ) } ; } ;
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
0
|
|
|
0
|
1
|
|
sub qr_createviewtoken { return q{(?xi:\A \s* (?: \b create \s+ view \b) ) } ; } ;
|
43
|
0
|
|
|
0
|
1
|
|
sub qr_alterviewtoken { return q{(?xi:\A \s* (?: \b alter \s+ view \b) ) } ; } ;
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
0
|
|
|
0
|
1
|
|
sub qr_createfunctiontoken { return q{(?xi:\A \s* (?: \b create \s+ function \b) ) } ; } ;
|
47
|
0
|
|
|
0
|
1
|
|
sub qr_alterfunctiontoken { return q{(?xi:\A \s* (?: \b alter \s+ function \b) ) } ; } ;
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1;
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
__DATA__
|