highlighting-kate-0.2.7.1: Syntax highlighting

Portabilityportable
Stabilityalpha
MaintainerJohn MacFarlane <jgm@berkeley.edu>

Text.Highlighting.Kate.Definitions

Description

Definitions for data structures needed by highlighting-kate.

Synopsis

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 

Fields

synStContexts :: ContextStack

Stack of contexts

synStLanguage :: String

Language being parsed

synStCurrentLine :: String

Contents of current line

synStCharsParsedInLine :: Int

Num characters parsed in line

synStPrevChar :: Char

Last character parsed

synStCaseSensitive :: Bool

Language is case-sensitive

synStKeywordCaseSensitive :: Bool

Keywords are case-sensitive

synStCaptures :: [String]

List of regex captures from last capturing match

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.