summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDongkyun Son <dongkyun.s@samsung.com>2019-03-11 15:00:02 +0900
committerDongkyun Son <dongkyun.s@samsung.com>2019-03-11 15:00:02 +0900
commit0b9d5e907c1c55453c85d921c145a19a01f745a9 (patch)
treee41a68450d2d3705260f806c051114b0d2e4facb /doc
parentb9afc49237831fb01a32be95ec6c18426e5f737a (diff)
downloadnasm-accepted/tizen_8.0_unified.tar.gz
nasm-accepted/tizen_8.0_unified.tar.bz2
nasm-accepted/tizen_8.0_unified.zip
Fix regular expression at doc/rdsrc.plHEADtizen_9.0_m2_releasetizen_8.0_m2_releasetizen_7.0_m2_releasetizen_6.5.m2_releasetizen_6.0.m2_releasetizen_5.5.m2_releasesubmit/tizen_6.5/20211028.163601submit/tizen_6.0_hotfix/20201103.115103submit/tizen_6.0_hotfix/20201102.192903submit/tizen_6.0/20201029.205503submit/tizen_5.5_wearable_hotfix/20201026.184307submit/tizen_5.5_mobile_hotfix/20201026.185107submit/tizen_5.5/20191031.000007submit/tizen/20190311.062915accepted/tizen/unified/x/asan/20241013.235435accepted/tizen/unified/x/20240818.074440accepted/tizen/unified/toolchain/20240311.005236accepted/tizen/unified/toolchain/20240128.235627accepted/tizen/unified/20190311.072555accepted/tizen/9.0/unified/20241030.234033accepted/tizen/8.0/unified/20231005.095241accepted/tizen/7.0/unified/hotfix/20221116.111151accepted/tizen/7.0/unified/20221110.061944accepted/tizen/6.5/unified/20211028.223921accepted/tizen/6.0/unified/hotfix/20201102.231657accepted/tizen/6.0/unified/20201030.111207accepted/tizen/5.5/unified/wearable/hotfix/20201027.095926accepted/tizen/5.5/unified/mobile/hotfix/20201027.073617accepted/tizen/5.5/unified/20191031.010846tizen_9.0tizen_8.0tizen_7.0_hotfixtizen_7.0tizen_6.5tizen_6.0_hotfixtizen_6.0tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5tizenaccepted/tizen_unified_x_asanaccepted/tizen_unified_xaccepted/tizen_unified_toolchainaccepted/tizen_unifiedaccepted/tizen_9.0_unifiedaccepted/tizen_8.0_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedaccepted/tizen_6.5_unifiedaccepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unified
fix build error """ [ 105s] perl ./rdsrc.pl html < nasmdoc.src [ 105s] Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\\{ <-- HERE / at ./rdsrc.pl line 252. [ 105s] Makefile:47: recipe for target 'html/nasmdoc0.html' failed """ Change-Id: Ic9dd399c02a8795deb301f42d68868d93c9bb5fd Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/rdsrc.pl34
1 files changed, 17 insertions, 17 deletions
diff --git a/doc/rdsrc.pl b/doc/rdsrc.pl
index de3a862..64b3c62 100644
--- a/doc/rdsrc.pl
+++ b/doc/rdsrc.pl
@@ -249,8 +249,8 @@ sub got_para {
while (/^\\c (([^\\]|\\[^c])*)(.*)$/) {
$l = $1;
$_ = $3;
- $l =~ s/\\{/{/g;
- $l =~ s/\\}/}/g;
+ $l =~ s/\\\{/{/g;
+ $l =~ s/\\\}/}/g;
$l =~ s/\\\\/\\/g;
push @$pname, $l;
}
@@ -263,7 +263,7 @@ sub got_para {
$snum = 0;
$xref = "chapter-$cnum";
$pflags = "chap $cnum :$xref";
- die "badly formatted chapter heading: $_\n" if !/^\\C{([^}]*)}\s*(.*)$/;
+ die "badly formatted chapter heading: $_\n" if !/^\\C\{([^}]*)\}\s*(.*)$/;
$refs{$1} = "chapter $cnum";
$node = "Chapter $cnum";
&add_item($node, 1);
@@ -280,7 +280,7 @@ sub got_para {
$snum = 0;
$xref = "appendix-$cnum";
$pflags = "appn $cnum :$xref";
- die "badly formatted appendix heading: $_\n" if !/^\\A{([^}]*)}\s*(.*)$/;
+ die "badly formatted appendix heading: $_\n" if !/^\\A\{([^}]*)\}\s*(.*)$/;
$refs{$1} = "appendix $cnum";
$node = "Appendix $cnum";
&add_item($node, 1);
@@ -294,7 +294,7 @@ sub got_para {
$snum = 0;
$xref = "section-$cnum.$hnum";
$pflags = "head $cnum.$hnum :$xref";
- die "badly formatted heading: $_\n" if !/^\\[HP]{([^}]*)}\s*(.*)$/;
+ die "badly formatted heading: $_\n" if !/^\\[HP]\{([^\}]*)\}\s*(.*)$/;
$refs{$1} = "section $cnum.$hnum";
$node = "Section $cnum.$hnum";
&add_item($node, 2);
@@ -307,7 +307,7 @@ sub got_para {
$snum++;
$xref = "section-$cnum.$hnum.$snum";
$pflags = "subh $cnum.$hnum.$snum :$xref";
- die "badly formatted subheading: $_\n" if !/^\\S{([^}]*)}\s*(.*)$/;
+ die "badly formatted subheading: $_\n" if !/^\\S\{([^}]*)\}\s*(.*)$/;
$refs{$1} = "section $cnum.$hnum.$snum";
$node = "Section $cnum.$hnum.$snum";
&add_item($node, 3);
@@ -317,18 +317,18 @@ sub got_para {
# the standard word-by-word code will happen next
} elsif (/^\\IR/) {
# An index-rewrite.
- die "badly formatted index rewrite: $_\n" if !/^\\IR{([^}]*)}\s*(.*)$/;
+ die "badly formatted index rewrite: $_\n" if !/^\\IR\{([^\}]*)\}\s*(.*)$/;
$irewrite = $1;
$_ = $2;
# the standard word-by-word code will happen next
} elsif (/^\\IA/) {
# An index-alias.
- die "badly formatted index alias: $_\n" if !/^\\IA{([^}]*)}{([^}]*)}\s*$/;
+ die "badly formatted index alias: $_\n" if !/^\\IA\{([^}]*)\}\{([^\}]*)\}\s*$/;
$idxalias{$1} = $2;
return; # avoid word-by-word code
} elsif (/^\\M/) {
# Metadata
- die "badly formed metadata: $_\n" if !/^\\M{([^}]*)}{([^}]*)}\s*$/;
+ die "badly formed metadata: $_\n" if !/^\\M\{([^\}]*)\}\{([^\}]*)\}\s*$/;
$metadata{$1} = $2;
return; # avoid word-by-word code
} elsif (/^\\b/) {
@@ -377,8 +377,8 @@ sub got_para {
die "badly formatted \\c: \\c$_\n" if !/{(([^\\}]|\\.)*)}(.*)$/;
$w = $1;
$_ = $3;
- $w =~ s/\\{/{/g;
- $w =~ s/\\}/}/g;
+ $w =~ s/\\\{/{/g;
+ $w =~ s/\\\}/}/g;
$w =~ s/\\-/-/g;
$w =~ s/\\\\/\\/g;
(push @$pname,"i"),$lastp = $#$pname if $indexing;
@@ -394,8 +394,8 @@ sub got_para {
die "badly formatted $type: $type$_\n" if !/{(([^\\}]|\\.)*)}(.*)$/;
$w = $1;
$_ = $3;
- $w =~ s/\\{/{/g;
- $w =~ s/\\}/}/g;
+ $w =~ s/\\\{/{/g;
+ $w =~ s/\\\}/}/g;
$w =~ s/\\-/-/g;
$w =~ s/\\\\/\\/g;
$t = $emph ? "es" : "n ";
@@ -431,8 +431,8 @@ sub got_para {
$t = "w ";
$t = "wc" if $3 eq "\\c";
$indexing = 1 if $2;
- $w =~ s/\\{/{/g;
- $w =~ s/\\}/}/g;
+ $w =~ s/\\\{/{/g;
+ $w =~ s/\\\}/}/g;
$w =~ s/\\-/-/g;
$w =~ s/\\\\/\\/g;
(push @$pname,"i"),$lastp = $#$pname if $indexing;
@@ -443,8 +443,8 @@ sub got_para {
die "painful death! $_\n" if !length $1;
$w = $1;
$_ = $3;
- $w =~ s/\\{/{/g;
- $w =~ s/\\}/}/g;
+ $w =~ s/\\\{/{/g;
+ $w =~ s/\\\}/}/g;
$w =~ s/\\-/-/g;
$w =~ s/\\\\/\\/g;
if ($w eq "-") {