Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data HighlightGroup
- = CornelisError
- | CornelisErrorWarning
- | CornelisWarn
- | CornelisTitle
- | CornelisName
- | CornelisHole
- | CornelisUnsolvedMeta
- | CornelisUnsolvedConstraint
- | CornelisKeyword
- | CornelisSymbol
- | CornelisType
- | CornelisPrimitiveType
- | CornelisRecord
- | CornelisFunction
- | CornelisArgument
- | CornelisBound
- | CornelisOperator
- | CornelisField
- | CornelisGeneralizable
- | CornelisMacro
- | CornelisInductiveConstructor
- | CornelisCoinductiveConstructor
- | CornelisNumber
- | CornelisComment
- | CornelisString
- | CornelisCatchAllClause
- | CornelisTypeChecks
- | CornelisModule
- | CornelisPostulate
- | CornelisPrimitive
- | CornelisPragma
- priority :: HighlightGroup -> Int64
- atomToHlGroup :: Text -> Maybe HighlightGroup
- data InfoHighlight a = InfoHighlight {}
- spanInfoHighlights :: InfoHighlight (Int64, Int64) -> [InfoHighlight Int64]
- renderWithHlGroups :: SimpleDocStream HighlightGroup -> ([InfoHighlight (Int64, Int64)], SimpleDocStream a)
- prettyType :: Type -> Doc HighlightGroup
- groupScopeSet :: [InScope] -> [[InScope]]
- prettyGoals :: DisplayInfo -> Doc HighlightGroup
- prettyInterval :: AgdaInterval -> Doc HighlightGroup
- prettyPoint :: AgdaPos -> Doc HighlightGroup
- isEmpty :: Doc HighlightGroup -> Bool
- section :: Doc HighlightGroup -> [a] -> (a -> Doc HighlightGroup) -> Doc HighlightGroup
- prettyName :: Text -> Doc HighlightGroup
- prettyVisibleName :: Bool -> Text -> Doc HighlightGroup
- prettyInScope :: InScope -> Doc HighlightGroup
- prettyInScopeSet :: [InScope] -> Doc HighlightGroup
- prettyManyGoals :: [InScope] -> Type -> Doc HighlightGroup
- prettyGoal :: GoalInfo Text -> Doc HighlightGroup
- prettyError :: Message -> Doc HighlightGroup
Documentation
data HighlightGroup Source #
Custom highlight groups set by the plugin.
These groups linked to Neovim default highlight groups in syntax/agda.vim
.
The suffix after CornelisXXX
matches the names as returned by Agda, contained in hl_atoms
.
How these names are generated is not documented on Agda's side, but the implementation can be found at
toAtoms
.
The correspoding Agda types are found in Precise
.
NOTE:
* When modifying this type, remember to sync the changes to syntax/agda.vim
* This list of highlight groups does not yet cover all variants returned by Agda
CornelisError | InfoWin highlight group of error messages |
CornelisErrorWarning | InfoWin highlight group of warnings considered fatal |
CornelisWarn | InfoWin highlight group of warnings |
CornelisTitle | InfoWin highlight of section titles |
CornelisName | InfoWin highlight of names in context |
CornelisHole | An open hole ( |
CornelisUnsolvedMeta | An unresolved meta variable |
CornelisUnsolvedConstraint | An unresolved constraint |
CornelisKeyword | An Agda keywords ( |
CornelisSymbol | A symbol, not part of an identifier ( |
CornelisType | A datatype ( |
CornelisPrimitiveType | A primitive/builtin Agda type |
CornelisRecord | A datatype, defined as a |
CornelisFunction | A function, e.g. a top-level declaration |
CornelisArgument | The name of an (implicit) argument, i.e. |
CornelisBound | A bound identifier, e.g. a variable in a pattern clause or a module parameter |
CornelisOperator | A mixfix operator, e.g. |
CornelisField | Field of a record definition |
CornelisGeneralizable | A generalizable variable, defined for example in a |
CornelisMacro | A macro, defined in a |
CornelisInductiveConstructor | A constructor of an inductive data type (e.g. |
CornelisCoinductiveConstructor | A constructor for a coinductive datatype, i.e. a record marked |
CornelisNumber | A number literal |
CornelisComment | A comment |
CornelisString | A string literal |
CornelisCatchAllClause | "Catch-all clause". Some sort of fallback; not exactly clear where this is used |
CornelisTypeChecks | A location being type-checked right now |
CornelisModule | A module name, e.g. in a |
CornelisPostulate | A term, defined in a |
CornelisPrimitive | An Agda primitive, e.g. |
CornelisPragma | The argument to a pragma, e.g. |
Instances
priority :: HighlightGroup -> Int64 Source #
Priority of the HighlightGroup. See `:h vim.highlight.priorities` for more information.
100 is the default syntax highlighting priority, while 150 is reserved for diagnostics.
atomToHlGroup :: Text -> Maybe HighlightGroup Source #
data InfoHighlight a Source #
Instances
Functor InfoHighlight Source # | |
Defined in Cornelis.Pretty fmap :: (a -> b) -> InfoHighlight a -> InfoHighlight b # (<$) :: a -> InfoHighlight b -> InfoHighlight a # | |
Show a => Show (InfoHighlight a) Source # | |
Defined in Cornelis.Pretty showsPrec :: Int -> InfoHighlight a -> ShowS # show :: InfoHighlight a -> String # showList :: [InfoHighlight a] -> ShowS # | |
Eq a => Eq (InfoHighlight a) Source # | |
Defined in Cornelis.Pretty (==) :: InfoHighlight a -> InfoHighlight a -> Bool # (/=) :: InfoHighlight a -> InfoHighlight a -> Bool # | |
Ord a => Ord (InfoHighlight a) Source # | |
Defined in Cornelis.Pretty compare :: InfoHighlight a -> InfoHighlight a -> Ordering # (<) :: InfoHighlight a -> InfoHighlight a -> Bool # (<=) :: InfoHighlight a -> InfoHighlight a -> Bool # (>) :: InfoHighlight a -> InfoHighlight a -> Bool # (>=) :: InfoHighlight a -> InfoHighlight a -> Bool # max :: InfoHighlight a -> InfoHighlight a -> InfoHighlight a # min :: InfoHighlight a -> InfoHighlight a -> InfoHighlight a # |
spanInfoHighlights :: InfoHighlight (Int64, Int64) -> [InfoHighlight Int64] Source #
renderWithHlGroups :: SimpleDocStream HighlightGroup -> ([InfoHighlight (Int64, Int64)], SimpleDocStream a) Source #
prettyType :: Type -> Doc HighlightGroup Source #
groupScopeSet :: [InScope] -> [[InScope]] Source #
prettyPoint :: AgdaPos -> Doc HighlightGroup Source #
section :: Doc HighlightGroup -> [a] -> (a -> Doc HighlightGroup) -> Doc HighlightGroup Source #
prettyName :: Text -> Doc HighlightGroup Source #
prettyVisibleName :: Bool -> Text -> Doc HighlightGroup Source #
prettyInScope :: InScope -> Doc HighlightGroup Source #
prettyInScopeSet :: [InScope] -> Doc HighlightGroup Source #
prettyManyGoals :: [InScope] -> Type -> Doc HighlightGroup Source #
prettyGoal :: GoalInfo Text -> Doc HighlightGroup Source #
prettyError :: Message -> Doc HighlightGroup Source #