Changeset 12 for trunk/spec
- Timestamp:
- 05/22/08 14:14:40 (7 months ago)
- Location:
- trunk/spec
- Files:
-
- 2 modified
-
spec.dbk (modified) (2 diffs)
-
verify_terms.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/spec/spec.dbk
r8 r12 9665 9665 <nonterminal 9666 9666 def="#c-mapping-value"><quote>:</quote></nonterminal> 9667 ( <nonterminal def="#s-l+block- indented(n,c)"9667 ( <nonterminal def="#s-l+block-node(n,c)" 9668 9668 >s-l+block-node(n,block-out)</nonterminal><sbr/> 9669 9669 | <nonterminal def="#e-node"/> … … 10186 10186 <rhs> 10187 10187 <nonterminal def="#s-l+block-node(n,c)" 10188 > ns-l+block-node(-1,block-in)</nonterminal><sbr/>10188 >s-l+block-node(-1,block-in)</nonterminal><sbr/> 10189 10189 /* Excluding <nonterminal def="#c-forbidden"/> content */ 10190 10190 </rhs> -
trunk/spec/verify_terms.pl
r7 r12 21 21 } 22 22 23 my $in_non_term = 0; 24 23 25 sub StartTag { 24 26 my $tag = $_; 25 27 my $attr = \%_; 28 29 if ($tag =~ /<nonterminal def="#(.[^("]*)/) { 30 $in_non_term = $1; 31 $in_non_term =~ s/\+/\\+/g; 32 $in_non_term = 0 if $in_non_term eq 'c-reserved'; 33 } 26 34 27 35 if ($tag =~ /^<sect|^<chapter|^<book>/) { … … 62 70 63 71 sub Text { 72 my $text = $_; 73 warn("PRD-REF $text => $in_non_term") if $in_non_term and $text !~ /^.$|^${in_non_term}/; 64 74 if ($keep_next_text) { 65 my $text = $_;66 75 $text =~ s/(?:\s|\n)+/ /g; 67 76 push(@parts_stack, $text); … … 73 82 my $tag = $_; 74 83 my $attr = \%_; 84 $in_non_term = 0 if ($tag =~ /nonterminal/); 85 75 86 pop(@parts_stack) if ($tag =~ /sect|chapter|book/); 76 87 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)