File tree 4 files changed +9
-2
lines changed
4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 18
18
size : 8
19
19
price : 100.27
20
20
quantity : 1
21
+ version : 1.2.3.4
21
22
22
23
bill-to : &id001
23
24
street : |
Original file line number Diff line number Diff line change 18
18
size: 8
19
19
price: 100.27
20
20
quantity: 1
21
+ version: 1.2.3.4
21
22
22
23
bill-to: &id001
23
24
street: |
Original file line number Diff line number Diff line change 97
97
[" keyword" ," :" ],
98
98
[" text" ," " ],
99
99
[" constant.numeric" ," 1" ]
100
+ ],[
101
+ " start" ,
102
+ [" meta.tag" ," version" ],
103
+ [" keyword" ," :" ],
104
+ [" text" ," 1.2.3.4" ]
100
105
],[
101
106
" start"
102
107
],[
124
129
[" indent" ," " ],
125
130
[" meta.tag" ," ref-id" ],
126
131
[" keyword" ," :" ],
127
- [" text" ," id123 " ]
132
+ [" text" ," id123 " ]
128
133
],[
129
134
" start" ,
130
135
[" meta.tag" ," city" ],
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ var YamlHighlightRules = function() {
100
100
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
101
101
} , {
102
102
token : "constant.numeric" , // float
103
- regex : / ( \b | [ + \- \. ] ) [ \d _ ] + (?: (?: \. [ \d _ ] * ) ? (?: [ e E ] [ + \- ] ? [ \d _ ] + ) ? ) (? = [ ^ \d - \w ] | $ ) /
103
+ regex : / ( \b | [ + \- \. ] ) [ \d _ ] + (?: (?: \. [ \d _ ] * ) ? (?: [ e E ] [ + \- ] ? [ \d _ ] + ) ? ) (? = [ ^ \d - \w ] | $ ) $ /
104
104
} , {
105
105
token : "constant.numeric" , // other number
106
106
regex : / [ + \- ] ? \. i n f \b | N a N \b | 0 x [ \d A - F a - f _ ] + | 0 b [ 1 0 _ ] + /
You can’t perform that action at this time.
0 commit comments