mirror of
https://github.com/alecthomas/chroma.git
synced 2025-03-17 20:58:08 +02:00
Formatting.
This commit is contained in:
parent
3b3f74c6a5
commit
4eb0355de0
@ -15,13 +15,13 @@ var Sass = internal.Register(MustNewLexer(
|
|||||||
CaseInsensitive: true,
|
CaseInsensitive: true,
|
||||||
},
|
},
|
||||||
Rules{
|
Rules{
|
||||||
|
// "root": {
|
||||||
|
// },
|
||||||
"root": {
|
"root": {
|
||||||
{`[ \t]*\n`, Text, nil},
|
{`[ \t]*\n`, Text, nil},
|
||||||
// { `[ \t]*`, ?? <function _indentation at 0x10fcaf1e0> ??, nil },
|
// { `[ \t]*`, ?? <function _indentation at 0x106932e18> ??, nil },
|
||||||
},
|
// { `//[^\n]*`, ?? <function _starts_block.<locals>.callback at 0x106936048> ??, Push("root") },
|
||||||
"content": {
|
// { `/\*[^\n]*`, ?? <function _starts_block.<locals>.callback at 0x1069360d0> ??, Push("root") },
|
||||||
// { `//[^\n]*`, ?? <function _starts_block.<locals>.callback at 0x10fcaf378> ??, Push("root") },
|
|
||||||
// { `/\*[^\n]*`, ?? <function _starts_block.<locals>.callback at 0x10fcaf400> ??, Push("root") },
|
|
||||||
{`@import`, Keyword, Push("import")},
|
{`@import`, Keyword, Push("import")},
|
||||||
{`@for`, Keyword, Push("for")},
|
{`@for`, Keyword, Push("for")},
|
||||||
{`@(debug|warn|if|while)`, Keyword, Push("value")},
|
{`@(debug|warn|if|while)`, Keyword, Push("value")},
|
||||||
@ -112,9 +112,9 @@ var Sass = internal.Register(MustNewLexer(
|
|||||||
{`"`, LiteralStringDouble, Pop(1)},
|
{`"`, LiteralStringDouble, Pop(1)},
|
||||||
},
|
},
|
||||||
"string-single": {
|
"string-single": {
|
||||||
{`(\\.|#(?=[^\n{])|[^\n'#])+`, LiteralStringDouble, nil},
|
{`(\\.|#(?=[^\n{])|[^\n'#])+`, LiteralStringSingle, nil},
|
||||||
{`#\{`, LiteralStringInterpol, Push("interpolation")},
|
{`#\{`, LiteralStringInterpol, Push("interpolation")},
|
||||||
{`'`, LiteralStringDouble, Pop(1)},
|
{`'`, LiteralStringSingle, Pop(1)},
|
||||||
},
|
},
|
||||||
"string-url": {
|
"string-url": {
|
||||||
{`(\\#|#(?=[^\n{])|[^\n#)])+`, LiteralStringOther, nil},
|
{`(\\#|#(?=[^\n{])|[^\n#)])+`, LiteralStringOther, nil},
|
||||||
|
@ -26,4 +26,3 @@ var SYSTEMD = internal.Register(MustNewLexer(
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
package v
|
package v
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -12,9 +11,9 @@ const vbName = `[_\w][\w]*`
|
|||||||
var VBNet = internal.Register(MustNewLexer(
|
var VBNet = internal.Register(MustNewLexer(
|
||||||
&Config{
|
&Config{
|
||||||
Name: "VB.net",
|
Name: "VB.net",
|
||||||
Aliases: []string{ "vb.net", "vbnet", },
|
Aliases: []string{"vb.net", "vbnet"},
|
||||||
Filenames: []string{ "*.vb", "*.bas", },
|
Filenames: []string{"*.vb", "*.bas"},
|
||||||
MimeTypes: []string{ "text/x-vbnet", "text/x-vba", },
|
MimeTypes: []string{"text/x-vbnet", "text/x-vba"},
|
||||||
CaseInsensitive: true,
|
CaseInsensitive: true,
|
||||||
},
|
},
|
||||||
Rules{
|
Rules{
|
||||||
@ -72,4 +71,3 @@ var VBNet = internal.Register(MustNewLexer(
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user