Portability | portable |
---|---|
Stability | alpha |
Maintainer | John MacFarlane <jgm@berkeley.edu> |
Safe Haskell | Safe-Infered |
Text.Highlighting.Kate.Types
Description
Definitions for data structures needed by highlighting-kate.
- type Context = (String, String)
- type ContextStack = [Context]
- data SyntaxState = SyntaxState {}
- type Token = (TokenType, String)
- data TokenType
- = KeywordTok
- | DataTypeTok
- | DecValTok
- | BaseNTok
- | FloatTok
- | CharTok
- | StringTok
- | CommentTok
- | OtherTok
- | AlertTok
- | FunctionTok
- | RegionMarkerTok
- | ErrorTok
- | NormalTok
- type SourceLine = [Token]
- type KateParser = GenParser Char SyntaxState
- data TokenStyle = TokenStyle {}
- defStyle :: TokenStyle
- data Color = RGB Word8 Word8 Word8
- class ToColor a where
- class FromColor a where
- data Style = Style {}
- data FormatOptions = FormatOptions {
- numberLines :: Bool
- startNumber :: Int
- lineAnchors :: Bool
- titleAttributes :: Bool
- codeClasses :: [String]
- containerClasses :: [String]
- defaultFormatOpts :: FormatOptions
Documentation
type ContextStack = [Context]
A stack of contexts. (Language-specific context stacks must be maintained because of IncludeRules.)
data SyntaxState
State for syntax parser.
Constructors
SyntaxState | |
Fields
|
Instances
data TokenType
type SourceLine = [Token]
A line of source, list of labeled source items.
type KateParser = GenParser Char SyntaxState
data TokenStyle
Constructors
TokenStyle | |
Fields
|
Instances
class ToColor a where
class FromColor a where
data FormatOptions
Options for formatting source code.
Constructors
FormatOptions | |
Fields
|
Instances