1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-03-19 21:10:15 +02:00

Fix lint.

This commit is contained in:
Alec Thomas 2021-04-28 09:59:01 +10:00
parent 575caac139
commit 3626d89d3e

View File

@ -1,4 +1,4 @@
package s; package s
import ( import (
. "github.com/alecthomas/chroma" // nolint . "github.com/alecthomas/chroma" // nolint
@ -20,7 +20,7 @@ var Svelte = internal.Register(DelegatingLexer(h.HTML, MustNewLazyLexer(
))) )))
func svelteRules() Rules { func svelteRules() Rules {
return Rules { return Rules{
"root": { "root": {
{`(<\s*script\s*lang\s*=\s*['"](?:ts|typescript)['"]\s*>)(.+?)(<\s*/\s*script\s*>)`, ByGroups(Other, Using(t.TypeScript), Other), nil}, {`(<\s*script\s*lang\s*=\s*['"](?:ts|typescript)['"]\s*>)(.+?)(<\s*/\s*script\s*>)`, ByGroups(Other, Using(t.TypeScript), Other), nil},
{`\{`, Punctuation, Push("templates")}, {`\{`, Punctuation, Push("templates")},