Changeset View
Changeset View
Standalone View
Standalone View
autotests/reference/highlight.cmake.ref
1 | <Comment># This CMakeLists.txt doesn't do anything useful,</Comment><br/> | 1 | <Comment># This CMakeLists.txt doesn't do anything useful,</Comment><br/> | ||
---|---|---|---|---|---|
2 | <Comment># but it shoudl demonstrate the cmake syntax highlighting</Comment><br/> | 2 | <Comment># but it shoudl demonstrate the cmake syntax highlighting</Comment><br/> | ||
3 | <Comment>#</Comment><br/> | 3 | <Comment>#</Comment><br/> | ||
4 | <Comment># Alex Turbov <i.zaufi@gmail.com></Comment><br/> | 4 | <Comment># Alex Turbov <i.zaufi@gmail.com></Comment><br/> | ||
5 | <Comment>#</Comment><br/> | 5 | <Comment>#</Comment><br/> | ||
6 | <Normal Text></Normal Text><br/> | 6 | <Normal Text></Normal Text><br/> | ||
7 | <Region Marker>#[[.rst:</Region Marker><br/> | 7 | <Region Marker>#[[.rst:</Region Marker><br/> | ||
8 | <Comment>Demo</Comment><br/> | 8 | <Comment>Demo</Comment><br/> | ||
9 | <Comment>----</Comment><br/> | 9 | <Comment>----</Comment><br/> | ||
10 | <Comment></Comment><br/> | 10 | <Comment></Comment><br/> | ||
11 | <Comment>This is an</Comment><Bold> **RST**</Bold><Comment> documentation.</Comment><br/> | 11 | <Comment>This is an </Comment><Bold>**RST**</Bold><Comment> documentation.</Comment><br/> | ||
12 | <Comment></Comment><br/> | 12 | <Comment></Comment><br/> | ||
13 | <Code>::</Code><br/> | 13 | <Code>::</Code><br/> | ||
14 | <Code></Code><br/> | 14 | <Code></Code><br/> | ||
15 | <Code> # Sample code block</Code><br/> | 15 | <Code> # Sample code block</Code><br/> | ||
16 | <Code> blah-blah</Code><br/> | 16 | <Code> blah-blah</Code><br/> | ||
17 | <Code></Code><br/> | 17 | <Code></Code><br/> | ||
18 | <Comment>But we are about to test CMake here ;-)</Comment><br/> | 18 | <Comment>But we are about to test CMake here ;-)</Comment><br/> | ||
19 | <Comment></Comment><br/> | 19 | <Comment></Comment><br/> | ||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
62 | <Generator Expression> LINUX_FOO</Generator Expression><br/> | 62 | <Generator Expression> LINUX_FOO</Generator Expression><br/> | ||
63 | <Generator Expression> $<$<</Generator Expression><Generator Expression Keyword>BOOL</Generator Expression Keyword><Generator Expression>:</Generator Expression><Variable Substitution>${</Variable Substitution><Internal Name>_has_foo</Internal Name><Variable Substitution>}</Variable Substitution><Generator Expression>>:SOME_FOO_PATH=</Generator Expression><Variable Substitution>${</Variable Substitution><Builtin Variable>PROJECT_BINARY_DIR</Builtin Variable><Variable Substitution>}</Variable Substitution><Generator Expression>/foo></Generator Expression><br/> | 63 | <Generator Expression> $<$<</Generator Expression><Generator Expression Keyword>BOOL</Generator Expression Keyword><Generator Expression>:</Generator Expression><Variable Substitution>${</Variable Substitution><Internal Name>_has_foo</Internal Name><Variable Substitution>}</Variable Substitution><Generator Expression>>:SOME_FOO_PATH=</Generator Expression><Variable Substitution>${</Variable Substitution><Builtin Variable>PROJECT_BINARY_DIR</Builtin Variable><Variable Substitution>}</Variable Substitution><Generator Expression>/foo></Generator Expression><br/> | ||
64 | <Generator Expression> ></Generator Expression><br/> | 64 | <Generator Expression> ></Generator Expression><br/> | ||
65 | <Normal Text> )</Normal Text><br/> | 65 | <Normal Text> )</Normal Text><br/> | ||
66 | <Normal Text></Normal Text><br/> | 66 | <Normal Text></Normal Text><br/> | ||
67 | <Region Marker>#[=======================================================================[.rst:</Region Marker><br/> | 67 | <Region Marker>#[=======================================================================[.rst:</Region Marker><br/> | ||
68 | <Directive>.. cmake:command:: </Directive><Comment>my_fun</Comment><br/> | 68 | <Directive>.. cmake:command:: </Directive><Comment>my_fun</Comment><br/> | ||
69 | <Comment></Comment><br/> | 69 | <Comment></Comment><br/> | ||
70 | <Italic>*RST*</Italic><Comment> documentation</Comment><InlineLiteral> ``can``</InlineLiteral><Comment> refer to </Comment><Role>:cmake:command:</Role><InterpretedText>`any_commands`</InterpretedText><Comment> or</Comment><br/> | 70 | <Italic>*RST*</Italic><Comment> documentation </Comment><InlineLiteral>``can``</InlineLiteral><Comment> refer to </Comment><Role>:cmake:command:</Role><InterpretedText>`any_commands`</InterpretedText><Comment> or</Comment><br/> | ||
71 | <Role>:cmake:variable:</Role><InterpretedText>`variables`</InterpretedText><Comment>...</Comment><br/> | 71 | <Role>:cmake:variable:</Role><InterpretedText>`variables`</InterpretedText><Comment>...</Comment><br/> | ||
72 | <Comment></Comment><br/> | 72 | <Comment></Comment><br/> | ||
73 | <Code>.. code-block:: cmake</Code><br/> | 73 | <Code>.. code-block:: cmake</Code><br/> | ||
74 | <Code> :caption: **Synopsys**</Code><br/> | 74 | <Code> :caption: **Synopsys**</Code><br/> | ||
75 | <Code></Code><br/> | 75 | <Code></Code><br/> | ||
76 | <Code> my_fun([ANYTHING...])</Code><br/> | 76 | <Code> my_fun([ANYTHING...])</Code><br/> | ||
77 | <Code></Code><br/> | 77 | <Code></Code><br/> | ||
78 | <Region Marker>#]=======================================================================]</Region Marker><br/> | 78 | <Region Marker>#]=======================================================================]</Region Marker><br/> | ||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |