skylighting-core-0.14.2: syntax highlighting library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Skylighting.Core

Synopsis

Documentation

lookupSyntax :: Text -> SyntaxMap -> Maybe Syntax Source #

Lookup syntax by (in order) full name (case insensitive), short name (case insensitive), extension.

syntaxByName :: SyntaxMap -> Text -> Maybe Syntax Source #

Lookup a syntax by full name (case insensitive).

syntaxByShortName :: SyntaxMap -> Text -> Maybe Syntax Source #

Lookup a syntax by short name (case insensitive).

syntaxesByExtension :: SyntaxMap -> String -> [Syntax] Source #

Returns a list of syntaxes appropriate for the given file extension.

syntaxesByFilename :: SyntaxMap -> String -> [Syntax] Source #

Returns a list of syntaxes appropriate for the given filename.