mirror of
https://github.com/alecthomas/chroma.git
synced 2025-03-19 21:10:15 +02:00
parent
305a0397ac
commit
2a1e1a1bf4
@ -12,6 +12,7 @@ var C = internal.Register(MustNewLexer(
|
|||||||
Aliases: []string{"c"},
|
Aliases: []string{"c"},
|
||||||
Filenames: []string{"*.c", "*.h", "*.idc"},
|
Filenames: []string{"*.c", "*.h", "*.idc"},
|
||||||
MimeTypes: []string{"text/x-chdr", "text/x-csrc"},
|
MimeTypes: []string{"text/x-chdr", "text/x-csrc"},
|
||||||
|
EnsureNL: true,
|
||||||
},
|
},
|
||||||
Rules{
|
Rules{
|
||||||
"whitespace": {
|
"whitespace": {
|
||||||
|
@ -13,6 +13,7 @@ var Java = internal.Register(MustNewLexer(
|
|||||||
Filenames: []string{"*.java"},
|
Filenames: []string{"*.java"},
|
||||||
MimeTypes: []string{"text/x-java"},
|
MimeTypes: []string{"text/x-java"},
|
||||||
DotAll: true,
|
DotAll: true,
|
||||||
|
EnsureNL: true,
|
||||||
},
|
},
|
||||||
Rules{
|
Rules{
|
||||||
"root": {
|
"root": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user