mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 08:02:38 +00:00
docs: support inline markdown
- Tags are now created with `[tag]()` - References are now created with `[tag]` - Code spans are no longer wrapped
This commit is contained in:
committed by
Lewis Russell
parent
0e28493914
commit
ade1b12f49
@@ -173,10 +173,10 @@ local grammar = P {
|
||||
ty = v.ty_fun + ident + v.ty_table + literal + paren(v.ty),
|
||||
ty_param = Pf('<') * comma1(v.ltype) * fill * P('>'),
|
||||
ty_opt = v.ty * opt(v.ty_param) * opt(P('[]')) * opt(P('?')),
|
||||
ty_index = (Pf('[') * v.ltype * Pf(']')),
|
||||
ty_index = (Pf('[') * (v.ltype + ident + rep1(num)) * fill * P(']')),
|
||||
table_key = v.ty_index + lname,
|
||||
table_elem = v.table_key * colon * v.ltype,
|
||||
ty_table = Pf('{') * comma1(v.table_elem) * Pf('}'),
|
||||
ty_table = Pf('{') * comma1(v.table_elem) * fill * P('}'),
|
||||
fun_param = lname * opt(colon * v.ltype),
|
||||
ty_fun = Pf('fun') * paren(comma(lname * opt(colon * v.ltype))) * opt(colon * comma1(v.ltype)),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user