Skip to content
Permalink
Browse files

Enable EnsureNL for TradingView and C# lexers

  • Loading branch information...
Jos512 authored and alecthomas committed Jan 23, 2019
1 parent abbe00c commit 8ce6ac6016135f710368722a42818917f0ad705e
@@ -13,6 +13,7 @@ var CSharp = internal.Register(MustNewLexer(
Filenames: []string{"*.cs"},
MimeTypes: []string{"text/x-csharp"},
DotAll: true,
EnsureNL: true,
},
Rules{
"root": {
@@ -13,6 +13,7 @@ var TradingView = internal.Register(MustNewLexer(
Filenames: []string{"*.tv"},
MimeTypes: []string{"text/x-tradingview"},
DotAll: true,
EnsureNL: true,
},
Rules{
"root": {
@@ -9,3 +9,5 @@ foreach (DriveInfo drive in drives)
Console.WriteLine(dir);
}
}

// Comment as last line should be recognised properly
@@ -69,5 +69,6 @@
{"type":"Punctuation","value":"}"},
{"type":"Text","value":"\n"},
{"type":"Punctuation","value":"}"},
{"type":"Text","value":"\n"}
{"type":"Text","value":"\n\n"},
{"type":"CommentSingle","value":"// Comment as last line should be recognised properly\n"}
]
@@ -10,3 +10,5 @@ plot(series=emaVal, style=circles, offset=2, linewidth=3)
bgcolor(color=close > open ? orange :
close != high[1] ? purple :
na, transp=80)

// Comment as last line should be recognised properly
@@ -89,5 +89,7 @@
{"type":"Text","value":", transp"},
{"type":"KeywordPseudo","value":"="},
{"type":"LiteralNumber","value":"80"},
{"type":"Text","value":")\n"}
{"type":"Text","value":")\n\n"},
{"type":"CommentSingle","value":"// Comment as last line should be recognised properly"},
{"type":"Text","value":"\n"}
]

0 comments on commit 8ce6ac6

Please sign in to comment.
You can’t perform that action at this time.