ddoc.lexer

This file is a forked part of libddoc: https://github.com/dlang-community/libddoc

Members

Classes

DdocException
class DdocException

Class for library exception.

DdocParseException
class DdocParseException
Undocumented in source.

Enums

Type
enum Type

DDoc token types.

Functions

getIndent
string getIndent(size_t offset, string text)

Return the indentation present before the given offset. offset should point past the indentation. e.g. : '\t\ttest' => Offset should be 2 (the index of 't'), and getIndent will return '\t\t'. If offset is 1, getIndent returns '\t'.

prevIsNewline
bool prevIsNewline(size_t offset, string text)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Lexer
struct Lexer

Lexer for DDoc comments.

Token
struct Token

DDoc token

Meta

License

Forked and modified in 2021 for hgen project by Eugene 'Vindex' Stulin. The 'hgen' project: https://gitlab.com/vindexbit/hgen

Authors

Eugene 'Vindex' Stulin <tech.vindex@gmail.com>