2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-20 02:32:13 +00:00

Make doc parsing resilient against different line endings.

This commit is contained in:
Steven Watanabe
2018-01-18 10:34:04 -07:00
parent 3d5f4f4710
commit ac8ba7d5e6

View File

@@ -650,7 +650,7 @@ local rule print-help-config (
}
ws = " " ;
ws = "\t " ;
# Extract the text from a block of comments.
#
@@ -967,9 +967,7 @@ local rule read-file (
content = [ SHELL "cat \"$(file)\"" ] ;
}
local lines ;
local nl = "
" ;
local << = "([^$(nl)]*)[$(nl)](.*)" ;
local << = "([^\r\n]*)[\r]?[\n](.*)" ;
local line+ = [ MATCH "$(<<)" : "$(content)" ] ;
while $(line+)
{