diff options
Diffstat (limited to 'lib/bib-parse.awk')
| -rw-r--r-- | lib/bib-parse.awk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bib-parse.awk b/lib/bib-parse.awk index e5bf9fa..e83cb07 100644 --- a/lib/bib-parse.awk +++ b/lib/bib-parse.awk @@ -4,7 +4,8 @@ # bib_entry(type, key) - called once per regular entry. The fields are # available in BIB_N, BIB_NAME[], BIB_VAL[] and # BIB_KIND[]; the raw source text of the entry -# is in BIB_RAW. +# is in BIB_RAW, and its position in the input +# buffer bib_buf is BIB_START..BIB_END-1. # bib_pass(raw) - called for @string and @preamble blocks with # their raw source text. # @@ -211,6 +212,8 @@ function bib_entry_at(s, i, at, type, opener, closer, key, name, c) { BIB_KIND[BIB_N] = BIB_VKIND } BIB_RAW = bib_trim(substr(s, at, i - at)) + BIB_START = at + BIB_END = i bib_entry(type, key) return i } |