Documentation ¶
Index ¶
Constants ¶
View Source
const IndentMetaBinding bass.Symbol = "indent"
IndentMetaBinding is set to true in meta to indicate multiline forms using the combiner should have Vim lispwords style indentation, i.e. a 2 space indent instead of aligning with first argument.
Variables ¶
View Source
var BassLexer = lexers.Register(MustNewLazyLexer( &Config{ Name: "Bass", Aliases: []string{"bass"}, Filenames: []string{"*.bass"}, MimeTypes: []string{"text/x-bass", "application/x-bass"}, }, bassRules, ))
View Source
var TTYStyle = styles.Register(chroma.MustNewStyle("tty", chroma.StyleEntries{ chroma.Comment: ttyMap["95m"] + " italic", chroma.CommentPreproc: ttyMap["90m"], chroma.KeywordConstant: ttyMap["33m"], chroma.Keyword: ttyMap["31m"], chroma.KeywordDeclaration: ttyMap["35m"], chroma.NameBuiltin: ttyMap["31m"], chroma.NameBuiltinPseudo: ttyMap["36m"], chroma.NameFunction: ttyMap["34m"], chroma.NameNamespace: ttyMap["34m"], chroma.LiteralNumber: ttyMap["31m"], chroma.LiteralString: ttyMap["32m"], chroma.LiteralStringSymbol: ttyMap["33m"], chroma.Operator: ttyMap["31m"], chroma.Punctuation: ttyMap["90m"], }))
TTY style matches to hex codes used by the TTY formatter to map them to specific ANSI escape codes.
Functions ¶
Types ¶
type Classification ¶
func Classify ¶
func Classify(scope *bass.Scope) []Classification
Click to show internal directories.
Click to hide internal directories.