parent
e8e81d8633
commit
a57c6982b7
|
@ -12,6 +12,9 @@ class RSTGrammar(Grammar):
|
||||||
rules = [
|
rules = [
|
||||||
PatternRule(r'escape', r'\\.'),
|
PatternRule(r'escape', r'\\.'),
|
||||||
|
|
||||||
|
PatternRule(r'bullet', r'^ *[-*+]'),
|
||||||
|
PatternRule(r'enumeration', r'^ *(?:[0-9]+|#)\.'),
|
||||||
|
|
||||||
RegionRule(r'strong_emphasis', r'\*\*', RSTString, r'\*\*'),
|
RegionRule(r'strong_emphasis', r'\*\*', RSTString, r'\*\*'),
|
||||||
RegionRule(r'emphasis', r'\*', RSTString, r'\*'),
|
RegionRule(r'emphasis', r'\*', RSTString, r'\*'),
|
||||||
RegionRule(r'inline_literal', r'``', RSTString, r'``'),
|
RegionRule(r'inline_literal', r'``', RSTString, r'``'),
|
||||||
|
@ -32,9 +35,6 @@ class RSTGrammar(Grammar):
|
||||||
PatternRule(r'option', r'^(?:--|-|/)[a-zA-Z]+(?:[ =][-a-zA-Z_]+)?'),
|
PatternRule(r'option', r'^(?:--|-|/)[a-zA-Z]+(?:[ =][-a-zA-Z_]+)?'),
|
||||||
RegionRule(r'table', r'\+-+(\+-+)*\+\n$', Grammar, r'^\n$'),
|
RegionRule(r'table', r'\+-+(\+-+)*\+\n$', Grammar, r'^\n$'),
|
||||||
|
|
||||||
PatternRule(r'bullet', r'^ *[-*+]'),
|
|
||||||
PatternRule(r'enumeration', r'^ *(?:[0-9]+|#)\.'),
|
|
||||||
|
|
||||||
PatternRule(r'field', r'^:.+?:'),
|
PatternRule(r'field', r'^:.+?:'),
|
||||||
|
|
||||||
PatternRule(r'lineblock', r'^\|'),
|
PatternRule(r'lineblock', r'^\|'),
|
||||||
|
|
Loading…
Reference in New Issue