module OrgMob
Defined in:
configuration.crexception.cr
lexer.cr
parser.cr
tokens.cr
Constant Summary
-
BLOCK_REGEX =
/^#\+(?<type>begin|end)_(?<block_type>\w+)(?<options>.*)/i -
DEFAULT_DONE_KEYWORDS =
["DONE", "[X]"] -
DEFAULT_TODO_KEYWORDS =
["TODO", "[ ]"] -
HEADER_REGEX =
/^(?<stars>\*+)\s(?<title>.*)/i -
KEYWORD_REGEX =
/^#\+(?<key>\w+):(?<value>.+)/i -
LIST_REGEX =
/^(?<bullet>-|\+|([0-9]|[a-z])(\.|\)))\s(?<item>.*)/i -
NEW_LINE_REGEX =
/^$/i -
PARAGRAPH_REGEX =
/(.)*/i -
PROPERTY_REGEX =
/^:(?<property>\w+):\s*(?<value>.*)/i -
TABLE_REGEX =
/^\|(?<row>.*)\|/i -
TEXT_WITH_BOLD_CONTENT =
/(?<before>.*?)\*(?<inside>[^*]+)\*(?<after>.*)/ -
TEXT_WITH_CODE_CONTENT =
/(?<before>.*?)~(?<inside>[^~]+)~(?<after>.*)/ -
TEXT_WITH_ITALIC_CONTENT =
/(?<before>.*?)\/(?<inside>[^\/]+)\/(?<after>.*)/ -
TEXT_WITH_STRIKE_CONTENT =
/(?<before>.*?)\+(?<inside>[^\+]+)\+(?<after>.*)/ -
TEXT_WITH_UNDERLINE_CONTENT =
/(?<before>.*?)_(?<inside>[^_]+)_(?<after>.*)/ -
TEXT_WITH_VERBATIM_CONTENT =
/(?<before>.*?)=(?<inside>[^=]+)=(?<after>.*)/ -
TOKENS =
[{type: :header, regex: HEADER_REGEX}, {type: :list, regex: LIST_REGEX}, {type: :block, regex: BLOCK_REGEX}, {type: :keyword, regex: KEYWORD_REGEX}, {type: :property, regex: PROPERTY_REGEX}, {type: :table, regex: TABLE_REGEX}, {type: :new_line, regex: NEW_LINE_REGEX}, {type: :paragraph, regex: PARAGRAPH_REGEX}] -
VERSION =
"0.1.2"