Artifact
bfd0cf380e0813e341c95b932151b2e4af13864b:
Attachment "bibtex.tcl.diff" to
ticket [6bef0b5d0f]
added by
emiliano
2016-05-15 14:17:09.
(unpublished)
--- bibtex.tcl.orig 2013-05-22 20:29:29.000000000 -0300
+++ bibtex.tcl 2016-05-13 10:47:18.000000000 -0300
@@ -357,18 +357,18 @@
} elseif {([incr count] % $istep) == 0} {
Callback $token progress [expr {int($count / $step)}]
}
- if {[regexp -nocase {\s*comment([^\n])*\n(.*)} $block \
+ if {[regexp -nocase {^\s*comment([^\n])*\n(.*)} $block \
-> cmnt rest]} {
# Are @comments blocks, or just 1 line?
# Does anyone care?
Callback $token comment $cmnt
- } elseif {[regexp -nocase {\s*string[^\{]*\{(.*)\}[^\}]*} \
+ } elseif {[regexp -nocase {^\s*string[^\{]*\{(.*)\}[^\}]*} \
$block -> rest]} {
# string macro defs
Callback $token string [ParseBlock $rest]
- } elseif {[regexp -nocase {\s*preamble[^\{]*\{(.*)\}[^\}]*} \
+ } elseif {[regexp -nocase {^\s*preamble[^\{]*\{(.*)\}[^\}]*} \
$block -> rest]} {
Callback $token preamble $rest