|
1 | 1 | <body>
|
2 | 2 | <pre id='vimCodeElement'>
|
3 |
| -<span class="Identifier">message</span>(<span class="ModeMsg">FATAL_ERROR</span> <span class="Constant">[[</span> |
4 |
| -<span class="Constant">This is the first line in a bracket argument with bracket length 1.</span> |
5 |
| -<span class="Constant">No \-escape sequences or ${variable} references are evaluated.</span> |
6 |
| -<span class="Constant">This is always one argument even though it contains a ; character.</span> |
7 |
| -<span class="Constant">It does end in a closing bracket of length 1.</span> |
8 |
| -<span class="Constant">]]</span>) |
9 |
| - |
10 |
| -<span class="Identifier">message</span>(<span class="ModeMsg">FATAL_ERROR</span> <span class="Constant">[=[</span> |
11 |
| -<span class="Constant">This is the first line in a bracket argument with bracket length 1.</span> |
12 |
| -<span class="Constant">No \-escape sequences or ${variable} references are evaluated.</span> |
13 |
| -<span class="Constant">This is always one argument even though it contains a ; character.</span> |
14 |
| -<span class="Constant">The text does not end on a closing bracket of length 0 like ]].</span> |
15 |
| -<span class="Constant">It does end in a closing bracket of length 1.</span> |
16 |
| -<span class="Constant">]=]</span>) |
17 |
| - |
18 |
| -<span class="Identifier">message</span>(<span class="ModeMsg">FATAL_ERROR</span> <span class="Constant">[=123[</span> |
19 |
| -<span class="Constant">This is the first line in a bracket argument with bracket length 1.</span> |
20 |
| -<span class="Constant">No \-escape sequences or ${variable} references are evaluated.</span> |
21 |
| -<span class="Constant">This is always one argument even though it contains a ; character.</span> |
22 |
| -<span class="Constant">The text does not end on a closing bracket of length 0 like ]].</span> |
23 |
| -<span class="Constant">It does end in a closing bracket of length 1.</span> |
24 |
| -<span class="Constant">]=123]</span>) |
25 |
| - |
26 |
| -<span class="Constant">[[ # this will make a cmake-error but defines a bracket-arguemnt</span> |
27 |
| -<span class="Constant">cmake_minimum_required(VERSION 4.0 FATAL_ERROR) # Should be string-colored</span> |
28 |
| -<span class="Constant">]]</span> |
| 3 | +<span class="Identifier">message</span>(<span class="ModeMsg">FATAL_ERROR</span> <span class="Comment">[[</span> |
| 4 | +<span class="Comment">This is the first line in a bracket argument with bracket length 1.</span> |
| 5 | +<span class="Comment">No \-escape sequences or ${variable} references are evaluated.</span> |
| 6 | +<span class="Comment">This is always one argument even though it contains a ; character.</span> |
| 7 | +<span class="Comment">It does end in a closing bracket of length 1.</span> |
| 8 | +<span class="Comment">]]</span>) |
| 9 | + |
| 10 | +<span class="Identifier">message</span>(<span class="ModeMsg">FATAL_ERROR</span> <span class="Comment">[=[</span> |
| 11 | +<span class="Comment">This is the first line in a bracket argument with bracket length 1.</span> |
| 12 | +<span class="Comment">No \-escape sequences or ${variable} references are evaluated.</span> |
| 13 | +<span class="Comment">This is always one argument even though it contains a ; character.</span> |
| 14 | +<span class="Comment">The text does not end on a closing bracket of length 0 like ]].</span> |
| 15 | +<span class="Comment">It does end in a closing bracket of length 1.</span> |
| 16 | +<span class="Comment">]=]</span>) |
| 17 | + |
| 18 | +<span class="Identifier">message</span>(<span class="ModeMsg">FATAL_ERROR</span> <span class="Comment">[==[</span> |
| 19 | +<span class="Comment">This is the first line in a bracket argument with bracket length 1.</span> |
| 20 | +<span class="Comment">No \-escape sequences or ${variable} references are evaluated.</span> |
| 21 | +<span class="Comment">This is always one argument even though it contains a ; character.</span> |
| 22 | +<span class="Comment">The text does not end on a closing bracket of length 0 like ]].</span> |
| 23 | +<span class="Comment">It does end in a closing bracket of length 1.</span> |
| 24 | +<span class="Comment">]==]</span>) |
| 25 | + |
| 26 | +<span class="Comment">[[ # this will make a cmake-error but defines a bracket-arguemnt</span> |
| 27 | +<span class="Comment">cmake_minimum_required(VERSION 4.0 FATAL_ERROR) # Should be string-colored</span> |
| 28 | +<span class="Comment">]]</span> |
29 | 29 |
|
30 | 30 | <span class="Comment">#[[</span>
|
31 |
| -<span class="Comment">cmake_minimum_required(VERSION 4.0 FATAL_ERROR) # Should be greyed out</span> |
32 |
| -<span class="Comment">]]</span> <span class="Identifier">target_link_libraries</span>(t lib) |
| 31 | +<span class="Identifier">cmake_minimum_required</span>(<span class="ModeMsg">VERSION</span> 4.0 <span class="ModeMsg">FATAL_ERROR</span>) <span class="Comment"># Should be greyed out</span> |
| 32 | +]] <span class="Identifier">target_link_libraries</span>(t lib) |
33 | 33 |
|
34 | 34 | <span class="Comment">#[[</span>
|
35 |
| -<span class="Comment">cmake_minimum_required(VERSION 4.0 FATAL_ERROR) # Should be greyed out</span> |
36 |
| -<span class="Comment">#]]</span> <span class="Identifier">target_link_libraries</span>(t lib) |
| 35 | +<span class="Identifier">cmake_minimum_required</span>(<span class="ModeMsg">VERSION</span> 4.0 <span class="ModeMsg">FATAL_ERROR</span>) <span class="Comment"># Should be greyed out</span> |
| 36 | +<span class="Comment">#]] target_link_libraries(t lib)</span> |
37 | 37 |
|
38 | 38 | <span class="Comment"># commented bracket-comment</span>
|
39 | 39 | <span class="Comment">##[[</span>
|
40 | 40 | <span class="Identifier">cmake_minimum_required</span>(<span class="ModeMsg">VERSION</span> 4.0 <span class="ModeMsg">FATAL_ERROR</span>) <span class="Comment"># Should not be greyed out</span>
|
41 | 41 | <span class="Comment">#]]</span>
|
42 | 42 |
|
43 | 43 | <span class="Comment">#[[This is a bracket comment.</span>
|
44 |
| -<span class="Comment">It runs until the close bracket.]]</span> |
| 44 | +It runs until the close bracket.]] |
45 | 45 |
|
46 |
| -<span class="Identifier">message</span>(<span class="Constant">"First Argument</span><span class="Special">\n</span><span class="Constant">"</span> <span class="Comment">#[[Bracket Comment]]</span> <span class="Constant">"Second Argument"</span>) |
| 46 | +<span class="Identifier">message</span>(<span class="Constant">"First Argument</span><span class="Special">\n</span><span class="Constant">"</span> <span class="Comment">#[[Bracket Comment]] "Second Argument")</span> |
47 | 47 |
|
48 |
| -<span class="Comment">#[=12[</span> |
49 |
| -<span class="Comment">comment</span> |
50 |
| -<span class="Comment">]=12]</span> |
| 48 | +<span class="Comment">#[=[</span> |
| 49 | +comment |
| 50 | +]=] |
51 | 51 |
|
52 | 52 | </pre>
|
53 | 53 | </body>
|
0 commit comments