Changeset View
Changeset View
Standalone View
Standalone View
autotests/reference/highlight.php.ref
Show All 40 Lines | |||||
41 | <Normal Text> </Normal Text><Reserved>class</Reserved><Normal Text> </Normal Text><Normal Text>DateTime </Normal Text><Symbol>{</Symbol><br/> | 41 | <Normal Text> </Normal Text><Reserved>class</Reserved><Normal Text> </Normal Text><Normal Text>DateTime </Normal Text><Symbol>{</Symbol><br/> | ||
42 | <Normal Text> </Normal Text><Parameter>info</Parameter><Symbol>:</Symbol><Normal Text> </Normal Text><Types>string</Types><Symbol>;</Symbol><br/> | 42 | <Normal Text> </Normal Text><Parameter>info</Parameter><Symbol>:</Symbol><Normal Text> </Normal Text><Types>string</Types><Symbol>;</Symbol><br/> | ||
43 | <Normal Text> </Normal Text><Reserved>constructor</Reserved><Normal Text>(</Normal Text><Normal Text>) </Normal Text><Symbol>{</Symbol><Normal Text> </Normal Text><Keyword>this</Keyword><Normal Text>.</Normal Text><Object Member>info</Object Member><Normal Text> </Normal Text><Symbol>=</Symbol><Normal Text> </Normal Text><Keyword><?php</Keyword><PHP Text> </PHP Text><Keyword>echo</Keyword><Other>(</Other><Function>date</Function><Other>(</Other><String>"F d, Y h:i:s"</String><Other>,</Other><PHP Text> </PHP Text><Variable>$timestamp</Variable><Other>));</Other><PHP Text> </PHP Text><Keyword>?></Keyword><Symbol>;</Symbol><Normal Text> </Normal Text><Symbol>}</Symbol><br/> | 43 | <Normal Text> </Normal Text><Reserved>constructor</Reserved><Normal Text>(</Normal Text><Normal Text>) </Normal Text><Symbol>{</Symbol><Normal Text> </Normal Text><Keyword>this</Keyword><Normal Text>.</Normal Text><Object Member>info</Object Member><Normal Text> </Normal Text><Symbol>=</Symbol><Normal Text> </Normal Text><Keyword><?php</Keyword><PHP Text> </PHP Text><Keyword>echo</Keyword><Other>(</Other><Function>date</Function><Other>(</Other><String>"F d, Y h:i:s"</String><Other>,</Other><PHP Text> </PHP Text><Variable>$timestamp</Variable><Other>));</Other><PHP Text> </PHP Text><Keyword>?></Keyword><Symbol>;</Symbol><Normal Text> </Normal Text><Symbol>}</Symbol><br/> | ||
44 | <Normal Text> </Normal Text><Reserved>get</Reserved><Normal Text>(</Normal Text><Normal Text>) </Normal Text><Symbol>{</Symbol><Normal Text> </Normal Text><ControlFlow>return</ControlFlow><Normal Text> </Normal Text><Keyword>this</Keyword><Normal Text>.</Normal Text><Object Member>info</Object Member><Symbol>;</Symbol><Normal Text> </Normal Text><Symbol>}</Symbol><br/> | 44 | <Normal Text> </Normal Text><Reserved>get</Reserved><Normal Text>(</Normal Text><Normal Text>) </Normal Text><Symbol>{</Symbol><Normal Text> </Normal Text><ControlFlow>return</ControlFlow><Normal Text> </Normal Text><Keyword>this</Keyword><Normal Text>.</Normal Text><Object Member>info</Object Member><Symbol>;</Symbol><Normal Text> </Normal Text><Symbol>}</Symbol><br/> | ||
45 | <Normal Text> </Normal Text><Symbol>}</Symbol><br/> | 45 | <Normal Text> </Normal Text><Symbol>}</Symbol><br/> | ||
46 | <Normal Text> </Normal Text><Element></script></Element><br/> | 46 | <Normal Text> </Normal Text><Element></script></Element><br/> | ||
47 | <Normal Text> </Normal Text><Comment><!-- MustacheJS --></Comment><br/> | 47 | <Normal Text> </Normal Text><Comment><!-- MustacheJS --></Comment><br/> | ||
48 | <Normal Text> </Normal Text><Element><script</Element><Attribute> type=</Attribute><Value>"x-tmpl-mustache"</Value><Element>></Element><br/> | 48 | <Normal Text> </Normal Text><Element><script</Element><Attribute> type=</Attribute><Value>"x-tmpl-mustache"</Value><Element>></Element><br/> | ||
49 | <Normal Text> </Normal Text><Mustache Comment>{{! </Mustache Comment><Keyword><?php</Keyword><PHP Text> </PHP Text><Keyword>print</Keyword><PHP Text> </PHP Text><String>"comment"</String><Other>;</Other><PHP Text> </PHP Text><Keyword>?></Keyword><Mustache Comment> }}</Mustache Comment><br/> | 49 | <Normal Text> </Normal Text><Comment>{{! </Comment><Keyword><?php</Keyword><PHP Text> </PHP Text><Keyword>print</Keyword><PHP Text> </PHP Text><String>"comment"</String><Other>;</Other><PHP Text> </PHP Text><Keyword>?></Keyword><Comment> }}</Comment><br/> | ||
50 | <Normal Text> </Normal Text><Mustache Section>{{#movie}}</Mustache Section><br/> | 50 | <Normal Text> </Normal Text><Mustache Block>{{#movie}}</Mustache Block><br/> | ||
51 | <Normal Text> </Normal Text><Element Tag><div></Element Tag><br/> | 51 | <Normal Text> </Normal Text><Element Tag><div></Element Tag><br/> | ||
52 | <Tag Content Text> </Tag Content Text><Element Tag><h1></Element Tag><Mustache Variable>{{</Mustache Variable><Normal Text>title</Normal Text><Mustache Variable>}}</Mustache Variable><Element Tag></h1></Element Tag><br/> | 52 | <Normal Text> </Normal Text><Element Tag><h1></Element Tag><Mustache Variable>{{</Mustache Variable><Mustache Inside>title</Mustache Inside><Mustache Variable>}}</Mustache Variable><Element Tag></h1></Element Tag><br/> | ||
53 | <Tag Content Text> </Tag Content Text><Element Tag><img</Element Tag><Normal Text> </Normal Text><Attribute>src</Attribute><Symbol>=</Symbol><Value>"</Value><Mustache Variable>{{</Mustache Variable><Normal Text>poster</Normal Text><Mustache Variable>}}</Mustache Variable><Value>"</Value><Normal Text> </Normal Text><Attribute>alt</Attribute><Symbol>=</Symbol><Value>"</Value><Mustache Variable>{{</Mustache Variable><Normal Text>title</Normal Text><Mustache Variable>}}</Mustache Variable><Value>"</Value><Element Tag>/></Element Tag><br/> | 53 | <Normal Text> </Normal Text><Element Tag><img</Element Tag><Attribute> src</Attribute><Symbol>=</Symbol><Value>"</Value><Mustache Variable>{{</Mustache Variable><Mustache Inside>poster</Mustache Inside><Mustache Variable>}}</Mustache Variable><Value>"</Value><Attribute> alt</Attribute><Symbol>=</Symbol><Value>"</Value><Mustache Variable>{{</Mustache Variable><Mustache Inside>title</Mustache Inside><Mustache Variable>}}</Mustache Variable><Value>"</Value><Element Tag>/></Element Tag><br/> | ||
54 | <Tag Content Text> </Tag Content Text><Keyword><?php</Keyword><PHP Text> </PHP Text><Keyword>echo</Keyword><PHP Text> </PHP Text><Variable>$movierating</Variable><Other>;</Other><PHP Text> </PHP Text><Keyword>?></Keyword><Tag Content Text> - </Tag Content Text><Mustache Variable>{{</Mustache Variable><Normal Text>ratings.critics_rating</Normal Text><Mustache Variable>}}</Mustache Variable><br/> | 54 | <Normal Text> </Normal Text><Keyword><?php</Keyword><PHP Text> </PHP Text><Keyword>echo</Keyword><PHP Text> </PHP Text><Variable>$movierating</Variable><Other>;</Other><PHP Text> </PHP Text><Keyword>?></Keyword><Normal Text> - </Normal Text><Mustache Variable>{{</Mustache Variable><Mustache Inside>ratings</Mustache Inside><Symbol>.</Symbol><Mustache Inside>critics_rating</Mustache Inside><Mustache Variable>}}</Mustache Variable><br/> | ||
55 | <Normal Text> </Normal Text><Element Tag></div></Element Tag><br/> | 55 | <Normal Text> </Normal Text><Element Tag></div></Element Tag><br/> | ||
56 | <Normal Text> </Normal Text><Mustache Section>{{/movie}}</Mustache Section><br/> | 56 | <Normal Text> </Normal Text><Mustache Block>{{/movie}}</Mustache Block><br/> | ||
57 | <Normal Text> </Normal Text><Element></script></Element><br/> | 57 | <Normal Text> </Normal Text><Element></script></Element><br/> | ||
58 | <Normal Text></Normal Text><br/> | 58 | <Normal Text></Normal Text><br/> | ||
59 | <Element></html></Element><br/> | 59 | <Element></html></Element><br/> | ||
60 | <Normal Text></Normal Text><br/> | 60 | <Normal Text></Normal Text><br/> | ||
61 | <Keyword><?php</Keyword><br/> | 61 | <Keyword><?php</Keyword><br/> | ||
62 | <Variable>$var</Variable><PHP Text> = </PHP Text><Backslash Code><<<DOOH</Backslash Code><br/> | 62 | <Variable>$var</Variable><PHP Text> = </PHP Text><Backslash Code><<<DOOH</Backslash Code><br/> | ||
63 | <String>This is the </String><Variable>$string</Variable><String> inside the variable (which seems to be rendered as a string)</String><br/> | 63 | <String>This is the </String><Variable>$string</Variable><String> inside the variable (which seems to be rendered as a string)</String><br/> | ||
64 | <String>It works well, I think.</String><br/> | 64 | <String>It works well, I think.</String><br/> | ||
65 | <Backslash Code>DOOH</Backslash Code><br/> | 65 | <Backslash Code>DOOH</Backslash Code><br/> | ||
66 | <PHP Text></PHP Text><br/> | 66 | <PHP Text></PHP Text><br/> | ||
67 | <Comment># bug 382527</Comment><br/> | 67 | <Comment># bug 382527</Comment><br/> | ||
68 | <Keyword>throw</Keyword><PHP Text> </PHP Text><Keyword>new</Keyword><PHP Text> ParserException</PHP Text><Other>(</Other><String>"Test </String><Variable>{$this->some_var[$index]}</Variable><Backslash Code>\n</Backslash Code><String>in </String><Variable>{$this->file}</Variable><String> is missing.</String><Backslash Code>\n</Backslash Code><String>This is bad."</String><Other>);</Other><br/> | 68 | <Keyword>throw</Keyword><PHP Text> </PHP Text><Keyword>new</Keyword><PHP Text> ParserException</PHP Text><Other>(</Other><String>"Test </String><Variable>{$this->some_var[$index]}</Variable><Backslash Code>\n</Backslash Code><String>in </String><Variable>{$this->file}</Variable><String> is missing.</String><Backslash Code>\n</Backslash Code><String>This is bad."</String><Other>);</Other><br/> | ||
69 | <Keyword>?></Keyword><br/> | 69 | <Keyword>?></Keyword><br/> |