-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathparse.tbl
More file actions
75 lines (74 loc) · 5.02 KB
/
parse.tbl
File metadata and controls
75 lines (74 loc) · 5.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Initial ^. LineStart LoadText
LineStart ^#[ \t]+ Header1 NoAction
LineStart ^##[ \t]+ Header2 NoAction
LineStart ^###[ \t]+ Header3 NoAction
LineStart ^####[ \t]+ Header4 NoAction
LineStart ^#####[ \t]+ Header5 NoAction
LineStart ^######[ \t]+ Header6 NoAction
LineStart /^```$ CodeListing NoAction
LineStart "![" ImageAlt NoAction
LineStart [1-9]+ ListNumber NoAction
LineStart [*-] ListBullet NoAction
LineStart '|' TableCell NoAction
LineStart .+ Line NoAction
Line '[' LinkName NoAction
Line [-~_*`] FormatStart NoAction
Line .+ Line AccumulateText
Line [\n]+ LineStart LineEndAction
Header1 .+ Header1 AccumulateText
Header2 .+ Header2 AccumulateText
Header3 .+ Header3 AccumulateText
Header4 .+ Header4 AccumulateText
Header5 .+ Header5 AccumulateText
Header6 .+ Header6 AccumulateText
Header1 [\n]+ LineStart Header1Action
Header2 [\n]+ LineStart Header2Action
Header3 [\n]+ LineStart Header3Action
Header4 [\n]+ LineStart Header4Action
Header5 [\n]+ LineStart Header5Action
Header6 [\n]+ LineStart Header6Action
ListNumber [0-9] ListNumber AccumulateText
ListNumber [\s\t-] ListItem ListNumberAction
ListBullet [*-] ListBullet AccumulateText
ListBullet [\s\t] ListItem ListBulletAction
ListItem .+ ListItem AccumulateText
ListItem [\n]+ LineStart ListItemAction
ImageAlt .+ ImageAlt AccumulateText
ImageAlt "](" ImagePath ImageAltAction
ImagePath .+ ImagePath AccumulateText
ImagePath ')' LineStart ImagePathAction
ImagePath [\n]+ Error NoAction
LinkName .+ LinkName AccumulateText
LinkName "](" LinkURL LinkNameAction
LinkURL .+ LinkURL AccumulateText
LinkURL ')' Line LinkURLAction
LinkURL [\n]+ Error NoAction
CodeListing ^.+$ CodeListing AccumulateText
CodeListing "```" LineStart CodeListingAction
FormatStart '*' Italic NoAction
FormatStart '_' Italic NoAction
FormatStart "__" Bold NoAction
FormatStart "**" Bold NoAction
FormatStart '`' InlineCode NoAction
FormatStart "~~" Strikethrough NoAction
FormatStart .+ Line NoAction
FormatStart [\n]+ Error NoAction
Italic '*' Line ItalicAction
Italic '_' Line ItalicAction
Italic .+ Italic AccumulateText
Italic [\n]+ Error NoAction
Bold "**" Line BoldAction
Bold "__" Line BoldAction
Bold .+ Line AccumulateText
Bold [\n]+ Error NoAction
InlineCode '`' Line CodeAction
InlineCode .+ Line AccumulateText
InlineCode [\n]+ Error NoAction
Strikethrough "~~" Line StrikethroughAction
Strikethrough .+ StrikeThrough AccumulateText
Strikethrough [\n]+ Error NoAction
TableCell .+ TableCell AccumulateText
TableCell '|' TableCell TableCellAction
TableCell [\n]+ LineStart TableRowAction
TableCell '-' TableSep NoAction
TableSep [\n]+ LineStart NoAction