krz/orgstar

A native macOS editor for org-mode files. editor org-mode swift

Sources/OrgCore/Syntax/SyntaxKind.swift

322a87d47526d505d903e05d14e65a5464e1468f
orgstar/Sources/OrgCore/Syntax/SyntaxKind.swift history · blame · raw

25 lines · 1084 bytes

 1public enum SyntaxKind: String, Sendable {
 2    // Tokens
 3    case text, newline, whitespace
 4    case stars, todoKeyword, priority, tags
 5    case marker, linkPath, bullet, checkbox
 6    /// `[@3]` on an item; a citation reference's `@key`.
 7    case counter, citationKey
 8
 9    // Elements
10    case document, zerothSection, section, heading, title
11    case planning, propertyDrawer, nodeProperty, drawer, clock
12    case paragraph, plainList, item, table, tableRow, tableCell, tableFormula
13    case block, dynamicBlock, keyword, affiliatedKeyword
14    case comment, fixedWidth, horizontalRule, footnoteDefinition, latexEnvironment, inlineTask
15    case diarySexp, tableEl
16    /// A description item's term, before ` :: `.
17    case itemTag
18
19    // Objects
20    case bold, italic, underline, strikeThrough, verbatim, code
21    case link, linkDescription, timestamp, footnoteReference, statisticsCookie
22    case target, macro, inlineSourceBlock, latexFragment, lineBreak, superscript
23    case `subscript`, entity, radioTarget
24    case citation, citationReference, exportSnippet, inlineBabelCall
25}