1
- export type kindPattern = RegExp [ ]
1
+ export type kindPattern = RegExp [ ] ;
2
2
3
- export const errorLinePattern = / [ ^ : ] + : \s * ( .+ ?) : \s * l i n e \s * ( [ 0 - 9 ] + ) \s * c o l \s * ( [ 0 - 9 ] + ) /
3
+ export const errorLinePattern = / [ ^ : ] + : \s * ( .+ ?) : \s * l i n e \s * ( [ 0 - 9 ] + ) \s * c o l \s * ( [ 0 - 9 ] + ) / ;
4
4
5
- export const commentPattern = / ^ [ \t ] * ( " | ' ) /
5
+ export const commentPattern = / ^ [ \t ] * ( " | ' ) / ;
6
6
7
- export const keywordPattern = / [ \w # & $ < > . : ] /
7
+ export const keywordPattern = / [ \w # & $ < > . : ] / ;
8
8
9
- export const builtinFunctionPattern = / ^ ( ( < S I D > | \b ( v | g | b | s | l | a ) : ) ? [ \w # & ] + ) [ \t ] * \( [ ^ ) ] * \) /
9
+ export const builtinFunctionPattern = / ^ ( ( < S I D > | \b ( v | g | b | s | l | a ) : ) ? [ \w # & ] + ) [ \t ] * \( [ ^ ) ] * \) / ;
10
10
11
- export const wordPrePattern = / ^ .* ?( ( ( < S I D > | \b ( v | g | b | s | l | a ) : ) ? [ \w # & $ . ] + ) | ( < S I D > | < S I D | < S I | < S | < | \b ( v | g | b | s | l | a ) : ) ) $ /
11
+ export const wordPrePattern = / ^ .* ?( ( ( < S I D > | \b ( v | g | b | s | l | a ) : ) ? [ \w # & $ . ] + ) | ( < S I D > | < S I D | < S I | < S | < | \b ( v | g | b | s | l | a ) : ) ) $ / ;
12
12
13
- export const wordNextPattern = / ^ ( ( S I D > | I D > | D > | > | < S I D > | \b ( v | g | b | s | l | a ) : ) ? [ \w # & $ . ] + | ( : [ \w # & $ . ] + ) ) .* ?( \r \n | \r | \n ) ? $ /
13
+ export const wordNextPattern = / ^ ( ( S I D > | I D > | D > | > | < S I D > | \b ( v | g | b | s | l | a ) : ) ? [ \w # & $ . ] + | ( : [ \w # & $ . ] + ) ) .* ?( \r \n | \r | \n ) ? $ / ;
14
14
15
- export const colorschemePattern = / \b c o l o r s c h e m e [ \t ] + \w * $ /
15
+ export const colorschemePattern = / \b c o l o r s c h e m e [ \t ] + \w * $ / ;
16
16
17
- export const mapCommandPattern = / ^ ( [ \t ] * ( \[ \t ] * ) ? ) \w * m a p [ \t ] + /
17
+ export const mapCommandPattern = / ^ ( [ \t ] * ( \[ \t ] * ) ? ) \w * m a p [ \t ] + / ;
18
18
19
- export const highlightLinkPattern = / ^ [ \t ] * ( h i | h i g h l i g h t ) [ \t ] + l i n k ( [ \t ] + [ ^ \t ] + ) * [ \t ] * $ /
19
+ export const highlightLinkPattern = / ^ [ \t ] * ( h i | h i g h l i g h t ) [ \t ] + l i n k ( [ \t ] + [ ^ \t ] + ) * [ \t ] * $ / ;
20
20
21
- export const highlightPattern = / ^ [ \t ] * ( h i | h i g h l i g h t ) ( [ \t ] + [ ^ \t ] + ) * [ \t ] * $ /
21
+ export const highlightPattern = / ^ [ \t ] * ( h i | h i g h l i g h t ) ( [ \t ] + [ ^ \t ] + ) * [ \t ] * $ / ;
22
22
23
- export const highlightValuePattern = / ^ [ \t ] * ( h i | h i g h l i g h t ) ( [ \t ] + [ ^ \t ] + ) * [ \t ] + ( [ ^ \t = ] + ) = [ ^ \t = ] * $ /
23
+ export const highlightValuePattern = / ^ [ \t ] * ( h i | h i g h l i g h t ) ( [ \t ] + [ ^ \t ] + ) * [ \t ] + ( [ ^ \t = ] + ) = [ ^ \t = ] * $ / ;
24
24
25
- export const autocmdPattern = / ^ [ \t ] * ( a u | a u t o c m d ) ! ? [ \t ] + ( [ ^ \t , ] + , ) * [ ^ \t , ] * $ /
25
+ export const autocmdPattern = / ^ [ \t ] * ( a u | a u t o c m d ) ! ? [ \t ] + ( [ ^ \t , ] + , ) * [ ^ \t , ] * $ / ;
26
26
27
27
export const builtinVariablePattern = [
28
- / \b v : \w * $ /
29
- ]
28
+ / \b v : \w * $ / ,
29
+ ] ;
30
30
31
31
export const optionPattern = [
32
32
/ ( ^ | [ \t ] + ) & \w * $ / ,
33
- / ( ^ | [ \t ] + ) s e t ( l | l o c a l | g | g l o b a l ) ? [ \t ] + \w + $ /
34
- ]
33
+ / ( ^ | [ \t ] + ) s e t ( l | l o c a l | g | g l o b a l ) ? [ \t ] + \w + $ / ,
34
+ ] ;
35
35
36
36
export const notFunctionPattern = [
37
37
/ ^ [ \t ] * \\ $ / ,
@@ -40,28 +40,28 @@ export const notFunctionPattern = [
40
40
/ ( l e t | s e t | c o l o r s c h e m e ) [ \t ] [ ^ \t ] * $ / ,
41
41
/ [ ^ ( [ , \\ \t \w # ] \w * $ / ,
42
42
/ ^ [ \t ] * ( h i | h i g h l i g h t ) ( [ \t ] + l i n k ) ? ( [ \t ] + [ ^ \t ] + ) * [ \t ] * $ / ,
43
- autocmdPattern
44
- ]
43
+ autocmdPattern ,
44
+ ] ;
45
45
46
46
export const commandPattern = [
47
47
/ ( ^ | [ \t ] ) : \w + $ / ,
48
48
/ ^ [ \t ] * \w + $ / ,
49
- / : ? s i l e n t ! ? [ \t ] \w + /
50
- ]
49
+ / : ? s i l e n t ! ? [ \t ] \w + / ,
50
+ ] ;
51
51
52
52
export const featurePattern = [
53
- / \b h a s \( [ \t ] * [ " ' ] \w * /
54
- ]
53
+ / \b h a s \( [ \t ] * [ " ' ] \w * / ,
54
+ ] ;
55
55
56
56
export const expandPattern = [
57
57
/ \b e x p a n d \( [ ' " ] < \w * $ / ,
58
- / \b e x p a n d \( [ \t ] * [ ' " ] \w * $ /
59
- ]
58
+ / \b e x p a n d \( [ \t ] * [ ' " ] \w * $ / ,
59
+ ] ;
60
60
61
61
export const notIdentifierPattern = [
62
62
commentPattern ,
63
63
/ ( " | ' ) : \w * $ / ,
64
64
/ ^ [ \t ] * \\ $ / ,
65
65
/ ^ [ \t ] * c a l l [ \t ] + [ ^ \t ( ) ] * $ / ,
66
- / ( ' | " | # | & | \$ | < ) \w * $ /
67
- ]
66
+ / ( ' | " | # | & | \$ | < ) \w * $ / ,
67
+ ] ;
0 commit comments