Changeset View
Changeset View
Standalone View
Standalone View
autotests/html/highlight.y.html
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | 76 | <span style="color:#bf0303;">word</span>: | |||
---|---|---|---|---|---|
79 | | <span style="color:#bf0303;">"bye"</span> { <span style="font-weight:bold;">$$</span> = bye; } | 79 | | <span style="color:#bf0303;">"bye"</span> { <span style="font-weight:bold;">$$</span> = bye; } | ||
80 | ; | 80 | ; | ||
81 | 81 | | |||
82 | <span style="color:#bf0303;">foo</span>: { <span style="font-weight:bold;">$$</span> = <span style="color:#b08000;">0</span> } | 82 | <span style="color:#bf0303;">foo</span>: { <span style="font-weight:bold;">$$</span> = <span style="color:#b08000;">0</span> } | ||
83 | | number { <span style="font-weight:bold;">$$</span> = <span style="font-weight:bold;">$1</span> | <span style="font-weight:bold;">$2</span>; } | 83 | | number { <span style="font-weight:bold;">$$</span> = <span style="font-weight:bold;">$1</span> | <span style="font-weight:bold;">$2</span>; } | ||
84 | | hello { <span style="font-weight:bold;">$$</span> = <span style="font-weight:bold;">$1</span> | <span style="font-weight:bold;">$3</span>; } <span style="color:#898887;">// without a comma</span> | 84 | | hello { <span style="font-weight:bold;">$$</span> = <span style="font-weight:bold;">$1</span> | <span style="font-weight:bold;">$3</span>; } <span style="color:#898887;">// without a comma</span> | ||
85 | 85 | | |||
86 | <span style="color:#bf0303;font-weight:bold;">h</span><span style="color:#bf0303;">ello</span>: | 86 | <span style="color:#bf0303;font-weight:bold;">h</span><span style="color:#bf0303;">ello</span>: | ||
87 | gram1 { <span style="font-weight:bold;">$$</span> = <span style="color:#bf0303;">"hi"</span> }; | 87 | gram1 { <span style="font-weight:bold;">$$</span> = <span style="color:#bf0303;">"</span><span style="color:#bf0303;">hi"</span> }; | ||
88 | | gram2 | 88 | | gram2 | ||
89 | ;; | 89 | ;; | ||
90 | 90 | | |||
91 | <span style="color:#b08000;font-weight:bold;">%%</span> | 91 | <span style="color:#b08000;font-weight:bold;">%%</span> | ||
92 | 92 | | |||
93 | <span style="color:#006e28;">#include </span><span style="color:#ff5500;"><stdio.h></span> | 93 | <span style="color:#006e28;">#include </span><span style="color:#ff5500;"><stdio.h></span> | ||
94 | 94 | | |||
95 | <span style="color:#0057ae;">int</span> main(<span style="color:#0057ae;">void</span>) | 95 | <span style="color:#0057ae;">int</span> main(<span style="color:#0057ae;">void</span>) | ||
96 | { | 96 | { | ||
97 | puts(<span style="color:#bf0303;">"Hello, World!"</span>); | 97 | puts(<span style="color:#bf0303;">"</span><span style="color:#bf0303;">Hello, World!"</span>); | ||
98 | <span style="font-weight:bold;">return</span> <span style="color:#b08000;">0</span>; | 98 | <span style="font-weight:bold;">return</span> <span style="color:#b08000;">0</span>; | ||
99 | } | 99 | } | ||
100 | </pre></body></html> | 100 | </pre></body></html> |