ModuleAgda-2.7.0.1Haskell2010
Agda.Interaction.Highlighting.Generate
Generates data used for precise syntax highlighting.
- 1 type
- 15 values
- PackageAgda-2.7.0.1
- Exports17
- LanguageHaskell2010
- LicenceMIT
- SourceGenerate.hs
generateAndPrintSyntaxInfo :: DeclarationDeclaration to highlight.
-> LevelAmount of highlighting.
-> BoolUpdate the state?
-> TCM ()
Generate syntax highlighting information for the given declaration, and (if appropriate) print it. If the boolean is True, then the state is additionally updated with the new highlighting info (in case of a conflict new info takes precedence over old info).
The procedure makes use of some of the highlighting info corresponding to stTokens (that corresponding to the interval covered by the declaration). If the boolean is True, then this highlighting info is additionally removed from the data structure that stTokens refers to.
Generate and return the syntax highlighting information for the tokens in the given file.
generateTokenInfoFromSource :: RangeFileThe module to highlight.
-> StringThe file contents. Note that the file is not read from disk.
-> TCM HighlightingInfo
Generate and return the syntax highlighting information for the tokens in the given file.
Generate and return the syntax highlighting information for the tokens in the given string, which is assumed to correspond to the given range.
Prints syntax highlighting info for an error.
Generate highlighting for error.
Generates and prints syntax highlighting information for unsolved meta-variables and certain unsolved constraints.
Lispify and print the given highlighting information.
highlightAsTypeChecked rPre r m runs m and returns its
result. Additionally, some code may be highlighted:
If
ris non-empty and not a sub-range ofrPre(after continuousPerLine has been applied to both):ris highlighted as being type-checked whilemis running (this highlighting is removed ifmcompletes successfully).Otherwise: Highlighting is removed for
rPre - rbeforemruns, and ifmcompletes successfully, thenrPre - ris highlighted as being type-checked.
Highlight a warning. We do not generate highlighting for unsolved metas and constraints, as that gets handled in bulk after typechecking.
Generate syntax highlighting for warnings.
Store a disambiguation of record field tags for the purpose of highlighting.