diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-11 00:39:58 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-11 00:39:58 +0000 |
commit | b245e76978c72e7237d90485531acee7d3caa4fc (patch) | |
tree | fdf44540f6b1904b7f26b0b008bceccff7ab2be5 /macro.c | |
parent | 3a26b8088d5978b9e623c51df0dcaf7206eae3e4 (diff) | |
download | mandoc-b245e76978c72e7237d90485531acee7d3caa4fc.tar.gz |
Expanded perfect htab to use 27 * 26 * 3 space.
Added Brq, Bro and Brc macros.
Added lbrace and rbrace to special characters.
Fixed spacing in braces.
Diffstat (limited to 'macro.c')
-rw-r--r-- | macro.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -184,6 +184,9 @@ const struct mdoc_macro __mdoc_macros[MDOC_MAX] = { { macro_text, 0 }, /* Lp */ { macro_text, MDOC_PARSED }, /* Lk */ { macro_text, MDOC_PARSED }, /* Mt */ + { macro_scoped_line, MDOC_CALLABLE | MDOC_PARSED }, /* Brq */ + { macro_constant_scoped, MDOC_CALLABLE | MDOC_PARSED | MDOC_EXPLICIT }, /* Bro */ + { macro_scoped_close, MDOC_EXPLICIT | MDOC_CALLABLE | MDOC_PARSED }, /* Brc */ }; const struct mdoc_macro * const mdoc_macros = __mdoc_macros; @@ -326,6 +329,8 @@ rewind_alt(int tok) return(MDOC_Ao); case (MDOC_Bc): return(MDOC_Bo); + case (MDOC_Brc): + return(MDOC_Bro); case (MDOC_Dc): return(MDOC_Do); case (MDOC_Ec): @@ -375,6 +380,8 @@ rewind_dohalt(int tok, enum mdoc_type type, const struct mdoc_node *p) /* FALLTHROUGH */ case (MDOC_Bq): /* FALLTHROUGH */ + case (MDOC_Brq): + /* FALLTHROUGH */ case (MDOC_D1): /* FALLTHROUGH */ case (MDOC_Dl): @@ -429,6 +436,8 @@ rewind_dohalt(int tok, enum mdoc_type type, const struct mdoc_node *p) /* FALLTHROUGH */ case (MDOC_Bo): /* FALLTHROUGH */ + case (MDOC_Bro): + /* FALLTHROUGH */ case (MDOC_Do): /* FALLTHROUGH */ case (MDOC_Eo): @@ -455,6 +464,8 @@ rewind_dohalt(int tok, enum mdoc_type type, const struct mdoc_node *p) /* FALLTHROUGH */ case (MDOC_Bc): /* FALLTHROUGH */ + case (MDOC_Brc): + /* FALLTHROUGH */ case (MDOC_Dc): /* FALLTHROUGH */ case (MDOC_Ec): |