Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/cmake.xml
Show First 20 Lines • Show All 1097 Lines • ▼ Show 20 Line(s) | 1047 | <list name="generator_expr"> | |||
---|---|---|---|---|---|
1098 | <item> TARGET_DIR </item> | 1098 | <item> TARGET_DIR </item> | ||
1099 | </list> | 1099 | </list> | ||
1100 | 1100 | | |||
1101 | <contexts> | 1101 | <contexts> | ||
1102 | <context attribute="Normal Text" lineEndContext="#stay" name="Normal Text"> | 1102 | <context attribute="Normal Text" lineEndContext="#stay" name="Normal Text"> | ||
1103 | <DetectSpaces/> | 1103 | <DetectSpaces/> | ||
1104 | 1104 | | |||
1105 | <!-- handle folding for if else elseif endif blocks --> | 1105 | <!-- handle folding for if else elseif endif blocks --> | ||
1106 | <WordDetect String="if" attribute="Commands" context="Command Args" beginRegion="ifthenelse" insensitive="true" /> | 1106 | <WordDetect String="if" attribute="Commands" context="Command" beginRegion="ifthenelse" insensitive="true" /> | ||
1107 | <WordDetect String="else" attribute="Commands" context="Command Args" endRegion="ifthenelse" beginRegion="ifthenelse" insensitive="true" /> | 1107 | <WordDetect String="else" attribute="Commands" context="Command" endRegion="ifthenelse" beginRegion="ifthenelse" insensitive="true" /> | ||
1108 | <WordDetect String="elseif" attribute="Commands" context="Command Args" endRegion="ifthenelse" beginRegion="ifthenelse" insensitive="true" /> | 1108 | <WordDetect String="elseif" attribute="Commands" context="Command" endRegion="ifthenelse" beginRegion="ifthenelse" insensitive="true" /> | ||
1109 | <WordDetect String="endif" attribute="Commands" context="Command Args" endRegion="ifthenelse" insensitive="true" /> | 1109 | <WordDetect String="endif" attribute="Commands" context="Command" endRegion="ifthenelse" insensitive="true" /> | ||
1110 | 1110 | | |||
1111 | <!-- handle folding for macro endmacro blocks --> | 1111 | <!-- handle folding for macro endmacro blocks --> | ||
1112 | <WordDetect String="macro" attribute="Commands" context="Command Args" beginRegion="macro" insensitive="true" /> | 1112 | <WordDetect String="macro" attribute="Commands" context="Command" beginRegion="macro" insensitive="true" /> | ||
1113 | <WordDetect String="endmacro" attribute="Commands" context="Command Args" endRegion="macro" insensitive="true" /> | 1113 | <WordDetect String="endmacro" attribute="Commands" context="Command" endRegion="macro" insensitive="true" /> | ||
1114 | 1114 | | |||
1115 | <!-- handle folding for foreach endforeach blocks --> | 1115 | <!-- handle folding for foreach endforeach blocks --> | ||
1116 | <WordDetect String="foreach" attribute="Commands" context="Command Args" beginRegion="foreach" insensitive="true" /> | 1116 | <WordDetect String="foreach" attribute="Commands" context="Command" beginRegion="foreach" insensitive="true" /> | ||
1117 | <WordDetect String="endforeach" attribute="Commands" context="Command Args" endRegion="foreach" insensitive="true" /> | 1117 | <WordDetect String="endforeach" attribute="Commands" context="Command" endRegion="foreach" insensitive="true" /> | ||
1118 | 1118 | | |||
1119 | <!-- handle folding for while endwhile blocks --> | 1119 | <!-- handle folding for while endwhile blocks --> | ||
1120 | <WordDetect String="while" attribute="Commands" context="Command Args" beginRegion="while" insensitive="true" /> | 1120 | <WordDetect String="while" attribute="Commands" context="Command" beginRegion="while" insensitive="true" /> | ||
1121 | <WordDetect String="endwhile" attribute="Commands" context="Command Args" endRegion="while" insensitive="true" /> | 1121 | <WordDetect String="endwhile" attribute="Commands" context="Command" endRegion="while" insensitive="true" /> | ||
1122 | 1122 | | |||
1123 | <keyword attribute="Commands" context="Command Args" String="commands" insensitive="true" /> | 1123 | <keyword attribute="Commands" context="Command" String="commands" insensitive="true" /> | ||
1124 | <keyword attribute="Third-Party Commands" context="#stay" String="itkvtk_commands" insensitive="true" /> | 1124 | <keyword attribute="Third-Party Commands" context="#stay" String="itkvtk_commands" insensitive="true" /> | ||
1125 | <RegExpr attribute="Region Marker" context="#stay" String="#\s*BEGIN.*$" beginRegion="block" firstNonSpace="true" /> | 1125 | <RegExpr attribute="Region Marker" context="#stay" String="#\s*BEGIN.*$" beginRegion="block" firstNonSpace="true" /> | ||
1126 | <RegExpr attribute="Region Marker" context="#stay" String="#\s*END.*$" endRegion="block" firstNonSpace="true" /> | 1126 | <RegExpr attribute="Region Marker" context="#stay" String="#\s*END.*$" endRegion="block" firstNonSpace="true" /> | ||
1127 | <RegExpr attribute="Region Marker" context="RST Documentation" String="^#\[(=*)\[\.rst:" column="0" /> | 1127 | <RegExpr attribute="Region Marker" context="RST Documentation" String="^#\[(=*)\[\.rst:" column="0" /> | ||
1128 | <RegExpr attribute="Comment" context="Bracketed Comment" String="^#\[(=*)\[" column="0" /> | 1128 | <RegExpr attribute="Comment" context="Bracketed Comment" String="^#\[(=*)\[" column="0" /> | ||
1129 | <DetectChar attribute="Comment" context="Comment" char="#" /> | 1129 | <DetectChar attribute="Comment" context="Comment" char="#" /> | ||
1130 | <IncludeRules context="Detect Variables" /> | 1130 | <IncludeRules context="Detect Variables" /> | ||
1131 | <RegExpr attribute="Macros" context="Macro Args" String="\w+\s*(?=\()" /> | 1131 | <RegExpr attribute="Macros" context="Macro" String="\w+" /> | ||
1132 | </context> | 1132 | </context> | ||
1133 | <!-- ATTENTION Do not change the context name! Or change a generation script accordingly --> | 1133 | <!-- ATTENTION Do not change the context name! Or change a generation script accordingly --> | ||
1134 | <context attribute="Normal Text" lineEndContext="#stay" name="Detect More Builtin Variables"> | 1134 | <context attribute="Normal Text" lineEndContext="#stay" name="Detect More Builtin Variables"> | ||
1135 | <!-- generated rules --> | 1135 | <!-- generated rules --> | ||
1136 | <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_ARCHIVE_OUTPUT_DIRECTORY_[A-Za-z_][A-Za-z_0-9]*\b" /> | 1136 | <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_ARCHIVE_OUTPUT_DIRECTORY_[A-Za-z_][A-Za-z_0-9]*\b" /> | ||
1137 | <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_COMPILER_IS_GNU[A-Za-z_][A-Za-z_0-9]*\b" /> | 1137 | <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_COMPILER_IS_GNU[A-Za-z_][A-Za-z_0-9]*\b" /> | ||
1138 | <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_[A-Za-z_][A-Za-z_0-9]*\b" /> | 1138 | <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_[A-Za-z_][A-Za-z_0-9]*\b" /> | ||
1139 | <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_DISABLE_FIND_PACKAGE_[A-Za-z_][A-Za-z_0-9]*\b" /> | 1139 | <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_DISABLE_FIND_PACKAGE_[A-Za-z_][A-Za-z_0-9]*\b" /> | ||
▲ Show 20 Lines • Show All 81 Lines • ▼ Show 20 Line(s) | 1219 | <context attribute="Generator Expression" lineEndContext="#pop" name="Generator Expression"> | |||
1221 | <DetectChar attribute="Generator Expression" context="#pop" char=">" /> | 1221 | <DetectChar attribute="Generator Expression" context="#pop" char=">" /> | ||
1222 | <keyword attribute="Generator Expression Keyword" context="DetectSimpleGEEnd" String="simple_generator_expr" insensitive="false" /> | 1222 | <keyword attribute="Generator Expression Keyword" context="DetectSimpleGEEnd" String="simple_generator_expr" insensitive="false" /> | ||
1223 | <keyword attribute="Generator Expression Keyword" context="#stay" String="generator_expr" insensitive="false" /> | 1223 | <keyword attribute="Generator Expression Keyword" context="#stay" String="generator_expr" insensitive="false" /> | ||
1224 | <IncludeRules context="Detect Variables" /> | 1224 | <IncludeRules context="Detect Variables" /> | ||
1225 | </context> | 1225 | </context> | ||
1226 | <context attribute="Normal Text" lineEndContext="#stay" name="Detect Generator Expressions"> | 1226 | <context attribute="Normal Text" lineEndContext="#stay" name="Detect Generator Expressions"> | ||
1227 | <Detect2Chars attribute="Generator Expression" context="Generator Expression" char="$" char1="<" /> | 1227 | <Detect2Chars attribute="Generator Expression" context="Generator Expression" char="$" char1="<" /> | ||
1228 | </context> | 1228 | </context> | ||
1229 | <context attribute="Normal Text" lineEndContext="#stay" name="Command"> | ||||
1230 | <DetectSpaces/> | ||||
1231 | <DetectChar attribute="Normal Text" context="Command Args" char="(" /> | ||||
1232 | <RegExpr attribute="Normal Text" context="#pop" String="." lookAhead="true" /> | ||||
1233 | </context> | ||||
1234 | <context attribute="Normal Text" lineEndContext="#stay" name="Macro"> | ||||
1235 | <DetectSpaces/> | ||||
1236 | <DetectChar attribute="Normal Text" context="Macro Args" char="(" /> | ||||
1237 | <RegExpr attribute="Normal Text" context="#pop" String="." lookAhead="true" /> | ||||
1238 | </context> | ||||
1229 | <context attribute="Normal Text" lineEndContext="#stay" name="Command Args"> | 1239 | <context attribute="Normal Text" lineEndContext="#stay" name="Command Args"> | ||
1230 | <keyword attribute="Special Args" context="#stay" String="special_args" /> | 1240 | <keyword attribute="Special Args" context="#stay" String="special_args" /> | ||
1231 | <keyword attribute="Special Args" context="#stay" String="extra_special_args" /> | 1241 | <keyword attribute="Special Args" context="#stay" String="extra_special_args" /> | ||
1232 | <!-- NOTE Handle CMP<NNN> as a special arg --> | 1242 | <!-- NOTE Handle CMP<NNN> as a special arg --> | ||
1233 | <RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9]+\b" /> | 1243 | <RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9]+\b" /> | ||
1234 | <keyword attribute="Properties" context="#stay" String="properties" /> | 1244 | <keyword attribute="Properties" context="#stay" String="properties" /> | ||
1235 | <keyword attribute="Properties" context="#stay" String="extra_properties" /> | 1245 | <keyword attribute="Properties" context="#stay" String="extra_properties" /> | ||
1246 | <DetectChar attribute="Normal Text" context="Command Args" char="(" /> | ||||
1247 | <DetectChar attribute="Normal Text" context="#pop" char=")" /> | ||||
1236 | <IncludeRules context="Detect Builtin Variables" /> | 1248 | <IncludeRules context="Detect Builtin Variables" /> | ||
1237 | <IncludeRules context="Macro Args" /> | 1249 | <IncludeRules context="Macro Args" /> | ||
1238 | </context> | 1250 | </context> | ||
1239 | <context attribute="Normal Text" lineEndContext="#stay" name="Macro Args"> | 1251 | <context attribute="Normal Text" lineEndContext="#stay" name="Macro Args"> | ||
1252 | <DetectChar attribute="Normal Text" context="Macro Args" char="(" /> | ||||
1240 | <DetectChar attribute="Normal Text" context="#pop" char=")" /> | 1253 | <DetectChar attribute="Normal Text" context="#pop" char=")" /> | ||
1241 | <RegExpr attribute="Escapes" context="#stay" String="\\["$n\\]" /> | 1254 | <RegExpr attribute="Escapes" context="#stay" String="\\["$n\\]" /> | ||
1242 | <DetectChar attribute="Strings" context="String" char=""" /> | 1255 | <DetectChar attribute="Strings" context="String" char=""" /> | ||
1243 | <RegExpr attribute="Strings" context="Bracketed String" String="\[(=*)\[" /> | 1256 | <RegExpr attribute="Strings" context="Bracketed String" String="\[(=*)\[" /> | ||
1244 | <DetectChar attribute="Comment" context="Comment" char="#" /> | 1257 | <DetectChar attribute="Comment" context="Comment" char="#" /> | ||
1245 | <IncludeRules context="Detect Builtin Variables" /> | 1258 | <IncludeRules context="Detect Builtin Variables" /> | ||
1246 | <IncludeRules context="Detect Variables" /> | 1259 | <IncludeRules context="Detect Variables" /> | ||
1247 | <IncludeRules context="Detect Generator Expressions" /> | 1260 | <IncludeRules context="Detect Generator Expressions" /> | ||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |