Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data types for the Neovim syntax API.
Synopsis
- data SyntaxItemDetail
- = Keyword { }
- | Match {
- matchGroup :: Text
- matchPattern :: Text
- | Region { }
- | Verbatim { }
- data SyntaxItem = SyntaxItem {}
- data Highlight = Highlight {}
- data HiLink = HiLink {}
- data Syntax = Syntax {
- syntaxItems :: [SyntaxItem]
- syntaxHighlights :: [Highlight]
- syntaxHiLinks :: [HiLink]
Documentation
data SyntaxItemDetail Source #
Different kinds of syntax items.
Keyword | |
Match | |
| |
Region | |
| |
Verbatim | |
Instances
Show SyntaxItemDetail Source # | |
Defined in Ribosome.Data.Syntax showsPrec :: Int -> SyntaxItemDetail -> ShowS # show :: SyntaxItemDetail -> String # showList :: [SyntaxItemDetail] -> ShowS # | |
Eq SyntaxItemDetail Source # | |
Defined in Ribosome.Data.Syntax (==) :: SyntaxItemDetail -> SyntaxItemDetail -> Bool # (/=) :: SyntaxItemDetail -> SyntaxItemDetail -> Bool # |
data SyntaxItem Source #
A syntax item like keyword
or match
, bundled with options for the :syntax
command.
Instances
Show SyntaxItem Source # | |
Defined in Ribosome.Data.Syntax showsPrec :: Int -> SyntaxItem -> ShowS # show :: SyntaxItem -> String # showList :: [SyntaxItem] -> ShowS # | |
Eq SyntaxItem Source # | |
Defined in Ribosome.Data.Syntax (==) :: SyntaxItem -> SyntaxItem -> Bool # (/=) :: SyntaxItem -> SyntaxItem -> Bool # |
Options for a highlight group.
Instances
Options for a :highlight link
command.
A set of syntax settings, consisting of syntax items like keyword
and match
, highlights and highlight links.
Syntax | |
|
Instances
Generic Syntax Source # | |
Show Syntax Source # | |
Default Syntax Source # | |
Defined in Ribosome.Data.Syntax | |
Eq Syntax Source # | |
type Rep Syntax Source # | |
Defined in Ribosome.Data.Syntax type Rep Syntax = D1 ('MetaData "Syntax" "Ribosome.Data.Syntax" "ribosome-0.9.9.9-9qviHqnn5IlBIAvGWfH18d" 'False) (C1 ('MetaCons "Syntax" 'PrefixI 'True) (S1 ('MetaSel ('Just "syntaxItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [SyntaxItem]) :*: (S1 ('MetaSel ('Just "syntaxHighlights") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Highlight]) :*: S1 ('MetaSel ('Just "syntaxHiLinks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [HiLink])))) |