highlighting-kate-0.2.5: Syntax highlightingSource codeContentsIndex
Text.Highlighting.Kate.Definitions
Portabilityportable
Stabilityalpha
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Description
Definitions for data structures needed by highlighting-kate.
Synopsis
type ContextStack = Map String [String]
data SyntaxState = SyntaxState {
synStContexts :: ContextStack
synStLanguage :: String
synStCurrentLine :: String
synStCharsParsedInLine :: Int
synStCaseSensitive :: Bool
synStKeywordCaseSensitive :: Bool
synStCaptures :: [String]
}
type LabeledSource = ([String], String)
type SourceLine = [LabeledSource]
Documentation
type ContextStack = Map String [String]Source
A stack of context names for each language. (Language-specific context stacks must be maintained because of IncludeRules.)
data SyntaxState Source
State for syntax parser.
Constructors
SyntaxState
synStContexts :: ContextStackStack of contexts
synStLanguage :: StringLanguage being parsed
synStCurrentLine :: StringContents of current line
synStCharsParsedInLine :: IntNum characters parsed in line
synStCaseSensitive :: BoolLanguage is case-sensitive
synStKeywordCaseSensitive :: BoolKeywords are case-sensitive
synStCaptures :: [String]List of regex captures from last capturing match
show/hide Instances
type LabeledSource = ([String], String)Source
A pair consisting of a list of attributes and some text.
type SourceLine = [LabeledSource]Source
A line of source, list of labeled source items.
Produced by Haddock version 2.6.0