mirror of
https://github.com/alecthomas/chroma.git
synced 2025-03-25 21:39:02 +02:00
Fix line endings in tradingview fixture.
This commit is contained in:
parent
d5ca12b82f
commit
3575c5f597
2
lexers/testdata/tradingview.actual
vendored
2
lexers/testdata/tradingview.actual
vendored
@ -9,4 +9,4 @@ plot(series=emaVal, style=circles, offset=2, linewidth=3)
|
||||
// Colour background
|
||||
bgcolor(color=close > open ? orange :
|
||||
close != high[1] ? purple :
|
||||
na, transp=80)
|
||||
na, transp=80)
|
||||
|
18
lexers/testdata/tradingview.expected
vendored
18
lexers/testdata/tradingview.expected
vendored
@ -1,5 +1,5 @@
|
||||
[
|
||||
{"type":"CommentSingle","value":"//@version=3\r"},
|
||||
{"type":"CommentSingle","value":"//@version=3"},
|
||||
{"type":"Text","value":"\n"},
|
||||
{"type":"NameFunction","value":"study"},
|
||||
{"type":"Text","value":"(title"},
|
||||
@ -13,7 +13,7 @@
|
||||
{"type":"Text","value":" precision"},
|
||||
{"type":"KeywordPseudo","value":"="},
|
||||
{"type":"LiteralNumber","value":"3"},
|
||||
{"type":"Text","value":")\r\n\r\nemaLen "},
|
||||
{"type":"Text","value":")\n\nemaLen "},
|
||||
{"type":"KeywordPseudo","value":"="},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameFunction","value":"input"},
|
||||
@ -28,14 +28,14 @@
|
||||
{"type":"Text","value":" defval"},
|
||||
{"type":"KeywordPseudo","value":"="},
|
||||
{"type":"LiteralNumber","value":"10"},
|
||||
{"type":"Text","value":")\r\nemaVal "},
|
||||
{"type":"Text","value":")\nemaVal "},
|
||||
{"type":"KeywordPseudo","value":"="},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameFunction","value":"ema"},
|
||||
{"type":"Text","value":"("},
|
||||
{"type":"NameVariable","value":"close"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"Text","value":" emaLen)\r\n\r\n"},
|
||||
{"type":"Text","value":" emaLen)\n\n"},
|
||||
{"type":"NameFunction","value":"plot"},
|
||||
{"type":"Text","value":"(series"},
|
||||
{"type":"KeywordPseudo","value":"="},
|
||||
@ -52,8 +52,8 @@
|
||||
{"type":"Text","value":" linewidth"},
|
||||
{"type":"KeywordPseudo","value":"="},
|
||||
{"type":"LiteralNumber","value":"3"},
|
||||
{"type":"Text","value":")\r\n\r\n"},
|
||||
{"type":"CommentSingle","value":"// Colour background\r"},
|
||||
{"type":"Text","value":")\n\n"},
|
||||
{"type":"CommentSingle","value":"// Colour background"},
|
||||
{"type":"Text","value":"\n"},
|
||||
{"type":"NameFunction","value":"bgcolor"},
|
||||
{"type":"Text","value":"(color"},
|
||||
@ -69,7 +69,7 @@
|
||||
{"type":"NameVariable","value":"orange"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Punctuation","value":":"},
|
||||
{"type":"Text","value":"\r\n "},
|
||||
{"type":"Text","value":"\n "},
|
||||
{"type":"NameVariable","value":"close"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Operator","value":"!="},
|
||||
@ -84,10 +84,10 @@
|
||||
{"type":"NameVariable","value":"purple"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Punctuation","value":":"},
|
||||
{"type":"Text","value":"\r\n "},
|
||||
{"type":"Text","value":"\n "},
|
||||
{"type":"NameVariable","value":"na"},
|
||||
{"type":"Text","value":", transp"},
|
||||
{"type":"KeywordPseudo","value":"="},
|
||||
{"type":"LiteralNumber","value":"80"},
|
||||
{"type":"Text","value":")"}
|
||||
{"type":"Text","value":")\n"}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user