diff options
Diffstat (limited to 'src/libs/3rdparty/syntax-highlighting/data/syntax')
32 files changed, 14325 insertions, 4594 deletions
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/alert.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/alert.xml index ec881f1503..b6c290b0ba 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/alert.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/alert.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd"> -<language version="5" kateversion="3.1" name="Alerts" section="Other" extensions="" mimetype="" author="Dominik Haumann (dhaumann@kde.org)" license="MIT" hidden="true"> +<!DOCTYPE language> +<language version="8" kateversion="3.1" name="Alerts" section="Other" extensions="" mimetype="" author="Dominik Haumann (dhaumann@kde.org)" license="MIT" hidden="true"> <highlighting> <list name="alerts_hi"> <item>ALERT</item> @@ -19,6 +19,7 @@ <item>WARNING</item> <item>CAUTION</item> <item>NOLINT</item> + <item>NOQA</item> </list> <list name="alerts_lo"> <item>###</item> @@ -35,6 +36,8 @@ <WordDetect attribute="Region Marker" context="#stay" String="END" endRegion="AlertRegion2" /> <keyword attribute="Alert Level 1" context="#stay" String="alerts_hi" /> <keyword attribute="Alert Level 2" context="#stay" String="alerts_mid" /> + <!-- Some (Python?) linters use `noqa:` (small case w/ colon) --> + <WordDetect attribute="Alert Level 2" context="#stay" String="noqa:" /> <keyword attribute="Alert Level 3" context="#stay" String="alerts_lo" /> </context> </contexts> @@ -47,7 +50,8 @@ </itemDatas> </highlighting> <general> - <keywords casesensitive="1"/> + <!-- NO-BREAK SPACE (nbsp) as deliminator --> + <keywords casesensitive="1" additionalDeliminator=" "/> </general> </language> <!-- kate: indent-width 2; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/autoconf.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/autoconf.xml new file mode 100644 index 0000000000..c8a5ca2e6b --- /dev/null +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/autoconf.xml @@ -0,0 +1,396 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language SYSTEM "/opt/kde3/share/apps/katepart/syntax/language.dtd"> +<!-- (c) 2008-2011 by Jürgen Heinemann http://www.hjcms.de + @see http://www.gnu.org/software/automake/manual/autoconf/ +--> +<language name="Autoconf Language" version="2" kateversion="2.4" section="Other" + extensions="configure.ac;configure.in;configure.in.in;*.m4;*.M4" + mimetype="text/x-m4;text/x-autoconf" + author="Juergen Heinemann (nospam@hjcms.de)" license="LGPL"> + <highlighting> + <!-- http://www.gnu.org/software/automake/manual/autoconf/Program-_0026-Function-Index.html --> + <list name="keywords"> + <item> if </item> + <item> then </item> + <item> elif </item> + <item> else </item> + <item> fi </item> + <item> for </item> + <item> in </item> + <item> do </item> + <item> don </item> + <item> function </item> + <item> select </item> + <item> until </item> + <item> while </item> + <item> set </item> + <item> ifelse </item> + <item> case </item> + <item> esac </item> + </list> + + <!-- http://www.gnu.org/software/automake/manual/autoconf/Limitations-of-Builtins.html --> + <list name="builtins"> + <item> : </item> + <item> source </item> + <item> alias </item> + <item> bg </item> + <item> bind </item> + <item> break </item> + <item> builtin </item> + <item> cd </item> + <item> caller </item> + <item> command </item> + <item> compgen </item> + <item> complete </item> + <item> continue </item> + <item> dirs </item> + <item> disown </item> + <item> echo </item> + <item> enable </item> + <item> eval </item> + <item> exec </item> + <item> exit </item> + <item> fc </item> + <item> fg </item> + <item> getopts </item> + <item> hash </item> + <item> help </item> + <item> history </item> + <item> jobs </item> + <item> kill </item> + <item> let </item> + <item> logout </item> + <item> popd </item> + <item> printf </item> + <item> pushd </item> + <item> pwd </item> + <item> return </item> + <item> set </item> + <item> shift </item> + <item> shopt </item> + <item> suspend </item> + <item> test </item> + <item> time </item> + <item> times </item> + <item> trap </item> + <item> type </item> + <item> ulimit </item> + <item> umask </item> + <item> unalias </item> + <item> wait </item> + </list> + + <list name="bools"> + <item> no </item> + <item> yes </item> + <item> false </item> + <item> true </item> + </list> + + <!-- + This is an alphabetical list of the M4, M4sugar, and M4sh macros. + http://www.gnu.org/software/automake/manual/autoconf/M4-Macro-Index.html + --> + <list name="m4sugar"> + <item> AS_BOURNE_COMPATIBLE </item> + <item> AS_BOX </item> + <item> AS_CASE </item> + <item> AS_DIRNAME </item> + <item> AS_ECHO </item> + <item> AS_ECHO_N </item> + <item> AS_ESCAPE </item> + <item> AS_EXIT </item> + <item> AS_HELP_STRING </item> + <item> AS_IF </item> + <item> AS_INIT </item> + <item> AS_INIT_GENERATED </item> + <item> AS_LINENO_PREPARE </item> + <item> AS_LITERAL_IF </item> + <item> AS_LITERAL_WORD_IF </item> + <item> AS_ME_PREPARE </item> + <item> AS_MESSAGE_FD </item> + <item> AS_MESSAGE_LOG_FD </item> + <item> AS_MKDIR_P </item> + <item> AS_ORIGINAL_STDIN_FD </item> + <item> AS_SET_CATFILE </item> + <item> AS_SET_STATUS </item> + <item> AS_SHELL_SANITIZE </item> + <item> AS_TMPDIR </item> + <item> AS_TR_CPP </item> + <item> AS_TR_SH </item> + <item> AS_UNSET </item> + <item> AS_VAR_APPEND </item> + <item> AS_VAR_ARITH </item> + <item> AS_VAR_COPY </item> + <item> AS_VAR_IF </item> + <item> AS_VAR_POPDEF </item> + <item> AS_VAR_PUSHDEF </item> + <item> AS_VAR_SET </item> + <item> AS_VAR_SET_IF </item> + <item> AS_VAR_TEST_SET </item> + <item> AS_VERSION_COMPARE </item> + <item> m4_append </item> + <item> m4_append_uniq </item> + <item> m4_append_uniq_w </item> + <item> m4_apply </item> + <item> m4_argn </item> + <item> m4_assert </item> + <item> m4_bmatch </item> + <item> m4_bpatsubst </item> + <item> m4_bpatsubsts </item> + <item> m4_bregexp </item> + <item> m4_builtin </item> + <item> m4_car </item> + <item> m4_case </item> + <item> m4_cdr </item> + <item> m4_changecom </item> + <item> m4_changequote </item> + <item> m4_chomp </item> + <item> m4_chomp_all </item> + <item> m4_cleardivert </item> + <item> m4_cmp </item> + <item> m4_combine </item> + <item> m4_cond </item> + <item> m4_copy </item> + <item> m4_copy_force </item> + <item> m4_count </item> + <item> m4_curry </item> + <item> m4_debugfile </item> + <item> m4_debugmode </item> + <item> m4_decr </item> + <item> m4_default </item> + <item> m4_default_nblank </item> + <item> m4_default_nblank_quoted </item> + <item> m4_default_quoted </item> + <item> m4_define </item> + <item> m4_define_default </item> + <item> m4_defn </item> + <item> m4_divert </item> + <item> m4_divert_once </item> + <item> m4_divert_pop </item> + <item> m4_divert_push </item> + <item> m4_divert_text </item> + <item> m4_divnum </item> + <item> m4_do </item> + <item> m4_dquote </item> + <item> m4_dquote_elt </item> + <item> m4_dumpdef </item> + <item> m4_dumpdefs </item> + <item> m4_echo </item> + <item> m4_errprint </item> + <item> m4_errprintn </item> + <item> m4_escape </item> + <item> m4_esyscmd </item> + <item> m4_esyscmd_s </item> + <item> m4_eval </item> + <item> m4_exit </item> + <item> m4_expand </item> + <item> m4_fatal </item> + <item> m4_flatten </item> + <item> m4_for </item> + <item> m4_foreach </item> + <item> m4_foreach_w </item> + <item> m4_format </item> + <item> m4_if </item> + <item> m4_ifblank </item> + <item> m4_ifdef </item> + <item> m4_ifnblank </item> + <item> m4_ifndef </item> + <item> m4_ifset </item> + <item> m4_ifval </item> + <item> m4_ifvaln </item> + <item> m4_ignore </item> + <item> m4_include </item> + <item> m4_incr </item> + <item> m4_index </item> + <item> m4_indir </item> + <item> m4_init </item> + <item> m4_join </item> + <item> m4_joinall </item> + <item> m4_len </item> + <item> m4_list_cmp </item> + <item> m4_location </item> + <item> m4_make_list </item> + <item> m4_maketemp </item> + <item> m4_map </item> + <item> m4_map_args </item> + <item> m4_map_args_pair </item> + <item> m4_map_args_sep </item> + <item> m4_map_args_w </item> + <item> m4_map_sep </item> + <item> m4_mapall </item> + <item> m4_mapall_sep </item> + <item> m4_max </item> + <item> m4_min </item> + <item> m4_mkstemp </item> + <item> m4_n </item> + <item> m4_newline </item> + <item> m4_normalize </item> + <item> m4_pattern_allow </item> + <item> m4_pattern_forbid </item> + <item> m4_popdef </item> + <item> m4_pushdef </item> + <item> m4_quote </item> + <item> m4_re_escape </item> + <item> m4_rename </item> + <item> m4_rename_force </item> + <item> m4_reverse </item> + <item> m4_set_add </item> + <item> m4_set_add_all </item> + <item> m4_set_contains </item> + <item> m4_set_contents </item> + <item> m4_set_delete </item> + <item> m4_set_difference </item> + <item> m4_set_dump </item> + <item> m4_set_empty </item> + <item> m4_set_foreach </item> + <item> m4_set_intersection </item> + <item> m4_set_list </item> + <item> m4_set_listc </item> + <item> m4_set_map </item> + <item> m4_set_map_sep </item> + <item> m4_set_remove </item> + <item> m4_set_size </item> + <item> m4_set_union </item> + <item> m4_shift </item> + <item> m4_shift2 </item> + <item> m4_shift3 </item> + <item> m4_shiftn </item> + <item> m4_sign </item> + <item> m4_sinclude </item> + <item> m4_split </item> + <item> m4_stack_foreach </item> + <item> m4_stack_foreach_lifo </item> + <item> m4_stack_foreach_sep </item> + <item> m4_stack_foreach_sep_lifo </item> + <item> m4_strip </item> + <item> m4_substr </item> + <item> m4_syscmd </item> + <item> m4_sysval </item> + <item> m4_text_box </item> + <item> m4_text_wrap </item> + <item> m4_tolower </item> + <item> m4_toupper </item> + <item> m4_traceoff </item> + <item> m4_traceon </item> + <item> m4_translit </item> + <item> m4_undefine </item> + <item> m4_undivert </item> + <item> m4_unquote </item> + <item> m4_version_compare </item> + <item> m4_version_prereq </item> + <item> m4_warn </item> + <item> m4_wrap </item> + <item> m4_wrap_lifo </item> + </list> + + <!-- Autotest Macro Index --> + <list name="autotest_macro"> + <item> AT_ARG_OPTION </item> + <item> AT_ARG_OPTION_ARG </item> + <item> AT_BANNER </item> + <item> AT_CAPTURE_FILE </item> + <item> AT_CHECK </item> + <item> AT_CHECK_EUNIT </item> + <item> AT_CHECK_UNQUOTED </item> + <item> AT_CLEANUP </item> + <item> AT_COLOR_TESTS </item> + <item> AT_COPYRIGHT </item> + <item> AT_DATA </item> + <item> AT_FAIL_IF </item> + <item> AT_INIT </item> + <item> AT_KEYWORDS </item> + <item> AT_PACKAGE_BUGREPORT </item> + <item> AT_PACKAGE_NAME </item> + <item> AT_PACKAGE_STRING </item> + <item> AT_PACKAGE_TARNAME </item> + <item> AT_PACKAGE_URL </item> + <item> AT_PACKAGE_VERSION </item> + <item> AT_SETUP </item> + <item> AT_SKIP_IF </item> + <item> AT_TESTED </item> + <item> AT_XFAIL_IF </item> + </list> + + <list name="libtool"> + <item> LT_PREREQ </item> + <item> LT_LANG </item> + <item> LT_INIT </item> + <item> LTDL_INIT </item> + <item> LT_CONFIG_LTDL_DIR </item> + </list> + + <list name="pkgconfig"> + <item> PKG_CHECK_MODULES </item> + <item> PKG_PROG_PKG_CONFIG </item> + <item> PKG_CHECK_EXISTS </item> + </list> + + <contexts> + <context attribute="Normal Text" lineEndContext="#stay" name="Default"> + <!-- <IncludeRules context="##Bash" /> --> + <keyword attribute="Keyword" context="#stay" String="keywords" /> + <RegExpr attribute="Builtin" context="#stay" String="\.(?=\s)" /> + <keyword attribute="Builtin" context="#stay" String="builtins" /> + <keyword attribute="Boolean" context="#stay" String="bools" /> + <!-- Autoconf Macros --> + <keyword attribute="M4 Sugar Macros" context="#stay" String="m4sugar" /> + <!-- Autotest Macro Index --> + <keyword attribute="Autotest Macros" context="#stay" String="autotest_macro" /> + <!-- Other Macros --> + <keyword attribute="pkg-config Macros" context="#stay" String="pkgconfig" /> + <!-- libtool Macros --> + <keyword attribute="Libtool Macros" context="#stay" String="libtool" /> + <!-- Autoconf Macros --> + <RegExpr attribute="Autoconf Macros" context="#stay" String="\bAC_[A-Z0-9_]+\b" insensitive="false" endRegion="BeginRegion" /> + <!-- Automake Macros --> + <RegExpr attribute="Automake Macros" context="#stay" String="\bAM_[A-Z0-9_]+\b" insensitive="false" endRegion="BeginRegion" /> + <!-- Script temp Defined Macros --> + <RegExpr attribute="Inline Macros" context="#stay" String="\bac_[a-z_]+\b" insensitive="false" endRegion="BeginRegion" /> + <RegExpr attribute="Char" context="#stay" String="'.'"/> + <DetectChar attribute="String" context="String" char="""/> + <AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/.*<=>|"/> + <RegExpr attribute="Variable" context="#stay" String="\$[a-z_]+" insensitive="true" endRegion="BeginRegion" /> + <Float attribute="Float" context="#stay"/> + <Int attribute="Decimal" context="#stay"/> + <RegExpr attribute="Pragmas" context="#stay" String="([\s\t]+#).*$" insensitive="true" endRegion="BeginRegion" /> + <RegExpr attribute="Comment" context="#stay" String="(^#).*$" insensitive="true" endRegion="BeginRegion" /> + <RegExpr attribute="Comment" context="#stay" String="(\bdnl\s).*$" insensitive="true" endRegion="BeginRegion" /> + </context> + <context attribute="Region Marker" lineEndContext="#pop" name="Region Marker"/> + <context attribute="String" lineEndContext="#pop" name="String"> + <DetectChar attribute="String" context="#pop" char="""/> + </context> + </contexts> + <itemDatas> + <itemData name="Normal Text" defStyleNum="dsNormal" /> + <itemData name="Keyword" defStyleNum="dsKeyword" /> + <itemData name="Builtin" defStyleNum="dsKeyword" color="#808" /> + <itemData name="M4 Sugar Macros" defStyleNum="dsKeyword" /> + <itemData name="Autotest Macros" defStyleNum="dsKeyword" /> + <itemData name="Autoconf Macros" defStyleNum="dsKeyword" color="#0095ff" selColor="#ffffff" bold="1" /> + <itemData name="Automake Macros" defStyleNum="dsKeyword" color="#6666cc" selColor="#ffffff" bold="1" /> + <itemData name="Libtool Macros" defStyleNum="dsKeyword" color="#6666cc" selColor="#ffffff" bold="1" /> + <itemData name="Inline Macros" defStyleNum="dsKeyword" color="#6666cc" selColor="#ffffff" /> + <itemData name="pkg-config Macros" defStyleNum="dsKeyword" /> + <itemData name="Boolean" defStyleNum="dsOthers" /> + <itemData name="Variable" defStyleNum="dsOthers" /> + <itemData name="Decimal" defStyleNum="dsDecVal" /> + <itemData name="Float" defStyleNum="dsFloat" /> + <itemData name="Char" defStyleNum="dsChar" /> + <itemData name="String" defStyleNum="dsString" /> + <itemData name="Pragmas" defStyleNum="dsOthers" color="#00C000" /> + <itemData name="Comment" defStyleNum="dsComment" /> + <itemData name="Symbol" defStyleNum="dsNormal"/> + <itemData name="Region Marker" defStyleNum="dsRegionMarker" /> + </itemDatas> + </highlighting> + <general> + <comments> + <comment name="singleLine" start="dnl" /> + <comment name="multiLine" start="/*" end="*/" /> + </comments> + <keywords casesensitive="0" /> + </general> +</language> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/bash.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/bash.xml index cdfdf95844..b3e8334fda 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/bash.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/bash.xml @@ -1,14 +1,80 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd" +<!DOCTYPE language [ - <!ENTITY funcname "[A-Za-z_:][A-Za-z0-9_:#%@-]*"> - <!ENTITY varname "[A-Za-z_][A-Za-z0-9_]*"> - <!ENTITY word "[^|&;()<>\s]+"> <!-- see man bash --> - <!ENTITY eos "(?=($|\s))"> <!-- eol or space following --> - <!ENTITY noword "(?![\w$+-])"> <!-- no word, $, + or - following --> - <!ENTITY pathpart "([\w_@.%*?+-]|\\ )"> <!-- valid character in a file name --> + <!ENTITY tab "	"> + <!ENTITY funcname "([^&_fragpathseps;}=#$]|[+!@](?!\())([^&_fragpathseps;}=$]*+([+!@](?!\())?+)*+"> + <!ENTITY varname "[A-Za-z_][A-Za-z0-9_]*"> + <!ENTITY eos "(?=$|[ &tab;])"> <!-- eol or space following --> + <!ENTITY eoexpr "(?=$|[ &tab;<>|&;)])"> + + <!ENTITY substseps "${'"`\\"> + <!ENTITY symbolseps "<>|&;()"> <!-- see man bash --> + <!ENTITY wordseps " &tab;&symbolseps;"> <!-- see man bash --> + + <!ENTITY bq_string "`[^`]*+`"> + <!ENTITY sq_string "'[^']*+'"> + <!ENTITY dq_string ""(?:[^"\\`]*+|&bq_string;|\\.)*+""> + <!ENTITY strings "(?:&sq_string;|&dq_string;|&bq_string;)"> + + <!ENTITY globany "\[(?:[^&wordseps;"'`\\\[\]]+|\\.|&strings;|\[:\w+:\]|\[)*\]"> + + <!ENTITY next_is_globany "(?:\^?\]\]|(?:\^?\]?)?(?:\\.|[^'" &tab;<>|&;()\\[\]]+|&strings;|\[:\w+:\])+\])"> + <!ENTITY bracket_noglobany "\[(?!&next_is_globany;)"> + + <!ENTITY _fragpathseps "*?+!@&wordseps;&substseps;"> + <!ENTITY _fragpathnosep "(?:[+!@](?!\()|\\.|&_brace_noexpansion;)?+"> + <!ENTITY path "(?:[^&_fragpathseps;\[]*+&_fragpathnosep;)*+"> + <!ENTITY fragpath "(?:[^&_fragpathseps;\[/]*+&_fragpathnosep;)*+"> + <!ENTITY opt "(?:[^&_fragpathseps;\[=/]*+&_fragpathnosep;)*+"> + <!ENTITY pathpart "(?:~|\.\.?|&fragpath;)(?:/&path;|(?=[*?]|[+!@]\(|&fragpath;(?:[/*?]|\[&next_is_globany;|[+!@]\()))|(?:~|\.\.?)(?=[&wordseps;]|$)"> + + <!ENTITY _fragpathseps_alt "*?+!@&substseps;}"> + <!ENTITY _fragpathnosep_alt "(?:[+!@](?!\()|\\.)?+"> + <!ENTITY path_alt "(?:[^&_fragpathseps_alt;]*+&_fragpathnosep_alt;)*+"> + <!ENTITY fragpath_alt "(?:[^&_fragpathseps_alt;/]*+&_fragpathnosep_alt;)*+"> + <!ENTITY opt_alt "(?:[^&_fragpathseps_alt;=/]*+&_fragpathnosep_alt;)*+"> + <!ENTITY pathpart_alt "(?:~|\.\.?|&fragpath_alt;)(?:/&path_alt;|(?=[*?]|[+!@]\(|&fragpath_alt;(?:[/*?]|[+!@]\()))|(?:~|\.\.?)(?=\}|$)"> + + <!-- Path only with / --> + <!ENTITY path_with_sep_text "[^?*+!@&wordseps;'"`\\/]"> + <!ENTITY path_with_sep_text2 "[^?*+!@()'"`\\/]"> + <!ENTITY path_with_sep_expr "\\.|&strings;|&globany;|[?*+](?!\()"> + <!ENTITY path_with_sep_spe "(~|\.\.?)($|[/ &tab;<>|&;)])"> + <!ENTITY path_with_sep_sub "[?*+!@]\((&path_with_sep_text2;++|&path_with_sep_expr;)*+(\)|(?=/))"> + <!ENTITY path_with_sep "/|&path_with_sep_spe;|(&path_with_sep_text;++|&path_with_sep_expr;|&path_with_sep_sub;)*+/"> + + <!ENTITY _braceexpansion_spe " &tab;<>|&;{}\\`'"$"> + <!ENTITY _brace_noexpansion "\{[^&_braceexpansion_spe;,]*+\}"> + <!ENTITY _braceexpansion_var "\$(?:\{[^\[\]&_braceexpansion_spe;]*+(?:\[[*@a-zA-Z0-9]\])\})?"> + <!ENTITY _braceexpansion_string "'[^']*'|"([^"\`]*+|`[^`]*`)*+""> + <!ENTITY _braceexpansion_elems "\\.|`[^`]*`|&_braceexpansion_string;|&_braceexpansion_var;|&_brace_noexpansion;"> + <!ENTITY _braceexpansion_consume "&_braceexpansion_elems;|{(?:[^&_braceexpansion_spe;,]++|&_braceexpansion_elems;)*?}|(?R)?+"> + <!ENTITY _braceexpansion "(?:[^&_braceexpansion_spe;,]++|&_braceexpansion_consume;)*?,(?:[^&_braceexpansion_spe;]++|&_braceexpansion_consume;)*?}"> + <!ENTITY braceexpansion "{&_braceexpansion;"> + + <!ENTITY heredocq "(?|"([^"]+)"|'([^']+)'|\\(.[^&wordseps;&substseps;]*))"> + + <!ENTITY arithmetic_as_subshell "\(((?:[^`'"()$]++|\$\{[^`'"(){}$]+\}|\$(?=[^{`'"()])|`[^`]*+`|\((?1)(?:[)]|(?=['"])))++)(?:[)](?=$|[^)])|["'])"> + + <!ENTITY unary_operators "-[abcdefghkprstuwxGLNOSovRnz]&eos;"> + <!ENTITY binary_operators "(?:-(?:e[fq]|[nolg]t|[nlg]e)|==?|!=)&eos;"> + + <!ENTITY dblbracket_close "\]\](?=($|[ &tab;;|&)]))"> + + <!ENTITY weakDeliminatorSymbols "^%#[]$.{}:-/"> ]> -<language name="Bash" version="9" kateversion="5.0" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;*.nix;.bashrc;.bash_profile;.bash_login;.profile;PKGBUILD;APKBUILD" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL"> + +<language + name="Bash" + version="51" + kateversion="5.79" + section="Scripts" + extensions="*.sh;*.bash;*.ebuild;*.eclass;*.exlib;*.exheres-0;.bashrc;.bash_profile;.bash_login;.profile;PKGBUILD;APKBUILD" + mimetype="application/x-shellscript" + casesensitive="1" + author="Wilbert Berendsen (wilbert@kde.nl)" + license="LGPL" + > <!-- (c) 2004 by Wilbert Berendsen (wilbert@kde.nl) Changes by Matthew Woehlke (mw_triad@users.sourceforge.net) @@ -18,32 +84,40 @@ <highlighting> <list name="keywords"> + <item>break</item> + <item>case</item> + <item>continue</item> + <item>do</item> + <item>done</item> + <item>elif</item> <item>else</item> + <item>esac</item> + <item>fi</item> <item>for</item> <item>function</item> + <item>if</item> <item>in</item> + <item>return</item> <item>select</item> + <item>then</item> <item>until</item> <item>while</item> - <item>elif</item> - <item>then</item> - <item>set</item> </list> <list name="builtins"> + <item>.</item> <item>:</item> <item>source</item> <item>alias</item> <item>bg</item> <item>bind</item> - <item>break</item> <item>builtin</item> <item>cd</item> <item>caller</item> <item>command</item> <item>compgen</item> <item>complete</item> - <item>continue</item> + <item>coproc</item> <item>dirs</item> <item>disown</item> <item>echo</item> @@ -53,19 +127,16 @@ <item>exit</item> <item>fc</item> <item>fg</item> - <item>getopts</item> <item>hash</item> <item>help</item> <item>history</item> <item>jobs</item> <item>kill</item> - <item>let</item> <item>logout</item> <item>popd</item> <item>printf</item> <item>pushd</item> <item>pwd</item> - <item>return</item> <item>set</item> <item>shift</item> <item>shopt</item> @@ -83,18 +154,23 @@ <list name="builtins_var"> <item>export</item> - <item>unset</item> <item>declare</item> - <item>typeset</item> + <item>getopts</item> + <item>let</item> <item>local</item> <item>read</item> <item>readonly</item> + <item>typeset</item> + <item>unset</item> </list> <list name="unixcommands"> <!-- /bin --> <item>arch</item> <item>awk</item> + <item>b2sum</item> + <item>base32</item> + <item>base64</item> <item>bash</item> <item>bunzip2</item> <item>bzcat</item> @@ -109,11 +185,15 @@ <item>bzmore</item> <item>cat</item> <item>chattr</item> + <item>chcon</item> <item>chgrp</item> <item>chmod</item> <item>chown</item> <item>chvt</item> + <item>cksum</item> <item>cp</item> + <item>crontab</item> + <item>csplit</item> <item>date</item> <item>dd</item> <item>deallocvt</item> @@ -125,12 +205,13 @@ <item>domainname</item> <item>du</item> <item>dumpkeys</item> - <item>echo</item> <item>ed</item> <item>egrep</item> + <item>expand</item> <item>false</item> <item>fgconsole</item> <item>fgrep</item> + <item>fold</item> <item>fuser</item> <item>gawk</item> <item>getkeycodes</item> @@ -141,7 +222,9 @@ <item>gunzip</item> <item>gzexe</item> <item>gzip</item> + <item>hostid</item> <item>hostname</item> + <item>iconv</item> <item>igawk</item> <item>install</item> <item>kbd_mode</item> @@ -165,11 +248,11 @@ <item>lzfgrep</item> <item>lzgrep</item> <item>lzless</item> - <item>lzcat</item> <item>lzma</item> <item>lzmainfo</item> <item>lzmore</item> <item>mapscrn</item> + <item>md5sum</item> <item>mesg</item> <item>mkdir</item> <item>mkfifo</item> @@ -181,21 +264,29 @@ <item>nano</item> <item>netstat</item> <item>nisdomainname</item> + <item>nproc</item> <item>nroff</item> + <item>numfmt</item> <item>openvt</item> + <item>paste</item> + <item>pathchk</item> <item>pgawk</item> <item>pidof</item> <item>ping</item> + <item>pinky</item> + <item>printenv</item> <item>ps</item> <item>pstree</item> - <item>pwd</item> + <item>ptx</item> <item>rbash</item> <item>readlink</item> + <item>realpath</item> <item>red</item> <item>resizecons</item> <item>rm</item> <item>rmdir</item> <item>run-parts</item> + <item>runcon</item> <item>sash</item> <item>sed</item> <item>setfont</item> @@ -204,21 +295,33 @@ <item>setmetamode</item> <item>setserial</item> <item>sh</item> + <item>sha1sum</item> + <item>sha224sum</item> + <item>sha256sum</item> + <item>sha384sum</item> + <item>sha512sum</item> <item>showkey</item> <item>shred</item> + <item>shuf</item> <item>sleep</item> <item>ssed</item> <item>stat</item> + <item>stdbuf</item> <item>stty</item> <item>su</item> <item>sync</item> <item>tar</item> <item>tempfile</item> + <item>timeout</item> <item>touch</item> + <item>tput</item> <item>troff</item> <item>true</item> + <item>truncate</item> + <item>tty</item> <item>umount</item> <item>uname</item> + <item>unexpand</item> <item>unicode_start</item> <item>unicode_stop</item> <item>unlink</item> @@ -227,6 +330,7 @@ <item>utmpdump</item> <item>uuidgen</item> <item>vdir</item> + <item>vi</item> <item>wall</item> <item>wc</item> <item>xz</item> @@ -258,13 +362,11 @@ <item>autoconf</item> <item>autoheader</item> <item>automake</item> - <item>awk</item> <item>basename</item> <item>bc</item> <item>bison</item> <item>c++</item> <item>cal</item> - <item>cat</item> <item>cc</item> <item>cdda2wav</item> <item>cdparanoia</item> @@ -272,9 +374,6 @@ <item>cd-read</item> <item>cdrecord</item> <item>chfn</item> - <item>chgrp</item> - <item>chmod</item> - <item>chown</item> <item>chroot</item> <item>chsh</item> <item>clear</item> @@ -282,20 +381,14 @@ <item>co</item> <item>col</item> <item>comm</item> - <item>cp</item> <item>cpio</item> <item>cpp</item> <item>cut</item> <item>dc</item> - <item>dd</item> - <item>df</item> <item>diff</item> <item>diff3</item> - <item>dir</item> - <item>dircolors</item> <item>directomatic</item> <item>dirname</item> - <item>du</item> <item>env</item> <item>expr</item> <item>fbset</item> @@ -307,12 +400,11 @@ <item>free</item> <item>ftp</item> <item>funzip</item> - <item>fuser</item> <item>g++</item> - <item>gawk</item> <item>gc</item> <item>gcc</item> <item>clang</item> + <item>clang++</item> <item>valgrind</item> <item>xdg-open</item> <item>cmake</item> @@ -333,30 +425,22 @@ <item>head</item> <item>hexdump</item> <item>id</item> - <item>install</item> <item>join</item> - <item>kill</item> - <item>killall</item> <item>ld</item> <item>ld86</item> <item>ldd</item> <item>less</item> <item>lex</item> - <item>ln</item> <item>locate</item> <item>lockfile</item> <item>logname</item> <item>lp</item> <item>lpr</item> - <item>ls</item> <item>lynx</item> <item>m4</item> <item>make</item> <item>man</item> - <item>mkdir</item> - <item>mknod</item> <item>msgfmt</item> - <item>mv</item> <item>namei</item> <item>nasm</item> <item>nawk</item> @@ -374,9 +458,7 @@ <item>pcretest</item> <item>perl</item> <item>perror</item> - <item>pidof</item> <item>pr</item> - <item>printf</item> <item>procmail</item> <item>prune</item> <item>ps2ascii</item> @@ -392,12 +474,9 @@ <item>pstops</item> <item>rcs</item> <item>rev</item> - <item>rm</item> <item>scp</item> - <item>sed</item> <item>seq</item> <item>setterm</item> - <item>shred</item> <item>size</item> <item>size86</item> <item>skill</item> @@ -411,7 +490,6 @@ <item>ssh-agent</item> <item>ssh-keygen</item> <item>ssh-keyscan</item> - <item>stat</item> <item>strings</item> <item>strip</item> <item>sudo</item> @@ -420,10 +498,9 @@ <item>tac</item> <item>tail</item> <item>tee</item> - <item>test</item> <item>tr</item> + <item>tsort</item> <item>uniq</item> - <item>unlink</item> <item>unzip</item> <item>updatedb</item> <item>updmap</item> @@ -431,7 +508,6 @@ <item>users</item> <item>vmstat</item> <item>w</item> - <item>wc</item> <item>wget</item> <item>whatis</item> <item>whereis</item> @@ -456,525 +532,1377 @@ <contexts> - <context attribute="Normal Text" lineEndContext="#stay" name="Start"> - <IncludeRules context="FindAll" /> + <context attribute="Normal Text" lineEndContext="#stay" name="Start" fallthroughContext="Command"> + <IncludeRules context="BashOneLine"/> </context> -<!-- ====== The following rulessets are meant to be included ======== --> - <!-- FindAll tries to interpret everything --> - <context attribute="Normal Text" lineEndContext="#stay" name="FindAll"> - <IncludeRules context="FindComments" /> - <IncludeRules context="FindCommands" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindSubstitutions" /> - <IncludeRules context="FindOthers" /> + <!-- used by other syntaxes --> + <context attribute="Normal Text" lineEndContext="#pop" name="FindOneLineBackq" fallthroughContext="#pop"> + <DetectChar attribute="Backquote" context="OneLineBackq" char="`"/> </context> - - <!-- FindMost tries to interpret anything except commands --> - <context attribute="Normal Text" lineEndContext="#stay" name="FindMost"> - <IncludeRules context="FindComments" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindSubstitutions" /> - <IncludeRules context="FindOthers" /> + <context attribute="Normal Text" lineEndContext="#stay" name="OneLineBackq" fallthroughContext="Command"> + <DetectChar attribute="Backquote" context="#pop" char="`"/> + <IncludeRules context="Start"/> </context> + <context attribute="Normal Text" lineEndContext="#pop" name="BashOneLine" fallthroughContext="Command"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <DetectChar attribute="Comment" context="Comment" char="#"/> + <!-- start expression in double parentheses --> + <Detect2Chars context="ExprDblParenOrSubShell" char="(" char1="(" lookAhead="1"/> + <!-- start a subshell --> + <DetectChar attribute="Keyword" context="SubShell" char="(" beginRegion="subshell"/> + <!-- start expression in single/double brackets --> + <DetectChar context="MaybeBracketExpression" char="[" lookAhead="1"/> + <!-- start a group command or BraceExpansion with { --> + <DetectChar context="MaybeGroup" char="{" lookAhead="1"/> + + <!-- handle ` --> + <DetectChar attribute="Backquote" context="CommandBackq" char="`"/> + + <!-- &> and &>> redirection --> + <StringDetect attribute="Redirection" context="WordRedirection" String="&>>"/> + <Detect2Chars attribute="Redirection" context="FdRedirection" char="&" char1=">"/> + + <!-- handle branche conditions --> + <Detect2Chars attribute="Control" context="#stay" char="&" char1="&"/> + <Detect2Chars attribute="Control" context="#stay" char="|" char1="|"/> + + <!-- handle &, |, ; --> + <AnyChar attribute="Control" context="#stay" String="&|;"/> + + <!-- handle variable assignments --> + <RegExpr attribute="Variable" context="VarAssign" String="&varname;(?=\+?=|\[(?:$|[^]]))"/> + <!-- handle keywords --> + <keyword context="DispatchKeyword" String="keywords" lookAhead="1"/> + <!-- handle commands that have variable names as argument --> + <keyword attribute="Builtin" context="VarName" String="builtins_var" lookAhead="1"/> + <!-- mark function definitions without function keyword --> + <RegExpr attribute="Function" context="#stay" String="&funcname;[ &tab;]*\(\)"/> + <!-- Special case for `: << '#BLOCK-COMMENT' form of "multiline" comments--> + <RegExpr attribute="Normal Text" context="PreHereDocMLComment" String="^:[ &tab;]+<<[ &tab;]*'#([^']+)'$" lookAhead="1" column="0"/> + <WordDetect attribute="Builtin" context="Coproc" String="coproc"/> + <keyword attribute="Builtin" context="CommandArgs" String="builtins"/> + <keyword attribute="Command" context="CommandArgs" String="unixcommands"/> + + <!-- handle redirection --> + <AnyChar context="CommandMaybeRedirection" String="<>0123456789" lookAhead="1"/> - <!-- FindComments consumes shell comments till EOL --> - <context attribute="Normal Text" lineEndContext="#pop" name="FindComments"> - <DetectChar attribute="Comment" context="Comment" char="#" firstNonSpace="true"/> - <RegExpr attribute="Normal Text" context="Comment" String="[\s;](?=#)" /> + <AnyChar attribute="Error" context="#stay" String=")}"/> + + <LineContinue attribute="Escape" context="#stay"/> + + <Detect2Chars attribute="Expression" context="#stay" char="!" char1=" "/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="MaybeBracketExpression" fallthroughContext="#pop!Command"> + <!-- start expression in double brackets --> + <RegExpr attribute="Keyword" context="#pop!ExprDblBracket" String="\[\[(?=$|[ &tab;(])" beginRegion="expression"/> + <!-- start expression in single brackets --> + <RegExpr attribute="Builtin" context="#pop!ExprBracket" String="\[&eos;" beginRegion="expression"/> </context> + <context attribute="Normal Text" lineEndContext="#pop" name="MaybeGroup"> + <!-- start a group command with { --> + <RegExpr attribute="Keyword" context="#pop!Group" String="\{&eos;" beginRegion="group"/> + <DetectChar context="#pop!Command" char="{" lookAhead="1"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="CommandMaybeRedirection" fallthroughContext="#pop!Command"> + <IncludeRules context="FindRedirection"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="Return" fallthroughContext="#pop"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <Int attribute="Decimal" context="#stay"/> + </context> + <!-- Comment consumes shell comments till EOL --> <context attribute="Comment" lineEndContext="#pop" name="Comment"> - <IncludeRules context="##Alerts" /> - <IncludeRules context="##Modelines" /> + <DetectSpaces attribute="Comment"/> + <IncludeRules context="##Comments"/> + <DetectIdentifier attribute="Comment" context="#stay"/> </context> - <!-- FindCommentsParen consumes shell comments till EOL or a closing parenthese --> - <context attribute="Normal Text" lineEndContext="#pop" name="FindCommentsParen"> - <DetectChar attribute="Comment" context="CommentParen" char="#" firstNonSpace="true"/> - <RegExpr attribute="Normal Text" context="CommentParen" String="[\s;](?=#)" /> + <!-- Group is called after a { is encountered --> + <context attribute="Normal Text" lineEndContext="#stay" name="Group" fallthroughContext="Command"> + <DetectChar context="MaybeGroupEnd" char="}" lookAhead="1"/> + <IncludeRules context="Start"/> </context> - <context attribute="Comment" lineEndContext="#pop" name="CommentParen"> - <RegExpr attribute="Comment" context="#pop" String="[^)](?=\))" /> - <IncludeRules context="##Alerts" /> + <context attribute="Normal Text" lineEndContext="#pop" name="MaybeGroupEnd"> + <!-- stop a group command with } --> + <RegExpr attribute="Keyword" context="#pop#pop" String="\}&eoexpr;" endRegion="group"/> + <DetectChar context="#pop!Command" char="}" lookAhead="1"/> </context> - <!-- FindCommentsBackq consumes shell comments till EOL or a backquote --> - <context attribute="Normal Text" lineEndContext="#pop" name="FindCommentsBackq"> - <DetectChar attribute="Comment" context="CommentBackq" char="#" firstNonSpace="true"/> - <RegExpr attribute="Normal Text" context="CommentBackq" String="[\s;](?=#)" /> + <context attribute="Normal Text" lineEndContext="#pop" name="Coproc" fallthroughContext="#pop"> + <DetectSpaces attribute="Normal Text"/> + <LineContinue attribute="Escape" context="#stay"/> + <RegExpr context="CoprocName" String="(\$?&varname;|\$\{&varname;\}|'&varname;'|"(\$?&varname;|\$\{&varname;\}|[a-zA-Z0-9_])+")+(?=\s+\{($|\s))" lookAhead="1"/> </context> - <context attribute="Comment" lineEndContext="#pop" name="CommentBackq"> - <RegExpr attribute="Comment" context="#pop" String="[^`](?=`)" /> - <IncludeRules context="##Alerts" /> + <context attribute="Normal Text" lineEndContext="#stay" name="CoprocName"> + <DetectChar attribute="Keyword" context="#pop#pop!Group" char="{" beginRegion="group"/> + <DetectSpaces attribute="Normal Text"/> + <DetectIdentifier attribute="Normal Text"/> + <IncludeRules context="FindWord"/> </context> - - <!-- FindCommands matches many items that can be expected outside strings, substitutions etc. --> - <context attribute="Normal Text" lineEndContext="#stay" name="FindCommands"> - <IncludeRules context="FindSpecialCommands" /> - <IncludeRules context="FindNormalCommands" /> + <context attribute="Command" lineEndContext="#pop" name="Command" fallthroughContext="#pop"> + <DetectSpaces attribute="Normal Text" context="#pop!CommandArgs"/> + <DetectChar context="CommandVariables" char="$" lookAhead="1"/> + <IncludeRules context="FindStrings"/> + <DetectChar context="#pop" char="`" lookAhead="1"/> + <RegExpr attribute="OtherCommand" context="CommandName" String="(?:[^&wordseps;&substseps;]++|\\.)+"/> + <LineContinue attribute="Escape" context="#stay"/> + <DetectChar context="CommandMaybeBraceExpansion" char="{" lookAhead="1"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="FindSpecialCommands"> + <context attribute="Command" lineEndContext="#pop#pop" name="CommandVariables"> + <IncludeRules context="DispatchVariables"/> + <DetectChar attribute="OtherCommand" context="#pop" char="$"/> + </context> + <context attribute="Command" lineEndContext="#pop#pop" name="DispatchVariables"> + <IncludeRules context="DispatchSubstVariables"/> + <IncludeRules context="DispatchStringVariables"/> + <IncludeRules context="DispatchVarnameVariables"/> + </context> + <context attribute="Command" lineEndContext="#pop#pop" name="DispatchSubstVariables"> + <Detect2Chars attribute="Parameter Expansion" context="#pop!VarBraceStart" char="$" char1="{"/> + <StringDetect context="#pop!ExprDblParenSubstOrSubstCommand" String="$((" lookAhead="1"/> + <Detect2Chars attribute="Parameter Expansion" context="#pop!SubstCommand" char="$" char1="(" beginRegion="subshell"/> + </context> + <context attribute="Command" lineEndContext="#pop#pop" name="DispatchStringVariables"> + <Detect2Chars attribute="String SingleQ" context="#pop!StringEsc" char="$" char1="'"/> + <Detect2Chars attribute="String Transl." context="#pop!StringDQ" char="$" char1="""/> + </context> + <context attribute="Command" lineEndContext="#pop#pop" name="DispatchVarnameVariables"> + <RegExpr attribute="Dollar Prefix" context="#pop!VarNamePrefixedWithDollar" String="\$(?=&varname;|[*@#?$!0-9-])"/> + </context> + <context attribute="Variable" lineEndContext="#pop" name="VarNamePrefixedWithDollar"> + <DetectIdentifier attribute="Variable" context="#pop"/> + <AnyChar attribute="Variable" context="#pop" String="*@#?$!0123456789-"/> + </context> + <context attribute="OtherCommand" lineEndContext="#pop#pop" name="CommandName"> + <DetectSpaces attribute="Normal Text" context="#pop#pop!CommandArgs"/> + <DetectIdentifier attribute="OtherCommand" context="#stay"/> + <DetectChar context="CommandVariables" char="$" lookAhead="1"/> + <IncludeRules context="FindStrings"/> + <Detect2Chars attribute="Control" context="#pop#pop" char="&" char1="&"/> + <Detect2Chars attribute="Control" context="#pop#pop" char="|" char1="|"/> + <DetectChar attribute="Control" context="#pop#pop" char="|"/> + <AnyChar context="#pop#pop" String=";)`" lookAhead="1"/> + <AnyChar context="#pop#pop!CommandArgs" String="&<>" lookAhead="1"/> <!-- start expression in double parentheses --> - <Detect2Chars attribute="Keyword" context="ExprDblParen" char="(" char1="(" beginRegion="expression" /> - <!-- start expression in double brackets --> - <RegExpr attribute="Keyword" context="ExprDblBracket" String="\[\[&eos;" beginRegion="expression" column="0"/> - <RegExpr attribute="Keyword" context="ExprDblBracket" String="\s\[\[&eos;" beginRegion="expression" /> - <!-- start expression in single brackets --> - <RegExpr attribute="Builtin" context="ExprBracket" String="\[&eos;" beginRegion="expression" column="0"/> - <RegExpr attribute="Builtin" context="ExprBracket" String="\s\[&eos;" beginRegion="expression" /> - <!-- start a group command with { --> - <RegExpr attribute="Keyword" context="Group" String="\{&eos;" beginRegion="group" /> + <Detect2Chars attribute="Error" context="#pop#pop!ExprDblParen" char="(" char1="(" beginRegion="expression"/> <!-- start a subshell --> - <DetectChar attribute="Keyword" context="SubShell" char="(" beginRegion="subshell" /> + <DetectChar attribute="Error" context="#pop#pop!SubShell" char="(" beginRegion="subshell"/> + <LineContinue attribute="Escape" context="#stay"/> + <DetectChar context="#pop!CommandMaybeBraceExpansion" char="{" lookAhead="1"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="CommandMaybeBraceExpansion"> + <IncludeRules context="DispatchBraceExpansion"/> + <DetectChar attribute="OtherCommand" context="#pop" char="{"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="CommandBackq" fallthroughContext="Command"> + <DetectChar attribute="Backquote" context="#pop!CommandArgs" char="`"/> + <DetectChar attribute="Comment" context="CommentBackq" char="#"/> + <IncludeRules context="Start"/> + </context> + <!-- CommentBackq consumes shell comments till EOL or a backquote --> + <context attribute="Comment" lineEndContext="#pop" name="CommentBackq"> + <DetectChar context="#pop" char="`" lookAhead="1"/> + <IncludeRules context="Comment"/> + </context> + + <!-- CommandArgs matches the items after a command --> + <context attribute="Normal Text" lineEndContext="#pop" name="CommandArgs" fallthroughContext="CommandArg"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + + <!-- &> and &>> redirection --> + <StringDetect attribute="Redirection" context="WordRedirection" String="&>>"/> + <Detect2Chars attribute="Redirection" context="FdRedirection" char="&" char1=">"/> + + <!-- handle &, |, ;, ` --> + <AnyChar context="#pop" String="&|;`" lookAhead="1"/> + + <!-- handle redirection --> + <AnyChar context="CommandArgMaybeRedirection" String="<>0123456789" lookAhead="1"/> + + <DetectChar context="#pop" char=")" lookAhead="1"/> + <DetectChar attribute="Error" context="#pop!SubShell" char="("/> + </context> + <context attribute="Normal Text" lineEndContext="#pop#pop" name="CommandArg" fallthroughContext="#pop!NormalOption"> + <!-- In command arguments, do not allow comments after escaped characters. + This avoids highlighting comments within paths or other text. Ex: pathtext\ #no\ comment --> + <DetectChar context="#pop#pop" char="#" lookAhead="1"/> + <Detect2Chars attribute="Option" context="#pop!LongOption" char="-" char1="-"/> + <DetectChar attribute="Option" context="#pop!ShortOption" char="-"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="CommandArgMaybeRedirection" fallthroughContext="#pop!NormalOption"> + <IncludeRules context="FindRedirection"/> + </context> + + <context attribute="Option" lineEndContext="#pop" name="ShortOption" fallthroughContext="#pop"> + <DetectChar attribute="Path" context="PathThenPop" char="/"/> + <IncludeRules context="LongOption"/> + </context> + <context attribute="Option" lineEndContext="#pop" name="LongOption" fallthroughContext="#pop"> + <AnyChar context="#pop" String="&wordseps;`" lookAhead="1"/> + <DetectChar attribute="Operator" context="#pop!NormalOption" char="="/> + <IncludeRules context="FindWord"/> + <IncludeRules context="FindGlobAndPop"/> + <DetectChar context="OptionMaybeBraceExpansion" char="{" lookAhead="1"/> + <DetectChar context="LongOptionMaybeGlobAny" char="[" lookAhead="1"/> + <RegExpr attribute="Option" context="#stay" String="&opt;"/> + </context> + <context attribute="Option" lineEndContext="#pop#pop" name="LongOptionMaybeGlobAny" fallthroughContext="#pop"> + <IncludeRules context="FindGlobAny"/> + <DetectChar attribute="Option" context="#pop" char="["/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="NormalOption" fallthroughContext="#pop"> + <AnyChar context="#pop" String="&wordseps;`" lookAhead="1"/> + <IncludeRules context="FindWord"/> + <DetectChar context="NormalMaybeBraceExpansion" char="{" lookAhead="1"/> + <IncludeRules context="FindNormalText"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="FindNormalText"> + <IncludeRules context="FindGlobAndPop"/> + <RegExpr attribute="Path" context="PathThenPop" String="&pathpart;"/> + <DetectChar context="FindPathThenPopMaybeGlobAny" char="[" lookAhead="1"/> + <RegExpr attribute="Normal Text" context="#stay" String="[^&wordseps;&substseps;\[]+"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="OptionMaybeBraceExpansion"> + <IncludeRules context="DispatchBraceExpansion"/> + <DetectChar attribute="Option" context="#pop" char="{"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="NormalMaybeBraceExpansion"> + <IncludeRules context="DispatchBraceExpansion"/> + <DetectChar attribute="Normal Text" context="#pop" char="{"/> + </context> + + <context attribute="Normal Text" lineEndContext="#pop" name="AssumeEscape"> + <LineContinue attribute="Escape" context="#pop"/> + <RegExpr attribute="Escape" context="#pop" String="\\."/> + </context> + +<!-- ====== The following rulessets are meant to be included ======== --> + + <!-- FindRedirection consumes shell redirection --> + <context attribute="Normal Text" lineEndContext="#pop" name="FindRedirection"> + <RegExpr attribute="File Descriptor" context="#pop!AssumeRedirection" String="[0-9]++(?=[<>])"/> + <IncludeRules context="AssumeRedirection"/> + </context> + + <!-- DispatchBraceExpansion consumes brace expansions --> + <context attribute="Normal Text" lineEndContext="#pop" name="DispatchBraceExpansion"> + <!-- Only highlighting closed braces. The "BraceExpansion" context corrects + the closure of braces and allows recursive braces (bug #387915). --> + <RegExpr context="#pop!BraceExpansion" String="&braceexpansion;" lookAhead="1"/> + <RegExpr attribute="Escape" context="#pop!SequenceExpression" String="{(?=([-+]?[0-9]+\.\.[-+]?[0-9]+|[a-zA-Z]\.\.[a-zA-Z])(\.\.[-+]?[0-9]+)?\})"/> + </context> + + <!-- FindPathThenPopMaybeGlobAny consumes path --> + <context attribute="Normal Text" lineEndContext="#pop#pop" name="FindPathThenPopMaybeGlobAny" fallthroughContext="#pop!PathThenPop"> + <IncludeRules context="FindGlobAny"/> + <DetectChar attribute="Normal Text" context="#pop" char="["/> + </context> + <context attribute="Path" lineEndContext="#pop" name="FindGlobAndPop"> + <Detect2Chars attribute="Glob" context="ExtGlobAndPop" char="?" char1="("/> + <Detect2Chars attribute="Glob" context="ExtGlobAndPop" char="*" char1="("/> + <AnyChar attribute="Glob" context="PathThenPop" String="?*"/> + <Detect2Chars attribute="Glob" context="ExtGlobAndPop" char="+" char1="("/> + <Detect2Chars attribute="Glob" context="ExtGlobAndPop" char="@" char1="("/> + <Detect2Chars attribute="Glob" context="ExtGlobAndPop" char="!" char1="("/> + </context> + <context attribute="Path" lineEndContext="#stay" name="ExtGlobAndPop"> + <DetectChar attribute="Glob" context="#pop!PathThenPop" char=")"/> + <IncludeRules context="FindWord"/> + <IncludeRules context="IncExtGlob"/> + </context> + <context attribute="Path" lineEndContext="#stay" name="FindExtGlob"> + <Detect2Chars attribute="Glob" context="RecursiveExtGlob" char="?" char1="("/> + <Detect2Chars attribute="Glob" context="RecursiveExtGlob" char="*" char1="("/> + <Detect2Chars attribute="Glob" context="RecursiveExtGlob" char="+" char1="("/> + <Detect2Chars attribute="Glob" context="RecursiveExtGlob" char="@" char1="("/> + <Detect2Chars attribute="Glob" context="RecursiveExtGlob" char="!" char1="("/> + <AnyChar attribute="Glob" context="#stay" String="|?*"/> + </context> + <context attribute="Path" lineEndContext="#stay" name="RecursiveExtGlob"> + <DetectChar attribute="Glob" context="#pop" char=")"/> + <IncludeRules context="FindWord"/> + <IncludeRules context="IncExtGlob"/> + <IncludeRules context="PathThenPopMaybeGlobAny"/> + </context> + <context attribute="Path" lineEndContext="#stay" name="IncExtGlob"> + <DetectIdentifier attribute="Path"/> + <IncludeRules context="FindExtGlob"/> + <DetectChar context="PathMaybeBraceExpansion" char="{" lookAhead="1"/> + </context> + <context attribute="Path" lineEndContext="#pop#pop" name="PathThenPop"> + <AnyChar context="#pop#pop" String="&wordseps;`" lookAhead="1"/> + <IncludeRules context="FindWord"/> + <IncludeRules context="FindExtGlob"/> + <DetectChar context="PathMaybeBraceExpansion" char="{" lookAhead="1"/> + <DetectChar context="PathThenPopMaybeGlobAny" char="[" lookAhead="1"/> + <RegExpr attribute="Path" context="#stay" String="&path;"/> + </context> + <context attribute="Path" lineEndContext="#pop#pop" name="PathThenPopMaybeGlobAny" fallthroughContext="#pop"> + <IncludeRules context="FindGlobAny"/> + <DetectChar attribute="Path" context="#pop" char="["/> + </context> + <context attribute="Path" lineEndContext="#pop" name="PathMaybeBraceExpansion" fallthroughContext="#pop"> + <IncludeRules context="DispatchBraceExpansion"/> + <DetectChar attribute="Path" context="#pop" char="{"/> + </context> + + <context attribute="Glob" lineEndContext="#stay" name="FindGlobAny"> + <RegExpr attribute="Glob" context="GlobAnyFlag" String="\[(?=&next_is_globany;)"/> + </context> + <context attribute="Pattern" lineEndContext="#pop" name="GlobAnyFlag" fallthroughContext="#pop!GlobAny"> + <DetectChar attribute="Glob" context="#pop!GlobAny" char="^"/> + </context> + <context attribute="Pattern" lineEndContext="#pop" name="GlobAny"> + <DetectIdentifier attribute="Pattern"/> + <DetectChar context="AssumeEscape" char="\" lookAhead="1"/> + <DetectChar attribute="Glob" context="#stay" char="-"/> + <IncludeRules context="FindStrings"/> + <DetectChar attribute="Glob" context="#pop" char="]"/> + <Detect2Chars attribute="Glob" context="GlobClass" char="[" char1=":"/> + </context> + <context attribute="Glob" lineEndContext="#pop#pop" name="GlobClass"> + <DetectIdentifier attribute="Pattern"/> + <Detect2Chars attribute="Glob" context="#pop" char=":" char1="]"/> + <DetectChar attribute="Error" context="#pop" char="]"/> + </context> + + <!-- FindPathThenPopInAlternateValue consumes path in ${xx:here}--> + <context attribute="Normal Text" lineEndContext="#pop" name="FindPathThenPopInAlternateValue"> + <Detect2Chars context="#pop!PathThenPopInAlternateValue" char="?" char1="(" lookAhead="1"/> + <Detect2Chars context="#pop!PathThenPopInAlternateValue" char="*" char1="(" lookAhead="1"/> + <Detect2Chars context="#pop!PathThenPopInAlternateValue" char="+" char1="(" lookAhead="1"/> + <Detect2Chars context="#pop!PathThenPopInAlternateValue" char="@" char1="(" lookAhead="1"/> + <Detect2Chars context="#pop!PathThenPopInAlternateValue" char="!" char1="(" lookAhead="1"/> + <AnyChar attribute="Glob" context="#pop!PathThenPopInAlternateValue" String="?*"/> + <RegExpr attribute="Path" context="#pop!PathThenPopInAlternateValue" String="&pathpart_alt;"/> + </context> + <context attribute="Path" lineEndContext="#pop#pop" name="PathThenPopInAlternateValue"> + <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> + <IncludeRules context="FindWord"/> + <Detect2Chars attribute="Glob" context="ExtGlobAndPopInAlternateValue" char="?" char1="("/> + <Detect2Chars attribute="Glob" context="ExtGlobAndPopInAlternateValue" char="*" char1="("/> + <Detect2Chars attribute="Glob" context="ExtGlobAndPopInAlternateValue" char="+" char1="("/> + <Detect2Chars attribute="Glob" context="ExtGlobAndPopInAlternateValue" char="@" char1="("/> + <Detect2Chars attribute="Glob" context="ExtGlobAndPopInAlternateValue" char="!" char1="("/> + <AnyChar attribute="Glob" context="#stay" String="?*"/> + <RegExpr attribute="Path" context="#stay" String="&path_alt;"/> + </context> + <context attribute="Path" lineEndContext="#stay" name="ExtGlobAndPopInAlternateValue"> + <DetectChar attribute="Glob" context="#pop" char=")"/> + <DetectChar attribute="Error" context="#pop#pop" char="}"/> + <IncludeRules context="FindWord"/> + <IncludeRules context="FindExtGlobInAlternateValue"/> + </context> + <context attribute="Path" lineEndContext="#stay" name="FindExtGlobInAlternateValue"> + <DetectIdentifier attribute="Path"/> + <Detect2Chars attribute="Glob" context="RecursiveExtGlobInAlternateValue" char="?" char1="("/> + <Detect2Chars attribute="Glob" context="RecursiveExtGlobInAlternateValue" char="*" char1="("/> + <Detect2Chars attribute="Glob" context="RecursiveExtGlobInAlternateValue" char="+" char1="("/> + <Detect2Chars attribute="Glob" context="RecursiveExtGlobInAlternateValue" char="@" char1="("/> + <Detect2Chars attribute="Glob" context="RecursiveExtGlobInAlternateValue" char="!" char1="("/> + <AnyChar attribute="Glob" context="#stay" String="|?*"/> + </context> + <context attribute="Path" lineEndContext="#stay" name="RecursiveExtGlobInAlternateValue"> + <DetectChar attribute="Glob" context="#pop" char=")"/> + <DetectChar context="#pop" char="}" lookAhead="1"/> + <IncludeRules context="FindWord"/> + <IncludeRules context="FindExtGlobInAlternateValue"/> + </context> + + <context attribute="Pattern" lineEndContext="#stay" name="FindPattern"> + <Detect2Chars attribute="Glob" context="ExtPattern" char="?" char1="("/> + <Detect2Chars attribute="Glob" context="ExtPattern" char="*" char1="("/> + <Detect2Chars attribute="Glob" context="ExtPattern" char="+" char1="("/> + <Detect2Chars attribute="Glob" context="ExtPattern" char="@" char1="("/> + <Detect2Chars attribute="Glob" context="ExtPattern" char="!" char1="("/> + <AnyChar attribute="Glob" context="#stay" String="?*"/> + </context> + <context attribute="Pattern" lineEndContext="#stay" name="ExtPattern"> + <DetectIdentifier attribute="Pattern"/> + <DetectChar attribute="Glob" context="#stay" char="|"/> + <IncludeRules context="FindWord"/> + <DetectChar attribute="Glob" context="#pop" char=")"/> + <IncludeRules context="FindPattern"/> + </context> + + <context attribute="Normal Text" lineEndContext="#pop" name="VarAssign" fallthroughContext="#pop"> + <DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/> + <DetectChar attribute="Operator" context="#pop!Assign" char="="/> + <Detect2Chars attribute="Operator" context="#pop!Assign" char="+" char1="="/> + </context> + + <context attribute="Normal Text" lineEndContext="#pop" name="DispatchKeyword"> <!-- match do and if blocks --> - <RegExpr attribute="Keyword" context="#stay" String="\bdo&noword;" beginRegion="do" /> - <RegExpr attribute="Keyword" context="#stay" String="\bdone&noword;" endRegion="do" /> - <RegExpr attribute="Keyword" context="#stay" String="\bif&eos;" beginRegion="if" /> - <RegExpr attribute="Keyword" context="#stay" String="\bfi&noword;" endRegion="if" /> + <Detect2Chars attribute="Control Flow" context="#pop!NotCond" char="i" char1="f" beginRegion="if"/> + <Detect2Chars attribute="Control Flow" context="#pop" char="f" char1="i" endRegion="if"/> + <StringDetect attribute="Control Flow" context="#pop" String="done" endRegion="do"/> + <Detect2Chars attribute="Control Flow" context="#pop" char="d" char1="o" beginRegion="do"/> + <!-- handle while/until as a special case --> + <StringDetect attribute="Control Flow" context="#pop!NotCond" String="while"/> + <StringDetect attribute="Control Flow" context="#pop!NotCond" String="until"/> + <!-- handle for as a special case --> + <StringDetect attribute="Control Flow" context="#pop!For" String="for"/> + <!-- handle select as a special case --> + <StringDetect attribute="Control Flow" context="#pop!For" String="select"/> <!-- handle case as a special case --> - <RegExpr attribute="Keyword" context="Case" String="\bcase&noword;" beginRegion="case" /> - <!-- handle variable assignments --> - <RegExpr attribute="Variable" context="Assign" String="\b&varname;\+?=" /> - <RegExpr attribute="Variable" context="AssignSubscr" String="\b&varname;(?=\[.+\]\+?=)" /> + <StringDetect attribute="Control Flow" context="#pop!Case" String="case" beginRegion="case"/> <!-- handle functions with function keyword before keywords --> - <StringDetect attribute="Function" context="#stay" String=":()" /> - <WordDetect attribute="Keyword" context="FunctionDef" String="function" /> - <!-- mark function definitions without function keyword --> - <RegExpr attribute="Function" context="#stay" String="&funcname;\s*\(\)" /> + <StringDetect attribute="Keyword" context="#pop!FunctionDef" String="function"/> + <StringDetect attribute="Control Flow" context="#pop!Return" String="return"/> + <!-- not a keyword in this context --> + <Detect2Chars attribute="Error" context="#pop" char="i" char1="n"/> + <StringDetect attribute="Error" context="#pop" String="esac"/> <!-- handle keywords --> - <keyword attribute="Keyword" context="#stay" String="keywords" /> - <RegExpr attribute="Builtin" context="#stay" String="\.(?=\s)" /> - <!-- handle commands that have variable names as argument --> - <keyword attribute="Builtin" context="VarName" String="builtins_var" /> - <!-- handle here-string --> - <RegExpr attribute="Redirection" context="#stay" String="\d*<<<" /> - <!-- handle here document --> - <Detect2Chars attribute="Redirection" context="HereDoc" char="<" char1="<" lookAhead="true" /> - <!-- handle process subst --> - <RegExpr attribute="Redirection" context="ProcessSubst" String="[<>]\(" /> - <!-- handle redirection --> - <RegExpr attribute="Redirection" context="#stay" String="([0-9]*(>{1,2}|<)(&[0-9]+-?)?|&>|>&|[0-9]*<>)" /> - <!-- handle &, &&, | and || --> - <RegExpr attribute="Control" context="#stay" String="([|&])\1?" /> + <DetectIdentifier attribute="Control Flow" context="#pop"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="FindNormalCommands"> - <keyword attribute="Builtin" context="CommandArgs" String="builtins" /> - <keyword attribute="Command" context="CommandArgs" String="unixcommands" /> - <RegExpr attribute="OtherCommand" context="#stay" String="&pathpart;*(?=/)" /> - <RegExpr attribute="OtherCommand" context="#stay" String="~\w*" /> - <RegExpr attribute="OtherCommand" context="#stay" String="/&pathpart;*(?=([/);$`'"]|$))" /> - <RegExpr attribute="OtherCommand" context="CommandArgs" String="/&pathpart;*(?=([\s);$`'"]|$))" /> - <!-- This list is not complete. ie, ":" is missing but as it is in bash completition. --> - <RegExpr attribute="OtherCommand" context="CommandArgs" String="&pathpart;*" /> + + <!-- if ! ..., while ! ... and until ! ... --> + <context attribute="Normal Text" lineEndContext="#pop" name="NotCond" fallthroughContext="#pop"> + <DetectSpaces attribute="Normal Text" context="#pop!NotCond2"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="NotCond2" fallthroughContext="#pop"> + <Detect2Chars attribute="Expression" context="#pop" char="!" char1="&tab;"/> + <Detect2Chars attribute="Expression" context="#pop" char="!" char1=" "/> + <LineContinue attribute="Expression" context="#pop" char="!"/> </context> - <!-- CommandArgs matches the items after a command --> - <context attribute="Normal Text" lineEndContext="#pop" name="CommandArgs"> - <LineContinue /> - <IncludeRules context="FindMost" /> - <RegExpr attribute="Keyword" context="#stay" String="\\$" /> - <!-- handle keywords --> - <RegExpr attribute="Option" context="#stay" String="\.(?=\s)" /> - <!-- handle here-string --> - <RegExpr attribute="Redirection" context="#stay" String="\d*<<<" /> + <context attribute="Normal Text" lineEndContext="#pop" name="For" fallthroughContext="#pop"> + <LineContinue attribute="Escape" context="#stay"/> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <DetectIdentifier attribute="Normal Text" context="#pop!ForIn"/> + <Detect2Chars attribute="Keyword" context="#pop!ForArithmeticExpr" char="(" char1="("/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="ForIn" fallthroughContext="#pop"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <DetectChar attribute="Control" context="#pop" char=";"/> + <WordDetect attribute="Keyword" context="#pop!CommandArgs" String="in"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="ForArithmeticExpr"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <DetectChar attribute="Control" context="#stay" char=";"/> + <Detect2Chars attribute="Keyword" context="#pop" char=")" char1=")"/> + <IncludeRules context="FindExprDblParen"/> + </context> + + <context attribute="Normal Text" lineEndContext="#pop" name="AssumeRedirection"> + <!-- handle output redirection --> + <Detect2Chars attribute="Redirection" context="#pop!WordRedirection" char=">" char1=">"/> + <Detect2Chars attribute="Redirection" context="#pop!WordRedirection" char=">" char1="|"/> + <Detect2Chars attribute="Redirection" context="#pop!FdRedirection" char=">" char1="&"/> + <Detect2Chars attribute="Redirection" context="#pop!ProcessSubst" char=">" char1="("/> + <DetectChar attribute="Redirection" context="#pop!WordRedirection" char=">"/> + <StringDetect attribute="Redirection" context="#pop!StringRedirection" String="<<<"/> <!-- handle here document --> - <Detect2Chars attribute="Redirection" context="HereDoc" char="<" char1="<" lookAhead="true" /> - <!-- handle process subst --> - <RegExpr attribute="Redirection" context="ProcessSubst" String="[<>]\(" /> - <!-- handle redirection --> - <RegExpr attribute="Redirection" context="#stay" String="([0-9]*(>{1,2}|<)(&[0-9]+-?)?|&>|>&|[0-9]*<>)" /> - <!-- handle &, &&, | and || --> - <RegExpr attribute="Control" context="#pop" String="([|&;])\1?" /> - <RegExpr attribute="Normal Text" context="#stay" String="[a-zA-Z_]+-[A-Za-z0-9_-]*" /> - <RegExpr attribute="Option" context="#stay" String="-?-[a-zA-Z_][A-Za-z0-9_-]*" /> - <keyword attribute="Option" context="#stay" String="keywords" /> - <AnyChar String=")}" context="#pop" lookAhead="true"/> - </context> - - <!-- FindCommands matches many items that can be expected outside strings, substitutions etc, when inside a Backquote --> - <context attribute="Normal Text" lineEndContext="#stay" name="FindCommandsBackq"> - <IncludeRules context="FindSpecialCommands" /> - <IncludeRules context="FindNormalCommandsBackq" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="FindNormalCommandsBackq"> - <keyword attribute="Builtin" context="CommandArgsBackq" String="builtins" /> - <keyword attribute="Command" context="CommandArgsBackq" String="unixcommands" /> - <RegExpr attribute="OtherCommand" context="#stay" String="&pathpart;*(?=/)" /> - <RegExpr attribute="OtherCommand" context="#stay" String="~\w*" /> - <RegExpr attribute="OtherCommand" context="#stay" String="/&pathpart;*(?=([/);$`'"]|$))" /> - <RegExpr attribute="OtherCommand" context="CommandArgsBackq" String="/&pathpart;*(?=([\s);$`'"]|$))" /> - <RegExpr attribute="OtherCommand" context="CommandArgsBackq" String="&pathpart;*" /> - </context> - <context attribute="Normal Text" lineEndContext="#pop" name="CommandArgsBackq"> - <LineContinue /> - <DetectChar attribute="Keyword" context="#pop" char="`" lookAhead="true"/> - <IncludeRules context="CommandArgs" /> - </context> - - <!-- FindOthers contains various rules to mark different shell input --> - <context attribute="Normal Text" lineEndContext="#stay" name="FindOthers"> - <IncludeRules context="Escapes" /> - <RegExpr attribute="Keyword" context="#stay" String="\\$" /> - <!-- Only highlighting closed braces. The "BraceExpansion" context corrects - the closure of braces and allows recursive braces (bug #387915). --> - <RegExpr attribute="Escape" context="BraceExpansion" String="\{(?=(\\[ \{\}]|[^\s\{\}]|\{(\\[ ]|\S)*\})+\})" /> - <RegExpr attribute="Path" context="#stay" String="&pathpart;*(?=/)" /> - <RegExpr attribute="Path" context="#stay" String="~\w*" /> - <RegExpr attribute="Path" context="#stay" String="/&pathpart;*(?=([\s/):;$`'"]|$))" /> - <!-- TODO: shell globs beside * and ? (in Path's) --> + <Detect2Chars context="#pop!HereDoc" char="<" char1="<" lookAhead="1"/> + <!-- handle input redirection --> + <Detect2Chars attribute="Redirection" context="#pop!FdRedirection" char="<" char1="&"/> + <Detect2Chars attribute="Redirection" context="#pop!WordRedirection" char="<" char1=">"/> + <Detect2Chars attribute="Redirection" context="#pop!ProcessSubst" char="<" char1="("/> + <DetectChar attribute="Redirection" context="#pop!WordRedirection" char="<"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="Escapes"> - <RegExpr attribute="Escape" context="#stay" String="\\[][;\\$`{}()|&<>* ]" /> + <context attribute="Normal Text" lineEndContext="#pop" name="FdRedirection" fallthroughContext="#pop!FdRedirection2"> + <DetectSpaces attribute="Normal Text"/> + <DetectChar attribute="Comment" context="#pop!Comment" char="#"/> </context> - <context attribute="Escape" lineEndContext="#pop" name="BraceExpansion"> - <DetectSpaces context="#pop" lookAhead="true" /> - <DetectChar attribute="Escape" context="#pop" char="}" /> - <DetectChar attribute="Escape" context="BraceExpansion" char="{" /> - <RegExpr attribute="Error" context="#stay" String="[^\s\{\}\\](?=\s|$)" /> - <IncludeRules context="Escapes" /> - <IncludeRules context="FindSubstitutions" /> - </context> - - <!-- FindStrings looks for single and double quoted strings, also with $-prefix --> - <context attribute="Normal Text" lineEndContext="#stay" name="FindStrings"> - <Detect2Chars attribute="Escape" context="#stay" char="\" char1="'" /> - <Detect2Chars attribute="Escape" context="#stay" char="\" char1=""" /> - <DetectChar attribute="String SingleQ" context="StringSQ" char="'" /> - <DetectChar attribute="String DoubleQ" context="StringDQ" char=""" /> - <Detect2Chars attribute="String SingleQ" context="StringEsc" char="$" char1="'" /> - <Detect2Chars attribute="String Transl." context="StringDQ" char="$" char1=""" /> - </context> - - <!-- FindSubstitutions goes after anything starting with $ and ` and their escapes --> - <context attribute="Normal Text" lineEndContext="#stay" name="FindSubstitutions"> - <RegExpr attribute="Variable" context="Subscript" String="\$&varname;\[" /> - <RegExpr attribute="Variable" context="#stay" String="\$&varname;" /> - <RegExpr attribute="Variable" context="#stay" String="\$[*@#?$!_0-9-]" /> - <RegExpr attribute="Variable" context="#stay" String="\$\{[*@#?$!_0-9-]\}" /> - <RegExpr attribute="Variable" context="#stay" String="\$\{#&varname;(\[[*@]\])?\}" /> - <RegExpr attribute="Variable" context="#stay" String="\$\{!&varname;(\[[*@]\]|[*@])?\}" /> - <RegExpr attribute="Variable" context="#stay" String="\$\{#[0-9]+\}" /> - <RegExpr attribute="Variable" context="VarBrace" String="\$\{&varname;" /> - <RegExpr attribute="Variable" context="VarBrace" String="\$\{[*@#?$!_0-9-](?=[:#%/=?+-])" /> - <StringDetect attribute="Variable" context="ExprDblParenSubst" String="$((" beginRegion="expression" /> - <StringDetect attribute="Redirection" context="SubstFile" String="$(<" /> - <Detect2Chars attribute="Variable" context="SubstCommand" char="$" char1="(" /> - <DetectChar attribute="Backquote" context="SubstBackq" char="`" /> - <RegExpr attribute="Escape" context="#stay" String="\\[`$\\]" /> - </context> - - <!-- FindTests finds operators valid in tests --> - <context attribute="Normal Text" lineEndContext="#stay" name="FindTests"> - <RegExpr attribute="Expression" context="#stay" String="-[abcdefghkprstuwxOGLSNozn](?=\s)"/> - <RegExpr attribute="Expression" context="#stay" String="-([no]t|ef)(?=\s)"/> - <RegExpr attribute="Expression" context="#stay" String="([!=]=?|[><])(?=\s)"/> - <RegExpr attribute="Expression" context="#stay" String="-(eq|ne|[gl][te])(?=\s)"/> + <context attribute="Normal Text" lineEndContext="#pop" name="FdRedirection2" fallthroughContext="#pop!WordRedirection2"> + <RegExpr attribute="File Descriptor" context="#pop!CloseFile" String="[0-9]+(?=-?&eoexpr;)"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="WordRedirection" fallthroughContext="#pop!WordRedirection2"> + <DetectSpaces attribute="Normal Text"/> + <DetectChar attribute="Comment" context="#pop!Comment" char="#"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="WordRedirection2" fallthroughContext="#pop"> + <AnyChar context="#pop" String="&wordseps;`" lookAhead="1"/> + <IncludeRules context="FindWord"/> + <RegExpr attribute="Path" context="PathThenPop" String="&path;"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="StringRedirection" fallthroughContext="#pop!StringRedirection2"> + <DetectSpaces attribute="Normal Text"/> + <DetectChar attribute="Comment" context="#pop!Comment" char="#"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="StringRedirection2"> + <AnyChar context="#pop" String="&wordseps;`" lookAhead="1"/> + <IncludeRules context="FindWord"/> + <DetectIdentifier attribute="Normal Text"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="CloseFile" fallthroughContext="#pop"> + <DetectChar attribute="Keyword" context="#pop" char="-"/> </context> + <!-- HereDoc consumes Here-documents. It is called at the beginning of the "<<" construct. --> + <context attribute="Normal Text" lineEndContext="#stay" name="HereDoc"> + <RegExpr attribute="Redirection" context="HereDocMLComment" String="^[ &tab;]*<<[ &tab;]*'#([^']+)'$" column="0"/> + <RegExpr attribute="Redirection" context="HereDocIQ" String="<<-[ &tab;]*&heredocq;(?=[ &tab;]*$)"/> + <RegExpr attribute="Redirection" context="HereDocINQ" String="<<-[ &tab;]*([^&wordseps;]+)(?=[ &tab;]*$)"/> + <RegExpr attribute="Redirection" context="HereDocQ" String="<<[ &tab;]*&heredocq;(?=[ &tab;]*$)"/> + <RegExpr attribute="Redirection" context="HereDocNQ" String="<<[ &tab;]*([^&wordseps;]+)(?=[ &tab;]*$)"/> -<!-- ====== These are the contexts that can be branched to ======= --> + <RegExpr context="HereDocIQCmd" String="(<<-[ &tab;]*&heredocq;)" lookAhead="1"/> + <RegExpr context="HereDocINQCmd" String="(<<-[ &tab;]*([^&wordseps;]+))" lookAhead="1"/> + <RegExpr context="HereDocQCmd" String="(<<[ &tab;]*&heredocq;)" lookAhead="1"/> + <RegExpr context="HereDocNQCmd" String="(<<[ &tab;]*([^&wordseps;]+))" lookAhead="1"/> - <!-- ExprDblParen consumes an expression started in command mode till )) --> - <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParen"> - <Detect2Chars attribute="Keyword" context="#pop" char=")" char1=")" endRegion="expression" /> - <DetectChar attribute="Normal Text" context="ExprSubParen" char="(" /> - <IncludeRules context="FindMost" /> + <Detect2Chars attribute="Redirection" context="#pop" char="<" char1="<"/><!-- always met --> </context> - <!-- ExprDblParenSubst like ExprDblParen but matches )) as Variable --> - <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParenSubst"> - <Detect2Chars attribute="Variable" context="#pop" char=")" char1=")" endRegion="expression" /> - <DetectChar attribute="Normal Text" context="ExprSubParen" char="(" /> - <IncludeRules context="FindMost" /> + <context attribute="Normal Text" lineEndContext="#pop" name="HereDocRemainder" fallthroughContext="CommandArg"> + <AnyChar context="BashOneLine" String="&|;`" lookAhead="1"/> + <IncludeRules context="CommandArgs"/> </context> - <!-- ExprSubParen consumes an expression till ) --> - <context attribute="Normal Text" lineEndContext="#stay" name="ExprSubParen"> - <DetectChar attribute="Normal Text" context="#pop" char=")" /> - <DetectChar attribute="Normal Text" context="ExprSubParen" char="(" /> - <IncludeRules context="FindMost" /> + <!-- Highlight the builtin `:` (true) and the followed redirection, then fall into `HereDocMLComment` --> + <context attribute="Comment" lineEndContext="#stay" name="PreHereDocMLComment"> + <DetectChar attribute="Builtin" context="#stay" char=":" column="0"/> + <RegExpr attribute="Redirection" context="HereDocMLComment" String="<<[ &tab;]*'#([^']+)'$"/> </context> - <!-- ExprBracket consumes an expression till ] --> - <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracket"> - <RegExpr attribute="Builtin" context="#pop" String="\s\](?=($|[\s;|&]))" endRegion="expression" /> - <RegExpr attribute="Builtin" context="#pop" String="\](?=($|[\s;|&]))" endRegion="expression" column="0"/> - <DetectChar attribute="Normal Text" context="ExprSubParen" char="(" /> - <IncludeRules context="FindTests" /> - <IncludeRules context="FindMost" /> + <context attribute="Comment" lineEndContext="#stay" name="HereDocMLComment" dynamic="true" fallthroughContext="Comment"> + <RegExpr attribute="Redirection" context="#pop#pop" String="^#%1$" column="0" dynamic="true"/> + <RegExpr attribute="Region Marker" context="RST Documentation" String="^#?\[(=*)\[\.rst:" column="0" beginRegion="RSTDocumentation" /> + <IncludeRules context="Comment"/> </context> - <!-- ExprDblBracket consumes an expression till ]] --> - <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracket"> - <RegExpr attribute="Keyword" context="#pop" String="\s\]\](?=($|[\s;|&]))" endRegion="expression" /> - <RegExpr attribute="Keyword" context="#pop" String="\]\](?=($|[\s;|&]))" endRegion="expression" column="0"/> - <DetectChar attribute="Normal Text" context="ExprSubParen" char="(" /> - <IncludeRules context="FindTests" /> - <IncludeRules context="FindMost" /> + <context attribute="Comment" lineEndContext="#stay" name="RST Documentation" dynamic="true"> + <RegExpr attribute="Redirection" context="#pop#pop#pop" String="^#BLOCK-COMMENT$" column="0"/> + <RegExpr attribute="Region Marker" context="#pop" String="^#?\]%1\]" dynamic="true" column="0" endRegion="RSTDocumentation" /> + <IncludeRules context="##reStructuredText" /> </context> - <!-- Group consumes shell input till } --> - <context attribute="Normal Text" lineEndContext="#stay" name="Group"> - <DetectChar attribute="Keyword" context="#pop" char="}" endRegion="group" /> - <IncludeRules context="FindAll" /> + <context attribute="Here Doc" lineEndContext="#stay" name="HereDocQ" dynamic="true" fallthroughContext="HereDocText"> + <RegExpr attribute="Redirection" context="#pop#pop" String="^%1$" dynamic="true" column="0"/> </context> - <!-- SubShell consumes shell input till ) --> - <context attribute="Normal Text" lineEndContext="#stay" name="SubShell"> - <DetectChar attribute="Keyword" context="#pop" char=")" endRegion="subshell" /> - <IncludeRules context="FindAll" /> + <context attribute="Here Doc" lineEndContext="#stay" name="HereDocNQ" dynamic="true" fallthroughContext="HereDocSubstitutions"> + <IncludeRules context="HereDocQ" /> </context> - <!-- Assign consumes an expression till EOL or whitespace --> - <context attribute="Normal Text" lineEndContext="#pop" name="Assign" fallthrough="true" fallthroughContext="#pop"> - <DetectChar attribute="Variable" context="AssignArray" char="(" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindSubstitutions" /> - <IncludeRules context="FindOthers" /> - <RegExpr attribute="Normal Text" context="#stay" String="[\w:,+_./-]" /> + <context attribute="Here Doc" lineEndContext="#stay" name="HereDocIQ" dynamic="true" fallthroughContext="HereDocText"> + <RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%1$" dynamic="true" column="0"/> </context> - <!-- AssignArray consumes everything till ), marking assignments --> - <context attribute="Normal Text" lineEndContext="#pop" name="AssignArray"> - <DetectChar attribute="Variable" context="#pop" char=")" /> - <DetectChar attribute="Variable" context="Subscript" char="[" /> - <DetectChar attribute="Variable" context="Assign" char="=" /> - <IncludeRules context="FindMost" /> + <context attribute="Here Doc" lineEndContext="#stay" name="HereDocINQ" dynamic="true" fallthroughContext="HereDocSubstitutions"> + <IncludeRules context="HereDocIQ" /> </context> - <!-- AssignSubscr first expects a [ then parses subscript and continues with '=value' --> - <context attribute="Normal Text" lineEndContext="#pop" name="AssignSubscr" fallthrough="true" fallthroughContext="#pop"> - <DetectChar attribute="Variable" context="Subscript" char="[" /> - <Detect2Chars attribute="Variable" context="Assign" char="+" char1="=" /> - <DetectChar attribute="Variable" context="Assign" char="=" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindSubstitutions" /> - <IncludeRules context="FindOthers" /> + <context attribute="Here Doc" lineEndContext="#stay" name="HereDocCmd"> + <!-- Only if the redirect is before the command, but as this is too complicated, + check if the redirect is at the beginning of the line. --> + <StringDetect attribute="Redirection" context="BashOneLine" String="%1" dynamic="true" firstNonSpace="1"/> + <StringDetect attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true"/> </context> - <!-- Subscript consumes anything till ], marks as Variable --> - <context attribute="Variable" lineEndContext="#stay" name="Subscript"> - <DetectChar attribute="Variable" context="#pop" char="]" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindSubstitutions" /> - <IncludeRules context="FindOthers" /> + <context attribute="Here Doc" lineEndContext="#stay" name="HereDocQCmd" dynamic="true" fallthroughContext="HereDocText"> + <IncludeRules context="HereDocCmd"/> + <RegExpr attribute="Redirection" context="#pop#pop" String="^%2$" dynamic="true" column="0"/> </context> - <!-- FunctionDef consumes a name, possibly with (), marks as Function --> - <context attribute="Function" lineEndContext="#pop" name="FunctionDef" fallthrough="true" fallthroughContext="#pop"> - <RegExpr attribute="Function" context="#pop" String="\s+&funcname;(\s*\(\))?" /> + <context attribute="Here Doc" lineEndContext="#stay" name="HereDocNQCmd" dynamic="true" fallthroughContext="HereDocSubstitutions"> + <IncludeRules context="HereDocQCmd"/> + </context> + + <context attribute="Here Doc" lineEndContext="#stay" name="HereDocIQCmd" dynamic="true" fallthroughContext="HereDocText"> + <IncludeRules context="HereDocCmd"/> + <RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%2$" dynamic="true" column="0"/> + </context> + + <context attribute="Here Doc" lineEndContext="#stay" name="HereDocINQCmd" dynamic="true" fallthroughContext="HereDocSubstitutions"> + <IncludeRules context="HereDocIQCmd"/> + </context> + + <context attribute="Here Doc" lineEndContext="#pop" name="HereDocText"> + </context> + + <context attribute="Here Doc" lineEndContext="#pop" name="HereDocSubstitutions"> + <DetectSpaces attribute="Here Doc"/> + <DetectIdentifier attribute="Here Doc"/> + <DetectChar context="HereDocVariables" char="$" lookAhead="1"/> + <DetectChar attribute="Backquote" context="CommandBackq" char="`"/> + <DetectChar context="AssumeEscape" char="\" lookAhead="1"/> + </context> + <context attribute="Here Doc" lineEndContext="#pop" name="HereDocVariables"> + <IncludeRules context="DispatchSubstVariables"/> + <IncludeRules context="DispatchVarnameVariables"/> + <DetectChar attribute="Here Doc" context="#pop" char="$"/> </context> <!-- VarName consumes spare variable names and assignments --> - <context attribute="Normal Text" lineEndContext="#pop" name="VarName" fallthrough="true" fallthroughContext="#pop"> - <!-- handle command line options --> - <RegExpr attribute="Option" context="#stay" String="-[A-Za-z0-9]+" /> - <RegExpr attribute="Option" context="#stay" String="--[a-z][A-Za-z0-9_-]*" /> - <RegExpr attribute="Variable" context="#stay" String="\b&varname;" /> - <DetectChar attribute="Variable" context="Subscript" char="[" /> - <DetectChar attribute="Variable" context="Assign" char="=" /> - <IncludeRules context="FindMost" /> - <!-- stay here in spaces and other safe characters --> - <RegExpr attribute="Normal Text" context="#stay" String="[^]})|;`&><]" /> + <context attribute="Normal Text" lineEndContext="#pop" name="VarName"> + <StringDetect attribute="Builtin" context="#pop!BuiltinGetopts" String="getopts"/> + <StringDetect attribute="Builtin" context="#pop!BuiltinLet" String="let"/> + <DetectIdentifier attribute="Builtin" context="#pop!VarNameArgs"/> + <AnyChar attribute="Builtin" context="#pop!VarNameArgs" String=".:"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="VarNameArgs" fallthroughContext="#pop!CommandArgs"> + <DetectSpaces attribute="Normal Text" context="VarNameArg"/> + <LineContinue attribute="Escape" context="#stay"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop#pop" name="VarNameArg" fallthroughContext="#pop!VarNameArg2"> + <!-- In command arguments, do not allow comments after escaped characters. + This avoids highlighting comments within paths or other text. Ex: pathtext\ #no\ comment --> + <DetectChar context="#pop#pop" char="#" lookAhead="1"/> + <DetectChar attribute="Option" context="#pop!ShortOption" char="-"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="VarNameArg2" fallthroughContext="#pop!NormalOption"> + <DetectChar attribute="Variable" context="Subscript" char="["/> + <DetectChar attribute="Operator" context="Assign" char="="/> + <DetectChar attribute="Variable" context="AssignArray" char="("/> + <DetectIdentifier attribute="Variable" context="#stay"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="BuiltinGetopts" fallthroughContext="#pop!CommandArgs"> + <DetectSpaces attribute="Normal Text" context="#pop!BuiltinGetoptsOpt"/> + <LineContinue attribute="Escape" context="#stay"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop#pop" name="BuiltinGetoptsOpt" fallthroughContext="#pop!BuiltinGetoptsOpt2"> + <DetectChar context="#pop#pop" char="#" lookAhead="1"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="BuiltinGetoptsOpt2" fallthroughContext="#pop!NormalOption"> + <DetectChar attribute="Operator" context="#stay" char=":"/> + <DetectIdentifier attribute="Normal Text" context="#stay" /> + <DetectSpaces attribute="Normal Text" context="#pop!BuiltinGetoptsVar"/> + <AnyChar context="#pop" String="&wordseps;`" lookAhead="1"/> + <IncludeRules context="FindWord"/> + <DetectChar context="NormalMaybeBraceExpansion" char="{" lookAhead="1"/> + <AnyChar attribute="Normal Text" context="#stay" String="/%.0123456789"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="BuiltinGetoptsVar" fallthroughContext="#pop!CommandArgs"> + <DetectIdentifier attribute="Variable" context="#pop!CommandArgs"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="BuiltinLet" fallthroughContext="#pop!CommandArgs"> + <DetectSpaces attribute="Normal Text" context="#pop!BuiltinLetArgs"/> + <LineContinue attribute="Escape" context="#stay"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="BuiltinLetArgs" fallthroughContext="BuiltinLetArg"> + <AnyChar context="BuiltinLetArgsNumber" String="0123456789" lookAhead="1"/> + <IncludeRules context="CommandArgs"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="BuiltinLetArgsNumber" fallthroughContext="#pop!BuiltinLetArg"> + <IncludeRules context="FindRedirection"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop#pop" name="BuiltinLetArg" fallthroughContext="#pop!BuiltinLetExpr"> + <DetectChar context="#pop#pop" char="#" lookAhead="1"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="BuiltinLetExpr" fallthroughContext="#pop!NormalOption"> + <DetectIdentifier attribute="Variable" context="#stay" /> + <AnyChar context="#pop" String="&wordseps;`" lookAhead="1"/> + <AnyChar attribute="Operator" context="#stay" String="+-/%=^:"/> + <AnyChar context="Number" String="0123456789" lookAhead="1"/> + <DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/> + <IncludeRules context="FindWord"/> + <DetectChar attribute="Error" context="#stay" char="#"/> + <DetectChar context="NormalMaybeBraceExpansion" char="{" lookAhead="1"/> </context> <!-- ProcessSubst handles <(command) and >(command) --> - <context attribute="Normal Text" lineEndContext="#stay" name="ProcessSubst"> - <DetectChar attribute="Redirection" context="#pop" char=")" /> - <IncludeRules context="FindCommentsParen" /> - <IncludeRules context="FindCommands" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindSubstitutions" /> - <IncludeRules context="FindOthers" /> + <context attribute="Normal Text" lineEndContext="#stay" name="ProcessSubst" fallthroughContext="Command"> + <DetectChar attribute="Redirection" context="#pop" char=")"/> + <IncludeRules context="Start"/> </context> <!-- StringSQ consumes anything till ' --> <context attribute="String SingleQ" lineEndContext="#stay" name="StringSQ"> - <DetectChar attribute="String SingleQ" context="#pop" char="'" /> + <DetectSpaces attribute="String SingleQ"/> + <DetectIdentifier attribute="String SingleQ"/> + <DetectChar attribute="String SingleQ" context="#pop" char="'"/> </context> <!-- StringDQ consumes anything till ", substitutes vars and expressions --> <context attribute="String DoubleQ" lineEndContext="#stay" name="StringDQ"> - <DetectChar attribute="String DoubleQ" context="#pop" char=""" /> - <RegExpr attribute="String Escape" context="#stay" String="\\[`"\\$\n]" /> - <IncludeRules context="FindSubstitutions" /> + <DetectSpaces attribute="String DoubleQ"/> + <DetectIdentifier attribute="String DoubleQ"/> + <DetectChar attribute="String DoubleQ" context="#pop" char="""/> + <DetectChar context="StringDQEscape" char="\" lookAhead="1"/> + <DetectChar context="StringDQDispatchVariables" char="$" lookAhead="1"/> + <DetectChar attribute="Backquote" context="RegularBackq" char="`"/> + </context> + <context attribute="String DoubleQ" lineEndContext="#stay" name="StringDQDispatchVariables"> + <IncludeRules context="DispatchSubstVariables"/> + <IncludeRules context="DispatchVarnameVariables"/> + <DetectChar attribute="String DoubleQ" context="#pop" char="$"/> + </context> + <context attribute="String DoubleQ" lineEndContext="#pop" name="StringDQEscape"> + <Detect2Chars attribute="String Escape" context="#pop" char="\" char1="""/> + <Detect2Chars attribute="String Escape" context="#pop" char="\" char1="\"/> + <Detect2Chars attribute="String Escape" context="#pop" char="\" char1="`"/> + <Detect2Chars attribute="String Escape" context="#pop" char="\" char1="$"/> + <LineContinue attribute="String Escape" context="#pop"/> + <DetectChar attribute="String DoubleQ" context="#pop" char="\"/> + </context> + + <!-- RegularBackq consumes anything till ` --> + <context attribute="Normal Text" lineEndContext="#stay" name="RegularBackq" fallthroughContext="Command"> + <DetectChar attribute="Backquote" context="#pop" char="`"/> + <DetectChar attribute="Comment" context="CommentBackq" char="#"/> + <IncludeRules context="Start"/> </context> <!-- StringEsc eats till ', but escaping many characters --> <context attribute="String SingleQ" lineEndContext="#stay" name="StringEsc"> - <DetectChar attribute="String SingleQ" context="#pop" char="'" /> - <RegExpr attribute="String Escape" context="#stay" String="\\[abefnrtv\\']" /> - <RegExpr attribute="String Escape" context="#stay" String="\\([0-7]{1,3}|x[A-Fa-f0-9]{1,2}|c.)" /> + <DetectSpaces attribute="String SingleQ"/> + <DetectIdentifier attribute="String SingleQ"/> + <DetectChar attribute="String SingleQ" context="#pop" char="'"/> + <RegExpr attribute="String Escape" context="#stay" String="\\(?:[abefnrtv\\']|[0-7]{1,3}|x[A-Fa-f0-9]{1,2}|c.)"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="FindWord"> + <IncludeRules context="FindStrings"/> + <DetectChar context="RegularVariable" char="$" lookAhead="1"/> + <DetectChar attribute="Backquote" context="RegularBackq" char="`"/> + <DetectChar context="AssumeEscape" char="\" lookAhead="1"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="RegularVariable"> + <IncludeRules context="DispatchVariables"/> + <DetectChar attribute="Normal Text" context="#pop" char="$"/> + </context> + + <context attribute="Normal Text" lineEndContext="#pop" name="FindStrings"> + <DetectChar attribute="String SingleQ" context="StringSQ" char="'"/> + <DetectChar attribute="String DoubleQ" context="StringDQ" char="""/> + </context> + + <!-- SubstCommand is called after a $( is encountered --> + <context attribute="Normal Text" lineEndContext="#stay" name="SubstCommand" fallthroughContext="Command"> + <DetectChar attribute="Parameter Expansion" context="#pop" char=")" endRegion="subshell"/> + <IncludeRules context="Start"/> </context> - <!-- VarBrace is called as soon as ${xxx is encoutered --> - <context attribute="Error" lineEndContext="#stay" name="VarBrace"> - <DetectChar attribute="Variable" context="#pop" char="}" /> - <DetectChar attribute="Variable" context="Subscript" char="[" /> - <RegExpr attribute="Variable" context="VarAlt" String="(:?[-=?+@]|##?|%%?|\^\^?|,,?)" /> - <RegExpr attribute="Variable" context="VarSubst" String="//?" /> - <DetectChar attribute="Variable" context="VarSub" char=":" /> + <!-- VarBraceStart is called as soon as ${ is encoutered --> + <context attribute="Variable" lineEndContext="#pop!VarBrace" name="VarBraceStart" fallthroughContext="#pop!VarBrace"> + <StringDetect context="#pop!VarBrace" String="!}" lookAhead="1"/> + <DetectChar attribute="Parameter Expansion Operator" context="#pop!VarBracePrefix" char="!"/> + <DetectChar attribute="Parameter Expansion Operator" context="#pop!VarBrace" char="#"/> </context> - <!-- VarAlt is to handle default/alternate/etc values of variables --> - <context attribute="Normal Text" lineEndContext="#stay" name="VarAlt"> - <DetectChar attribute="Variable" context="#pop#pop" char="}" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindSubstitutions" /> + <!-- VarBracePrefix called as soon as ${! is encoutered --> + <context attribute="Variable" lineEndContext="#pop" name="VarBracePrefix"> + <DetectIdentifier attribute="Variable" context="#pop!VarBracePrefixSuffix"/> + <Int attribute="Variable" context="#pop!VarBracePrefixSuffix"/> + <AnyChar attribute="Parameter Expansion Operator" context="#pop!VarBracePrefixSharp" String="@*#"/> + <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> + </context> + <context attribute="Variable" lineEndContext="#pop" name="VarBracePrefixSuffix" fallthroughContext="#pop!VarError"> + <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> + <AnyChar attribute="Parameter Expansion Operator" context="#stay" String="@*"/> + <StringDetect attribute="Parameter Expansion Operator" context="#stay" String="[@]"/> + <StringDetect attribute="Parameter Expansion Operator" context="#stay" String="[*]"/> + </context> + <context attribute="Variable" lineEndContext="#pop" name="VarBracePrefixSharp" fallthroughContext="#pop!VarError"> + <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> + <DetectChar attribute="Parameter Expansion Operator" char="#"/> </context> - <!-- VarSubst is to handle substitutions on variables --> - <context attribute="Normal Text" lineEndContext="#stay" name="VarSubst"> - <DetectChar attribute="Variable" context="#pop#pop" char="}" /> - <DetectChar attribute="Variable" context="VarSubst2" char="/" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindSubstitutions" /> + <!-- VarBrace is called as soon as ${ or ${# are encoutered --> + <context attribute="Variable" lineEndContext="#stay" name="VarBrace" fallthroughContext="#pop!VarError"> + <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> + <DetectIdentifier attribute="Variable" context="#pop!CheckVarAlt"/> + <AnyChar attribute="Variable" context="#pop!CheckVarAlt" String="*@?$!-"/> + <Int attribute="Variable" context="#pop!CheckVarAlt" additionalDeliminator=":#%^,/@{}"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="VarSubst2"> - <DetectChar attribute="Variable" context="#pop#pop#pop" char="}" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindSubstitutions" /> + <context attribute="Error" lineEndContext="#stay" name="VarError"> + <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="CheckVarAlt" fallthroughContext="#pop!VarError"> + <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> + <StringDetect attribute="Parameter Expansion Operator" context="#stay" String="[@]"/> + <StringDetect attribute="Parameter Expansion Operator" context="#stay" String="[*]"/> + <DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/> + <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char=":" char1="-"/> + <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char=":" char1="="/> + <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char=":" char1="?"/> + <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char=":" char1="+"/> + <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char="#" char1="#"/> + <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char="%" char1="%"/> + <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternatePatternValue" char="^" char1="^"/> + <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternatePatternValue" char="," char1=","/> + <DetectChar attribute="Parameter Expansion Operator" context="#pop!VarSub" char=":"/> + <DetectChar attribute="Parameter Expansion Operator" context="#pop!VarSubst" char="/"/> + <AnyChar attribute="Parameter Expansion Operator" context="#pop!AlternateValue" String="-+=?#%"/> + <AnyChar attribute="Parameter Expansion Operator" context="#pop!AlternatePatternValue" String="^,"/> + <DetectChar attribute="Parameter Expansion Operator" context="#pop!VarTransformation" char="@"/> </context> - <!-- VarSub is to substrings of variables --> - <context attribute="Error" lineEndContext="#stay" name="VarSub"> - <DetectSpaces attribute="Variable" context="#stay" /> - <DetectChar attribute="Variable" context="VarSub2" char=":" /> - <DetectChar attribute="Variable" context="#pop#pop" char="}" /> - <RegExpr attribute="Variable" context="#stay" String="&varname;" /> - <RegExpr attribute="Variable" context="#stay" String="([\-\+]\s*)?[0-9]+\s*(?=[:}])" /> - <IncludeRules context="FindSubstitutions" /> + <!-- called as soon as ${xxx: is encoutered --> + <context attribute="Normal Text" lineEndContext="#stay" name="VarSub"> + <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> + <!-- <Int> doesn't match :3 because : is a weakDeliminator --> + <AnyChar attribute="Decimal" String="0123456789"/> + <DetectChar attribute="Parameter Expansion Operator" context="#stay" char=":"/> + <DetectChar context="VarVariables" char="$" lookAhead="1"/> + <IncludeRules context="FindStrings"/> + <DetectChar attribute="Backquote" context="RegularBackq" char="`"/> + <DetectChar context="AssumeEscape" char="\" lookAhead="1"/> </context> - <context attribute="Error" lineEndContext="#stay" name="VarSub2"> - <DetectSpaces attribute="Variable" context="#stay" /> - <DetectChar attribute="Variable" context="#pop#pop#pop" char="}" /> - <RegExpr attribute="Variable" context="#stay" String="&varname;" /> - <RegExpr attribute="Variable" context="#stay" String="([\-\+]\s*)?[0-9]+\s*(?=[:}])" /> - <IncludeRules context="FindSubstitutions" /> + <context attribute="Command" lineEndContext="#pop" name="VarVariables"> + <IncludeRules context="DispatchVariables"/> + <DetectChar attribute="Error" context="#pop" char="$"/> </context> + <!-- called as soon as ${xxx:- ${xxx:= ${xxx:? ${xxx:+ ${xxx# ${xxx% and ${xxx are encoutered --> + <context attribute="Normal Text" lineEndContext="#stay" name="AlternateValue"> + <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> + <IncludeRules context="FindWord"/> + <IncludeRules context="FindPathThenPopInAlternateValue"/> + <DetectIdentifier attribute="Normal Text"/> + </context> - <!-- SubstFile is called after a <( or >( is encoutered --> - <context attribute="Normal Text" lineEndContext="#stay" name="SubstFile"> - <DetectChar attribute="Redirection" context="#pop" char=")" /> - <IncludeRules context="FindCommentsParen" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindSubstitutions" /> - <IncludeRules context="FindOthers" /> + <!-- called as soon as ${xxx^ are ${xxx, are encoutered --> + <context attribute="Pattern" lineEndContext="#stay" name="AlternatePatternValue"> + <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> + <IncludeRules context="FindWord"/> + <IncludeRules context="FindPattern"/> + <DetectIdentifier attribute="Pattern"/> </context> - <!-- SubstCommand is called after a $( is encountered --> - <context attribute="Normal Text" lineEndContext="#stay" name="SubstCommand"> - <DetectChar attribute="Variable" context="#pop" char=")" /> - <IncludeRules context="FindCommentsParen" /> - <IncludeRules context="FindCommands" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindSubstitutions" /> - <IncludeRules context="FindOthers" /> + <!-- called as soon as ${xxx/ is encoutered --> + <context attribute="Normal Text" lineEndContext="#stay" name="VarSubst" fallthroughContext="#pop!VarSubstPat"> + <AnyChar attribute="Parameter Expansion Operator" context="#pop!VarSubstPat" String="/#%"/> + </context> + <context attribute="Pattern" lineEndContext="#stay" name="VarSubstPat"> + <DetectChar attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char="/"/> + <IncludeRules context="AlternatePatternValue"/> </context> - <!-- SubstBackq is called when a backquote is encountered --> - <context attribute="Normal Text" lineEndContext="#stay" name="SubstBackq"> - <DetectChar attribute="Backquote" context="#pop" char="`" /> - <IncludeRules context="FindCommentsBackq" /> - <IncludeRules context="FindCommandsBackq" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindSubstitutions" /> - <IncludeRules context="FindOthers" /> + <!-- called as soon as ${xxx@ is encoutered --> + <context attribute="Normal Text" lineEndContext="#stay" name="VarTransformation" fallthroughContext="#pop!VarError"> + <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> + <AnyChar attribute="Parameter Expansion" context="#stay" String="UuLQEPAKa"/> </context> - <!-- Case is called after the case keyword is encoutered. We handle this because of - the lonely closing parentheses that would otherwise disturb the expr matching --> - <context attribute="Normal Text" lineEndContext="#stay" name="Case"> - <RegExpr attribute="Keyword" context="CaseIn" String="\sin\b" /> - <IncludeRules context="FindMost" /> + <context attribute="Escape" lineEndContext="#pop" name="BraceExpansion"> + <DetectChar attribute="Escape" context="#pop!BraceExpansion2" char="{"/> + </context> + <context attribute="Escape" lineEndContext="#pop" name="BraceExpansion2"> + <DetectChar attribute="Operator" context="#stay" char=","/> + <DetectChar attribute="Escape" context="#pop" char="}"/> + <DetectChar context="EscapeMaybeBraceExpansion" char="{" lookAhead="1"/> + <DetectChar context="AssumeEscape" char="\" lookAhead="1"/> + <DetectChar attribute="Backquote" context="CommandBackq" char="`"/> + <DetectChar context="BraceExpansionVariables" char="$" lookAhead="1"/> + <IncludeRules context="FindStrings"/> + <IncludeRules context="FindPattern"/> + <DetectIdentifier attribute="Escape"/> + </context> + <context attribute="Escape" lineEndContext="#pop" name="EscapeMaybeBraceExpansion"> + <IncludeRules context="DispatchBraceExpansion"/> + <DetectChar attribute="Escape" context="#pop!BraceExpansion2" char="{"/> + </context> + <context attribute="Escape" lineEndContext="#pop" name="BraceExpansionVariables"> + <IncludeRules context="DispatchVariables"/> + <DetectChar attribute="Escape" context="#pop" char="$"/> </context> - <!-- CaseIn is called when the construct 'case ... in' has been found. --> - <context attribute="Normal Text" lineEndContext="#stay" name="CaseIn"> - <RegExpr attribute="Keyword" context="#pop#pop" String="\besac(?=$|[\s;)])" endRegion="case" /> - <DetectChar attribute="Keyword" context="CaseExpr" char=")" beginRegion="caseexpr" /> - <AnyChar attribute="Keyword" context="#stay" String="(|" /> - <IncludeRules context="FindMost" /> + <context attribute="Normal Text" lineEndContext="#pop" name="SequenceExpression"> + <AnyChar attribute="Decimal" context="#stay" String="0123456789-+"/> + <Detect2Chars attribute="Escape" context="#stay" char="." char1="."/> + <DetectChar attribute="Escape" context="#pop" char="}"/> + </context> + +<!-- ====== These are the contexts that can be branched to ======= --> + + <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParenOrSubShell"> + <RegExpr attribute="Keyword" context="#pop!SubShell" String="\((?=&arithmetic_as_subshell;)|" beginRegion="subshell"/> + <Detect2Chars attribute="Keyword" context="#pop!ExprDblParen" char="(" char1="(" beginRegion="expression"/> + </context> + <!-- ExprDblParen consumes an expression started in command mode till )) --> + <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParen"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <Detect2Chars attribute="Keyword" context="#pop" char=")" char1=")" endRegion="expression"/> + <IncludeRules context="FindExprDblParen"/> + <!-- ((cmd + ) # jump to SubShell context --> + <DetectChar attribute="Keyword" context="#pop!SubShell" char=")" endRegion="expression" beginRegion="subshell"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="FindExprDblParen"> + <Detect2Chars attribute="Control" context="#stay" char="&" char1="&"/> + <Detect2Chars attribute="Control" context="#stay" char="|" char1="|"/> + <AnyChar attribute="Operator" context="#stay" String="+-!~*/%<>=&^|?:"/> + <AnyChar context="Number" String="0123456789" lookAhead="1"/> + <DetectChar attribute="Control" context="#stay" char=","/> + <DetectChar attribute="Normal Text" context="ExprSubDblParen" char="("/> + <DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/> + <IncludeRules context="FindWord"/> + <DetectChar attribute="Error" context="#stay" char="#"/> + <DetectChar context="MaybeArithmeticBrace" char="{" lookAhead="1"/> + <DetectIdentifier attribute="Variable" context="#stay"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="ExprSubDblParen"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + <IncludeRules context="FindExprDblParen"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="MaybeArithmeticBrace"> + <IncludeRules context="DispatchBraceExpansion"/> + <DetectChar attribute="Error" context="#pop" char="{"/> </context> - <!-- CaseExpr eats shell input till ;; --> - <context attribute="Normal Text" lineEndContext="#stay" name="CaseExpr"> - <Detect2Chars attribute="Keyword" context="#pop" char=";" char1=";" endRegion="caseexpr" /> - <RegExpr attribute="Keyword" context="#pop" String="esac(?=$|[\s;)])" lookAhead="true" firstNonSpace="true" endRegion="caseexpr"/> - <IncludeRules context="FindAll" /> + <context attribute="Decimal" lineEndContext="#pop" name="Number"> + <HlCHex attribute="Hex" context="#pop" additionalDeliminator="&weakDeliminatorSymbols;"/> + <HlCOct attribute="Octal" context="#pop!NumberError" additionalDeliminator="&weakDeliminatorSymbols;"/> + <RegExpr attribute="Base" context="#pop!BaseN" String="[1-9][0-9]*#"/> + <DetectChar attribute="Decimal" context="#pop!NumberError" char="0"/> + <Int attribute="Decimal" context="#pop" additionalDeliminator="&weakDeliminatorSymbols;"/> + </context> + <context attribute="BaseN" lineEndContext="#pop" name="BaseN" fallthroughContext="#pop"> + <RegExpr attribute="BaseN" context="#pop" String="[0-9a-zA-Z@_]+"/> + </context> + <context attribute="Error" lineEndContext="#pop" name="NumberError" fallthroughContext="#pop"> + <Int attribute="Error" context="#pop" additionalDeliminator="0123456789"/> </context> - <!-- HereDoc consumes Here-documents. It is called at the beginning of the "<<" construct. --> - <context attribute="Normal Text" lineEndContext="#stay" name="HereDoc"> - <RegExpr attribute="Redirection" context="HereDocIQ" String="(<<-\s*"(&word;)")" lookAhead="true" /> - <RegExpr attribute="Redirection" context="HereDocIQ" String="(<<-\s*'(&word;)')" lookAhead="true" /> - <RegExpr attribute="Redirection" context="HereDocIQ" String="(<<-\s*\\(&word;))" lookAhead="true" /> - <RegExpr attribute="Redirection" context="HereDocINQ" String="(<<-\s*(&word;))" lookAhead="true" /> - <RegExpr attribute="Redirection" context="HereDocQ" String="(<<\s*"(&word;)")" lookAhead="true" /> - <RegExpr attribute="Redirection" context="HereDocQ" String="(<<\s*'(&word;)')" lookAhead="true" /> - <RegExpr attribute="Redirection" context="HereDocQ" String="(<<\s*\\(&word;))" lookAhead="true" /> - <RegExpr attribute="Redirection" context="HereDocNQ" String="(<<\s*(&word;))" lookAhead="true" /> - <Detect2Chars attribute="Redirection" context="#pop" char="<" char1="<" /><!-- always met --> + <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParenSubstOrSubstCommand"> + <RegExpr attribute="Parameter Expansion" context="#pop!SubstCommand" String="\$\((?=&arithmetic_as_subshell;)|" beginRegion="subshell"/> + <StringDetect attribute="Parameter Expansion" context="#pop!ExprDblParenSubst" String="$((" beginRegion="expression"/> + </context> + <!-- ExprDblParenSubst like ExprDblParen but matches )) as Variable --> + <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParenSubst"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <Detect2Chars attribute="Parameter Expansion" context="#pop" char=")" char1=")" endRegion="expression"/> + <IncludeRules context="FindExprDblParen"/> + <!-- $((cmd + ) # jump to SubstCommand context --> + <DetectChar attribute="Parameter Expansion" context="#pop!SubstCommand" char=")" endRegion="expression" beginRegion="subshell"/> </context> - <context attribute="Normal Text" lineEndContext="#pop" name="HereDocRemainder"> - <IncludeRules context="FindAll" /> + <!-- ExprBracket consumes an expression till ] --> + <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracket" fallthroughContext="#pop!ExprBracketNot"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <IncludeRules context="FindExprBracketEnd"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="HereDocQ" dynamic="true"> - <RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" /> - <RegExpr attribute="Redirection" context="#pop#pop" String="^%2\b" dynamic="true" column="0"/> + <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketNot" fallthroughContext="#pop!ExprBracketParam1"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprBracketParam1"/> + <Detect2Chars attribute="Expression" context="ExprBracketTestMaybeNot" char="!" char1=" " lookAhead="1"/> + <Detect2Chars attribute="Expression" context="ExprBracketTestMaybeNot" char="!" char1="&tab;" lookAhead="1"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="ExprBracketTestMaybeNot"> + <DetectChar attribute="Expression" context="#pop" char="!"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="HereDocNQ" dynamic="true"> - <RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" /> - <RegExpr attribute="Redirection" context="#pop#pop" String="^%2\b" dynamic="true" column="0"/> - <IncludeRules context="FindSubstitutions" /> + <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketParam1" fallthroughContext="ExprBracketValue"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprBracketParam2"/> + <DetectChar context="TestMaybeUnary" char="-" lookAhead="1"/> + <IncludeRules context="FindExprBracketEnd"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="HereDocIQ" dynamic="true"> - <RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" /> - <RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%2\b" dynamic="true" column="0"/> + <context attribute="Normal Text" lineEndContext="#pop" name="ExprBracketValue"> + <AnyChar attribute="Error" context="#stay" String="&symbolseps;"/> + <AnyChar context="#pop" String=" &tab;" lookAhead="1"/> + <IncludeRules context="FindWord"/> + <DetectChar context="NormalMaybeBraceExpansion" char="{" lookAhead="1"/> + <IncludeRules context="FindNormalText"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketParam2" fallthroughContext="ExprBracketValue"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprBracketParam3"/> + <AnyChar context="TestMaybeBinary" String="-=!" lookAhead="1"/> + <IncludeRules context="FindExprBracketEnd"/> + </context> + + <context attribute="Normal Text" lineEndContext="ExprBracketFinal" name="ExprBracketParam3" fallthroughContext="ExprBracketValue"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprBracketFinal"/> + <IncludeRules context="FindExprBracketEnd"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketFinal" fallthroughContext="ExprBracketValue"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <IncludeRules context="FindExprBracketEnd"/> + <RegExpr attribute="Expression" context="#pop!ExprBracket" String="-[ao]&eos;"/> + <RegExpr attribute="Error" context="#pop" String="(?:[^] &tab;]++|\][^ &tab;])++" endRegion="expression"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="FindExprBracketEnd"> + <LineContinue attribute="Escape" context="#stay"/> + <RegExpr attribute="Builtin" context="#pop" String="\](?=($|[ &tab;;|&<>)]))" endRegion="expression"/> + </context> + + <context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeUnary" fallthroughContext="#pop!ExprBracketValue"> + <RegExpr attribute="Expression" context="#pop#pop!ExprBracketParam2" String="&unary_operators;"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeBinary" fallthroughContext="#pop!ExprBracketValue"> + <RegExpr attribute="Expression" context="#pop" String="&binary_operators;"/> + </context> + + + <!-- ExprDblBracket consumes an expression till ]] --> + <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracket" fallthroughContext="#pop!ExprDblBracketNot"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <DetectChar attribute="Comment" context="Comment" char="#"/> + <IncludeRules context="FindExprDblBracketEnd"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketNot" fallthroughContext="#pop!ExprDblBracketParam1"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketParam1"/> + <DetectChar context="ExprDblBracketTestMaybeNot" char="!" lookAhead="1"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketTestMaybeNot" fallthroughContext="#pop#pop!ExprDblBracketParam1"> + <RegExpr attribute="Expression" context="#pop" String="!(?=$|[ &tab;(])"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam1" fallthroughContext="ExprDblBracketValueText"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketParam2"/> + <DetectChar context="TestMaybeUnary2" char="-" lookAhead="1"/> + <AnyChar attribute="Expression" context="#pop!ExprDblBracketParam3Spe" String="<>"/> + <IncludeRules context="FindExprDblBracketEnd"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeUnary2" fallthroughContext="#pop!ExprDblBracketValueText"> + <RegExpr attribute="Expression" context="#pop!ExprDblBracketUnary" String="&unary_operators;(?!\s+(?:=~|&binary_operators;))"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketUnary"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketValueText"/> + </context> + + <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValueText" fallthroughContext="#pop!ExprDblBracketValueText2"> + <Detect2Chars context="#pop!ExprDblBracketValueTextMaybeEnd" char="]" char1="]" lookAhead="1"/> + <DetectChar attribute="Error" context="#pop!Comment" char="#"/> + <IncludeRules context="FindExprDblBracketValueTextPath"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="FindExprDblBracketValueTextPath"> + <RegExpr context="#pop!ExprDblBracketValueTextPath" String="&path_with_sep;|" lookAhead="1"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValueTextMaybeEnd"> + <RegExpr attribute="Keyword" context="#pop#pop" String="&dblbracket_close;" endRegion="expression"/> + <IncludeRules context="FindExprDblBracketValueTextPath"/> + <Detect2Chars context="#pop!ExprDblBracketValueText2" char="]" char1="]" lookAhead="1"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValueText2"> + <DetectIdentifier/> + <AnyChar String="*?+!@~^:%+-/,"/> + <IncludeRules context="ExprDblBracketValueCommon"/> + </context> + <context attribute="Path" lineEndContext="#pop" name="ExprDblBracketValueTextPath"> + <IncludeRules context="ExprDblBracketValueText2"/> + </context> + + <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValuePattern" fallthroughContext="#pop!ExprDblBracketValuePattern2"> + <RegExpr context="PathThenPop" String="&path_with_sep;|" lookAhead="1"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValuePattern2"> + <DetectIdentifier attribute="Normal Text"/> + <IncludeRules context="ExprDblBracketValueCommon"/> + <IncludeRules context="FindExprDblBracketValueExtGlob"/> + <AnyChar attribute="Glob" String="?*"/> + </context> + <context attribute="Glob" lineEndContext="#stay" name="FindExprDblBracketValueExtGlob"> + <Detect2Chars attribute="Glob" context="ExprDblBracketValueExtGlob" char="?" char1="("/> + <Detect2Chars attribute="Glob" context="ExprDblBracketValueExtGlob" char="*" char1="("/> + <Detect2Chars attribute="Glob" context="ExprDblBracketValueExtGlob" char="+" char1="("/> + <Detect2Chars attribute="Glob" context="ExprDblBracketValueExtGlob" char="@" char1="("/> + <Detect2Chars attribute="Glob" context="ExprDblBracketValueExtGlob" char="!" char1="("/> + <DetectChar context="ExprDblBracketValueMaybeGlobAny" char="[" lookAhead="1"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketValueMaybeGlobAny" fallthroughContext="#pop"> + <IncludeRules context="FindGlobAny"/> + <DetectChar attribute="Normal Text" context="#pop" char="["/> + </context> + <context attribute="Normal Text" lineEndContext="#pop#pop" name="ExprDblBracketValueExtGlob"> + <DetectIdentifier attribute="Normal Text"/> + <DetectChar attribute="Glob" context="#pop" char=")"/> + <DetectChar attribute="Normal Text" context="ExprDblBracketValueExtGlobNormal" char="("/> + <IncludeRules context="FindExprDblBracketValueExtGlob"/> + <AnyChar attribute="Glob" String="|?*"/> + <IncludeRules context="FindWord"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop#pop" name="ExprDblBracketValueExtGlobNormal"> + <DetectIdentifier attribute="Normal Text"/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + <DetectChar attribute="Normal Text" context="ExprDblBracketValueExtGlobNormal" char="("/> + <IncludeRules context="FindExprDblBracketValueExtGlob"/> + <AnyChar attribute="Glob" String="?*"/> + <IncludeRules context="FindWord"/> + </context> + + <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValueCommon"> + <Detect2Chars context="ExprDblBracketDblParentOrSubValue" char="(" char1="(" lookAhead="1"/> + <DetectChar context="ExprDblBracketSubValue" char="(" lookAhead="1"/> + <DetectChar attribute="Operator" context="#pop#pop" char=")"/> + <Detect2Chars attribute="Control" context="#pop#pop!ExprDblBracket" char="&" char1="&"/> + <Detect2Chars attribute="Control" context="#pop#pop!ExprDblBracket" char="|" char1="|"/> + <AnyChar attribute="Error" context="#stay" String="|&;"/> + <AnyChar context="#pop" String=" &tab;<>" lookAhead="1"/> + <IncludeRules context="FindWord"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketSubValue" fallthroughContext="#pop"> + <DetectChar attribute="Operator" context="ExprDblBracketNot" char="("/> + <Detect2Chars context="#pop#pop" char="]" char1="]" lookAhead="1"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketDblParentOrSubValue"> + <RegExpr context="#pop!ExprDblBracketSubValue" String="\((?=&arithmetic_as_subshell;)|" lookAhead="1"/> + <Detect2Chars attribute="Keyword" context="#pop!ExprDblBracketExprDblParen" char="(" char1="(" beginRegion="expression"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketExprDblParen"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <Detect2Chars attribute="Keyword" context="#pop" char=")" char1=")" endRegion="expression"/> + <IncludeRules context="FindExprDblParen"/> + <!-- ((cmd + ) # jump to ExprDblBracketValuePattern context --> + <DetectChar attribute="Operator" context="ExprDblBracketValuePattern" char=")" endRegion="expression" beginRegion="subshell"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam2" fallthroughContext="ExprDblBracketValuePattern"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketParam3"/> + <AnyChar context="TestMaybeBinary2" String="-=!" lookAhead="1"/> + <AnyChar attribute="Expression" context="#pop!ExprDblBracketParam3Spe" String="<>"/> + <IncludeRules context="FindExprDblBracketEnd"/> + <DetectChar attribute="Comment" context="Comment" char="#"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeBinary2" fallthroughContext="#pop!ExprDblBracketValuePattern"> + <IncludeRules context="TestMaybeBinary"/> + <RegExpr attribute="Expression" context="#pop!ExprDblBracketRegex" String="=~(?=[ &tab;(])"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam3Spe" fallthroughContext="#pop!ExprDblBracketParam3"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketParam3"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam3" fallthroughContext="ExprDblBracketValuePattern"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketFinal"/> + <IncludeRules context="FindExprDblBracketEnd"/> + <AnyChar attribute="Error" context="#stay" String="<>"/> + <DetectChar attribute="Comment" context="Comment" char="#"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketFinal" fallthroughContext="ExprDblBracketValuePattern"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <IncludeRules context="FindExprDblBracketEnd"/> + <DetectChar attribute="Comment" context="Comment" char="#"/> + <DetectChar attribute="Operator" context="#pop" char=")"/> + <RegExpr attribute="Error" context="#pop" String="(?:[^] &tab;]++|\](?:[^]]|\][^ &tab;]))++" endRegion="expression"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="FindExprDblBracketEnd"> + <LineContinue attribute="Escape" context="#stay"/> + <Detect2Chars attribute="Control" context="#pop!ExprDblBracket" char="&" char1="&"/> + <Detect2Chars attribute="Control" context="#pop!ExprDblBracket" char="|" char1="|"/> + <RegExpr attribute="Keyword" context="#pop" String="&dblbracket_close;" endRegion="expression"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketRegex" fallthroughContext="#pop!ExprDblBracketRegexCheck"> + <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketRegexCheck"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketRegexCheck" fallthroughContext="#pop#pop!Regex"> + <DetectChar attribute="Error" context="Comment" char="#"/> + </context> + <context attribute="Pattern" lineEndContext="#stay" name="Regex"> + <DetectIdentifier attribute="Pattern"/> + <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketFinal"/> + <DetectChar attribute="Operator" context="#pop" char=")"/> + <Detect2Chars attribute="Operator" context="RegexChar" char="[" char1="^"/> + <DetectChar attribute="Operator" context="RegexChar" char="["/> + <IncludeRules context="FindRegex"/> + </context> + <context attribute="Pattern" lineEndContext="#stay" name="ExprDblBracketSubRegex"> + <DetectIdentifier attribute="Pattern"/> + <DetectSpaces attribute="Pattern" context="#stay"/> + <DetectChar attribute="Operator" context="#pop" char=")"/> + <Detect2Chars attribute="Operator" context="RegexSubChar" char="[" char1="^"/> + <DetectChar attribute="Operator" context="RegexSubChar" char="["/> + <IncludeRules context="FindRegex"/> + </context> + + <context attribute="Pattern" lineEndContext="#stay" name="FindRegex"> + <DetectChar attribute="Operator" context="ExprDblBracketSubRegex" char="("/> + <DetectChar attribute="Escape" context="RegexEscape" char="\"/> + <DetectChar attribute="Parameter Expansion" context="RegexDup" char="{"/> + <AnyChar attribute="Glob" context="#stay" String="^?+*.|"/> + <IncludeRules context="FindStrings"/> + <DetectChar context="RegexDispatchVariables" char="$" lookAhead="1"/> + <DetectChar attribute="Backquote" context="RegularBackq" char="`"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="RegexDispatchVariables"> + <IncludeRules context="DispatchVariables"/> + <DetectChar attribute="Operator" context="#pop" char="$"/> + </context> + + <context attribute="Normal Text" lineEndContext="#pop" name="RegexEscape"> + <RegExpr attribute="Escape" context="#pop" String="x[0-9a-fA-F]{1,2}|[0-7]{1,3}|."/> + </context> + + <context attribute="Normal Text" lineEndContext="#pop" name="RegexDup"> + <Int attribute="Decimal" additionalDeliminator="{"/> + <DetectChar attribute="Parameter Expansion Operator" context="#stay" char=","/> + <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> + </context> + + <context attribute="Pattern" lineEndContext="#pop" name="RegexSubChar" fallthroughContext="#pop!RegexSubInChar"> + <AnyChar attribute="Pattern" context="#pop!RegexSubInChar" String="-]"/> + </context> + <context attribute="Pattern" lineEndContext="#pop" name="RegexSubInChar"> + <DetectSpaces attribute="Pattern" context="#stay"/> + <IncludeRules context="RegexInChar"/> + </context> + + <context attribute="Pattern" lineEndContext="#pop" name="RegexChar" fallthroughContext="#pop!RegexInChar"> + <AnyChar attribute="Pattern" context="#pop!RegexInChar" String="-]"/> + </context> + <context attribute="Pattern" lineEndContext="#pop" name="RegexInChar"> + <Detect2Chars context="RegexInCharEnd" char="-" char1="]" lookAhead="1"/> + <DetectChar attribute="Operator" context="#stay" char="-"/> + <DetectChar attribute="Escape" context="RegexEscape" char="\"/> + <DetectChar context="RegexCharClassSelect" char="[" lookAhead="1"/> + <DetectChar attribute="Operator" context="#pop" char="]"/> + <AnyChar context="#pop" String="() &tab;" lookAhead="1"/> + <IncludeRules context="FindStrings"/> + </context> + <context attribute="Operator" lineEndContext="#stay" name="RegexInCharEnd"> + <DetectChar attribute="Pattern" context="#stay" char="-"/> + <DetectChar attribute="Operator" context="#pop#pop" char="]"/> + </context> + <context attribute="Parameter Expansion" lineEndContext="#pop#pop#pop" name="RegexCharClassSelect"> + <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!RegexCharClass" char="[" char1=":"/> + <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!RegexCollatingSymbols" char="[" char1="."/> + <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!RegexEquivalenceClass" char="[" char1="="/> + <DetectChar attribute="Pattern" context="#pop" char="["/> + </context> + + <context attribute="Parameter Expansion" lineEndContext="#pop#pop#pop" name="RegexCharClass"> + <DetectIdentifier attribute="Parameter Expansion"/> + <Detect2Chars attribute="Parameter Expansion Operator" context="#pop" char=":" char1="]"/> + <DetectChar attribute="Error" context="#pop" char="]"/> + </context> + <context attribute="Parameter Expansion" lineEndContext="#pop#pop#pop" name="RegexCollatingSymbols"> + <DetectIdentifier attribute="Parameter Expansion"/> + <Detect2Chars attribute="Parameter Expansion Operator" context="#pop" char="." char1="]"/> + <DetectChar attribute="Error" context="#pop" char="]"/> + </context> + <context attribute="Parameter Expansion" lineEndContext="#pop#pop#pop" name="RegexEquivalenceClass"> + <DetectIdentifier attribute="Parameter Expansion"/> + <Detect2Chars attribute="Parameter Expansion Operator" context="#pop" char="=" char1="]"/> + <DetectChar attribute="Error" context="#pop" char="]"/> + </context> + + <!-- SubShell consumes shell input till ) --> + <context attribute="Normal Text" lineEndContext="#stay" name="SubShell" fallthroughContext="Command"> + <DetectChar attribute="Keyword" context="#pop" char=")" endRegion="subshell"/> + <IncludeRules context="Start"/> + </context> + + <!-- Assign consumes an expression till EOL or whitespace --> + <context attribute="Normal Text" lineEndContext="#pop" name="Assign" fallthroughContext="#pop!Assign2"> + <DetectChar attribute="Variable" context="#pop!AssignArray" char="("/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="Assign2" fallthroughContext="#pop"> + <DetectChar attribute="Backquote" context="RegularBackq" char="`"/> + <IncludeRules context="NormalOption"/> + </context> + + <!-- AssignArray consumes everything till ), marking assignments --> + <context attribute="Normal Text" lineEndContext="#stay" name="AssignArray" fallthroughContext="NormalOption"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <DetectChar attribute="Comment" context="Comment" char="#"/> + <DetectChar attribute="Variable" context="#pop!Assign2" char=")"/> + <DetectChar context="AssignArrayKey" char="[" lookAhead="1"/> + <DetectChar attribute="Backquote" context="AssignArrayBackq" char="`"/> + <AnyChar attribute="Error" context="#stay" String="&symbolseps;"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="AssignArrayKey" fallthroughContext="#pop"> + <DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/> + <DetectChar attribute="Variable" context="#pop" char="="/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="AssignArrayBackq" fallthroughContext="Command"> + <DetectChar attribute="Backquote" context="#pop!NormalOption" char="`"/> + <DetectChar attribute="Comment" context="CommentBackq" char="#"/> + <IncludeRules context="Start"/> + </context> + + <!-- Subscript consumes anything till ], marks as Variable --> + <context attribute="Normal Text" lineEndContext="#stay" name="Subscript" fallthroughContext="#pop!Subscript2"> + <DetectChar attribute="Parameter Expansion Operator" context="#pop" char="]"/> + <AnyChar attribute="Decimal" context="#stay" String="0123456789"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="Subscript2"> + <DetectIdentifier attribute="Normal Text"/> + <DetectChar attribute="Parameter Expansion Operator" context="#pop" char="]"/> + <IncludeRules context="FindWord"/> + <IncludeRules context="FindPattern"/> + </context> + + <!-- FunctionDef consumes a name, possibly with (), marks as Function --> + <context attribute="Function" lineEndContext="#pop" name="FunctionDef" fallthroughContext="#pop"> + <RegExpr attribute="Function" context="#pop" String="[ &tab;]+&funcname;(?:[ &tab;]*\(\))?"/> + </context> + + <!-- Case is called after the case keyword is encoutered. We handle this because of + the lonely closing parentheses that would otherwise disturb the expr matching --> + <context attribute="Normal Text" lineEndContext="#stay" name="Case"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <WordDetect attribute="Keyword" context="#pop!CaseIn" String="in"/> + <IncludeRules context="FindWord"/> + <DetectIdentifier attribute="Normal Text" context="#stay"/> + </context> + + <!-- CaseIn is called when the construct 'case ... in' has been found. --> + <context attribute="Normal Text" lineEndContext="#stay" name="CaseIn" fallthroughContext="CasePattern"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <DetectChar attribute="Keyword" context="CasePattern" char="("/> + <DetectChar attribute="Comment" context="Comment" char="#"/> + </context> + <context attribute="Pattern" lineEndContext="#stay" name="CasePattern"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <DetectChar attribute="Keyword" context="#pop!CaseExpr" char=")" beginRegion="caseexpr"/> + <DetectChar context="AssumeEscape" char="\" lookAhead="1"/> + <DetectChar attribute="Keyword" context="#stay" char="|"/> + <IncludeRules context="FindWord"/> + <IncludeRules context="FindPattern"/> + <WordDetect attribute="Control Flow" context="#pop#pop" String="esac" endRegion="case"/> + <DetectIdentifier attribute="Pattern" context="#stay"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="HereDocINQ" dynamic="true"> - <RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" /> - <RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%2\b" dynamic="true" column="0"/> - <IncludeRules context="FindSubstitutions" /> + <!-- CaseExpr eats shell input till ;; / ;& / ;;& --> + <context attribute="Normal Text" lineEndContext="#stay" name="CaseExpr" fallthroughContext="Command"> + <StringDetect attribute="Control Flow" context="#pop" String=";;&" endRegion="caseexpr"/> + <Detect2Chars attribute="Control Flow" context="#pop" char=";" char1=";" endRegion="caseexpr"/> + <Detect2Chars attribute="Control Flow" context="#pop" char=";" char1="&" endRegion="caseexpr"/> + <WordDetect context="#pop" String="esac" endRegion="caseexpr" lookAhead="1"/> + <IncludeRules context="Start"/> </context> </contexts> <itemDatas> - <itemData name="Normal Text" defStyleNum="dsNormal" /> - <itemData name="Comment" defStyleNum="dsComment" /> - <itemData name="Keyword" defStyleNum="dsKeyword" /> - <itemData name="Control" defStyleNum="dsKeyword" /> - <itemData name="Builtin" defStyleNum="dsBuiltIn" /> - <itemData name="Command" defStyleNum="dsFunction" /> - <itemData name="OtherCommand" defStyleNum="dsExtension" /> - <itemData name="Redirection" defStyleNum="dsOperator" /> - <itemData name="Escape" defStyleNum="dsDataType" /> - <itemData name="String SingleQ" defStyleNum="dsString" /> - <itemData name="String DoubleQ" defStyleNum="dsString" /> - <itemData name="Backquote" defStyleNum="dsKeyword" /> - <itemData name="String Transl." defStyleNum="dsString" /> - <itemData name="String Escape" defStyleNum="dsDataType" /> - <itemData name="Variable" defStyleNum="dsVariable" /> - <itemData name="Expression" defStyleNum="dsOthers" /> - <itemData name="Function" defStyleNum="dsFunction" /> - <itemData name="Path" defStyleNum="dsNormal" /> - <itemData name="Option" defStyleNum="dsNormal" /> - <itemData name="Error" defStyleNum="dsError" /> + <itemData name="Normal Text" defStyleNum="dsNormal"/> + <itemData name="Comment" defStyleNum="dsComment"/> + <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> + <itemData name="Control" defStyleNum="dsKeyword" spellChecking="false"/> + <itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="false"/> + <itemData name="Builtin" defStyleNum="dsBuiltIn" spellChecking="false"/> + <itemData name="Command" defStyleNum="dsFunction" spellChecking="false"/> + <itemData name="OtherCommand" defStyleNum="dsExtension" spellChecking="false"/> + <itemData name="Redirection" defStyleNum="dsOperator" spellChecking="false"/> + <itemData name="Escape" defStyleNum="dsDataType" spellChecking="false"/> + <itemData name="String SingleQ" defStyleNum="dsString"/> + <itemData name="String DoubleQ" defStyleNum="dsString"/> + <itemData name="Here Doc" defStyleNum="dsString"/> + <itemData name="Backquote" defStyleNum="dsKeyword" spellChecking="false"/> + <itemData name="String Transl." defStyleNum="dsString"/> + <itemData name="String Escape" defStyleNum="dsDataType"/> + <itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/> + <itemData name="Dollar Prefix" defStyleNum="dsVariable" spellChecking="false"/> + <itemData name="Expression" defStyleNum="dsOthers" spellChecking="false"/> + <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/> + <itemData name="Pattern" defStyleNum="dsSpecialString" spellChecking="false"/> + <itemData name="Path" defStyleNum="dsNormal" spellChecking="false"/> + <itemData name="Glob" defStyleNum="dsPreprocessor" spellChecking="false"/> + <itemData name="Option" defStyleNum="dsAttribute" spellChecking="false"/> + <itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/> + <itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false"/> + <itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false"/> + <itemData name="Base" defStyleNum="dsDataType" spellChecking="false"/> + <itemData name="BaseN" defStyleNum="dsBaseN" spellChecking="false"/> + <itemData name="File Descriptor" defStyleNum="dsDecVal" spellChecking="false"/> + <itemData name="Parameter Expansion" defStyleNum="dsVariable" spellChecking="false"/> + <itemData name="Parameter Expansion Operator" defStyleNum="dsOperator" spellChecking="false"/> + <itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/> + <itemData name="Error" defStyleNum="dsError" spellChecking="false"/> + <itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false" /> </itemDatas> </highlighting> <general> <comments> <comment name="singleLine" start="#"/> </comments> - <keywords casesensitive="1" weakDeliminator="^%#[]$._{}:-/" additionalDeliminator="`"/> + <keywords casesensitive="1" weakDeliminator="_&weakDeliminatorSymbols;" additionalDeliminator="`"/> </general> </language> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/cmake.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/cmake.xml index 6d170e4eaa..256619d3ff 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/cmake.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/cmake.xml @@ -1,38 +1,32 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd" +<!DOCTYPE language [ - <!ENTITY id_re "[_A-Za-z][\-_0-9A-Za-z]*"> + <!-- NOTE See https://cmake.org/cmake/help/latest/manual/cmake-language.7.html#variable-references --> + <!ENTITY var_ref_re "[/\.\+\-_0-9A-Za-z]+"> + <!-- NOTE See `cmGeneratorExpression::IsValidTargetName` --> + <!ENTITY tgt_name_re "[A-Za-z0-9_\.\+\-]+"> ]> <!-- - This file is part of KDE's kate project. + This file is part of KDE's kate project. - Copyright 2004 Alexander Neundorf (neundorf@kde.org) - Copyright 2005 Dominik Haumann (dhdev@gmx.de) - Copyright 2007,2008,2013,2014 Matthew Woehlke (mw_triad@users.sourceforge.net) - Copyright 2013-2015,2017-2018 Alex Turbov (i.zaufi@gmail.com) + SPDX-FileCopyrightText: 2004 Alexander Neundorf <neundorf@kde.org> + SPDX-FileCopyrightText: 2005 Dominik Haumann <dhdev@gmx.de> + SPDX-FileCopyrightText: 2007, 2008, 2013, 2014 Matthew Woehlke <mw_triad@users.sourceforge.net> + SPDX-FileCopyrightText: 2013-2015, 2017-2023 Alex Turbov <i.zaufi@gmail.com> - ********************************************************************** - * This library is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Lesser General Public * - * License as published by the Free Software Foundation; either * - * version 2 of the License, or (at your option) any later version. * - * * - * This library is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - * Lesser General Public License for more details. * - * * - * You should have received a copy of the GNU Lesser General Public * - * License along with this library; if not, write to the * - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * - * Boston, MA 02110-1301, USA. * - ********************************************************************** + SPDX-License-Identifier: LGPL-2.0-or-later --> +<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT ***** + cd data/generators + # increase version of cmake.xml.tpl then + ./generate-cmake-syntax.py cmake.yaml > ../syntax/cmake.xml +--> + <language name="CMake" - version="12" - kateversion="2.4" + version="50" + kateversion="5.62" section="Other" extensions="CMakeLists.txt;*.cmake;*.cmake.in" style="CMake" @@ -43,15 +37,19 @@ <highlighting> <list name="commands"> + <item>block</item> <item>break</item> <item>cmake_host_system_information</item> + <item>cmake_language</item> <item>cmake_minimum_required</item> <item>cmake_parse_arguments</item> + <item>cmake_path</item> <item>cmake_policy</item> <item>configure_file</item> <item>continue</item> <item>elseif</item> <item>else</item> + <item>endblock</item> <item>endforeach</item> <item>endfunction</item> <item>endif</item> @@ -102,6 +100,7 @@ <item>add_test</item> <item>aux_source_directory</item> <item>build_command</item> + <item>cmake_file_api</item> <item>create_test_sourcelist</item> <item>define_property</item> <item>enable_language</item> @@ -133,6 +132,7 @@ <item>target_link_directories</item> <item>target_link_libraries</item> <item>target_link_options</item> + <item>target_precompile_headers</item> <item>target_sources</item> <item>try_compile</item> <item>try_run</item> @@ -150,14 +150,34 @@ <item>ctest_update</item> <item>ctest_upload</item> </list> - + <list name="block_nargs"> + <item>PROPAGATE</item> + <item>SCOPE_FOR</item> + </list> + <list name="block_sargs"> + <item>POLICIES</item> + <item>VARIABLES</item> + </list> <list name="cmake_host_system_information_nargs"> + <item>ERROR_VARIABLE</item> <item>QUERY</item> <item>RESULT</item> + <item>SEPARATOR</item> + <item>SUBKEYS</item> + <item>VALUE</item> + <item>VALUE_NAMES</item> + <item>VIEW</item> + <item>WINDOWS_REGISTRY</item> </list> <list name="cmake_host_system_information_sargs"> + <item>32</item> + <item>32_64</item> + <item>64</item> + <item>64_32</item> <item>AVAILABLE_PHYSICAL_MEMORY</item> <item>AVAILABLE_VIRTUAL_MEMORY</item> + <item>BOTH</item> + <item>DISTRIB_INFO</item> <item>FQDN</item> <item>HAS_AMD_3DNOW</item> <item>HAS_AMD_3DNOW_PLUS</item> @@ -170,8 +190,10 @@ <item>HAS_SSE2</item> <item>HAS_SSE_FP</item> <item>HAS_SSE_MMX</item> + <item>HOST</item> <item>HOSTNAME</item> <item>IS_64BIT</item> + <item>MSYSTEM_PREFIX</item> <item>NUMBER_OF_LOGICAL_CORES</item> <item>NUMBER_OF_PHYSICAL_CORES</item> <item>OS_NAME</item> @@ -181,9 +203,29 @@ <item>PROCESSOR_DESCRIPTION</item> <item>PROCESSOR_NAME</item> <item>PROCESSOR_SERIAL_NUMBER</item> + <item>TARGET</item> <item>TOTAL_PHYSICAL_MEMORY</item> <item>TOTAL_VIRTUAL_MEMORY</item> </list> + <list name="cmake_language_nargs"> + <item>CALL</item> + <item>CANCEL_CALL</item> + <item>CODE</item> + <item>DEFER</item> + <item>DIRECTORY</item> + <item>EVAL</item> + <item>GET_CALL</item> + <item>GET_CALL_IDS</item> + <item>GET_MESSAGE_LOG_LEVEL</item> + <item>ID</item> + <item>ID_VAR</item> + <item>SET_DEPENDENCY_PROVIDER</item> + <item>SUPPORTED_METHODS</item> + </list> + <list name="cmake_language_sargs"> + <item>FETCHCONTENT_MAKEAVAILABLE_SERIAL</item> + <item>FIND_PACKAGE</item> + </list> <list name="cmake_minimum_required_nargs"> <item>FATAL_ERROR</item> <item>VERSION</item> @@ -191,6 +233,50 @@ <list name="cmake_parse_arguments_nargs"> <item>PARSE_ARGV</item> </list> + <list name="cmake_path_nargs"> + <item>ABSOLUTE_PATH</item> + <item>APPEND</item> + <item>APPEND_STRING</item> + <item>BASE_DIRECTORY</item> + <item>COMPARE</item> + <item>CONVERT</item> + <item>EQUAL</item> + <item>EXTENSION</item> + <item>FILENAME</item> + <item>GET</item> + <item>HASH</item> + <item>HAS_EXTENSION</item> + <item>HAS_FILENAME</item> + <item>HAS_PARENT_PATH</item> + <item>HAS_RELATIVE_PART</item> + <item>HAS_ROOT_DIRECTORY</item> + <item>HAS_ROOT_NAME</item> + <item>HAS_ROOT_PATH</item> + <item>HAS_STEM</item> + <item>IS_ABSOLUTE</item> + <item>IS_PREFIX</item> + <item>IS_RELATIVE</item> + <item>LAST_ONLY</item> + <item>NATIVE_PATH</item> + <item>NORMALIZE</item> + <item>NORMAL_PATH</item> + <item>NOT_EQUAL</item> + <item>OUTPUT_VARIABLE</item> + <item>PARENT_PATH</item> + <item>RELATIVE_PART</item> + <item>RELATIVE_PATH</item> + <item>REMOVE_EXTENSION</item> + <item>REMOVE_FILENAME</item> + <item>REPLACE_EXTENSION</item> + <item>REPLACE_FILENAME</item> + <item>ROOT_DIRECTORY</item> + <item>ROOT_NAME</item> + <item>ROOT_PATH</item> + <item>SET</item> + <item>STEM</item> + <item>TO_CMAKE_PATH_LIST</item> + <item>TO_NATIVE_PATH_LIST</item> + </list> <list name="cmake_policy_nargs"> <item>GET</item> <item>POP</item> @@ -206,7 +292,10 @@ <item>@ONLY</item> <item>COPYONLY</item> <item>ESCAPE_QUOTES</item> + <item>FILE_PERMISSIONS</item> <item>NEWLINE_STYLE</item> + <item>NO_SOURCE_PERMISSIONS</item> + <item>USE_SOURCE_PERMISSIONS</item> </list> <list name="configure_file_sargs"> <item>CRLF</item> @@ -217,6 +306,7 @@ </list> <list name="elseif_nargs"> <item>AND</item> + <item>COMMAND</item> <item>DEFINED</item> <item>EQUAL</item> <item>EXISTS</item> @@ -232,6 +322,7 @@ <item>MATCHES</item> <item>NOT</item> <item>OR</item> + <item>PATH_EQUAL</item> <item>POLICY</item> <item>STREQUAL</item> <item>STRGREATER</item> @@ -248,6 +339,10 @@ </list> <list name="execute_process_nargs"> <item>COMMAND</item> + <item>COMMAND_ECHO</item> + <item>COMMAND_ERROR_IS_FATAL</item> + <item>ECHO_ERROR_VARIABLE</item> + <item>ECHO_OUTPUT_VARIABLE</item> <item>ENCODING</item> <item>ERROR_FILE</item> <item>ERROR_QUIET</item> @@ -265,29 +360,52 @@ </list> <list name="execute_process_sargs"> <item>ANSI</item> + <item>ANY</item> <item>AUTO</item> + <item>LAST</item> <item>NONE</item> <item>OEM</item> + <item>STDERR</item> + <item>STDOUT</item> <item>UTF8</item> </list> <list name="file_nargs"> + <item>@ONLY</item> <item>APPEND</item> + <item>ARCHIVE_CREATE</item> + <item>ARCHIVE_EXTRACT</item> + <item>BASE_DIRECTORY</item> + <item>BUNDLE_EXECUTABLE</item> + <item>CHMOD</item> + <item>CHMOD_RECURSE</item> + <item>COMPRESSION</item> + <item>COMPRESSION_LEVEL</item> <item>CONDITION</item> + <item>CONFIGURE</item> <item>CONFIGURE_DEPENDS</item> <item>CONTENT</item> <item>COPY</item> + <item>COPY_FILE</item> <item>DESTINATION</item> + <item>DIRECTORIES</item> <item>DIRECTORY</item> <item>DIRECTORY_PERMISSIONS</item> <item>DOWNLOAD</item> <item>ENCODING</item> + <item>ESCAPE_QUOTES</item> <item>EXCLUDE</item> + <item>EXECUTABLES</item> + <item>EXPAND_TILDE</item> <item>EXPECTED_HASH</item> <item>EXPECTED_MD5</item> + <item>FILES</item> <item>FILES_MATCHING</item> <item>FILE_PERMISSIONS</item> <item>FOLLOW_SYMLINKS</item> + <item>FOLLOW_SYMLINK_CHAIN</item> + <item>FORMAT</item> <item>GENERATE</item> + <item>GET_RUNTIME_DEPENDENCIES</item> <item>GLOB</item> <item>GLOB_RECURSE</item> <item>GUARD</item> @@ -298,26 +416,42 @@ <item>INSTALL</item> <item>LENGTH_MAXIMUM</item> <item>LENGTH_MINIMUM</item> + <item>LIBRARIES</item> <item>LIMIT</item> <item>LIMIT_COUNT</item> <item>LIMIT_INPUT</item> <item>LIMIT_OUTPUT</item> <item>LIST_DIRECTORIES</item> + <item>LIST_ONLY</item> <item>LOCK</item> <item>LOG</item> <item>MAKE_DIRECTORY</item> <item>MD5</item> + <item>MODULES</item> + <item>MTIME</item> <item>NETRC</item> <item>NETRC_FILE</item> <item>NEWLINE_CONSUME</item> + <item>NEWLINE_STYLE</item> <item>NO_HEX_CONVERSION</item> + <item>NO_REPLACE</item> <item>NO_SOURCE_PERMISSIONS</item> <item>OFFSET</item> + <item>ONLY_IF_DIFFERENT</item> <item>OUTPUT</item> <item>PATTERN</item> <item>PERMISSIONS</item> + <item>POST_EXCLUDE_FILES</item> + <item>POST_EXCLUDE_REGEXES</item> + <item>POST_INCLUDE_FILES</item> + <item>POST_INCLUDE_REGEXES</item> + <item>PRE_EXCLUDE_REGEXES</item> + <item>PRE_INCLUDE_REGEXES</item> + <item>RANGE_END</item> + <item>RANGE_START</item> <item>READ</item> <item>READ_SYMLINK</item> + <item>REAL_PATH</item> <item>REGEX</item> <item>RELATIVE</item> <item>RELATIVE_PATH</item> @@ -325,6 +459,8 @@ <item>REMOVE</item> <item>REMOVE_RECURSE</item> <item>RENAME</item> + <item>RESOLVED_DEPENDENCIES_VAR</item> + <item>RESULT</item> <item>RESULT_VARIABLE</item> <item>SHA1</item> <item>SHA224</item> @@ -339,6 +475,7 @@ <item>SIZE</item> <item>STATUS</item> <item>STRINGS</item> + <item>TARGET</item> <item>TIMEOUT</item> <item>TIMESTAMP</item> <item>TLS_CAINFO</item> @@ -347,19 +484,28 @@ <item>TOUCH_NOCREATE</item> <item>TO_CMAKE_PATH</item> <item>TO_NATIVE_PATH</item> + <item>UNRESOLVED_DEPENDENCIES_VAR</item> <item>UPLOAD</item> <item>USERPWD</item> <item>USE_SOURCE_PERMISSIONS</item> <item>UTC</item> + <item>VERBOSE</item> <item>WRITE</item> </list> <list name="file_sargs"> + <item>7zip</item> + <item>BZip2</item> + <item>CRLF</item> + <item>DOS</item> <item>FILE</item> <item>FUNCTION</item> <item>GROUP_EXECUTE</item> <item>GROUP_READ</item> <item>GROUP_WRITE</item> + <item>GZip</item> <item>IGNORED</item> + <item>LF</item> + <item>None</item> <item>OPTIONAL</item> <item>OWNER_EXECUTE</item> <item>OWNER_READ</item> @@ -368,22 +514,33 @@ <item>REQUIRED</item> <item>SETGID</item> <item>SETUID</item> + <item>UNIX</item> <item>UTF-16BE</item> <item>UTF-16LE</item> <item>UTF-32B</item> <item>UTF-32LE</item> <item>UTF-8</item> + <item>WIN32</item> <item>WORLD_EXECUTE</item> <item>WORLD_READ</item> <item>WORLD_WRITE</item> + <item>XZ</item> + <item>Zstd</item> + <item>gnutar</item> + <item>pax</item> + <item>paxr</item> + <item>raw</item> + <item>zip</item> </list> <list name="find_file_nargs"> <item>CMAKE_FIND_ROOT_PATH_BOTH</item> <item>DOC</item> <item>HINTS</item> <item>NAMES</item> + <item>NO_CACHE</item> <item>NO_CMAKE_ENVIRONMENT_PATH</item> <item>NO_CMAKE_FIND_ROOT_PATH</item> + <item>NO_CMAKE_INSTALL_PREFIX</item> <item>NO_CMAKE_PATH</item> <item>NO_CMAKE_SYSTEM_PATH</item> <item>NO_DEFAULT_PATH</item> @@ -392,6 +549,18 @@ <item>ONLY_CMAKE_FIND_ROOT_PATH</item> <item>PATHS</item> <item>PATH_SUFFIXES</item> + <item>REGISTRY_VIEW</item> + <item>REQUIRED</item> + <item>VALIDATOR</item> + </list> + <list name="find_file_sargs"> + <item>32</item> + <item>32_64</item> + <item>64</item> + <item>64_32</item> + <item>BOTH</item> + <item>HOST</item> + <item>TARGET</item> </list> <list name="find_library_nargs"> <item>CMAKE_FIND_ROOT_PATH_BOTH</item> @@ -399,8 +568,10 @@ <item>HINTS</item> <item>NAMES</item> <item>NAMES_PER_DIR</item> + <item>NO_CACHE</item> <item>NO_CMAKE_ENVIRONMENT_PATH</item> <item>NO_CMAKE_FIND_ROOT_PATH</item> + <item>NO_CMAKE_INSTALL_PREFIX</item> <item>NO_CMAKE_PATH</item> <item>NO_CMAKE_SYSTEM_PATH</item> <item>NO_DEFAULT_PATH</item> @@ -409,18 +580,24 @@ <item>ONLY_CMAKE_FIND_ROOT_PATH</item> <item>PATHS</item> <item>PATH_SUFFIXES</item> + <item>REGISTRY_VIEW</item> + <item>REQUIRED</item> + <item>VALIDATOR</item> </list> <list name="find_package_nargs"> + <item>BYPASS_PROVIDER</item> <item>CMAKE_FIND_ROOT_PATH_BOTH</item> <item>COMPONENTS</item> <item>CONFIG</item> <item>CONFIGS</item> <item>EXACT</item> + <item>GLOBAL</item> <item>HINTS</item> <item>MODULE</item> <item>NAMES</item> <item>NO_CMAKE_ENVIRONMENT_PATH</item> <item>NO_CMAKE_FIND_ROOT_PATH</item> + <item>NO_CMAKE_INSTALL_PREFIX</item> <item>NO_CMAKE_PACKAGE_REGISTRY</item> <item>NO_CMAKE_PATH</item> <item>NO_CMAKE_SYSTEM_PACKAGE_REGISTRY</item> @@ -435,46 +612,22 @@ <item>PATHS</item> <item>PATH_SUFFIXES</item> <item>QUIET</item> + <item>REGISTRY_VIEW</item> <item>REQUIRED</item> </list> - <list name="find_path_nargs"> - <item>CMAKE_FIND_ROOT_PATH_BOTH</item> - <item>DOC</item> - <item>HINTS</item> - <item>NAMES</item> - <item>NO_CMAKE_ENVIRONMENT_PATH</item> - <item>NO_CMAKE_FIND_ROOT_PATH</item> - <item>NO_CMAKE_PATH</item> - <item>NO_CMAKE_SYSTEM_PATH</item> - <item>NO_DEFAULT_PATH</item> - <item>NO_PACKAGE_ROOT_PATH</item> - <item>NO_SYSTEM_ENVIRONMENT_PATH</item> - <item>ONLY_CMAKE_FIND_ROOT_PATH</item> - <item>PATHS</item> - <item>PATH_SUFFIXES</item> - </list> - <list name="find_program_nargs"> - <item>CMAKE_FIND_ROOT_PATH_BOTH</item> - <item>DOC</item> - <item>HINTS</item> - <item>NAMES</item> - <item>NAMES_PER_DIR</item> - <item>NO_CMAKE_ENVIRONMENT_PATH</item> - <item>NO_CMAKE_FIND_ROOT_PATH</item> - <item>NO_CMAKE_PATH</item> - <item>NO_CMAKE_SYSTEM_PATH</item> - <item>NO_DEFAULT_PATH</item> - <item>NO_PACKAGE_ROOT_PATH</item> - <item>NO_SYSTEM_ENVIRONMENT_PATH</item> - <item>ONLY_CMAKE_FIND_ROOT_PATH</item> - <item>PATHS</item> - <item>PATH_SUFFIXES</item> - </list> <list name="foreach_nargs"> <item>IN</item> <item>ITEMS</item> <item>LISTS</item> <item>RANGE</item> + <item>ZIP_LISTS</item> + </list> + <list name="get_cmake_property_sargs"> + <item>CACHE_VARIABLES</item> + <item>COMMANDS</item> + <item>COMPONENTS</item> + <item>MACROS</item> + <item>VARIABLES</item> </list> <list name="get_directory_property_nargs"> <item>DEFINITION</item> @@ -507,40 +660,10 @@ <item>SET</item> <item>SOURCE</item> <item>TARGET</item> + <item>TARGET_DIRECTORY</item> <item>TEST</item> <item>VARIABLE</item> </list> - <list name="if_nargs"> - <item>AND</item> - <item>DEFINED</item> - <item>EQUAL</item> - <item>EXISTS</item> - <item>GREATER</item> - <item>GREATER_EQUAL</item> - <item>IN_LIST</item> - <item>IS_ABSOLUTE</item> - <item>IS_DIRECTORY</item> - <item>IS_NEWER_THAN</item> - <item>IS_SYMLINK</item> - <item>LESS</item> - <item>LESS_EQUAL</item> - <item>MATCHES</item> - <item>NOT</item> - <item>OR</item> - <item>POLICY</item> - <item>STREQUAL</item> - <item>STRGREATER</item> - <item>STRGREATER_EQUAL</item> - <item>STRLESS</item> - <item>STRLESS_EQUAL</item> - <item>TARGET</item> - <item>TEST</item> - <item>VERSION_EQUAL</item> - <item>VERSION_GREATER</item> - <item>VERSION_GREATER_EQUAL</item> - <item>VERSION_LESS</item> - <item>VERSION_LESS_EQUAL</item> - </list> <list name="include_nargs"> <item>NO_POLICY_SCOPE</item> <item>OPTIONAL</item> @@ -567,6 +690,8 @@ <item>LENGTH</item> <item>ORDER</item> <item>OUTPUT_VARIABLE</item> + <item>POP_BACK</item> + <item>POP_FRONT</item> <item>PREPEND</item> <item>REGEX</item> <item>REMOVE_AT</item> @@ -585,6 +710,7 @@ <item>DESCENDING</item> <item>FILE_BASENAME</item> <item>INSENSITIVE</item> + <item>NATURAL</item> <item>SENSITIVE</item> <item>STRING</item> </list> @@ -602,14 +728,27 @@ </list> <list name="message_nargs"> <item>AUTHOR_WARNING</item> + <item>CHECK_FAIL</item> + <item>CHECK_PASS</item> + <item>CHECK_START</item> + <item>CONFIGURE_LOG</item> + <item>DEBUG</item> <item>DEPRECATION</item> <item>FATAL_ERROR</item> + <item>NOTICE</item> <item>SEND_ERROR</item> <item>STATUS</item> + <item>TRACE</item> + <item>VERBOSE</item> <item>WARNING</item> </list> + <list name="return_nargs"> + <item>PROPAGATE</item> + </list> <list name="separate_arguments_nargs"> <item>NATIVE_COMMAND</item> + <item>PROGRAM</item> + <item>SEPARATE_ARGS</item> <item>UNIX_COMMAND</item> <item>WINDOWS_COMMAND</item> </list> @@ -626,6 +765,7 @@ <item>PROPERTY</item> <item>SOURCE</item> <item>TARGET</item> + <item>TARGET_DIRECTORY</item> <item>TEST</item> <item>VARIABLE</item> </list> @@ -651,12 +791,16 @@ <item>CONCAT</item> <item>CONFIGURE</item> <item>EQUAL</item> + <item>ERROR_VARIABLE</item> <item>ESCAPE_QUOTES</item> <item>FIND</item> <item>GENEX_STRIP</item> + <item>GET</item> <item>GREATER</item> <item>GREATER_EQUAL</item> + <item>HEX</item> <item>JOIN</item> + <item>JSON</item> <item>LENGTH</item> <item>LESS</item> <item>LESS_EQUAL</item> @@ -664,6 +808,7 @@ <item>MATCH</item> <item>MATCHALL</item> <item>MD5</item> + <item>MEMBER</item> <item>NAME</item> <item>NAMESPACE</item> <item>NOTEQUAL</item> @@ -671,8 +816,11 @@ <item>RANDOM</item> <item>RANDOM_SEED</item> <item>REGEX</item> + <item>REMOVE</item> + <item>REPEAT</item> <item>REPLACE</item> <item>REVERSE</item> + <item>SET</item> <item>SHA1</item> <item>SHA224</item> <item>SHA256</item> @@ -696,37 +844,6 @@ <item>CACHE</item> <item>PARENT_SCOPE</item> </list> - <list name="while_nargs"> - <item>AND</item> - <item>DEFINED</item> - <item>EQUAL</item> - <item>EXISTS</item> - <item>GREATER</item> - <item>GREATER_EQUAL</item> - <item>IN_LIST</item> - <item>IS_ABSOLUTE</item> - <item>IS_DIRECTORY</item> - <item>IS_NEWER_THAN</item> - <item>IS_SYMLINK</item> - <item>LESS</item> - <item>LESS_EQUAL</item> - <item>MATCHES</item> - <item>NOT</item> - <item>OR</item> - <item>POLICY</item> - <item>STREQUAL</item> - <item>STRGREATER</item> - <item>STRGREATER_EQUAL</item> - <item>STRLESS</item> - <item>STRLESS_EQUAL</item> - <item>TARGET</item> - <item>TEST</item> - <item>VERSION_EQUAL</item> - <item>VERSION_GREATER</item> - <item>VERSION_GREATER_EQUAL</item> - <item>VERSION_LESS</item> - <item>VERSION_LESS_EQUAL</item> - </list> <list name="add_custom_command_nargs"> <item>APPEND</item> <item>ARGS</item> @@ -735,8 +852,11 @@ <item>COMMAND_EXPAND_LISTS</item> <item>COMMENT</item> <item>DEPENDS</item> + <item>DEPENDS_EXPLICIT_ONLY</item> <item>DEPFILE</item> <item>IMPLICIT_DEPENDS</item> + <item>JOB_POOL</item> + <item>JOB_SERVER_AWARE</item> <item>MAIN_DEPENDENCY</item> <item>OUTPUT</item> <item>POST_BUILD</item> @@ -757,6 +877,8 @@ <item>DEPENDS</item> <item>DEPFILE</item> <item>IMPLICIT_DEPENDS</item> + <item>JOB_POOL</item> + <item>JOB_SERVER_AWARE</item> <item>SOURCES</item> <item>USES_TERMINAL</item> <item>VERBATIM</item> @@ -784,17 +906,28 @@ </list> <list name="add_subdirectory_nargs"> <item>EXCLUDE_FROM_ALL</item> + <item>SYSTEM</item> </list> <list name="add_test_nargs"> <item>COMMAND</item> + <item>COMMAND_EXPAND_LISTS</item> <item>CONFIGURATIONS</item> <item>NAME</item> <item>WORKING_DIRECTORY</item> </list> <list name="build_command_nargs"> <item>CONFIGURATION</item> + <item>PARALLEL_LEVEL</item> <item>TARGET</item> </list> + <list name="cmake_file_api_nargs"> + <item>API_VERSION</item> + <item>CACHE</item> + <item>CMAKEFILES</item> + <item>CODEMODEL</item> + <item>QUERY</item> + <item>TOOLCHAINS</item> + </list> <list name="create_test_sourcelist_nargs"> <item>EXTRA_INCLUDE</item> <item>FUNCTION</item> @@ -806,6 +939,7 @@ <item>FULL_DOCS</item> <item>GLOBAL</item> <item>INHERITED</item> + <item>INITIALIZE_FROM_VARIABLE</item> <item>PROPERTY</item> <item>SOURCE</item> <item>TEST</item> @@ -815,10 +949,23 @@ <item>OPTIONAL</item> </list> <list name="enable_language_sargs"> + <item>ASM</item> + <item>ASM-ATT</item> + <item>ASM_MARMASM</item> + <item>ASM_MASM</item> + <item>ASM_NASM</item> <item>C</item> + <item>CSharp</item> + <item>CUDA</item> <item>CXX</item> <item>Fortran</item> + <item>HIP</item> + <item>ISPC</item> + <item>Java</item> + <item>OBJC</item> + <item>OBJCXX</item> <item>RC</item> + <item>Swift</item> </list> <list name="export_nargs"> <item>ANDROID_MK</item> @@ -829,6 +976,13 @@ <item>NAMESPACE</item> <item>TARGETS</item> </list> + <list name="get_source_file_property_nargs"> + <item>DIRECTORY</item> + <item>TARGET_DIRECTORY</item> + </list> + <list name="get_test_property_nargs"> + <item>DIRECTORY</item> + </list> <list name="include_directories_nargs"> <item>AFTER</item> <item>BEFORE</item> @@ -846,6 +1000,7 @@ <item>COMPONENT</item> <item>CONFIGURATIONS</item> <item>DESTINATION</item> + <item>DIRECTORIES</item> <item>DIRECTORY</item> <item>DIRECTORY_PERMISSIONS</item> <item>EXCLUDE</item> @@ -857,7 +1012,9 @@ <item>FILES</item> <item>FILES_MATCHING</item> <item>FILE_PERMISSIONS</item> + <item>FILE_SET</item> <item>FRAMEWORK</item> + <item>IMPORTED_RUNTIME_ARTIFACTS</item> <item>INCLUDES</item> <item>LIBRARY</item> <item>MESSAGE_NEVER</item> @@ -869,6 +1026,12 @@ <item>OPTIONAL</item> <item>PATTERN</item> <item>PERMISSIONS</item> + <item>POST_EXCLUDE_FILES</item> + <item>POST_EXCLUDE_REGEXES</item> + <item>POST_INCLUDE_FILES</item> + <item>POST_INCLUDE_REGEXES</item> + <item>PRE_EXCLUDE_REGEXES</item> + <item>PRE_INCLUDE_REGEXES</item> <item>PRIVATE_HEADER</item> <item>PROGRAMS</item> <item>PUBLIC_HEADER</item> @@ -876,8 +1039,11 @@ <item>RENAME</item> <item>RESOURCE</item> <item>RUNTIME</item> + <item>RUNTIME_DEPENDENCIES</item> + <item>RUNTIME_DEPENDENCY_SET</item> <item>SCRIPT</item> <item>TARGETS</item> + <item>TYPE</item> <item>USE_SOURCE_PERMISSIONS</item> </list> <list name="install_sargs"> @@ -897,7 +1063,7 @@ <item>AFTER</item> <item>BEFORE</item> </list> - <list name="link_libraries_nargs"> + <list name="link_libraries_sargs"> <item>debug</item> <item>general</item> <item>optimized</item> @@ -915,20 +1081,30 @@ </list> <list name="project_sargs"> <item>ASM</item> + <item>ASM-ATT</item> + <item>ASM_MASM</item> + <item>ASM_NASM</item> <item>C</item> + <item>CSharp</item> <item>CUDA</item> <item>CXX</item> <item>Fortran</item> + <item>HIP</item> + <item>ISPC</item> + <item>Java</item> <item>NONE</item> + <item>OBJC</item> + <item>OBJCXX</item> <item>RC</item> + <item>Swift</item> </list> <list name="set_source_files_properties_nargs"> + <item>DIRECTORY</item> <item>PROPERTIES</item> - </list> - <list name="set_target_properties_nargs"> - <item>PROPERTIES</item> + <item>TARGET_DIRECTORY</item> </list> <list name="set_tests_properties_nargs"> + <item>DIRECTORY</item> <item>PROPERTIES</item> </list> <list name="source_group_nargs"> @@ -942,19 +1118,23 @@ <item>PRIVATE</item> <item>PUBLIC</item> </list> - <list name="target_compile_features_nargs"> - <item>INTERFACE</item> - <item>PRIVATE</item> - <item>PUBLIC</item> - </list> <list name="target_compile_features_sargs"> <item>c_function_prototypes</item> <item>c_restrict</item> <item>c_static_assert</item> <item>c_std_11</item> + <item>c_std_17</item> + <item>c_std_23</item> <item>c_std_90</item> <item>c_std_99</item> <item>c_variadic_macros</item> + <item>cuda_std_03</item> + <item>cuda_std_11</item> + <item>cuda_std_14</item> + <item>cuda_std_17</item> + <item>cuda_std_20</item> + <item>cuda_std_23</item> + <item>cuda_std_26</item> <item>cxx_aggregate_default_initializers</item> <item>cxx_alias_templates</item> <item>cxx_alignas</item> @@ -1005,6 +1185,8 @@ <item>cxx_std_14</item> <item>cxx_std_17</item> <item>cxx_std_20</item> + <item>cxx_std_23</item> + <item>cxx_std_26</item> <item>cxx_std_98</item> <item>cxx_strong_enums</item> <item>cxx_template_template_parameters</item> @@ -1025,43 +1207,51 @@ <item>PUBLIC</item> </list> <list name="target_include_directories_nargs"> + <item>AFTER</item> <item>BEFORE</item> <item>INTERFACE</item> <item>PRIVATE</item> <item>PUBLIC</item> <item>SYSTEM</item> </list> - <list name="target_link_directories_nargs"> - <item>BEFORE</item> - <item>INTERFACE</item> - <item>PRIVATE</item> - <item>PUBLIC</item> - </list> - <list name="target_link_libraries_nargs"> - <item>INTERFACE</item> - <item>PRIVATE</item> - <item>PUBLIC</item> - </list> - <list name="target_link_options_nargs"> + <list name="target_precompile_headers_nargs"> <item>INTERFACE</item> <item>PRIVATE</item> <item>PUBLIC</item> + <item>REUSE_FROM</item> </list> <list name="target_sources_nargs"> + <item>BASE_DIRS</item> + <item>FILES</item> + <item>FILE_SET</item> <item>INTERFACE</item> <item>PRIVATE</item> <item>PUBLIC</item> + <item>TYPE</item> + </list> + <list name="target_sources_sargs"> + <item>CXX_MODULES</item> + <item>HEADERS</item> </list> <list name="try_compile_nargs"> + <item>BINARY_DIR</item> <item>CMAKE_FLAGS</item> <item>COMPILE_DEFINITIONS</item> <item>COPY_FILE</item> <item>COPY_FILE_ERROR</item> <item>LINK_LIBRARIES</item> <item>LINK_OPTIONS</item> + <item>LOG_DESCRIPTION</item> + <item>NO_CACHE</item> + <item>NO_LOG</item> <item>OUTPUT_VARIABLE</item> - <item>RESULT_VAR</item> + <item>PROJECT</item> <item>SOURCES</item> + <item>SOURCE_DIR</item> + <item>SOURCE_FROM_CONTENT</item> + <item>SOURCE_FROM_FILE</item> + <item>SOURCE_FROM_VAR</item> + <item>TARGET</item> </list> <list name="try_run_nargs"> <item>ARGS</item> @@ -1069,11 +1259,23 @@ <item>COMPILE_DEFINITIONS</item> <item>COMPILE_OUTPUT_VARIABLE</item> <item>COMPILE_RESULT_VAR</item> + <item>COPY_FILE</item> + <item>COPY_FILE_ERROR</item> <item>LINK_LIBRARIES</item> <item>LINK_OPTIONS</item> + <item>LOG_DESCRIPTION</item> + <item>NO_CACHE</item> + <item>NO_LOG</item> <item>OUTPUT_VARIABLE</item> + <item>RUN_OUTPUT_STDERR_VARIABLE</item> + <item>RUN_OUTPUT_STDOUT_VARIABLE</item> <item>RUN_OUTPUT_VARIABLE</item> <item>RUN_RESULT_VAR</item> + <item>SOURCES</item> + <item>SOURCE_FROM_CONTENT</item> + <item>SOURCE_FROM_FILE</item> + <item>SOURCE_FROM_VAR</item> + <item>WORKING_DIRECTORY</item> </list> <list name="ctest_build_nargs"> <item>APPEND</item> @@ -1135,6 +1337,7 @@ <item>TRACK</item> </list> <list name="ctest_submit_nargs"> + <item>BUILD_ID</item> <item>CDASH_UPLOAD</item> <item>CDASH_UPLOAD_TYPE</item> <item>FILES</item> @@ -1144,6 +1347,7 @@ <item>RETRY_COUNT</item> <item>RETRY_DELAY</item> <item>RETURN_VALUE</item> + <item>SUBMIT_URL</item> </list> <list name="ctest_test_nargs"> <item>APPEND</item> @@ -1159,13 +1363,20 @@ <item>INCLUDE_LABEL</item> <item>PARALLEL_LEVEL</item> <item>QUIET</item> + <item>REPEAT</item> <item>RETURN_VALUE</item> <item>SCHEDULE_RANDOM</item> <item>START</item> + <item>STOP_ON_FAILURE</item> <item>STOP_TIME</item> <item>STRIDE</item> <item>TEST_LOAD</item> </list> + <list name="ctest_test_sargs"> + <item>AFTER_TIMEOUT</item> + <item>UNTIL_FAIL</item> + <item>UNTIL_PASS</item> + </list> <list name="ctest_update_nargs"> <item>QUIET</item> <item>RETURN_VALUE</item> @@ -1176,14 +1387,743 @@ <item>FILES</item> <item>QUIET</item> </list> + <list name="android_add_test_data_nargs"> + <item>DEVICE_OBJECT_STORE</item> + <item>DEVICE_TEST_DIR</item> + <item>FILES</item> + <item>FILES_DEST</item> + <item>LIBS</item> + <item>LIBS_DEST</item> + <item>NO_LINK_REGEX</item> + </list> + <list name="check_c_source_compiles_nargs"> + <item>FAIL_REGEX</item> + </list> + <list name="check_fortran_source_compiles_nargs"> + <item>FAIL_REGEX</item> + <item>SRC_EXT</item> + </list> + <list name="check_fortran_source_runs_nargs"> + <item>SRC_EXT</item> + </list> + <list name="check_include_files_nargs"> + <item>LANGUAGE</item> + </list> + <list name="check_include_files_sargs"> + <item>C</item> + <item>CXX</item> + </list> + <list name="check_ipo_supported_nargs"> + <item>LANGUAGES</item> + <item>OUTPUT</item> + <item>RESULT</item> + </list> + <list name="check_ipo_supported_sargs"> + <item>C</item> + <item>CXX</item> + <item>Fortran</item> + </list> + <list name="check_pie_supported_nargs"> + <item>LANGUAGES</item> + <item>OUTPUT_VARIABLE</item> + </list> + <list name="check_pie_supported_sargs"> + <item>C</item> + <item>CUDA</item> + <item>CXX</item> + <item>Fortran</item> + <item>HIP</item> + <item>OBJC</item> + <item>OBJCXX</item> + </list> + <list name="check_type_size_nargs"> + <item>BUILTIN_TYPES_ONLY</item> + <item>LANGUAGE</item> + </list> + <list name="cmake_add_fortran_subdirectory_nargs"> + <item>ARCHIVE_DIR</item> + <item>CMAKE_COMMAND_LINE</item> + <item>LIBRARIES</item> + <item>LINK_LIBRARIES</item> + <item>LINK_LIBS</item> + <item>NO_EXTERNAL_INSTALL</item> + <item>PROJECT</item> + <item>RUNTIME_DIR</item> + </list> + <list name="configure_package_config_file_nargs"> + <item>INSTALL_DESTINATION</item> + <item>INSTALL_PREFIX</item> + <item>NO_CHECK_REQUIRED_COMPONENTS_MACRO</item> + <item>NO_SET_AND_CHECK_MACRO</item> + <item>PATH_VARS</item> + </list> + <list name="write_basic_package_version_file_nargs"> + <item>ARCH_INDEPENDENT</item> + <item>COMPATIBILITY</item> + <item>VERSION</item> + </list> + <list name="write_basic_package_version_file_sargs"> + <item>AnyNewerVersion</item> + <item>ExactVersion</item> + <item>SameMajorVersion</item> + <item>SameMinorVersion</item> + </list> + <list name="cmake_print_properties_nargs"> + <item>CACHE_ENTRIES</item> + <item>DIRECTORIES</item> + <item>PROPERTIES</item> + <item>SOURCES</item> + <item>TARGETS</item> + <item>TESTS</item> + </list> + <list name="cmake_push_check_state_nargs"> + <item>RESET</item> + </list> + <list name="cpack_add_component_nargs"> + <item>ARCHIVE_FILE</item> + <item>DEPENDS</item> + <item>DESCRIPTION</item> + <item>DISABLED</item> + <item>DISPLAY_NAME</item> + <item>DOWNLOADED</item> + <item>GROUP</item> + <item>HIDDEN</item> + <item>INSTALL_TYPES</item> + <item>PLIST</item> + <item>REQUIRED</item> + </list> + <list name="cpack_add_component_group_nargs"> + <item>BOLD_TITLE</item> + <item>DESCRIPTION</item> + <item>DISPLAY_NAME</item> + <item>EXPANDED</item> + <item>PARENT_GROUP</item> + </list> + <list name="cpack_add_install_type_nargs"> + <item>DISPLAY_NAME</item> + </list> + <list name="cpack_configure_downloads_nargs"> + <item>ADD_REMOVE</item> + <item>ALL</item> + <item>NO_ADD_REMOVE</item> + <item>UPLOAD_DIRECTORY</item> + </list> + <list name="cpack_ifw_configure_component_nargs"> + <item>AUTO_DEPEND_ON</item> + <item>CHECKABLE</item> + <item>COMMON</item> + <item>DEFAULT</item> + <item>DEPENDENCIES</item> + <item>DEPENDS</item> + <item>DESCRIPTION</item> + <item>DISPLAY_NAME</item> + <item>ESSENTIAL</item> + <item>FORCED_INSTALLATION</item> + <item>LICENSES</item> + <item>NAME</item> + <item>PRIORITY</item> + <item>RELEASE_DATE</item> + <item>REPLACES</item> + <item>REQUIRES_ADMIN_RIGHTS]</item> + <item>SCRIPT</item> + <item>SORTING_PRIORITY</item> + <item>TRANSLATIONS</item> + <item>UPDATE_TEXT</item> + <item>USER_INTERFACES</item> + <item>VERSION</item> + <item>VIRTUAL</item> + </list> + <list name="cpack_ifw_configure_component_group_nargs"> + <item>AUTO_DEPEND_ON</item> + <item>CHECKABLE</item> + <item>DEFAULT</item> + <item>DEPENDENCIES</item> + <item>DEPENDS</item> + <item>DESCRIPTION</item> + <item>DISPLAY_NAME</item> + <item>FORCED_INSTALLATION</item> + <item>LICENSES</item> + <item>NAME</item> + <item>PRIORITY</item> + <item>RELEASE_DATE</item> + <item>REPLACES</item> + <item>REQUIRES_ADMIN_RIGHTS</item> + <item>SCRIPT</item> + <item>SORTING_PRIORITY</item> + <item>TRANSLATIONS</item> + <item>UPDATE_TEXT</item> + <item>USER_INTERFACES</item> + <item>VERSION</item> + <item>VIRTUAL</item> + </list> + <list name="cpack_ifw_add_repository_nargs"> + <item>DISABLED</item> + <item>DISPLAY_NAME</item> + <item>PASSWORD</item> + <item>URL</item> + <item>USERNAME</item> + </list> + <list name="cpack_ifw_update_repository_nargs"> + <item>ADD</item> + <item>DISPLAY_NAME</item> + <item>NEW_URL</item> + <item>OLD_URL</item> + <item>PASSWORD</item> + <item>REMOVE</item> + <item>REPLACE</item> + <item>URL</item> + <item>USERNAME</item> + </list> + <list name="ctest_coverage_collect_gcov_nargs"> + <item>BUILD</item> + <item>DELETE</item> + <item>GCOV_COMMAND</item> + <item>GCOV_OPTIONS</item> + <item>GLOB</item> + <item>QUIET</item> + <item>SOURCE</item> + <item>TARBALL</item> + <item>TARBALL_COMPRESSION</item> + </list> + <list name="ExternalData_Add_Target_nargs"> + <item>SHOW_PROGRESS</item> + </list> + <list name="ExternalProject_Add_nargs"> + <item>BINARY_DIR</item> + <item>BUILD_ALWAYS</item> + <item>BUILD_BYPRODUCTS</item> + <item>BUILD_COMMAND</item> + <item>BUILD_IN_SOURCE</item> + <item>BUILD_JOB_SERVER_AWARE</item> + <item>CMAKE_ARGS</item> + <item>CMAKE_CACHE_ARGS</item> + <item>CMAKE_CACHE_DEFAULT_ARGS</item> + <item>CMAKE_COMMAND</item> + <item>CMAKE_GENERATOR</item> + <item>CMAKE_GENERATOR_INSTANCE</item> + <item>CMAKE_GENERATOR_PLATFORM</item> + <item>CMAKE_GENERATOR_TOOLSET</item> + <item>COMMAND</item> + <item>CONFIGURE_COMMAND</item> + <item>CONFIGURE_HANDLED_BY_BUILD</item> + <item>CVS_MODULE</item> + <item>CVS_REPOSITORY</item> + <item>CVS_TAG</item> + <item>DEPENDS</item> + <item>DOWNLOAD_COMMAND</item> + <item>DOWNLOAD_DIR</item> + <item>DOWNLOAD_EXTRACT_TIMESTAMP</item> + <item>DOWNLOAD_NAME</item> + <item>DOWNLOAD_NO_EXTRACT</item> + <item>DOWNLOAD_NO_PROGRESS</item> + <item>EXCLUDE_FROM_ALL</item> + <item>GIT_CONFIG</item> + <item>GIT_PROGRESS</item> + <item>GIT_REMOTE_NAME</item> + <item>GIT_REMOTE_UPDATE_STRATEGY</item> + <item>GIT_REPOSITORY</item> + <item>GIT_SHALLOW</item> + <item>GIT_SUBMODULES</item> + <item>GIT_SUBMODULES_RECURSE</item> + <item>GIT_TAG</item> + <item>HG_REPOSITORY</item> + <item>HG_TAG</item> + <item>HTTP_HEADER</item> + <item>HTTP_PASSWORD</item> + <item>HTTP_USERNAME</item> + <item>INACTIVITY_TIMEOUT</item> + <item>INDEPENDENT_STEP_TARGETS</item> + <item>INSTALL_BYPRODUCTS</item> + <item>INSTALL_COMMAND</item> + <item>INSTALL_DIR</item> + <item>LIST_SEPARATOR</item> + <item>LOG_BUILD</item> + <item>LOG_CONFIGURE</item> + <item>LOG_DIR</item> + <item>LOG_DOWNLOAD</item> + <item>LOG_INSTALL</item> + <item>LOG_MERGED_STDOUTERR</item> + <item>LOG_OUTPUT_ON_FAILURE</item> + <item>LOG_PATCH</item> + <item>LOG_TEST</item> + <item>LOG_UPDATE</item> + <item>NETRC</item> + <item>NETRC_FILE</item> + <item>PATCH_COMMAND</item> + <item>PREFIX</item> + <item>SOURCE_DIR</item> + <item>SOURCE_SUBDIR</item> + <item>STAMP_DIR</item> + <item>STEP_TARGETS</item> + <item>SVN_PASSWORD</item> + <item>SVN_REPOSITORY</item> + <item>SVN_REVISION</item> + <item>SVN_TRUST_CERT</item> + <item>SVN_USERNAME</item> + <item>TEST_AFTER_INSTALL</item> + <item>TEST_BEFORE_INSTALL</item> + <item>TEST_COMMAND</item> + <item>TEST_EXCLUDE_FROM_MAIN</item> + <item>TIMEOUT</item> + <item>TLS_CAINFO</item> + <item>TLS_VERIFY</item> + <item>TMP_DIR</item> + <item>UPDATE_COMMAND</item> + <item>UPDATE_DISCONNECTED</item> + <item>URL</item> + <item>URL_HASH</item> + <item>URL_MD5</item> + <item>USES_TERMINAL_BUILD</item> + <item>USES_TERMINAL_CONFIGURE</item> + <item>USES_TERMINAL_DOWNLOAD</item> + <item>USES_TERMINAL_INSTALL</item> + <item>USES_TERMINAL_PATCH</item> + <item>USES_TERMINAL_TEST</item> + <item>USES_TERMINAL_UPDATE</item> + </list> + <list name="ExternalProject_Add_sargs"> + <item>CHECKOUT</item> + <item>IGNORED</item> + <item>OPTIONAL</item> + <item>REBASE</item> + <item>REBASE_CHECKOUT</item> + <item>REQUIRED</item> + </list> + <list name="ExternalProject_Add_Step_nargs"> + <item>ALWAYS</item> + <item>BYPRODUCTS</item> + <item>COMMAND</item> + <item>COMMENT</item> + <item>DEPENDEES</item> + <item>DEPENDERS</item> + <item>DEPENDS</item> + <item>EXCLUDE_FROM_MAIN</item> + <item>INDEPENDENT</item> + <item>JOB_SERVER_AWARE</item> + <item>LOG</item> + <item>USES_TERMINAL</item> + <item>WORKING_DIRECTORY</item> + </list> + <list name="ExternalProject_Add_StepTargets_nargs"> + <item>NO_DEPENDS</item> + </list> + <list name="feature_summary_nargs"> + <item>ALL</item> + <item>APPEND</item> + <item>DEFAULT_DESCRIPTION</item> + <item>DESCRIPTION</item> + <item>DISABLED_FEATURES</item> + <item>ENABLED_FEATURES</item> + <item>FATAL_ON_MISSING_REQUIRED_PACKAGES</item> + <item>FILENAME</item> + <item>INCLUDE_QUIET_PACKAGES</item> + <item>PACKAGES_FOUND</item> + <item>PACKAGES_NOT_FOUND</item> + <item>QUIET_ON_EMPTY</item> + <item>VAR</item> + <item>WHAT</item> + </list> + <list name="set_package_properties_nargs"> + <item>DESCRIPTION</item> + <item>OPTIONAL</item> + <item>PROPERTIES</item> + <item>PURPOSE</item> + <item>RECOMMENDED</item> + <item>REQUIRED</item> + <item>RUNTIME</item> + <item>TYPE</item> + <item>URL</item> + </list> + <list name="FetchContent_Declare_nargs"> + <item>CVS_MODULE</item> + <item>CVS_REPOSITORY</item> + <item>CVS_TAG</item> + <item>DOWNLOAD_COMMAND</item> + <item>DOWNLOAD_NAME</item> + <item>DOWNLOAD_NO_EXTRACT</item> + <item>DOWNLOAD_NO_PROGRESS</item> + <item>EXCLUDE_FROM_ALL</item> + <item>FIND_PACKAGE_ARGS</item> + <item>GIT_CONFIG</item> + <item>GIT_PROGRESS</item> + <item>GIT_REMOTE_NAME</item> + <item>GIT_REMOTE_UPDATE_STRATEGY</item> + <item>GIT_REPOSITORY</item> + <item>GIT_SHALLOW</item> + <item>GIT_SUBMODULES</item> + <item>GIT_SUBMODULES_RECURSE</item> + <item>GIT_TAG</item> + <item>HG_REPOSITORY</item> + <item>HG_TAG</item> + <item>HTTP_HEADER</item> + <item>HTTP_PASSWORD</item> + <item>HTTP_USERNAME</item> + <item>INACTIVITY_TIMEOUT</item> + <item>NETRC</item> + <item>NETRC_FILE</item> + <item>OVERRIDE_FIND_PACKAGE</item> + <item>PATCH_COMMAND</item> + <item>SOURCE_SUBDIR</item> + <item>SVN_PASSWORD</item> + <item>SVN_REPOSITORY</item> + <item>SVN_REVISION</item> + <item>SVN_TRUST_CERT</item> + <item>SVN_USERNAME</item> + <item>SYSTEM</item> + <item>TIMEOUT</item> + <item>TLS_CAINFO</item> + <item>TLS_VERIFY</item> + <item>UPDATE_COMMAND</item> + <item>UPDATE_DISCONNECTED</item> + <item>URL</item> + <item>URL_HASH</item> + <item>URL_MD5</item> + </list> + <list name="FetchContent_Populate_nargs"> + <item>BINARY_DIR</item> + <item>CVS_MODULE</item> + <item>CVS_REPOSITORY</item> + <item>CVS_TAG</item> + <item>DOWNLOAD_COMMAND</item> + <item>DOWNLOAD_NAME</item> + <item>DOWNLOAD_NO_EXTRACT</item> + <item>DOWNLOAD_NO_PROGRESS</item> + <item>GIT_CONFIG</item> + <item>GIT_PROGRESS</item> + <item>GIT_REMOTE_NAME</item> + <item>GIT_REMOTE_UPDATE_STRATEGY</item> + <item>GIT_REPOSITORY</item> + <item>GIT_SHALLOW</item> + <item>GIT_SUBMODULES</item> + <item>GIT_SUBMODULES_RECURSE</item> + <item>GIT_TAG</item> + <item>HG_REPOSITORY</item> + <item>HG_TAG</item> + <item>HTTP_HEADER</item> + <item>HTTP_PASSWORD</item> + <item>HTTP_USERNAME</item> + <item>INACTIVITY_TIMEOUT</item> + <item>NETRC</item> + <item>NETRC_FILE</item> + <item>PATCH_COMMAND</item> + <item>QUIET</item> + <item>SOURCE_DIR</item> + <item>SOURCE_SUBDIR</item> + <item>SUBBUILD_DIR</item> + <item>SVN_PASSWORD</item> + <item>SVN_REPOSITORY</item> + <item>SVN_REVISION</item> + <item>SVN_TRUST_CERT</item> + <item>SVN_USERNAME</item> + <item>TIMEOUT</item> + <item>TLS_CAINFO</item> + <item>TLS_VERIFY</item> + <item>UPDATE_COMMAND</item> + <item>UPDATE_DISCONNECTED</item> + <item>URL</item> + <item>URL_HASH</item> + <item>URL_MD5</item> + </list> + <list name="FetchContent_GetProperties_nargs"> + <item>BINARY_DIR</item> + <item>POPULATED</item> + <item>SOURCE_DIR</item> + </list> + <list name="find_package_handle_standard_args_nargs"> + <item>CONFIG_MODE</item> + <item>DEFAULT_MSG</item> + <item>FAIL_MESSAGE</item> + <item>FOUND_VAR</item> + <item>HANDLE_COMPONENTS</item> + <item>HANDLE_VERSION_RANGE</item> + <item>NAME_MISMATCHED</item> + <item>REASON_FAILURE_MESSAGE</item> + <item>REQUIRED_VARS</item> + <item>VERSION_VAR</item> + </list> + <list name="find_package_check_version_nargs"> + <item>HANDLE_VERSION_RANGE</item> + <item>RESULT_MESSAGE_VARIABLE</item> + </list> + <list name="FortranCInterface_HEADER_nargs"> + <item>MACRO_NAMESPACE</item> + <item>SYMBOLS</item> + <item>SYMBOL_NAMESPACE</item> + </list> + <list name="FortranCInterface_VERIFY_nargs"> + <item>CXX</item> + <item>QUIET</item> + </list> + <list name="generate_export_header_nargs"> + <item>BASE_NAME</item> + <item>CUSTOM_CONTENT_FROM_VARIABLE</item> + <item>DEFINE_NO_DEPRECATED</item> + <item>DEPRECATED_MACRO_NAME</item> + <item>EXPORT_FILE_NAME</item> + <item>EXPORT_MACRO_NAME</item> + <item>INCLUDE_GUARD_NAME</item> + <item>NO_DEPRECATED_MACRO_NAME</item> + <item>NO_EXPORT_MACRO_NAME</item> + <item>PREFIX_NAME</item> + <item>STATIC_DEFINE</item> + </list> + <list name="gtest_add_tests_nargs"> + <item>EXTRA_ARGS</item> + <item>SKIP_DEPENDENCY</item> + <item>SOURCES</item> + <item>TARGET</item> + <item>TEST_LIST</item> + <item>TEST_PREFIX</item> + <item>TEST_SUFFIX</item> + <item>WORKING_DIRECTORY</item> + </list> + <list name="gtest_discover_tests_nargs"> + <item>DISCOVERY_MODE</item> + <item>DISCOVERY_TIMEOUT</item> + <item>EXTRA_ARGS</item> + <item>NO_PRETTY_TYPES</item> + <item>NO_PRETTY_VALUES</item> + <item>PROPERTIES</item> + <item>TEST_FILTER</item> + <item>TEST_LIST</item> + <item>TEST_PREFIX</item> + <item>TEST_SUFFIX</item> + <item>WORKING_DIRECTORY</item> + <item>XML_OUTPUT_DIR</item> + </list> + <list name="gtest_discover_tests_sargs"> + <item>POST_BUILD</item> + <item>PRE_TEST</item> + </list> + <list name="add_jar_nargs"> + <item>BUILD</item> + <item>DESTINATION</item> + <item>ENTRY_POINT</item> + <item>GENERATE_NATIVE_HEADERS</item> + <item>INCLUDE_JARS</item> + <item>INSTALL</item> + <item>MANIFEST</item> + <item>NAMESPACE</item> + <item>OUTPUT_DIR</item> + <item>OUTPUT_NAME</item> + <item>RESOURCES</item> + <item>SOURCES</item> + <item>VERSION</item> + </list> + <list name="install_jar_nargs"> + <item>COMPONENT</item> + <item>DESTINATION</item> + </list> + <list name="create_javah_nargs"> + <item>CLASSES</item> + <item>CLASSPATH</item> + <item>DEPENDS</item> + <item>GENERATED_FILES</item> + <item>OUTPUT_DIR</item> + <item>OUTPUT_NAME</item> + <item>TARGET</item> + </list> + <list name="install_jar_exports_nargs"> + <item>COMPONENT</item> + <item>DESTINATION</item> + <item>FILE</item> + <item>NAMESPACE</item> + <item>TARGETS</item> + </list> + <list name="export_jars_nargs"> + <item>FILE</item> + <item>NAMESPACE</item> + <item>TARGETS</item> + </list> + <list name="find_jar_nargs"> + <item>DOC</item> + <item>ENV</item> + <item>NAMES</item> + <item>PATHS</item> + <item>VERSIONS</item> + </list> + <list name="create_javadoc_nargs"> + <item>AUTHOR</item> + <item>CLASSPATH</item> + <item>DOCTITLE</item> + <item>FILES</item> + <item>INSTALLPATH</item> + <item>PACKAGES</item> + <item>SOURCEPATH</item> + <item>USE</item> + <item>VERSION</item> + <item>WINDOWTITLE</item> + </list> + <list name="swig_add_library_nargs"> + <item>LANGUAGE</item> + <item>MODULE</item> + <item>NO_PROXY</item> + <item>OUTFILE_DIR</item> + <item>OUTPUT_DIR</item> + <item>SHARED</item> + <item>SOURCES</item> + <item>STATIC</item> + <item>TYPE</item> + <item>USE_BUILD_SHARED_LIBS</item> + </list> + <list name="squish_add_test_nargs"> + <item>AUT</item> + <item>POST_COMMAND</item> + <item>PRE_COMMAND</item> + <item>SETTINGSGROUP</item> + <item>SUITE</item> + <item>TEST</item> + </list> + <list name="bison_target_nargs"> + <item>COMPILE_FLAGS</item> + <item>DEFINES_FILE</item> + <item>REPORT_FILE</item> + <item>VERBOSE</item> + </list> + <list name="doxygen_add_docs_nargs"> + <item>ALL</item> + <item>COMMENT</item> + <item>CONFIG_FILE</item> + <item>USE_STAMP_FILE</item> + <item>WORKING_DIRECTORY</item> + </list> + <list name="env_module_nargs"> + <item>COMMAND</item> + <item>OUTPUT_VARIABLE</item> + <item>RESULT_VARIABLE</item> + </list> + <list name="env_module_swap_nargs"> + <item>OUTPUT_VARIABLE</item> + <item>RESULT_VARIABLE</item> + </list> + <list name="flex_target_nargs"> + <item>COMPILE_FLAGS</item> + <item>DEFINES_FILE</item> + </list> + <list name="gettext_create_translations_nargs"> + <item>ALL</item> + </list> + <list name="gettext_process_pot_file_nargs"> + <item>ALL</item> + <item>INSTALL_DESTINATION</item> + <item>LANGUAGES</item> + </list> + <list name="gettext_process_po_files_nargs"> + <item>ALL</item> + <item>INSTALL_DESTINATION</item> + <item>PO_FILES</item> + </list> + <list name="matlab_add_unit_test_nargs"> + <item>ADDITIONAL_PATH</item> + <item>CUSTOM_TEST_COMMAND</item> + <item>MATLAB_ADDITIONAL_STARTUP_OPTIONS</item> + <item>NAME</item> + <item>NO_UNITTEST_FRAMEWORK</item> + <item>TEST_ARGS</item> + <item>TIMEOUT</item> + <item>UNITTEST_FILE</item> + <item>UNITTEST_PRECOMMAND</item> + </list> + <list name="matlab_add_mex_nargs"> + <item>DOCUMENTATION</item> + <item>EXCLUDE_FROM_ALL</item> + <item>EXECUTABLE</item> + <item>LINK_TO</item> + <item>MODULE</item> + <item>NAME</item> + <item>NO_IMPLICIT_LINK_TO_MATLAB_LIBRARIES</item> + <item>OUTPUT_NAME</item> + <item>R2017b</item> + <item>R2018a</item> + <item>SHARED</item> + <item>SRC</item> + </list> + <list name="pkg_check_modules_nargs"> + <item>GLOBAL</item> + <item>IMPORTED_TARGET</item> + <item>NO_CMAKE_ENVIRONMENT_PATH</item> + <item>NO_CMAKE_PATH</item> + <item>QUIET</item> + <item>REQUIRED</item> + <item>STATIC_TARGET</item> + </list> + <list name="pkg_get_variable_nargs"> + <item>DEFINE_VARIABLES</item> + </list> + <list name="protobuf_generate_cpp_nargs"> + <item>DESCRIPTORS</item> + <item>EXPORT_MACRO</item> + </list> + <list name="Python_add_library_nargs"> + <item>MODULE</item> + <item>SHARED</item> + <item>STATIC</item> + <item>WITH_SOABI</item> + </list> + <list name="Subversion_WC_INFO_nargs"> + <item>IGNORE_SVN_FAILURE</item> + </list> <list name="variables"> + <item>ALSA_LIBRARY</item> <item>ANDROID</item> <item>APPLE</item> + <item>ARGC</item> + <item>ARGN</item> + <item>ARGV</item> + <item>ASPELL_DEFINITIONS</item> + <item>ASPELL_EXECUTABLE</item> + <item>AVIFILE_DEFINITIONS</item> + <item>BIBER_COMPILER</item> + <item>BIBTEX_COMPILER</item> + <item>BISON_EXECUTABLE</item> + <item>BLAS_LINKER_FLAGS</item> + <item>BLA_F95</item> + <item>BLA_PREFER_PKGCONFIG</item> + <item>BLA_SIZEOF_INTEGER</item> + <item>BLA_STATIC</item> + <item>BLA_VENDOR</item> + <item>BOOSTROOT</item> + <item>BOOST_INCLUDEDIR</item> + <item>BOOST_LIBRARYDIR</item> <item>BORLAND</item> + <item>BSD</item> <item>BUILD_SHARED_LIBS</item> <item>BUILD_TESTING</item> + <item>BU_CHMOD_BUNDLE_ITEMS</item> + <item>BZIP2_INCLUDE_DIR</item> + <item>BZIP2_NEED_PREFIX</item> + <item>Backtrace_HEADER</item> + <item>Backtrace_LIBRARY</item> + <item>Boost_ADDITIONAL_VERSIONS</item> + <item>Boost_ARCHITECTURE</item> + <item>Boost_COMPILER</item> + <item>Boost_DEBUG</item> + <item>Boost_INCLUDE_DIR</item> + <item>Boost_LIBRARY_DIR_DEBUG</item> + <item>Boost_LIBRARY_DIR_RELEASE</item> + <item>Boost_LIB_PREFIX</item> + <item>Boost_NAMESPACE</item> + <item>Boost_NO_SYSTEM_PATHS</item> + <item>Boost_NO_WARN_NEW_VERSIONS</item> + <item>Boost_REALPATH</item> + <item>Boost_THREADAPI</item> + <item>Boost_USE_DEBUG_LIBS</item> + <item>Boost_USE_DEBUG_PYTHON</item> + <item>Boost_USE_DEBUG_RUNTIME</item> + <item>Boost_USE_MULTITHREADED</item> + <item>Boost_USE_RELEASE_LIBS</item> + <item>Boost_USE_STATIC_LIBS</item> + <item>Boost_USE_STLPORT</item> + <item>Boost_USE_STLPORT_DEPRECATED_NATIVE_IOSTREAMS</item> + <item>Boost_VERSION_COUNT</item> + <item>Boost_VERSION_MACRO</item> + <item>CABLE</item> + <item>CABLE_INCLUDE_DIR</item> + <item>CABLE_TCL_LIBRARY</item> <item>CMAKE_ABSOLUTE_DESTINATION_FILES</item> + <item>CMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY</item> + <item>CMAKE_AIX_EXPORT_ALL_SYMBOLS</item> <item>CMAKE_ANDROID_ANT_ADDITIONAL_OPTIONS</item> <item>CMAKE_ANDROID_API</item> <item>CMAKE_ANDROID_API_MIN</item> @@ -1202,6 +2142,7 @@ <item>CMAKE_ANDROID_NDK_DEPRECATED_HEADERS</item> <item>CMAKE_ANDROID_NDK_TOOLCHAIN_HOST_TAG</item> <item>CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION</item> + <item>CMAKE_ANDROID_NDK_VERSION</item> <item>CMAKE_ANDROID_PROCESS_MAX</item> <item>CMAKE_ANDROID_PROGUARD</item> <item>CMAKE_ANDROID_PROGUARD_CONFIG_PATH</item> @@ -1211,20 +2152,25 @@ <item>CMAKE_ANDROID_STL_TYPE</item> <item>CMAKE_ANSI_CXXFLAGS</item> <item>CMAKE_APPBUNDLE_PATH</item> + <item>CMAKE_APPLE_SILICON_PROCESSOR</item> <item>CMAKE_AR</item> <item>CMAKE_ARCHIVE_OUTPUT_DIRECTORY</item> <item>CMAKE_ARGC</item> - <item>CMAKE_ARGV0</item> <item>CMAKE_AUTOGEN_ORIGIN_DEPENDS</item> <item>CMAKE_AUTOGEN_PARALLEL</item> + <item>CMAKE_AUTOGEN_USE_SYSTEM_INCLUDE</item> <item>CMAKE_AUTOGEN_VERBOSE</item> <item>CMAKE_AUTOMOC</item> <item>CMAKE_AUTOMOC_DEPEND_FILTERS</item> + <item>CMAKE_AUTOMOC_EXECUTABLE</item> <item>CMAKE_AUTOMOC_MOC_OPTIONS</item> + <item>CMAKE_AUTOMOC_PATH_PREFIX</item> <item>CMAKE_AUTOMOC_RELAXED_MODE</item> <item>CMAKE_AUTORCC</item> + <item>CMAKE_AUTORCC_EXECUTABLE</item> <item>CMAKE_AUTORCC_OPTIONS</item> <item>CMAKE_AUTOUIC</item> + <item>CMAKE_AUTOUIC_EXECUTABLE</item> <item>CMAKE_AUTOUIC_OPTIONS</item> <item>CMAKE_AUTOUIC_SEARCH_PATHS</item> <item>CMAKE_BACKWARDS_COMPATIBILITY</item> @@ -1240,10 +2186,12 @@ <item>CMAKE_CACHE_MINOR_VERSION</item> <item>CMAKE_CACHE_PATCH_VERSION</item> <item>CMAKE_CFG_INTDIR</item> + <item>CMAKE_CLANG_VFS_OVERLAY</item> <item>CMAKE_CL_64</item> <item>CMAKE_CODEBLOCKS_COMPILER_ID</item> <item>CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES</item> <item>CMAKE_CODELITE_USE_TARGETS</item> + <item>CMAKE_COLOR_DIAGNOSTICS</item> <item>CMAKE_COLOR_MAKEFILE</item> <item>CMAKE_COMMAND</item> <item>CMAKE_COMPILER_2005</item> @@ -1251,51 +2199,80 @@ <item>CMAKE_COMPILER_IS_GNUCXX</item> <item>CMAKE_COMPILER_IS_GNUG77</item> <item>CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY</item> + <item>CMAKE_COMPILE_WARNING_AS_ERROR</item> <item>CMAKE_CONFIGURATION_TYPES</item> <item>CMAKE_CROSSCOMPILING</item> <item>CMAKE_CROSSCOMPILING_EMULATOR</item> + <item>CMAKE_CROSS_CONFIGS</item> + <item>CMAKE_CTEST_ARGUMENTS</item> <item>CMAKE_CTEST_COMMAND</item> + <item>CMAKE_CUDA_ARCHITECTURES</item> + <item>CMAKE_CUDA_COMPILE_FEATURES</item> <item>CMAKE_CUDA_EXTENSIONS</item> + <item>CMAKE_CUDA_HOST_COMPILER</item> + <item>CMAKE_CUDA_LINK_NO_PIE_SUPPORTED</item> + <item>CMAKE_CUDA_LINK_PIE_SUPPORTED</item> + <item>CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS</item> + <item>CMAKE_CUDA_RUNTIME_LIBRARY</item> <item>CMAKE_CUDA_SEPARABLE_COMPILATION</item> <item>CMAKE_CUDA_STANDARD</item> <item>CMAKE_CUDA_STANDARD_REQUIRED</item> <item>CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES</item> <item>CMAKE_CURRENT_BINARY_DIR</item> + <item>CMAKE_CURRENT_FUNCTION</item> + <item>CMAKE_CURRENT_FUNCTION_LIST_DIR</item> + <item>CMAKE_CURRENT_FUNCTION_LIST_FILE</item> + <item>CMAKE_CURRENT_FUNCTION_LIST_LINE</item> <item>CMAKE_CURRENT_LIST_DIR</item> <item>CMAKE_CURRENT_LIST_FILE</item> <item>CMAKE_CURRENT_LIST_LINE</item> <item>CMAKE_CURRENT_SOURCE_DIR</item> <item>CMAKE_CXX_COMPILE_FEATURES</item> <item>CMAKE_CXX_EXTENSIONS</item> + <item>CMAKE_CXX_LINK_NO_PIE_SUPPORTED</item> + <item>CMAKE_CXX_LINK_PIE_SUPPORTED</item> + <item>CMAKE_CXX_SCAN_FOR_MODULES</item> <item>CMAKE_CXX_STANDARD</item> <item>CMAKE_CXX_STANDARD_REQUIRED</item> <item>CMAKE_C_COMPILE_FEATURES</item> <item>CMAKE_C_EXTENSIONS</item> + <item>CMAKE_C_LINK_NO_PIE_SUPPORTED</item> + <item>CMAKE_C_LINK_PIE_SUPPORTED</item> <item>CMAKE_C_STANDARD</item> <item>CMAKE_C_STANDARD_REQUIRED</item> <item>CMAKE_DEBUG_POSTFIX</item> <item>CMAKE_DEBUG_TARGET_PROPERTIES</item> + <item>CMAKE_DEFAULT_BUILD_TYPE</item> + <item>CMAKE_DEFAULT_CONFIGS</item> <item>CMAKE_DEPENDS_IN_PROJECT_ONLY</item> <item>CMAKE_DIRECTORY_LABELS</item> + <item>CMAKE_DISABLE_PRECOMPILE_HEADERS</item> + <item>CMAKE_DLL_NAME_WITH_SOVERSION</item> <item>CMAKE_DL_LIBS</item> + <item>CMAKE_DOTNET_SDK</item> + <item>CMAKE_DOTNET_TARGET_FRAMEWORK</item> <item>CMAKE_DOTNET_TARGET_FRAMEWORK_VERSION</item> <item>CMAKE_ECLIPSE_GENERATE_LINKED_RESOURCES</item> <item>CMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT</item> <item>CMAKE_ECLIPSE_MAKE_ARGUMENTS</item> + <item>CMAKE_ECLIPSE_RESOURCE_ENCODING</item> <item>CMAKE_ECLIPSE_VERSION</item> <item>CMAKE_EDIT_COMMAND</item> - <item>CMAKE_ENABLE_EXPORTS</item> <item>CMAKE_ERROR_DEPRECATED</item> <item>CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION</item> + <item>CMAKE_EXECUTABLE_ENABLE_EXPORTS</item> <item>CMAKE_EXECUTABLE_SUFFIX</item> + <item>CMAKE_EXECUTE_PROCESS_COMMAND_ECHO</item> <item>CMAKE_EXE_LINKER_FLAGS</item> <item>CMAKE_EXE_LINKER_FLAGS_INIT</item> <item>CMAKE_EXPORT_COMPILE_COMMANDS</item> <item>CMAKE_EXPORT_NO_PACKAGE_REGISTRY</item> + <item>CMAKE_EXPORT_PACKAGE_REGISTRY</item> <item>CMAKE_EXTRA_GENERATOR</item> <item>CMAKE_EXTRA_INCLUDE_FILES</item> <item>CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES</item> <item>CMAKE_FIND_APPBUNDLE</item> + <item>CMAKE_FIND_DEBUG_MODE</item> <item>CMAKE_FIND_FRAMEWORK</item> <item>CMAKE_FIND_FRAMEWORK_EXTRA_LOCATIONS</item> <item>CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX</item> @@ -1305,34 +2282,64 @@ <item>CMAKE_FIND_PACKAGE_NAME</item> <item>CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY</item> <item>CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY</item> + <item>CMAKE_FIND_PACKAGE_PREFER_CONFIG</item> + <item>CMAKE_FIND_PACKAGE_REDIRECTS_DIR</item> <item>CMAKE_FIND_PACKAGE_RESOLVE_SYMLINKS</item> <item>CMAKE_FIND_PACKAGE_SORT_DIRECTION</item> <item>CMAKE_FIND_PACKAGE_SORT_ORDER</item> + <item>CMAKE_FIND_PACKAGE_TARGETS_GLOBAL</item> <item>CMAKE_FIND_PACKAGE_WARN_NO_MODULE</item> <item>CMAKE_FIND_ROOT_PATH</item> <item>CMAKE_FIND_ROOT_PATH_MODE_INCLUDE</item> <item>CMAKE_FIND_ROOT_PATH_MODE_LIBRARY</item> <item>CMAKE_FIND_ROOT_PATH_MODE_PACKAGE</item> <item>CMAKE_FIND_ROOT_PATH_MODE_PROGRAM</item> + <item>CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH</item> + <item>CMAKE_FIND_USE_CMAKE_PATH</item> + <item>CMAKE_FIND_USE_CMAKE_SYSTEM_PATH</item> + <item>CMAKE_FIND_USE_INSTALL_PREFIX</item> + <item>CMAKE_FIND_USE_PACKAGE_REGISTRY</item> + <item>CMAKE_FIND_USE_PACKAGE_ROOT_PATH</item> + <item>CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH</item> + <item>CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY</item> <item>CMAKE_FOLDER</item> + <item>CMAKE_FRAMEWORK</item> <item>CMAKE_FRAMEWORK_PATH</item> <item>CMAKE_Fortran_FORMAT</item> + <item>CMAKE_Fortran_LINK_NO_PIE_SUPPORTED</item> + <item>CMAKE_Fortran_LINK_PIE_SUPPORTED</item> <item>CMAKE_Fortran_MODDIR_DEFAULT</item> <item>CMAKE_Fortran_MODDIR_FLAG</item> <item>CMAKE_Fortran_MODOUT_FLAG</item> <item>CMAKE_Fortran_MODULE_DIRECTORY</item> + <item>CMAKE_Fortran_PREPROCESS</item> <item>CMAKE_GENERATOR</item> <item>CMAKE_GENERATOR_INSTANCE</item> + <item>CMAKE_GENERATOR_NO_COMPILER_ENV</item> <item>CMAKE_GENERATOR_PLATFORM</item> <item>CMAKE_GENERATOR_TOOLSET</item> + <item>CMAKE_GET_OS_RELEASE_FALLBACK_RESULT</item> + <item>CMAKE_GET_OS_RELEASE_FALLBACK_SCRIPTS</item> + <item>CMAKE_GET_RUNTIME_DEPENDENCIES_COMMAND</item> + <item>CMAKE_GET_RUNTIME_DEPENDENCIES_PLATFORM</item> + <item>CMAKE_GET_RUNTIME_DEPENDENCIES_TOOL</item> <item>CMAKE_GLOBAL_AUTOGEN_TARGET</item> <item>CMAKE_GLOBAL_AUTOGEN_TARGET_NAME</item> <item>CMAKE_GLOBAL_AUTORCC_TARGET</item> <item>CMAKE_GLOBAL_AUTORCC_TARGET_NAME</item> <item>CMAKE_GNUtoMS</item> + <item>CMAKE_GTEST_DISCOVER_TESTS_DISCOVERY_MODE</item> <item>CMAKE_HAS_ANSI_STRING_STREAM</item> - <item>CMAKE_HOME_DIRECTORY</item> + <item>CMAKE_HIP_ARCHITECTURES</item> + <item>CMAKE_HIP_EXTENSIONS</item> + <item>CMAKE_HIP_LINK_NO_PIE_SUPPORTED</item> + <item>CMAKE_HIP_LINK_PIE_SUPPORTED</item> + <item>CMAKE_HIP_PLATFORM</item> + <item>CMAKE_HIP_STANDARD</item> + <item>CMAKE_HIP_STANDARD_REQUIRED</item> <item>CMAKE_HOST_APPLE</item> + <item>CMAKE_HOST_BSD</item> + <item>CMAKE_HOST_LINUX</item> <item>CMAKE_HOST_SOLARIS</item> <item>CMAKE_HOST_SYSTEM</item> <item>CMAKE_HOST_SYSTEM_NAME</item> @@ -1342,6 +2349,7 @@ <item>CMAKE_HOST_WIN32</item> <item>CMAKE_HP_PTHREADS_INIT</item> <item>CMAKE_IGNORE_PATH</item> + <item>CMAKE_IGNORE_PREFIX_PATH</item> <item>CMAKE_IMPORT_LIBRARY_PREFIX</item> <item>CMAKE_IMPORT_LIBRARY_SUFFIX</item> <item>CMAKE_INCLUDE_CURRENT_DIR</item> @@ -1387,6 +2395,7 @@ <item>CMAKE_INSTALL_OPENMP_LIBRARIES</item> <item>CMAKE_INSTALL_PREFIX</item> <item>CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT</item> + <item>CMAKE_INSTALL_REMOVE_ENVIRONMENT_RPATH</item> <item>CMAKE_INSTALL_RPATH</item> <item>CMAKE_INSTALL_RPATH_USE_LINK_PATH</item> <item>CMAKE_INSTALL_RUNSTATEDIR</item> @@ -1399,9 +2408,14 @@ <item>CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS</item> <item>CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP</item> <item>CMAKE_INSTALL_UCRT_LIBRARIES</item> - <item>CMAKE_INTERNAL_PLATFORM_ABI</item> <item>CMAKE_INTERPROCEDURAL_OPTIMIZATION</item> - <item>CMAKE_IOS_INSTALL_COMBINED</item> + <item>CMAKE_ISPC_HEADER_DIRECTORY</item> + <item>CMAKE_ISPC_HEADER_SUFFIX</item> + <item>CMAKE_ISPC_INSTRUCTION_SETS</item> + <item>CMAKE_JAR_CLASSES_PREFIX</item> + <item>CMAKE_JAVA_COMPILE_FLAGS</item> + <item>CMAKE_JAVA_INCLUDE_PATH</item> + <item>CMAKE_JNI_TARGET</item> <item>CMAKE_JOB_POOLS</item> <item>CMAKE_JOB_POOL_COMPILE</item> <item>CMAKE_JOB_POOL_LINK</item> @@ -1412,49 +2426,75 @@ <item>CMAKE_LIBRARY_PATH_FLAG</item> <item>CMAKE_LINK_DEF_FILE_FLAG</item> <item>CMAKE_LINK_DEPENDS_NO_SHARED</item> + <item>CMAKE_LINK_DEPENDS_USE_LINKER</item> <item>CMAKE_LINK_DIRECTORIES_BEFORE</item> <item>CMAKE_LINK_INTERFACE_LIBRARIES</item> + <item>CMAKE_LINK_LIBRARIES_ONLY_TARGETS</item> <item>CMAKE_LINK_LIBRARY_FILE_FLAG</item> <item>CMAKE_LINK_LIBRARY_FLAG</item> <item>CMAKE_LINK_LIBRARY_SUFFIX</item> <item>CMAKE_LINK_SEARCH_END_STATIC</item> <item>CMAKE_LINK_SEARCH_START_STATIC</item> <item>CMAKE_LINK_WHAT_YOU_USE</item> + <item>CMAKE_LINK_WHAT_YOU_USE_CHECK</item> <item>CMAKE_MACOSX_BUNDLE</item> <item>CMAKE_MACOSX_RPATH</item> <item>CMAKE_MAJOR_VERSION</item> <item>CMAKE_MAKE_PROGRAM</item> <item>CMAKE_MATCH_COUNT</item> <item>CMAKE_MAXIMUM_RECURSION_DEPTH</item> + <item>CMAKE_MESSAGE_CONTEXT</item> + <item>CMAKE_MESSAGE_CONTEXT_SHOW</item> + <item>CMAKE_MESSAGE_INDENT</item> + <item>CMAKE_MESSAGE_LOG_LEVEL</item> <item>CMAKE_MFC_FLAG</item> <item>CMAKE_MINIMUM_REQUIRED_VERSION</item> <item>CMAKE_MINOR_VERSION</item> <item>CMAKE_MODULE_LINKER_FLAGS</item> <item>CMAKE_MODULE_LINKER_FLAGS_INIT</item> <item>CMAKE_MODULE_PATH</item> + <item>CMAKE_MSVCIDE_RUN_PATH</item> + <item>CMAKE_MSVC_DEBUG_INFORMATION_FORMAT</item> + <item>CMAKE_MSVC_RUNTIME_LIBRARY</item> <item>CMAKE_NETRC</item> <item>CMAKE_NETRC_FILE</item> <item>CMAKE_NINJA_OUTPUT_PATH_PREFIX</item> - <item>CMAKE_NOT_USING_CONFIG_FLAGS</item> <item>CMAKE_NO_ANSI_FOR_SCOPE</item> <item>CMAKE_NO_ANSI_STREAM_HEADERS</item> <item>CMAKE_NO_ANSI_STRING_STREAM</item> <item>CMAKE_NO_BUILTIN_CHRPATH</item> <item>CMAKE_NO_STD_NAMESPACE</item> <item>CMAKE_NO_SYSTEM_FROM_IMPORTED</item> + <item>CMAKE_OBJCXX_EXTENSIONS</item> + <item>CMAKE_OBJCXX_LINK_NO_PIE_SUPPORTED</item> + <item>CMAKE_OBJCXX_LINK_PIE_SUPPORTED</item> + <item>CMAKE_OBJCXX_STANDARD</item> + <item>CMAKE_OBJCXX_STANDARD_REQUIRED</item> + <item>CMAKE_OBJC_EXTENSIONS</item> + <item>CMAKE_OBJC_LINK_NO_PIE_SUPPORTED</item> + <item>CMAKE_OBJC_LINK_PIE_SUPPORTED</item> + <item>CMAKE_OBJC_STANDARD</item> + <item>CMAKE_OBJC_STANDARD_REQUIRED</item> <item>CMAKE_OBJECT_PATH_MAX</item> + <item>CMAKE_OPTIMIZE_DEPENDENCIES</item> <item>CMAKE_OSX_ARCHITECTURES</item> <item>CMAKE_OSX_DEPLOYMENT_TARGET</item> <item>CMAKE_OSX_SYSROOT</item> <item>CMAKE_PARENT_LIST_FILE</item> <item>CMAKE_PATCH_VERSION</item> + <item>CMAKE_PCH_INSTANTIATE_TEMPLATES</item> + <item>CMAKE_PCH_WARN_INVALID</item> <item>CMAKE_PDB_OUTPUT_DIRECTORY</item> + <item>CMAKE_PLATFORM_NO_VERSIONED_SONAME</item> <item>CMAKE_POSITION_INDEPENDENT_CODE</item> <item>CMAKE_PREFIX_PATH</item> <item>CMAKE_PROGRAM_PATH</item> <item>CMAKE_PROJECT_DESCRIPTION</item> <item>CMAKE_PROJECT_HOMEPAGE_URL</item> + <item>CMAKE_PROJECT_INCLUDE</item> + <item>CMAKE_PROJECT_INCLUDE_BEFORE</item> <item>CMAKE_PROJECT_NAME</item> + <item>CMAKE_PROJECT_TOP_LEVEL_INCLUDES</item> <item>CMAKE_PROJECT_VERSION</item> <item>CMAKE_PROJECT_VERSION_MAJOR</item> <item>CMAKE_PROJECT_VERSION_MINOR</item> @@ -1465,10 +2505,12 @@ <item>CMAKE_REQUIRED_FLAGS</item> <item>CMAKE_REQUIRED_INCLUDES</item> <item>CMAKE_REQUIRED_LIBRARIES</item> + <item>CMAKE_REQUIRED_LINK_OPTIONS</item> <item>CMAKE_REQUIRED_QUIET</item> <item>CMAKE_ROOT</item> <item>CMAKE_RUNTIME_OUTPUT_DIRECTORY</item> <item>CMAKE_SCRIPT_MODE_FILE</item> + <item>CMAKE_SHARED_LIBRARY_ENABLE_EXPORTS</item> <item>CMAKE_SHARED_LIBRARY_PREFIX</item> <item>CMAKE_SHARED_LIBRARY_SUFFIX</item> <item>CMAKE_SHARED_LINKER_FLAGS</item> @@ -1489,8 +2531,6 @@ <item>CMAKE_STATIC_LINKER_FLAGS_INIT</item> <item>CMAKE_SUBLIME_TEXT_2_ENV_SETTINGS</item> <item>CMAKE_SUBLIME_TEXT_2_EXCLUDE_BUILD_TREE</item> - <item>CMAKE_SUPPRESS_DEVELOPER_ERRORS</item> - <item>CMAKE_SUPPRESS_DEVELOPER_WARNINGS</item> <item>CMAKE_SUPPRESS_REGENERATION</item> <item>CMAKE_SWIG_FLAGS</item> <item>CMAKE_SWIG_OUTDIR</item> @@ -1501,6 +2541,7 @@ <item>CMAKE_SYSTEM_APPBUNDLE_PATH</item> <item>CMAKE_SYSTEM_FRAMEWORK_PATH</item> <item>CMAKE_SYSTEM_IGNORE_PATH</item> + <item>CMAKE_SYSTEM_IGNORE_PREFIX_PATH</item> <item>CMAKE_SYSTEM_INCLUDE_PATH</item> <item>CMAKE_SYSTEM_LIBRARY_PATH</item> <item>CMAKE_SYSTEM_NAME</item> @@ -1509,32 +2550,46 @@ <item>CMAKE_SYSTEM_PROGRAM_PATH</item> <item>CMAKE_SYSTEM_VERSION</item> <item>CMAKE_Swift_LANGUAGE_VERSION</item> + <item>CMAKE_Swift_MODULE_DIRECTORY</item> + <item>CMAKE_TASKING_TOOLSET</item> <item>CMAKE_THREAD_LIBS_INIT</item> <item>CMAKE_THREAD_PREFER_PTHREAD</item> <item>CMAKE_TOOLCHAIN_FILE</item> <item>CMAKE_TRY_COMPILE_CONFIGURATION</item> + <item>CMAKE_TRY_COMPILE_NO_PLATFORM_VARIABLES</item> <item>CMAKE_TRY_COMPILE_PLATFORM_VARIABLES</item> <item>CMAKE_TRY_COMPILE_TARGET_TYPE</item> <item>CMAKE_TWEAK_VERSION</item> + <item>CMAKE_UNITY_BUILD</item> + <item>CMAKE_UNITY_BUILD_BATCH_SIZE</item> <item>CMAKE_USER_MAKE_RULES_OVERRIDE</item> <item>CMAKE_USE_PTHREADS_INIT</item> <item>CMAKE_USE_RELATIVE_PATHS</item> <item>CMAKE_USE_SPROC_INIT</item> <item>CMAKE_USE_WIN32_THREADS_INIT</item> <item>CMAKE_VERBOSE_MAKEFILE</item> + <item>CMAKE_VERIFY_INTERFACE_HEADER_SETS</item> <item>CMAKE_VERSION</item> <item>CMAKE_VISIBILITY_INLINES_HIDDEN</item> + <item>CMAKE_VS_DEBUGGER_COMMAND</item> + <item>CMAKE_VS_DEBUGGER_COMMAND_ARGUMENTS</item> + <item>CMAKE_VS_DEBUGGER_ENVIRONMENT</item> + <item>CMAKE_VS_DEBUGGER_WORKING_DIRECTORY</item> <item>CMAKE_VS_DEVENV_COMMAND</item> <item>CMAKE_VS_GLOBALS</item> <item>CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD</item> <item>CMAKE_VS_INCLUDE_PACKAGE_TO_DEFAULT_BUILD</item> - <item>CMAKE_VS_INTEL_Fortran_PROJECT_VERSION</item> + <item>CMAKE_VS_JUST_MY_CODE_DEBUGGING</item> <item>CMAKE_VS_MSBUILD_COMMAND</item> + <item>CMAKE_VS_NUGET_PACKAGE_RESTORE</item> <item>CMAKE_VS_NsightTegra_VERSION</item> <item>CMAKE_VS_PLATFORM_NAME</item> + <item>CMAKE_VS_PLATFORM_NAME_DEFAULT</item> <item>CMAKE_VS_PLATFORM_TOOLSET</item> <item>CMAKE_VS_PLATFORM_TOOLSET_CUDA</item> + <item>CMAKE_VS_PLATFORM_TOOLSET_CUDA_CUSTOM_DIR</item> <item>CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE</item> + <item>CMAKE_VS_PLATFORM_TOOLSET_VERSION</item> <item>CMAKE_VS_SDK_EXCLUDE_DIRECTORIES</item> <item>CMAKE_VS_SDK_EXECUTABLE_DIRECTORIES</item> <item>CMAKE_VS_SDK_INCLUDE_DIRECTORIES</item> @@ -1542,20 +2597,37 @@ <item>CMAKE_VS_SDK_LIBRARY_WINRT_DIRECTORIES</item> <item>CMAKE_VS_SDK_REFERENCE_DIRECTORIES</item> <item>CMAKE_VS_SDK_SOURCE_DIRECTORIES</item> + <item>CMAKE_VS_TARGET_FRAMEWORK_IDENTIFIER</item> + <item>CMAKE_VS_TARGET_FRAMEWORK_TARGETS_VERSION</item> + <item>CMAKE_VS_TARGET_FRAMEWORK_VERSION</item> + <item>CMAKE_VS_VERSION_BUILD_NUMBER</item> + <item>CMAKE_VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION</item> <item>CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION</item> + <item>CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION_MAXIMUM</item> + <item>CMAKE_VS_WINRT_BY_DEFAULT</item> <item>CMAKE_WARN_DEPRECATED</item> <item>CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION</item> + <item>CMAKE_WATCOM_RUNTIME_LIBRARY</item> <item>CMAKE_WIN32_EXECUTABLE</item> <item>CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS</item> + <item>CMAKE_XCODE_BUILD_SYSTEM</item> <item>CMAKE_XCODE_GENERATE_SCHEME</item> <item>CMAKE_XCODE_GENERATE_TOP_LEVEL_PROJECT_ONLY</item> + <item>CMAKE_XCODE_LINK_BUILD_PHASE_MODE</item> <item>CMAKE_XCODE_PLATFORM_TOOLSET</item> <item>CMAKE_XCODE_SCHEME_ADDRESS_SANITIZER</item> <item>CMAKE_XCODE_SCHEME_ADDRESS_SANITIZER_USE_AFTER_RETURN</item> + <item>CMAKE_XCODE_SCHEME_DEBUG_DOCUMENT_VERSIONING</item> <item>CMAKE_XCODE_SCHEME_DISABLE_MAIN_THREAD_CHECKER</item> <item>CMAKE_XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS</item> <item>CMAKE_XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE</item> + <item>CMAKE_XCODE_SCHEME_ENABLE_GPU_API_VALIDATION</item> + <item>CMAKE_XCODE_SCHEME_ENABLE_GPU_FRAME_CAPTURE_MODE</item> + <item>CMAKE_XCODE_SCHEME_ENABLE_GPU_SHADER_VALIDATION</item> + <item>CMAKE_XCODE_SCHEME_ENVIRONMENT</item> <item>CMAKE_XCODE_SCHEME_GUARD_MALLOC</item> + <item>CMAKE_XCODE_SCHEME_LAUNCH_CONFIGURATION</item> + <item>CMAKE_XCODE_SCHEME_LAUNCH_MODE</item> <item>CMAKE_XCODE_SCHEME_MAIN_THREAD_CHECKER_STOP</item> <item>CMAKE_XCODE_SCHEME_MALLOC_GUARD_EDGES</item> <item>CMAKE_XCODE_SCHEME_MALLOC_SCRIBBLE</item> @@ -1564,10 +2636,14 @@ <item>CMAKE_XCODE_SCHEME_THREAD_SANITIZER_STOP</item> <item>CMAKE_XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER</item> <item>CMAKE_XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER_STOP</item> + <item>CMAKE_XCODE_SCHEME_WORKING_DIRECTORY</item> <item>CMAKE_XCODE_SCHEME_ZOMBIE_OBJECTS</item> + <item>CMAKE_XCODE_XCCONFIG</item> <item>CPACK_ABSOLUTE_DESTINATION_FILES</item> <item>CPACK_ARCHIVE_COMPONENT_INSTALL</item> + <item>CPACK_ARCHIVE_FILE_EXTENSION</item> <item>CPACK_ARCHIVE_FILE_NAME</item> + <item>CPACK_ARCHIVE_THREADS</item> <item>CPACK_BUILD_SOURCE_DIRS</item> <item>CPACK_BUNDLE_APPLE_CERT_APP</item> <item>CPACK_BUNDLE_APPLE_CODESIGN_FILES</item> @@ -1588,6 +2664,7 @@ <item>CPACK_COMPONENTS_GROUPING</item> <item>CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY</item> <item>CPACK_CREATE_DESKTOP_LINKS</item> + <item>CPACK_CUSTOM_INSTALL_VARIABLES</item> <item>CPACK_CYGWIN_BUILD_SCRIPT</item> <item>CPACK_CYGWIN_PATCH_FILE</item> <item>CPACK_CYGWIN_PATCH_NUMBER</item> @@ -1619,6 +2696,7 @@ <item>CPACK_DEBIAN_PACKAGE_REPLACES</item> <item>CPACK_DEBIAN_PACKAGE_SECTION</item> <item>CPACK_DEBIAN_PACKAGE_SHLIBDEPS</item> + <item>CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS</item> <item>CPACK_DEBIAN_PACKAGE_SOURCE</item> <item>CPACK_DEBIAN_PACKAGE_SUGGESTS</item> <item>CPACK_DEBIAN_PACKAGE_VERSION</item> @@ -1627,16 +2705,31 @@ <item>CPACK_DMG_DISABLE_APPLICATIONS_SYMLINK</item> <item>CPACK_DMG_DS_STORE</item> <item>CPACK_DMG_DS_STORE_SETUP_SCRIPT</item> + <item>CPACK_DMG_FILESYSTEM</item> <item>CPACK_DMG_FORMAT</item> <item>CPACK_DMG_SLA_DIR</item> <item>CPACK_DMG_SLA_LANGUAGES</item> + <item>CPACK_DMG_SLA_USE_RESOURCE_FILE_LICENSE</item> <item>CPACK_DMG_VOLUME_NAME</item> <item>CPACK_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION</item> - <item>CPACK_EXT_ENABLE_STAGING</item> - <item>CPACK_EXT_PACKAGE_SCRIPT</item> - <item>CPACK_EXT_REQUESTED_VERSIONS</item> + <item>CPACK_EXTERNAL_BUILT_PACKAGES</item> + <item>CPACK_EXTERNAL_ENABLE_STAGING</item> + <item>CPACK_EXTERNAL_PACKAGE_SCRIPT</item> + <item>CPACK_EXTERNAL_REQUESTED_VERSIONS</item> + <item>CPACK_FREEBSD_PACKAGE_CATEGORIES</item> + <item>CPACK_FREEBSD_PACKAGE_COMMENT</item> + <item>CPACK_FREEBSD_PACKAGE_DEPS</item> + <item>CPACK_FREEBSD_PACKAGE_DESCRIPTION</item> + <item>CPACK_FREEBSD_PACKAGE_LICENSE</item> + <item>CPACK_FREEBSD_PACKAGE_LICENSE_LOGIC</item> + <item>CPACK_FREEBSD_PACKAGE_MAINTAINER</item> + <item>CPACK_FREEBSD_PACKAGE_NAME</item> + <item>CPACK_FREEBSD_PACKAGE_ORIGIN</item> + <item>CPACK_FREEBSD_PACKAGE_WWW</item> <item>CPACK_GENERATOR</item> <item>CPACK_IFW_ADMIN_TARGET_DIRECTORY</item> + <item>CPACK_IFW_ARCHIVE_COMPRESSION</item> + <item>CPACK_IFW_ARCHIVE_FORMAT</item> <item>CPACK_IFW_BINARYCREATOR_EXECUTABLE</item> <item>CPACK_IFW_DEVTOOL_EXECUTABLE</item> <item>CPACK_IFW_DOWNLOAD_ALL</item> @@ -1648,22 +2741,30 @@ <item>CPACK_IFW_PACKAGE_BACKGROUND</item> <item>CPACK_IFW_PACKAGE_BANNER</item> <item>CPACK_IFW_PACKAGE_CONTROL_SCRIPT</item> + <item>CPACK_IFW_PACKAGE_DISABLE_COMMAND_LINE_INTERFACE</item> <item>CPACK_IFW_PACKAGE_GROUP</item> <item>CPACK_IFW_PACKAGE_ICON</item> <item>CPACK_IFW_PACKAGE_LOGO</item> <item>CPACK_IFW_PACKAGE_MAINTENANCE_TOOL_INI_FILE</item> <item>CPACK_IFW_PACKAGE_MAINTENANCE_TOOL_NAME</item> <item>CPACK_IFW_PACKAGE_NAME</item> + <item>CPACK_IFW_PACKAGE_PRODUCT_IMAGES</item> <item>CPACK_IFW_PACKAGE_PUBLISHER</item> <item>CPACK_IFW_PACKAGE_REMOVE_TARGET_DIR</item> <item>CPACK_IFW_PACKAGE_RESOURCES</item> + <item>CPACK_IFW_PACKAGE_RUN_PROGRAM</item> + <item>CPACK_IFW_PACKAGE_RUN_PROGRAM_ARGUMENTS</item> + <item>CPACK_IFW_PACKAGE_RUN_PROGRAM_DESCRIPTION</item> + <item>CPACK_IFW_PACKAGE_SIGNING_IDENTITY</item> <item>CPACK_IFW_PACKAGE_START_MENU_DIRECTORY</item> + <item>CPACK_IFW_PACKAGE_STYLE_SHEET</item> <item>CPACK_IFW_PACKAGE_TITLE</item> <item>CPACK_IFW_PACKAGE_TITLE_COLOR</item> <item>CPACK_IFW_PACKAGE_WATERMARK</item> <item>CPACK_IFW_PACKAGE_WINDOW_ICON</item> <item>CPACK_IFW_PACKAGE_WIZARD_DEFAULT_HEIGHT</item> <item>CPACK_IFW_PACKAGE_WIZARD_DEFAULT_WIDTH</item> + <item>CPACK_IFW_PACKAGE_WIZARD_SHOW_PAGE_LIST</item> <item>CPACK_IFW_PACKAGE_WIZARD_STYLE</item> <item>CPACK_IFW_PRODUCT_URL</item> <item>CPACK_IFW_REPOGEN_EXECUTABLE</item> @@ -1673,35 +2774,68 @@ <item>CPACK_IFW_TARGET_DIRECTORY</item> <item>CPACK_IFW_VERBOSE</item> <item>CPACK_INCLUDE_TOPLEVEL_DIRECTORY</item> + <item>CPACK_INNOSETUP_ALLOW_CUSTOM_DIRECTORY</item> + <item>CPACK_INNOSETUP_ARCHITECTURE</item> + <item>CPACK_INNOSETUP_CODE_FILES</item> + <item>CPACK_INNOSETUP_CREATE_UNINSTALL_LINK</item> + <item>CPACK_INNOSETUP_CUSTOM_INSTALL_INSTRUCTIONS</item> + <item>CPACK_INNOSETUP_EXECUTABLE</item> + <item>CPACK_INNOSETUP_EXECUTABLE_ARGUMENTS</item> + <item>CPACK_INNOSETUP_EXTRA_SCRIPTS</item> + <item>CPACK_INNOSETUP_ICON_FILE</item> + <item>CPACK_INNOSETUP_IGNORE_LICENSE_PAGE</item> + <item>CPACK_INNOSETUP_IGNORE_README_PAGE</item> + <item>CPACK_INNOSETUP_INSTALL_ROOT</item> + <item>CPACK_INNOSETUP_LANGUAGES</item> + <item>CPACK_INNOSETUP_MENU_LINKS</item> + <item>CPACK_INNOSETUP_PASSWORD</item> + <item>CPACK_INNOSETUP_PROGRAM_MENU_FOLDER</item> + <item>CPACK_INNOSETUP_RUN_EXECUTABLES</item> + <item>CPACK_INNOSETUP_USE_CMAKE_BOOL_FORMAT</item> + <item>CPACK_INNOSETUP_USE_MODERN_WIZARD</item> + <item>CPACK_INNOSETUP_VERIFY_DOWNLOADS</item> <item>CPACK_INSTALLED_DIRECTORIES</item> <item>CPACK_INSTALL_CMAKE_PROJECTS</item> <item>CPACK_INSTALL_COMMANDS</item> <item>CPACK_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS</item> - <item>CPACK_INSTALL_SCRIPT</item> + <item>CPACK_INSTALL_SCRIPTS</item> <item>CPACK_MONOLITHIC_INSTALL</item> + <item>CPACK_NSIS_BRANDING_TEXT</item> + <item>CPACK_NSIS_BRANDING_TEXT_TRIM_POSITION</item> <item>CPACK_NSIS_COMPRESSOR</item> <item>CPACK_NSIS_CONTACT</item> <item>CPACK_NSIS_CREATE_ICONS_EXTRA</item> <item>CPACK_NSIS_DELETE_ICONS_EXTRA</item> <item>CPACK_NSIS_DISPLAY_NAME</item> <item>CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL</item> + <item>CPACK_NSIS_EXECUTABLE</item> <item>CPACK_NSIS_EXECUTABLES_DIRECTORY</item> + <item>CPACK_NSIS_EXECUTABLE_POST_ARGUMENTS</item> + <item>CPACK_NSIS_EXECUTABLE_PRE_ARGUMENTS</item> <item>CPACK_NSIS_EXTRA_INSTALL_COMMANDS</item> <item>CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS</item> <item>CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS</item> + <item>CPACK_NSIS_FINISH_TITLE</item> + <item>CPACK_NSIS_FINISH_TITLE_3LINES</item> <item>CPACK_NSIS_HELP_LINK</item> + <item>CPACK_NSIS_IGNORE_LICENSE_PAGE</item> <item>CPACK_NSIS_INSTALLED_ICON_NAME</item> <item>CPACK_NSIS_INSTALLER_MUI_ICON_CODE</item> <item>CPACK_NSIS_INSTALL_ROOT</item> + <item>CPACK_NSIS_MANIFEST_DPI_AWARE</item> <item>CPACK_NSIS_MENU_LINKS</item> <item>CPACK_NSIS_MODIFY_PATH</item> <item>CPACK_NSIS_MUI_FINISHPAGE_RUN</item> + <item>CPACK_NSIS_MUI_HEADERIMAGE</item> <item>CPACK_NSIS_MUI_ICON</item> <item>CPACK_NSIS_MUI_UNIICON</item> <item>CPACK_NSIS_MUI_UNWELCOMEFINISHPAGE_BITMAP</item> <item>CPACK_NSIS_MUI_WELCOMEFINISHPAGE_BITMAP</item> <item>CPACK_NSIS_PACKAGE_NAME</item> + <item>CPACK_NSIS_UNINSTALL_NAME</item> <item>CPACK_NSIS_URL_INFO_ABOUT</item> + <item>CPACK_NSIS_WELCOME_TITLE</item> + <item>CPACK_NSIS_WELCOME_TITLE_3LINES</item> <item>CPACK_NUGET_COMPONENT_INSTALL</item> <item>CPACK_NUGET_PACKAGE_AUTHORS</item> <item>CPACK_NUGET_PACKAGE_COPYRIGHT</item> @@ -1710,23 +2844,28 @@ <item>CPACK_NUGET_PACKAGE_DESCRIPTION</item> <item>CPACK_NUGET_PACKAGE_DESCRIPTION_SUMMARY</item> <item>CPACK_NUGET_PACKAGE_HOMEPAGE_URL</item> + <item>CPACK_NUGET_PACKAGE_ICON</item> <item>CPACK_NUGET_PACKAGE_ICONURL</item> + <item>CPACK_NUGET_PACKAGE_LANGUAGE</item> <item>CPACK_NUGET_PACKAGE_LICENSEURL</item> + <item>CPACK_NUGET_PACKAGE_LICENSE_EXPRESSION</item> + <item>CPACK_NUGET_PACKAGE_LICENSE_FILE_NAME</item> <item>CPACK_NUGET_PACKAGE_NAME</item> <item>CPACK_NUGET_PACKAGE_OWNERS</item> <item>CPACK_NUGET_PACKAGE_RELEASE_NOTES</item> <item>CPACK_NUGET_PACKAGE_TAGS</item> <item>CPACK_NUGET_PACKAGE_TITLE</item> <item>CPACK_NUGET_PACKAGE_VERSION</item> - <item>CPACK_OSX_PACKAGE_VERSION</item> + <item>CPACK_OBJCOPY_EXECUTABLE</item> + <item>CPACK_OBJDUMP_EXECUTABLE</item> <item>CPACK_OUTPUT_CONFIG_FILE</item> <item>CPACK_PACKAGE_CHECKSUM</item> - <item>CPACK_PACKAGE_CONTACT</item> <item>CPACK_PACKAGE_DESCRIPTION</item> <item>CPACK_PACKAGE_DESCRIPTION_FILE</item> <item>CPACK_PACKAGE_DESCRIPTION_SUMMARY</item> <item>CPACK_PACKAGE_DIRECTORY</item> <item>CPACK_PACKAGE_EXECUTABLES</item> + <item>CPACK_PACKAGE_FILES</item> <item>CPACK_PACKAGE_FILE_NAME</item> <item>CPACK_PACKAGE_HOMEPAGE_URL</item> <item>CPACK_PACKAGE_ICON</item> @@ -1741,10 +2880,28 @@ <item>CPACK_PACKAGING_INSTALL_PREFIX</item> <item>CPACK_PKGBUILD_IDENTITY_NAME</item> <item>CPACK_PKGBUILD_KEYCHAIN_PATH</item> + <item>CPACK_POST_BUILD_SCRIPTS</item> + <item>CPACK_PRE_BUILD_SCRIPTS</item> + <item>CPACK_PRODUCTBUILD_BACKGROUND</item> + <item>CPACK_PRODUCTBUILD_BACKGROUND_ALIGNMENT</item> + <item>CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA</item> + <item>CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_ALIGNMENT</item> + <item>CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_MIME_TYPE</item> + <item>CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_SCALING</item> + <item>CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_UTI</item> + <item>CPACK_PRODUCTBUILD_BACKGROUND_MIME_TYPE</item> + <item>CPACK_PRODUCTBUILD_BACKGROUND_SCALING</item> + <item>CPACK_PRODUCTBUILD_BACKGROUND_UTI</item> + <item>CPACK_PRODUCTBUILD_DOMAINS</item> + <item>CPACK_PRODUCTBUILD_DOMAINS_ANYWHERE</item> + <item>CPACK_PRODUCTBUILD_DOMAINS_ROOT</item> + <item>CPACK_PRODUCTBUILD_DOMAINS_USER</item> + <item>CPACK_PRODUCTBUILD_IDENTIFIER</item> <item>CPACK_PRODUCTBUILD_IDENTITY_NAME</item> <item>CPACK_PRODUCTBUILD_KEYCHAIN_PATH</item> <item>CPACK_PRODUCTBUILD_RESOURCES_DIR</item> <item>CPACK_PROJECT_CONFIG_FILE</item> + <item>CPACK_READELF_EXECUTABLE</item> <item>CPACK_RESOURCE_FILE_LICENSE</item> <item>CPACK_RESOURCE_FILE_README</item> <item>CPACK_RESOURCE_FILE_WELCOME</item> @@ -1798,10 +2955,13 @@ <item>CPACK_RPM_PACKAGE_VENDOR</item> <item>CPACK_RPM_PACKAGE_VERSION</item> <item>CPACK_RPM_POST_INSTALL_SCRIPT_FILE</item> + <item>CPACK_RPM_POST_TRANS_SCRIPT_FILE</item> <item>CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE</item> <item>CPACK_RPM_PRE_INSTALL_SCRIPT_FILE</item> + <item>CPACK_RPM_PRE_TRANS_SCRIPT_FILE</item> <item>CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE</item> <item>CPACK_RPM_RELOCATION_PATHS</item> + <item>CPACK_RPM_REQUIRES_EXCLUDE_FROM</item> <item>CPACK_RPM_SOURCE_PKG_BUILD_PARAMS</item> <item>CPACK_RPM_SOURCE_PKG_PACKAGING_INSTALL_PREFIX</item> <item>CPACK_RPM_SPEC_INSTALL_POST</item> @@ -1816,11 +2976,14 @@ <item>CPACK_SOURCE_STRIP_FILES</item> <item>CPACK_STRIP_FILES</item> <item>CPACK_SYSTEM_NAME</item> + <item>CPACK_THREADS</item> <item>CPACK_TOPLEVEL_TAG</item> <item>CPACK_VERBATIM_VARIABLES</item> <item>CPACK_WARN_ON_ABSOLUTE_INSTALL_DESTINATION</item> + <item>CPACK_WIX_ARCHITECTURE</item> <item>CPACK_WIX_CMAKE_PACKAGE_REGISTRY</item> <item>CPACK_WIX_CULTURES</item> + <item>CPACK_WIX_CUSTOM_XMLNS</item> <item>CPACK_WIX_EXTENSIONS</item> <item>CPACK_WIX_EXTRA_OBJECTS</item> <item>CPACK_WIX_EXTRA_SOURCES</item> @@ -1834,6 +2997,7 @@ <item>CPACK_WIX_ROOT_FEATURE_TITLE</item> <item>CPACK_WIX_ROOT_FOLDER_ID</item> <item>CPACK_WIX_SKIP_PROGRAM_FOLDER</item> + <item>CPACK_WIX_SKIP_WIX_UI_EXTENSION</item> <item>CPACK_WIX_TEMPLATE</item> <item>CPACK_WIX_UI_BANNER</item> <item>CPACK_WIX_UI_DIALOG</item> @@ -1866,6 +3030,7 @@ <item>CTEST_CUSTOM_PRE_MEMCHECK</item> <item>CTEST_CUSTOM_PRE_TEST</item> <item>CTEST_CUSTOM_TEST_IGNORE</item> + <item>CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION</item> <item>CTEST_CUSTOM_WARNING_EXCEPTION</item> <item>CTEST_CUSTOM_WARNING_MATCH</item> <item>CTEST_CVS_CHECKOUT</item> @@ -1895,9 +3060,12 @@ <item>CTEST_P4_COMMAND</item> <item>CTEST_P4_OPTIONS</item> <item>CTEST_P4_UPDATE_OPTIONS</item> + <item>CTEST_RESOURCE_SPEC_FILE</item> + <item>CTEST_RUN_CURRENT_SCRIPT</item> <item>CTEST_SCP_COMMAND</item> <item>CTEST_SITE</item> <item>CTEST_SOURCE_DIRECTORY</item> + <item>CTEST_SUBMIT_INACTIVITY_TIMEOUT</item> <item>CTEST_SUBMIT_URL</item> <item>CTEST_SVN_COMMAND</item> <item>CTEST_SVN_OPTIONS</item> @@ -1908,9 +3076,32 @@ <item>CTEST_UPDATE_COMMAND</item> <item>CTEST_UPDATE_OPTIONS</item> <item>CTEST_UPDATE_VERSION_ONLY</item> + <item>CTEST_UPDATE_VERSION_OVERRIDE</item> <item>CTEST_USE_LAUNCHERS</item> + <item>CUDAToolkit_NVCC_EXECUTABLE</item> + <item>CUPS_INCLUDE_DIR</item> + <item>CURL_NO_CURL_CMAKE</item> + <item>CURL_USE_STATIC_LIBS</item> + <item>CURSES_CFLAGS</item> + <item>CURSES_HAVE_CURSES_H</item> + <item>CURSES_HAVE_NCURSES_CURSES_H</item> + <item>CURSES_HAVE_NCURSES_H</item> + <item>CURSES_HAVE_NCURSES_NCURSES_H</item> + <item>CURSES_NEED_NCURSES</item> + <item>CURSES_NEED_WIDE</item> + <item>CVS_EXECUTABLE</item> + <item>CXXTEST_PERL_TESTGEN_EXECUTABLE</item> + <item>CXXTEST_PYTHON_TESTGEN_EXECUTABLE</item> + <item>CXXTEST_TESTGEN_ARGS</item> + <item>CXXTEST_TESTGEN_EXECUTABLE</item> + <item>CXXTEST_TESTGEN_INTERPRETER</item> + <item>CXXTEST_USE_PYTHON</item> <item>CYGWIN</item> + <item>DVIPDF_CONVERTER</item> + <item>DVIPS_CONVERTER</item> <item>EXECUTABLE_OUTPUT_PATH</item> + <item>EXPAT_USE_STATIC_LIBS</item> + <item>EnvModules_COMMAND</item> <item>ExternalData_BINARY_ROOT</item> <item>ExternalData_CUSTOM_ERROR</item> <item>ExternalData_CUSTOM_FILE</item> @@ -1927,7 +3118,67 @@ <item>ExternalData_TIMEOUT_ABSOLUTE</item> <item>ExternalData_TIMEOUT_INACTIVITY</item> <item>ExternalData_URL_TEMPLATES</item> - <item>GHS-MULTI</item> + <item>FETCHCONTENT_FULLY_DISCONNECTED</item> + <item>FETCHCONTENT_QUIET</item> + <item>FETCHCONTENT_TRY_FIND_PACKAGE_MODE</item> + <item>FETCHCONTENT_UPDATES_DISCONNECTED</item> + <item>FLEX_EXECUTABLE</item> + <item>FLTK2_BASE_LIBRARY</item> + <item>FLTK2_FLUID_EXECUTABLE</item> + <item>FLTK2_GL_LIBRARY</item> + <item>FLTK2_IMAGES_LIBRARY</item> + <item>FLTK2_WRAP_UI</item> + <item>FLTK_BASE_LIBRARY_DEBUG</item> + <item>FLTK_BASE_LIBRARY_RELEASE</item> + <item>FLTK_FLUID_EXECUTABLE</item> + <item>FLTK_FORMS_LIBRARY_DEBUG</item> + <item>FLTK_FORMS_LIBRARY_RELEASE</item> + <item>FLTK_GL_LIBRARY_DEBUG</item> + <item>FLTK_GL_LIBRARY_RELEASE</item> + <item>FLTK_IMAGES_LIBRARY_DEBUG</item> + <item>FLTK_IMAGES_LIBRARY_RELEASE</item> + <item>FLTK_SKIP_FLUID</item> + <item>FLTK_SKIP_FORMS</item> + <item>FLTK_SKIP_IMAGES</item> + <item>FLTK_SKIP_OPENGL</item> + <item>FLTK_WRAP_UI</item> + <item>FREETYPE_INCLUDE_DIR_freetype2</item> + <item>FREETYPE_INCLUDE_DIR_ft2build</item> + <item>FindGDAL_SKIP_GDAL_CONFIG</item> + <item>Fontconfig_COMPILE_OPTIONS</item> + <item>FortranCInterface_GLOBAL_CASE</item> + <item>FortranCInterface_GLOBAL_PREFIX</item> + <item>FortranCInterface_GLOBAL_SUFFIX</item> + <item>FortranCInterface_GLOBAL_SYMBOLS</item> + <item>FortranCInterface_GLOBAL__CASE</item> + <item>FortranCInterface_GLOBAL__PREFIX</item> + <item>FortranCInterface_GLOBAL__SUFFIX</item> + <item>FortranCInterface_MODULE_CASE</item> + <item>FortranCInterface_MODULE_MIDDLE</item> + <item>FortranCInterface_MODULE_PREFIX</item> + <item>FortranCInterface_MODULE_SUFFIX</item> + <item>FortranCInterface_MODULE_SYMBOLS</item> + <item>FortranCInterface_MODULE__CASE</item> + <item>FortranCInterface_MODULE__MIDDLE</item> + <item>FortranCInterface_MODULE__PREFIX</item> + <item>FortranCInterface_MODULE__SUFFIX</item> + <item>FortranCInterface_VERIFIED_C</item> + <item>FortranCInterface_VERIFIED_CXX</item> + <item>GCCXML</item> + <item>GDAL_ADDITIONAL_LIBRARY_VERSIONS</item> + <item>GDAL_LIBRARY</item> + <item>GETTEXT_MSGFMT_EXECUTABLE</item> + <item>GETTEXT_MSGMERGE_EXECUTABLE</item> + <item>GHSMULTI</item> + <item>GIF_LIBRARY</item> + <item>GIT_EXECUTABLE</item> + <item>GLEW_USE_STATIC_LIBS</item> + <item>GLEW_VERBOSE</item> + <item>GLUT_Xi_LIBRARY</item> + <item>GLUT_Xmu_LIBRARY</item> + <item>GLUT_glut_LIBRARY</item> + <item>GNUPLOT_EXECUTABLE</item> + <item>GNUTLS_DEFINITIONS</item> <item>GRAPHVIZ_EXECUTABLES</item> <item>GRAPHVIZ_EXTERNAL_LIBS</item> <item>GRAPHVIZ_GENERATE_PER_TARGET</item> @@ -1939,8 +3190,112 @@ <item>GRAPHVIZ_NODE_PREFIX</item> <item>GRAPHVIZ_SHARED_LIBS</item> <item>GRAPHVIZ_STATIC_LIBS</item> + <item>GSL_CBLAS_LIBRARY</item> + <item>GSL_CBLAS_LIBRARY_DEBUG</item> + <item>GSL_CONFIG_EXECUTABLE</item> + <item>GSL_LIBRARY</item> + <item>GSL_LIBRARY_DEBUG</item> + <item>GTEST_MSVC_SEARCH</item> + <item>GTK2_ADDITIONAL_SUFFIXES</item> + <item>GTK2_DEBUG</item> + <item>GTK2_DEFINITIONS</item> + <item>GTK2_TARGETS</item> + <item>GTK2_USE_IMPORTED_TARGETS</item> + <item>HDF5_CXX_COMPILER_EXECUTABLE</item> + <item>HDF5_CXX_COMPILER_EXECUTABLE_NO_INTERROGATE</item> + <item>HDF5_CXX_DEFINITIONS</item> + <item>HDF5_C_COMPILER_EXECUTABLE</item> + <item>HDF5_C_COMPILER_EXECUTABLE_NO_INTERROGATE</item> + <item>HDF5_C_DEFINITIONS</item> + <item>HDF5_DEFINITIONS</item> + <item>HDF5_DIFF_EXECUTABLE</item> + <item>HDF5_FIND_DEBUG</item> + <item>HDF5_Fortran_COMPILER_EXECUTABLE</item> + <item>HDF5_Fortran_COMPILER_EXECUTABLE_NO_INTERROGATE</item> + <item>HDF5_Fortran_DEFINITIONS</item> + <item>HDF5_IS_PARALLEL</item> + <item>HDF5_NO_FIND_PACKAGE_CONFIG_FILE</item> + <item>HDF5_PREFER_PARALLEL</item> + <item>HG_EXECUTABLE</item> + <item>HTLATEX_COMPILER</item> + <item>HTML_HELP_COMPILER</item> + <item>HTML_HELP_LIBRARY</item> + <item>ICOTOOL_EXECUTABLE</item> + <item>ICU_DEBUG</item> + <item>ICU_MAKEFILE_INC</item> + <item>ICU_PKGDATA_INC</item> + <item>IOS</item> + <item>Iconv_IS_BUILT_IN</item> + <item>Iconv_LIBRARY</item> + <item>Intl_IS_BUILT_IN</item> + <item>Intl_LIBRARY</item> + <item>JASPER_LIBARRY_DEBUG</item> + <item>JASPER_LIBRARY_RELEASE</item> + <item>JAVA_AWT_INCLUDE_PATH</item> + <item>JAVA_AWT_LIBRARY</item> + <item>JAVA_INCLUDE_PATH</item> + <item>JAVA_INCLUDE_PATH2</item> + <item>JAVA_JVM_LIBRARY</item> + <item>JPEG_LIBRARY</item> + <item>JPEG_LIBRARY_DEBUG</item> + <item>JPEG_LIBRARY_RELEASE</item> + <item>Java_IDLJ_EXECUTABLE</item> + <item>Java_JARSIGNER_EXECUTABLE</item> + <item>Java_JAR_EXECUTABLE</item> + <item>Java_JAVAC_EXECUTABLE</item> + <item>Java_JAVADOC_EXECUTABLE</item> + <item>Java_JAVAH_EXECUTABLE</item> + <item>Java_JAVA_EXECUTABLE</item> + <item>LAPACK_LINKER_FLAGS</item> + <item>LATEX2HTML_CONVERTER</item> + <item>LATEX_COMPILER</item> + <item>LIBLZMA_HAS_AUTO_DECODER</item> + <item>LIBLZMA_HAS_EASY_ENCODER</item> + <item>LIBLZMA_HAS_LZMA_PRESET</item> <item>LIBRARY_OUTPUT_PATH</item> + <item>LIBXML2_DEFINITIONS</item> + <item>LIBXML2_LIBRARY</item> + <item>LIBXML2_XMLLINT_EXECUTABLE</item> + <item>LIBXSLT_DEFINITIONS</item> + <item>LIBXSLT_XSLTPROC_EXECUTABLE</item> + <item>LINUX</item> + <item>LTTNGUST_HAS_TRACEF</item> + <item>LTTNGUST_HAS_TRACELOG</item> + <item>LUALATEX_COMPILER</item> + <item>Libinput_COMPILE_OPTIONS</item> + <item>MAKEINDEX_COMPILER</item> + <item>MATLAB_ADDITIONAL_VERSIONS</item> + <item>MATLAB_FIND_DEBUG</item> <item>MINGW</item> + <item>MPEG2_mpeg2_LIBRARY</item> + <item>MPEG2_vo_LIBRARY</item> + <item>MPEG_mpeg2_LIBRARY</item> + <item>MPEG_vo_LIBRARY</item> + <item>MPIEXEC_EXECUTABLE</item> + <item>MPIEXEC_MAX_NUMPROCS</item> + <item>MPIEXEC_NUMPROC_FLAG</item> + <item>MPIEXEC_POSTFLAGS</item> + <item>MPIEXEC_PREFLAGS</item> + <item>MPI_ASSUME_NO_BUILTIN_MPI</item> + <item>MPI_ASYNC_PROTECTS_NONBLOCKING</item> + <item>MPI_COMPILER_FLAGS</item> + <item>MPI_CXX_SKIP_MPICXX</item> + <item>MPI_DETERMINE_Fortran_CAPABILITIES</item> + <item>MPI_EXECUTABLE_SUFFIX</item> + <item>MPI_Fortran_F08_MODULE_ASYNCPROT</item> + <item>MPI_Fortran_F08_MODULE_SUBARRAYS</item> + <item>MPI_Fortran_F77_HEADER_ASYNCPROT</item> + <item>MPI_Fortran_F77_HEADER_SUBARRAYS</item> + <item>MPI_Fortran_F90_MODULE_ASYNCPROT</item> + <item>MPI_Fortran_F90_MODULE_SUBARRAYS</item> + <item>MPI_Fortran_HAVE_F08_MODULE</item> + <item>MPI_Fortran_HAVE_F77_HEADER</item> + <item>MPI_Fortran_HAVE_F90_MODULE</item> + <item>MPI_GUESS_LIBRARY_NAME</item> + <item>MPI_HOME</item> + <item>MPI_SKIP_COMPILER_WRAPPER</item> + <item>MPI_SKIP_GUESSING</item> + <item>MPI_SUBARRAYS_SUPPORTED</item> <item>MSVC</item> <item>MSVC10</item> <item>MSVC11</item> @@ -1954,23 +3309,83 @@ <item>MSVC_IDE</item> <item>MSVC_TOOLSET_VERSION</item> <item>MSVC_VERSION</item> + <item>Matlab_DATAARRAY_LIBRARY</item> + <item>Matlab_ENGINE_LIBRARY</item> + <item>Matlab_ENG_LIBRARY</item> + <item>Matlab_MAIN_PROGRAM</item> + <item>Matlab_MAT_LIBRARY</item> + <item>Matlab_MCC_COMPILER</item> + <item>Matlab_MEX_COMPILER</item> + <item>Matlab_MEX_EXTENSION</item> + <item>Matlab_MEX_LIBRARY</item> + <item>Matlab_MX_LIBRARY</item> + <item>ODBC_CONFIG</item> + <item>ODBC_LIBRARY</item> + <item>OPENAL_LIBRARY</item> + <item>OPENGL_egl_LIBRARY</item> + <item>OPENGL_gl_LIBRARY</item> + <item>OPENGL_glu_LIBRARY</item> + <item>OPENGL_glx_LIBRARY</item> + <item>OPENGL_opengl_LIBRARY</item> + <item>OPENSSL_APPLINK_SOURCE</item> + <item>OPENSSL_CRYPTO_LIBRARY</item> + <item>OPENSSL_MSVC_STATIC_RT</item> + <item>OPENSSL_SSL_LIBRARY</item> + <item>OPENSSL_USE_STATIC_LIBS</item> + <item>OpenACC_ACCEL_TARGET</item> + <item>OpenCL_LIBRARY</item> + <item>OpenGL_GL_PREFERENCE</item> + <item>OpenMP_Fortran_HAVE_OMPLIB_HEADER</item> + <item>OpenMP_Fortran_HAVE_OMPLIB_MODULE</item> <item>PACKAGE_FIND_NAME</item> - <item>PACKAGE_FIND_VERSION</item> + <item>PACKAGE_FIND_VERSION_COMPLETE</item> <item>PACKAGE_FIND_VERSION_COUNT</item> - <item>PACKAGE_FIND_VERSION_MAJOR</item> - <item>PACKAGE_FIND_VERSION_MINOR</item> - <item>PACKAGE_FIND_VERSION_PATCH</item> - <item>PACKAGE_FIND_VERSION_TWEAK</item> + <item>PACKAGE_FIND_VERSION_MAX</item> + <item>PACKAGE_FIND_VERSION_MAX_COUNT</item> + <item>PACKAGE_FIND_VERSION_MAX_MAJOR</item> + <item>PACKAGE_FIND_VERSION_MAX_MINOR</item> + <item>PACKAGE_FIND_VERSION_MAX_PATCH</item> + <item>PACKAGE_FIND_VERSION_MAX_TWEAK</item> + <item>PACKAGE_FIND_VERSION_MIN</item> + <item>PACKAGE_FIND_VERSION_MIN_COUNT</item> + <item>PACKAGE_FIND_VERSION_MIN_MAJOR</item> + <item>PACKAGE_FIND_VERSION_MIN_MINOR</item> + <item>PACKAGE_FIND_VERSION_MIN_PATCH</item> + <item>PACKAGE_FIND_VERSION_MIN_TWEAK</item> + <item>PACKAGE_FIND_VERSION_RANGE</item> + <item>PACKAGE_FIND_VERSION_RANGE_MAX</item> + <item>PACKAGE_FIND_VERSION_RANGE_MIN</item> <item>PACKAGE_VERSION</item> <item>PACKAGE_VERSION_COMPATIBLE</item> <item>PACKAGE_VERSION_EXACT</item> <item>PACKAGE_VERSION_UNSUITABLE</item> + <item>PDFLATEX_COMPILER</item> + <item>PDFTOPS_CONVERTER</item> + <item>PERL_ARCHLIB</item> + <item>PERL_EXECUTABLE</item> + <item>PERL_EXTRA_C_FLAGS</item> + <item>PERL_PRIVLIB</item> + <item>PERL_SITEARCH</item> + <item>PERL_SITELIB</item> + <item>PERL_SITESEARCH</item> + <item>PERL_UPDATE_ARCHLIB</item> + <item>PERL_UPDATE_PRIVLIB</item> + <item>PERL_VENDORARCH</item> + <item>PERL_VENDORLIB</item> + <item>PHP4_EXECUTABLE</item> + <item>PHP4_INCLUDE_PATH</item> + <item>PHYSFS_LIBRARY</item> + <item>PIKE_EXECUTABLE</item> + <item>PIKE_INCLUDE_PATH</item> <item>PKG_CONFIG_EXECUTABLE</item> <item>PKG_CONFIG_USE_CMAKE_PREFIX_PATH</item> <item>PKG_CONFIG_VERSION_STRING</item> + <item>PNG_DEFINITIONS</item> + <item>PNG_LIBRARY</item> <item>PROJECT_BINARY_DIR</item> <item>PROJECT_DESCRIPTION</item> <item>PROJECT_HOMEPAGE_URL</item> + <item>PROJECT_IS_TOP_LEVEL</item> <item>PROJECT_NAME</item> <item>PROJECT_SOURCE_DIR</item> <item>PROJECT_VERSION</item> @@ -1978,17 +3393,220 @@ <item>PROJECT_VERSION_MINOR</item> <item>PROJECT_VERSION_PATCH</item> <item>PROJECT_VERSION_TWEAK</item> + <item>PS2PDF_CONVERTER</item> + <item>Patch_EXECUTABLE</item> + <item>Protobuf_DEBUG</item> + <item>Protobuf_IMPORT_DIRS</item> + <item>Protobuf_LIBRARY</item> + <item>Protobuf_LIBRARY_DEBUG</item> + <item>Protobuf_LITE_LIBRARY</item> + <item>Protobuf_LITE_LIBRARY_DEBUG</item> + <item>Protobuf_PROTOC_EXECUTABLE</item> + <item>Protobuf_PROTOC_LIBRARY</item> + <item>Protobuf_PROTOC_LIBRARY_DEBUG</item> + <item>Protobuf_SRC_ROOT_FOLDER</item> + <item>Protobuf_USE_STATIC_LIBS</item> + <item>Python2_ARTIFACTS_INTERACTIVE</item> + <item>Python2_COMPILER</item> + <item>Python2_COMPILER_ID</item> + <item>Python2_DOTNET_LAUNCHER</item> + <item>Python2_EXECUTABLE</item> + <item>Python2_FIND_ABI</item> + <item>Python2_FIND_FRAMEWORK</item> + <item>Python2_FIND_IMPLEMENTATIONS</item> + <item>Python2_FIND_REGISTRY</item> + <item>Python2_FIND_STRATEGY</item> + <item>Python2_FIND_UNVERSIONED_NAMES</item> + <item>Python2_FIND_VIRTUALENV</item> + <item>Python2_INTERPRETER_ID</item> + <item>Python2_LINK_OPTIONS</item> + <item>Python2_SITEARCH</item> + <item>Python2_SITELIB</item> + <item>Python2_SOABI</item> + <item>Python2_STDARCH</item> + <item>Python2_STDLIB</item> + <item>Python2_USE_STATIC_LIBS</item> + <item>Python3_ARTIFACTS_INTERACTIVE</item> + <item>Python3_COMPILER</item> + <item>Python3_COMPILER_ID</item> + <item>Python3_DOTNET_LAUNCHER</item> + <item>Python3_EXECUTABLE</item> + <item>Python3_FIND_ABI</item> + <item>Python3_FIND_FRAMEWORK</item> + <item>Python3_FIND_IMPLEMENTATIONS</item> + <item>Python3_FIND_REGISTRY</item> + <item>Python3_FIND_STRATEGY</item> + <item>Python3_FIND_UNVERSIONED_NAMES</item> + <item>Python3_FIND_VIRTUALENV</item> + <item>Python3_INTERPRETER_ID</item> + <item>Python3_LINK_OPTIONS</item> + <item>Python3_SITEARCH</item> + <item>Python3_SITELIB</item> + <item>Python3_SOABI</item> + <item>Python3_STDARCH</item> + <item>Python3_STDLIB</item> + <item>Python3_USE_STATIC_LIBS</item> + <item>Python_ARTIFACTS_INTERACTIVE</item> + <item>Python_COMPILER</item> + <item>Python_COMPILER_ID</item> + <item>Python_DOTNET_LAUNCHER</item> + <item>Python_EXECUTABLE</item> + <item>Python_FIND_ABI</item> + <item>Python_FIND_FRAMEWORK</item> + <item>Python_FIND_IMPLEMENTATIONS</item> + <item>Python_FIND_REGISTRY</item> + <item>Python_FIND_STRATEGY</item> + <item>Python_FIND_UNVERSIONED_NAMES</item> + <item>Python_FIND_VIRTUALENV</item> + <item>Python_INTERPRETER_ID</item> + <item>Python_LINK_OPTIONS</item> + <item>Python_SITEARCH</item> + <item>Python_SITELIB</item> + <item>Python_SOABI</item> + <item>Python_STDARCH</item> + <item>Python_STDLIB</item> + <item>Python_USE_STATIC_LIBS</item> <item>QTIFWDIR</item> + <item>RTI_DEFINITIONS</item> + <item>Ruby_EXECUTABLE</item> + <item>Ruby_FIND_VIRTUALENV</item> + <item>SDLIMAGE_LIBRARY</item> + <item>SDLMIXER_LIBRARY</item> + <item>SDLNET_LIBRARY</item> + <item>SDLTTF_LIBRARY</item> + <item>SDL_BUILDING_LIBRARY</item> + <item>SDL_LIBRARY</item> + <item>SDL_SOUND_LIBRARY</item> + <item>SQUISH_CLIENT_EXECUTABLE</item> + <item>SQUISH_SERVER_EXECUTABLE</item> + <item>SWIG_EXECUTABLE</item> <item>SWIG_OUTFILE_DIR</item> <item>SWIG_SOURCE_FILE_EXTENSIONS</item> + <item>SWIG_USE_SWIG_DEPENDENCIES</item> + <item>Subversion_SVN_EXECUTABLE</item> + <item>Subversion_VERSION_SVN</item> + <item>TCL_INCLUDE_PATH</item> + <item>TCL_STUB_LIBRARY</item> + <item>TCL_TCLSH</item> <item>THREADS_PREFER_PTHREAD_FLAG</item> + <item>TIFFXX_LIBRARY_DEBUG</item> + <item>TIFFXX_LIBRARY_RELEASE</item> + <item>TIFF_LIBRARY_DEBUG</item> + <item>TIFF_LIBRARY_RELEASE</item> + <item>TK_INCLUDE_PATH</item> + <item>TK_LIBRARY</item> + <item>TK_STUB_LIBRARY</item> + <item>TK_WISH</item> + <item>TTK_STUB_LIBRARY</item> <item>UNIX</item> + <item>UseSWIG_MODULE_VERSION</item> + <item>Vulkan_GLSLANG_VALIDATOR_EXECUTABLE</item> + <item>Vulkan_GLSLC_EXECUTABLE</item> + <item>Vulkan_LIBRARY</item> + <item>WGET_EXECUTABLE</item> <item>WIN32</item> <item>WINCE</item> <item>WINDOWS_PHONE</item> <item>WINDOWS_STORE</item> <item>XCODE</item> <item>XCODE_VERSION</item> + <item>XCTest_EXECUTABLE</item> + <item>XELATEX_COMPILER</item> + <item>XINDY_COMPILER</item> + <item>XalanC_LIBRARY</item> + <item>XercesC_LIBRARY</item> + <item>ZLIB_USE_STATIC_LIBS</item> + <item>wxWidgets_CONFIGURATION</item> + <item>wxWidgets_CXX_FLAGS</item> + <item>wxWidgets_DEFINITIONS</item> + <item>wxWidgets_DEFINITIONS_DEBUG</item> + <item>wxWidgets_EXCLUDE_COMMON_LIBRARIES</item> + <item>wxWidgets_USE_DEBUG</item> + <item>wxWidgets_USE_FILE</item> + <item>wxWidgets_USE_STATIC</item> + <item>wxWidgets_USE_UNICODE</item> + <item>wxWidgets_USE_UNIVERSAL</item> + </list> + + <list name="deprecated-or-internal-variables"> + <item>CMAKE_ENABLE_EXPORTS</item> + <item>CMAKE_FILES_DIRECTORY</item> + <item>CMAKE_HOME_DIRECTORY</item> + <item>CMAKE_INTERNAL_PLATFORM_ABI</item> + <item>CMAKE_IOS_INSTALL_COMBINED</item> + <item>CMAKE_NOT_USING_CONFIG_FLAGS</item> + <item>CMAKE_OBJDUMP</item> + <item>CMAKE_SUPPRESS_DEVELOPER_ERRORS</item> + <item>CMAKE_SUPPRESS_DEVELOPER_WARNINGS</item> + <item>CMAKE_SYSTEM_ARCH</item> + <item>CMAKE_VS_INTEL_Fortran_PROJECT_VERSION</item> + <item>CPACK_INSTALL_PREFIX</item> + <item>CPACK_INSTALL_SCRIPT</item> + <item>CPACK_PACKAGE_CONTACT</item> + <item>CPACK_PACKAGE_RELOCATABLE</item> + <item>CPACK_TEMPORARY_DIRECTORY</item> + <item>CPACK_TOPLEVEL_DIRECTORY</item> + </list> + + <list name="environment-variables"> + <item>ADSP_ROOT</item> + <item>CC</item> + <item>CCMAKE_COLORS</item> + <item>CFLAGS</item> + <item>CMAKE_APPBUNDLE_PATH</item> + <item>CMAKE_APPLE_SILICON_PROCESSOR</item> + <item>CMAKE_BUILD_PARALLEL_LEVEL</item> + <item>CMAKE_BUILD_TYPE</item> + <item>CMAKE_COLOR_DIAGNOSTICS</item> + <item>CMAKE_CONFIGURATION_TYPES</item> + <item>CMAKE_CONFIG_TYPE</item> + <item>CMAKE_CROSSCOMPILING_EMULATOR</item> + <item>CMAKE_EXPORT_COMPILE_COMMANDS</item> + <item>CMAKE_FRAMEWORK_PATH</item> + <item>CMAKE_GENERATOR</item> + <item>CMAKE_GENERATOR_INSTANCE</item> + <item>CMAKE_GENERATOR_PLATFORM</item> + <item>CMAKE_GENERATOR_TOOLSET</item> + <item>CMAKE_INSTALL_MODE</item> + <item>CMAKE_MSVCIDE_RUN_PATH</item> + <item>CMAKE_NO_VERBOSE</item> + <item>CMAKE_OSX_ARCHITECTURES</item> + <item>CMAKE_PREFIX_PATH</item> + <item>CMAKE_TOOLCHAIN_FILE</item> + <item>CSFLAGS</item> + <item>CTEST_INTERACTIVE_DEBUG_MODE</item> + <item>CTEST_NO_TESTS_ACTION</item> + <item>CTEST_OUTPUT_ON_FAILURE</item> + <item>CTEST_PARALLEL_LEVEL</item> + <item>CTEST_PROGRESS_OUTPUT</item> + <item>CTEST_USE_LAUNCHERS_DEFAULT</item> + <item>CUDAARCHS</item> + <item>CUDACXX</item> + <item>CUDAFLAGS</item> + <item>CUDAHOSTCXX</item> + <item>CUDA_PATH</item> + <item>CXX</item> + <item>CXXFLAGS</item> + <item>DASHBOARD_TEST_FROM_CTEST</item> + <item>DESTDIR</item> + <item>FC</item> + <item>FFLAGS</item> + <item>HIPCXX</item> + <item>HIPFLAGS</item> + <item>ISPC</item> + <item>ISPCFLAGS</item> + <item>LDFLAGS</item> + <item>MACOSX_DEPLOYMENT_TARGET</item> + <item>OBJC</item> + <item>OBJCXX</item> + <item>PATH</item> + <item>QTIFWDIR</item> + <item>RC</item> + <item>RCFLAGS</item> + <item>SSL_CERT_DIR</item> + <item>SSL_CERT_FILE</item> + <item>SWIFTC</item> + <item>VERBOSE</item> </list> <list name="global-properties"> <item>ALLOW_DUPLICATE_CUSTOM_TARGETS</item> @@ -1997,6 +3615,7 @@ <item>AUTOMOC_SOURCE_GROUP</item> <item>AUTOMOC_TARGETS_FOLDER</item> <item>AUTORCC_SOURCE_GROUP</item> + <item>CMAKE_CUDA_KNOWN_FEATURES</item> <item>CMAKE_CXX_KNOWN_FEATURES</item> <item>CMAKE_C_KNOWN_FEATURES</item> <item>CMAKE_ROLE</item> @@ -2032,6 +3651,7 @@ <item>XCODE_EMIT_EFFECTIVE_PLATFORM_NAME</item> </list> <list name="directory-properties"> + <item>ADDITIONAL_CLEAN_FILES</item> <item>ADDITIONAL_MAKE_CLEAN_FILES</item> <item>BINARY_DIR</item> <item>BUILDSYSTEM_TARGETS</item> @@ -2043,6 +3663,7 @@ <item>DEFINITIONS</item> <item>EXCLUDE_FROM_ALL</item> <item>IMPLICIT_DEPENDS_INCLUDE_TRANSFORM</item> + <item>IMPORTED_TARGETS</item> <item>INCLUDE_DIRECTORIES</item> <item>INCLUDE_REGULAR_EXPRESSION</item> <item>INTERPROCEDURAL_OPTIMIZATION</item> @@ -2057,6 +3678,7 @@ <item>RULE_LAUNCH_LINK</item> <item>SOURCE_DIR</item> <item>SUBDIRECTORIES</item> + <item>SYSTEM</item> <item>TESTS</item> <item>TEST_INCLUDE_FILE</item> <item>TEST_INCLUDE_FILES</item> @@ -2064,6 +3686,8 @@ <item>VS_STARTUP_PROJECT</item> </list> <list name="target-properties"> + <item>ADDITIONAL_CLEAN_FILES</item> + <item>AIX_EXPORT_ALL_SYMBOLS</item> <item>ALIASED_TARGET</item> <item>ANDROID_ANT_ADDITIONAL_OPTIONS</item> <item>ANDROID_API</item> @@ -2087,12 +3711,14 @@ <item>AUTOGEN_BUILD_DIR</item> <item>AUTOGEN_ORIGIN_DEPENDS</item> <item>AUTOGEN_TARGET_DEPENDS</item> + <item>AUTOGEN_USE_SYSTEM_INCLUDE</item> <item>AUTOMOC</item> <item>AUTOMOC_COMPILER_PREDEFINES</item> <item>AUTOMOC_DEPEND_FILTERS</item> <item>AUTOMOC_EXECUTABLE</item> <item>AUTOMOC_MACRO_NAMES</item> <item>AUTOMOC_MOC_OPTIONS</item> + <item>AUTOMOC_PATH_PREFIX</item> <item>AUTORCC</item> <item>AUTORCC_EXECUTABLE</item> <item>AUTORCC_OPTIONS</item> @@ -2118,14 +3744,24 @@ <item>COMPILE_OPTIONS</item> <item>COMPILE_PDB_NAME</item> <item>COMPILE_PDB_OUTPUT_DIRECTORY</item> + <item>COMPILE_WARNING_AS_ERROR</item> <item>CROSSCOMPILING_EMULATOR</item> + <item>CUDA_ARCHITECTURES</item> + <item>CUDA_CUBIN_COMPILATION</item> <item>CUDA_EXTENSIONS</item> + <item>CUDA_FATBIN_COMPILATION</item> + <item>CUDA_OPTIX_COMPILATION</item> <item>CUDA_PTX_COMPILATION</item> <item>CUDA_RESOLVE_DEVICE_SYMBOLS</item> + <item>CUDA_RUNTIME_LIBRARY</item> <item>CUDA_SEPARABLE_COMPILATION</item> <item>CUDA_STANDARD</item> <item>CUDA_STANDARD_REQUIRED</item> <item>CXX_EXTENSIONS</item> + <item>CXX_MODULE_DIRS</item> + <item>CXX_MODULE_SET</item> + <item>CXX_MODULE_SETS</item> + <item>CXX_SCAN_FOR_MODULES</item> <item>CXX_STANDARD</item> <item>CXX_STANDARD_REQUIRED</item> <item>C_EXTENSIONS</item> @@ -2134,11 +3770,18 @@ <item>DEFINE_SYMBOL</item> <item>DEPLOYMENT_ADDITIONAL_FILES</item> <item>DEPLOYMENT_REMOTE_DIRECTORY</item> + <item>DEPRECATION</item> + <item>DISABLE_PRECOMPILE_HEADERS</item> + <item>DLL_NAME_WITH_SOVERSION</item> + <item>DOTNET_SDK</item> + <item>DOTNET_TARGET_FRAMEWORK</item> <item>DOTNET_TARGET_FRAMEWORK_VERSION</item> <item>ENABLE_EXPORTS</item> <item>EXCLUDE_FROM_ALL</item> <item>EXCLUDE_FROM_DEFAULT_BUILD</item> + <item>EXPORT_COMPILE_COMMANDS</item> <item>EXPORT_NAME</item> + <item>EXPORT_NO_SYSTEM</item> <item>EXPORT_PROPERTIES</item> <item>EchoString</item> <item>FOLDER</item> @@ -2146,9 +3789,17 @@ <item>FRAMEWORK_VERSION</item> <item>Fortran_FORMAT</item> <item>Fortran_MODULE_DIRECTORY</item> + <item>Fortran_PREPROCESS</item> <item>GENERATOR_FILE_NAME</item> <item>GNUtoMS</item> <item>HAS_CXX</item> + <item>HEADER_DIRS</item> + <item>HEADER_SET</item> + <item>HEADER_SETS</item> + <item>HIP_ARCHITECTURES</item> + <item>HIP_EXTENSIONS</item> + <item>HIP_STANDARD</item> + <item>HIP_STANDARD_REQUIRED</item> <item>IMPLICIT_DEPENDS_INCLUDE_TRANSFORM</item> <item>IMPORTED</item> <item>IMPORTED_COMMON_LANGUAGE_RUNTIME</item> @@ -2162,28 +3813,40 @@ <item>IMPORTED_LINK_INTERFACE_MULTIPLICITY</item> <item>IMPORTED_LOCATION</item> <item>IMPORTED_NO_SONAME</item> + <item>IMPORTED_NO_SYSTEM</item> <item>IMPORTED_OBJECTS</item> <item>IMPORTED_SONAME</item> <item>IMPORT_PREFIX</item> <item>IMPORT_SUFFIX</item> <item>INCLUDE_DIRECTORIES</item> <item>INSTALL_NAME_DIR</item> + <item>INSTALL_REMOVE_ENVIRONMENT_RPATH</item> <item>INSTALL_RPATH</item> <item>INSTALL_RPATH_USE_LINK_PATH</item> + <item>INTERFACE_AUTOMOC_MACRO_NAMES</item> <item>INTERFACE_AUTOUIC_OPTIONS</item> <item>INTERFACE_COMPILE_DEFINITIONS</item> <item>INTERFACE_COMPILE_FEATURES</item> <item>INTERFACE_COMPILE_OPTIONS</item> + <item>INTERFACE_CXX_MODULE_SETS</item> + <item>INTERFACE_HEADER_SETS</item> + <item>INTERFACE_HEADER_SETS_TO_VERIFY</item> <item>INTERFACE_INCLUDE_DIRECTORIES</item> <item>INTERFACE_LINK_DEPENDS</item> <item>INTERFACE_LINK_DIRECTORIES</item> <item>INTERFACE_LINK_LIBRARIES</item> + <item>INTERFACE_LINK_LIBRARIES_DIRECT</item> + <item>INTERFACE_LINK_LIBRARIES_DIRECT_EXCLUDE</item> <item>INTERFACE_LINK_OPTIONS</item> <item>INTERFACE_POSITION_INDEPENDENT_CODE</item> + <item>INTERFACE_PRECOMPILE_HEADERS</item> <item>INTERFACE_SOURCES</item> <item>INTERFACE_SYSTEM_INCLUDE_DIRECTORIES</item> <item>INTERPROCEDURAL_OPTIMIZATION</item> <item>IOS_INSTALL_COMBINED</item> + <item>ISPC_HEADER_DIRECTORY</item> + <item>ISPC_HEADER_SUFFIX</item> + <item>ISPC_INSTRUCTION_SETS</item> <item>JOB_POOL_COMPILE</item> <item>JOB_POOL_LINK</item> <item>LABELS</item> @@ -2197,24 +3860,42 @@ <item>LINK_INTERFACE_LIBRARIES</item> <item>LINK_INTERFACE_MULTIPLICITY</item> <item>LINK_LIBRARIES</item> + <item>LINK_LIBRARIES_ONLY_TARGETS</item> <item>LINK_OPTIONS</item> <item>LINK_SEARCH_END_STATIC</item> <item>LINK_SEARCH_START_STATIC</item> <item>LINK_WHAT_YOU_USE</item> <item>LOCATION</item> + <item>MACHO_COMPATIBILITY_VERSION</item> + <item>MACHO_CURRENT_VERSION</item> <item>MACOSX_BUNDLE</item> <item>MACOSX_BUNDLE_INFO_PLIST</item> <item>MACOSX_FRAMEWORK_INFO_PLIST</item> <item>MACOSX_RPATH</item> <item>MANUALLY_ADDED_DEPENDENCIES</item> + <item>MSVC_DEBUG_INFORMATION_FORMAT</item> + <item>MSVC_RUNTIME_LIBRARY</item> <item>NAME</item> <item>NO_SONAME</item> <item>NO_SYSTEM_FROM_IMPORTED</item> + <item>OBJCXX_EXTENSIONS</item> + <item>OBJCXX_STANDARD</item> + <item>OBJCXX_STANDARD_REQUIRED</item> + <item>OBJC_EXTENSIONS</item> + <item>OBJC_STANDARD</item> + <item>OBJC_STANDARD_REQUIRED</item> + <item>OPTIMIZE_DEPENDENCIES</item> <item>OSX_ARCHITECTURES</item> + <item>OSX_COMPATIBILITY_VERSION</item> + <item>OSX_CURRENT_VERSION</item> <item>OUTPUT_NAME</item> + <item>PCH_INSTANTIATE_TEMPLATES</item> + <item>PCH_WARN_INVALID</item> <item>PDB_NAME</item> <item>PDB_OUTPUT_DIRECTORY</item> <item>POSITION_INDEPENDENT_CODE</item> + <item>PRECOMPILE_HEADERS</item> + <item>PRECOMPILE_HEADERS_REUSE_FROM</item> <item>PREFIX</item> <item>PRIVATE_HEADER</item> <item>PROJECT_LABEL</item> @@ -2232,7 +3913,18 @@ <item>STATIC_LIBRARY_FLAGS</item> <item>STATIC_LIBRARY_OPTIONS</item> <item>SUFFIX</item> + <item>SYSTEM</item> + <item>Swift_DEPENDENCIES_FILE</item> + <item>Swift_MODULE_DIRECTORY</item> + <item>Swift_MODULE_NAME</item> <item>TYPE</item> + <item>UNITY_BUILD</item> + <item>UNITY_BUILD_BATCH_SIZE</item> + <item>UNITY_BUILD_CODE_AFTER_INCLUDE</item> + <item>UNITY_BUILD_CODE_BEFORE_INCLUDE</item> + <item>UNITY_BUILD_MODE</item> + <item>UNITY_BUILD_UNIQUE_ID</item> + <item>VERIFY_INTERFACE_HEADER_SETS</item> <item>VERSION</item> <item>VISIBILITY_INLINES_HIDDEN</item> <item>VS_CONFIGURATION_TYPE</item> @@ -2241,39 +3933,59 @@ <item>VS_DEBUGGER_ENVIRONMENT</item> <item>VS_DEBUGGER_WORKING_DIRECTORY</item> <item>VS_DESKTOP_EXTENSIONS_VERSION</item> + <item>VS_DOTNET_DOCUMENTATION_FILE</item> <item>VS_DOTNET_REFERENCES</item> <item>VS_DOTNET_REFERENCES_COPY_LOCAL</item> + <item>VS_DOTNET_STARTUP_OBJECT</item> <item>VS_DOTNET_TARGET_FRAMEWORK_VERSION</item> + <item>VS_DPI_AWARE</item> <item>VS_GLOBAL_KEYWORD</item> <item>VS_GLOBAL_PROJECT_TYPES</item> <item>VS_GLOBAL_ROOTNAMESPACE</item> <item>VS_IOT_EXTENSIONS_VERSION</item> <item>VS_IOT_STARTUP_TASK</item> + <item>VS_JUST_MY_CODE_DEBUGGING</item> <item>VS_KEYWORD</item> <item>VS_MOBILE_EXTENSIONS_VERSION</item> + <item>VS_NO_COMPILE_BATCHING</item> + <item>VS_NO_SOLUTION_DEPLOY</item> + <item>VS_PACKAGE_REFERENCES</item> + <item>VS_PLATFORM_TOOLSET</item> + <item>VS_PROJECT_IMPORT</item> <item>VS_SCC_AUXPATH</item> <item>VS_SCC_LOCALPATH</item> <item>VS_SCC_PROJECTNAME</item> <item>VS_SCC_PROVIDER</item> <item>VS_SDK_REFERENCES</item> + <item>VS_SOLUTION_DEPLOY</item> <item>VS_USER_PROPS</item> <item>VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION</item> <item>VS_WINRT_COMPONENT</item> <item>VS_WINRT_EXTENSIONS</item> <item>VS_WINRT_REFERENCES</item> + <item>WATCOM_RUNTIME_LIBRARY</item> <item>WIN32_EXECUTABLE</item> <item>WINDOWS_EXPORT_ALL_SYMBOLS</item> <item>XCODE_EXPLICIT_FILE_TYPE</item> + <item>XCODE_GENERATE_SCHEME</item> + <item>XCODE_LINK_BUILD_PHASE_MODE</item> <item>XCODE_PRODUCT_TYPE</item> <item>XCODE_SCHEME_ADDRESS_SANITIZER</item> <item>XCODE_SCHEME_ADDRESS_SANITIZER_USE_AFTER_RETURN</item> <item>XCODE_SCHEME_ARGUMENTS</item> + <item>XCODE_SCHEME_DEBUG_AS_ROOT</item> + <item>XCODE_SCHEME_DEBUG_DOCUMENT_VERSIONING</item> <item>XCODE_SCHEME_DISABLE_MAIN_THREAD_CHECKER</item> <item>XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS</item> <item>XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE</item> + <item>XCODE_SCHEME_ENABLE_GPU_API_VALIDATION</item> + <item>XCODE_SCHEME_ENABLE_GPU_FRAME_CAPTURE_MODE</item> + <item>XCODE_SCHEME_ENABLE_GPU_SHADER_VALIDATION</item> <item>XCODE_SCHEME_ENVIRONMENT</item> <item>XCODE_SCHEME_EXECUTABLE</item> <item>XCODE_SCHEME_GUARD_MALLOC</item> + <item>XCODE_SCHEME_LAUNCH_CONFIGURATION</item> + <item>XCODE_SCHEME_LAUNCH_MODE</item> <item>XCODE_SCHEME_MAIN_THREAD_CHECKER_STOP</item> <item>XCODE_SCHEME_MALLOC_GUARD_EDGES</item> <item>XCODE_SCHEME_MALLOC_SCRIBBLE</item> @@ -2282,7 +3994,9 @@ <item>XCODE_SCHEME_THREAD_SANITIZER_STOP</item> <item>XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER</item> <item>XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER_STOP</item> + <item>XCODE_SCHEME_WORKING_DIRECTORY</item> <item>XCODE_SCHEME_ZOMBIE_OBJECTS</item> + <item>XCODE_XCCONFIG</item> <item>XCTEST</item> </list> <list name="source-properties"> @@ -2292,8 +4006,10 @@ <item>COMPILE_DEFINITIONS</item> <item>COMPILE_FLAGS</item> <item>COMPILE_OPTIONS</item> + <item>CXX_SCAN_FOR_MODULES</item> <item>EXTERNAL_OBJECT</item> <item>Fortran_FORMAT</item> + <item>Fortran_PREPROCESS</item> <item>GENERATED</item> <item>HEADER_FILE_ONLY</item> <item>INCLUDE_DIRECTORIES</item> @@ -2308,12 +4024,18 @@ <item>SKIP_AUTOMOC</item> <item>SKIP_AUTORCC</item> <item>SKIP_AUTOUIC</item> + <item>SKIP_LINTING</item> + <item>SKIP_PRECOMPILE_HEADERS</item> + <item>SKIP_UNITY_BUILD_INCLUSION</item> <item>SYMBOLIC</item> + <item>Swift_DEPENDENCIES_FILE</item> + <item>Swift_DIAGNOSTICS_FILE</item> <item>VS_COPY_TO_OUT_DIR</item> <item>VS_DEPLOYMENT_CONTENT</item> <item>VS_DEPLOYMENT_LOCATION</item> <item>VS_INCLUDE_IN_VSIX</item> <item>VS_RESOURCE_GENERATOR</item> + <item>VS_SETTINGS</item> <item>VS_SHADER_DISABLE_OPTIMIZATIONS</item> <item>VS_SHADER_ENABLE_DEBUG</item> <item>VS_SHADER_ENTRYPOINT</item> @@ -2337,21 +4059,27 @@ <item>DEPENDS</item> <item>DISABLED</item> <item>ENVIRONMENT</item> + <item>ENVIRONMENT_MODIFICATION</item> <item>FAIL_REGULAR_EXPRESSION</item> <item>FIXTURES_CLEANUP</item> <item>FIXTURES_REQUIRED</item> <item>FIXTURES_SETUP</item> + <item>GENERATED_RESOURCE_SPEC_FILE</item> <item>LABELS</item> <item>MEASUREMENT</item> <item>PASS_REGULAR_EXPRESSION</item> <item>PROCESSORS</item> <item>PROCESSOR_AFFINITY</item> <item>REQUIRED_FILES</item> + <item>RESOURCE_GROUPS</item> <item>RESOURCE_LOCK</item> <item>RUN_SERIAL</item> + <item>SKIP_REGULAR_EXPRESSION</item> <item>SKIP_RETURN_CODE</item> <item>TIMEOUT</item> <item>TIMEOUT_AFTER_MATCH</item> + <item>TIMEOUT_SIGNAL_GRACE_PERIOD</item> + <item>TIMEOUT_SIGNAL_NAME</item> <item>WILL_FAIL</item> <item>WORKING_DIRECTORY</item> </list> @@ -2373,1482 +4101,2737 @@ </list> <list name="generator-expressions"> + <item>IF</item> <item>0</item> <item>1</item> - <item>AND</item> - <item>ANGLE-R</item> <item>BOOL</item> - <item>BUILD_INTERFACE</item> - <item>COMMA</item> - <item>COMPILE_FEATURES</item> - <item>COMPILE_LANGUAGE</item> - <item>CONFIG</item> - <item>CXX_COMPILER_ID</item> - <item>CXX_COMPILER_VERSION</item> - <item>C_COMPILER_ID</item> - <item>C_COMPILER_VERSION</item> + <item>AND</item> + <item>OR</item> + <item>NOT</item> + <item>STREQUAL</item> <item>EQUAL</item> - <item>GENEX_EVAL</item> - <item>IF</item> - <item>INSTALL_INTERFACE</item> - <item>INSTALL_PREFIX</item> - <item>IN_LIST</item> - <item>JOIN</item> - <item>LINK_ONLY</item> + <item>VERSION_LESS</item> + <item>VERSION_GREATER</item> + <item>VERSION_EQUAL</item> + <item>VERSION_LESS_EQUAL</item> + <item>VERSION_GREATER_EQUAL</item> <item>LOWER_CASE</item> + <item>UPPER_CASE</item> <item>MAKE_C_IDENTIFIER</item> - <item>NOT</item> - <item>OR</item> - <item>PLATFORM_ID</item> - <item>SEMICOLON</item> + <item>IN_LIST</item> + <item>JOIN</item> + <item>REMOVE_DUPLICATES</item> + <item>FILTER</item> + <item>PATH_EQUAL</item> <item>SHELL_PATH</item> - <item>STREQUAL</item> - <item>TARGET_BUNDLE_CONTENT_DIR</item> - <item>TARGET_BUNDLE_DIR</item> + <item>CONFIG</item> + <item>OUTPUT_CONFIG</item> + <item>COMMAND_CONFIG</item> + <item>PLATFORM_ID</item> + <item>C_COMPILER_VERSION</item> + <item>CXX_COMPILER_VERSION</item> + <item>CUDA_COMPILER_VERSION</item> + <item>OBJC_COMPILER_VERSION</item> + <item>OBJCXX_COMPILER_VERSION</item> + <item>Fortran_COMPILER_VERSION</item> + <item>HIP_COMPILER_VERSION</item> + <item>ISPC_COMPILER_VERSION</item> + <item>C_COMPILER_ID</item> + <item>CXX_COMPILER_ID</item> + <item>CUDA_COMPILER_ID</item> + <item>OBJC_COMPILER_ID</item> + <item>OBJCXX_COMPILER_ID</item> + <item>Fortran_COMPILER_ID</item> + <item>HIP_COMPILER_ID</item> + <item>ISPC_COMPILER_ID</item> + <item>COMPILE_LANGUAGE</item> + <item>COMPILE_LANG_AND_ID</item> + <item>COMPILE_FEATURES</item> + <item>COMPILE_ONLY</item> + <item>LINK_LANGUAGE</item> + <item>LINK_LANG_AND_ID</item> + <item>LINK_LIBRARY</item> + <item>LINK_GROUP</item> + <item>LINK_ONLY</item> + <item>DEVICE_LINK</item> + <item>HOST_LINK</item> <item>TARGET_EXISTS</item> + <item>TARGET_NAME_IF_EXISTS</item> + <item>TARGET_NAME</item> + <item>TARGET_PROPERTY</item> + <item>TARGET_OBJECTS</item> + <item>TARGET_POLICY</item> <item>TARGET_FILE</item> - <item>TARGET_FILE_DIR</item> + <item>TARGET_FILE_BASE_NAME</item> + <item>TARGET_FILE_PREFIX</item> + <item>TARGET_FILE_SUFFIX</item> <item>TARGET_FILE_NAME</item> - <item>TARGET_GENEX_EVAL</item> + <item>TARGET_FILE_DIR</item> + <item>TARGET_IMPORT_FILE</item> + <item>TARGET_IMPORT_FILE_BASE_NAME</item> + <item>TARGET_IMPORT_FILE_PREFIX</item> + <item>TARGET_IMPORT_FILE_SUFFIX</item> + <item>TARGET_IMPORT_FILE_NAME</item> + <item>TARGET_IMPORT_FILE_DIR</item> <item>TARGET_LINKER_FILE</item> - <item>TARGET_LINKER_FILE_DIR</item> + <item>TARGET_LINKER_FILE_BASE_NAME</item> + <item>TARGET_LINKER_FILE_PREFIX</item> + <item>TARGET_LINKER_FILE_SUFFIX</item> <item>TARGET_LINKER_FILE_NAME</item> - <item>TARGET_NAME</item> - <item>TARGET_NAME_IF_EXISTS</item> - <item>TARGET_OBJECTS</item> - <item>TARGET_PDB_FILE</item> - <item>TARGET_PDB_FILE_DIR</item> - <item>TARGET_PDB_FILE_NAME</item> - <item>TARGET_POLICY</item> - <item>TARGET_PROPERTY</item> + <item>TARGET_LINKER_FILE_DIR</item> <item>TARGET_SONAME_FILE</item> - <item>TARGET_SONAME_FILE_DIR</item> <item>TARGET_SONAME_FILE_NAME</item> - <item>UPPER_CASE</item> - <item>VERSION_EQUAL</item> - <item>VERSION_GREATER</item> - <item>VERSION_GREATER_EQUAL</item> - <item>VERSION_LESS</item> - <item>VERSION_LESS_EQUAL</item> + <item>TARGET_SONAME_FILE_DIR</item> + <item>TARGET_PDB_FILE</item> + <item>TARGET_PDB_FILE_BASE_NAME</item> + <item>TARGET_PDB_FILE_NAME</item> + <item>TARGET_PDB_FILE_DIR</item> + <item>TARGET_BUNDLE_DIR_NAME</item> + <item>TARGET_BUNDLE_DIR</item> + <item>TARGET_BUNDLE_CONTENT_DIR</item> + <item>TARGET_RUNTIME_DLLS</item> + <item>TARGET_RUNTIME_DLL_DIRS</item> + <item>INSTALL_INTERFACE</item> + <item>BUILD_INTERFACE</item> + <item>BUILD_LOCAL_INTERFACE</item> + <item>INSTALL_PREFIX</item> + <item>GENEX_EVAL</item> + <item>TARGET_GENEX_EVAL</item> + <item>ANGLE-R</item> + <item>COMMA</item> + <item>SEMICOLON</item> + </list> + <list name="genex-LIST-subcommands"> + <item>LENGTH</item> + <item>GET</item> + <item>SUBLIST</item> + <item>FIND</item> + <item>JOIN</item> + <item>APPEND</item> + <item>PREPEND</item> + <item>INSERT</item> + <item>POP_BACK</item> + <item>POP_FRONT</item> + <item>REMOVE_ITEM</item> + <item>REMOVE_AT</item> + <item>REMOVE_DUPLICATES</item> + <item>FILTER</item> + <item>TRANSFORM</item> + <item>FRANSFORM</item> + <item>REVERSE</item> + <item>SORT</item> + </list> + <list name="genex-PATH-subcommands"> + <item>HAS_ROOT_NAME</item> + <item>HAS_ROOT_DIRECTORY</item> + <item>HAS_ROOT_PATH</item> + <item>HAS_FILENAME</item> + <item>HAS_EXTENSION</item> + <item>HAS_STEM</item> + <item>HAS_RELATIVE_PART</item> + <item>HAS_PARENT_PATH</item> + <item>IS_ABSOLUTE</item> + <item>IS_RELATIVE</item> + <item>IS_PREFIX</item> + <item>GET_ROOT_NAME</item> + <item>GET_ROOT_DIRECTORY</item> + <item>GET_ROOT_PATH</item> + <item>GET_FILENAME</item> + <item>GET_EXTENSION</item> + <item>GET_STEM</item> + <item>GET_RELATIVE_PART</item> + <item>GET_PARENT_PATH</item> + <item>CMAKE_PATH</item> + <item>APPEND</item> + <item>REMOVE_FILENAME</item> + <item>REPLACE_FILENAME</item> + <item>REMOVE_EXTENSION</item> + <item>REPLACE_EXTENSION</item> + <item>NORMAL_PATH</item> + <item>RELATIVE_PATH</item> + <item>ABSOLUTE_PATH</item> + </list> + + <list name="standard-modules"> + <item>AndroidTestUtilities</item> + <item>BundleUtilities</item> + <item>CheckCCompilerFlag</item> + <item>CheckCompilerFlag</item> + <item>CheckCSourceCompiles</item> + <item>CheckCSourceRuns</item> + <item>CheckCXXCompilerFlag</item> + <item>CheckCXXSourceCompiles</item> + <item>CheckCXXSourceRuns</item> + <item>CheckCXXSymbolExists</item> + <item>CheckFortranCompilerFlag</item> + <item>CheckFortranFunctionExists</item> + <item>CheckFortranSourceCompiles</item> + <item>CheckFortranSourceRuns</item> + <item>CheckFunctionExists</item> + <item>CheckIncludeFileCXX</item> + <item>CheckIncludeFile</item> + <item>CheckIncludeFiles</item> + <item>CheckIPOSupported</item> + <item>CheckLanguage</item> + <item>CheckLibraryExists</item> + <item>CheckLinkerFlag</item> + <item>CheckOBJCCompilerFlag</item> + <item>CheckOBJCSourceCompiles</item> + <item>CheckOBJCSourceRuns</item> + <item>CheckOBJCXXCompilerFlag</item> + <item>CheckOBJCXXSourceCompiles</item> + <item>CheckOBJCXXSourceRuns</item> + <item>CheckPIESupported</item> + <item>CheckPrototypeDefinition</item> + <item>CheckSourceCompiles</item> + <item>CheckSourceRuns</item> + <item>CheckStructHasMember</item> + <item>CheckSymbolExists</item> + <item>CheckTypeSize</item> + <item>CheckVariableExists</item> + <item>CMakeAddFortranSubdirectory</item> + <item>CMakeBackwardCompatibilityCXX</item> + <item>CMakeDependentOption</item> + <item>CMakeFindDependencyMacro</item> + <item>CMakeFindFrameworks</item> + <item>CMakePackageConfigHelpers</item> + <item>CMakePrintHelpers</item> + <item>CMakePrintSystemInformation</item> + <item>CMakePushCheckState</item> + <item>CPack</item> + <item>CPackComponent</item> + <item>CPackIFW</item> + <item>CPackIFWConfigureFile</item> + <item>CSharpUtilities</item> + <item>CTest</item> + <item>CTestCoverageCollectGCOV</item> + <item>CTestScriptMode</item> + <item>CTestUseLaunchers</item> + <item>DeployQt4</item> + <item>ExternalData</item> + <item>ExternalProject</item> + <item>FeatureSummary</item> + <item>FetchContent</item> + <item>FindPackageHandleStandardArgs</item> + <item>FindPackageMessage</item> + <item>FortranCInterface</item> + <item>GenerateExportHeader</item> + <item>GNUInstallDirs</item> + <item>GoogleTest</item> + <item>InstallRequiredSystemLibraries</item> + <item>ProcessorCount</item> + <item>SelectLibraryConfigurations</item> + <item>TestForANSIForScope</item> + <item>TestForANSIStreamHeaders</item> + <item>TestForSSTREAM</item> + <item>TestForSTDNamespace</item> + <item>UseEcos</item> + <item>UseJava</item> + <item>UseSWIG</item> + <item>UsewxWidgets</item> + </list> + + <list name="standard-finder-modules"> + <item>ALSA</item> + <item>Armadillo</item> + <item>ASPELL</item> + <item>AVIFile</item> + <item>Backtrace</item> + <item>BISON</item> + <item>BLAS</item> + <item>Boost</item> + <item>Bullet</item> + <item>BZip2</item> + <item>CABLE</item> + <item>Coin3D</item> + <item>CUDAToolkit</item> + <item>Cups</item> + <item>CURL</item> + <item>Curses</item> + <item>CVS</item> + <item>CxxTest</item> + <item>Cygwin</item> + <item>DCMTK</item> + <item>DevIL</item> + <item>Doxygen</item> + <item>EnvModules</item> + <item>EXPAT</item> + <item>FLEX</item> + <item>FLTK</item> + <item>FLTK2</item> + <item>Fontconfig</item> + <item>Freetype</item> + <item>GCCXML</item> + <item>GDAL</item> + <item>Gettext</item> + <item>GIF</item> + <item>Git</item> + <item>GLEW</item> + <item>GLUT</item> + <item>Gnuplot</item> + <item>GnuTLS</item> + <item>GSL</item> + <item>GTest</item> + <item>GTK</item> + <item>GTK2</item> + <item>HDF5</item> + <item>Hg</item> + <item>HSPELL</item> + <item>HTMLHelp</item> + <item>Ice</item> + <item>Iconv</item> + <item>Icotool</item> + <item>ICU</item> + <item>ImageMagick</item> + <item>Intl</item> + <item>ITK</item> + <item>Jasper</item> + <item>Java</item> + <item>JNI</item> + <item>JPEG</item> + <item>KDE3</item> + <item>KDE4</item> + <item>LAPACK</item> + <item>LATEX</item> + <item>LibArchive</item> + <item>Libinput</item> + <item>LibLZMA</item> + <item>LibXml2</item> + <item>LibXslt</item> + <item>LTTngUST</item> + <item>Lua</item> + <item>Lua50</item> + <item>Lua51</item> + <item>Matlab</item> + <item>MFC</item> + <item>Motif</item> + <item>MPEG</item> + <item>MPEG2</item> + <item>MPI</item> + <item>Msys</item> + <item>ODBC</item> + <item>OpenACC</item> + <item>OpenAL</item> + <item>OpenCL</item> + <item>OpenGL</item> + <item>OpenMP</item> + <item>OpenSceneGraph</item> + <item>OpenSSL</item> + <item>OpenThreads</item> + <item>osg</item> + <item>osg_functions</item> + <item>osgAnimation</item> + <item>osgDB</item> + <item>osgFX</item> + <item>osgGA</item> + <item>osgIntrospection</item> + <item>osgManipulator</item> + <item>osgParticle</item> + <item>osgPresentation</item> + <item>osgProducer</item> + <item>osgQt</item> + <item>osgShadow</item> + <item>osgSim</item> + <item>osgTerrain</item> + <item>osgText</item> + <item>osgUtil</item> + <item>osgViewer</item> + <item>osgVolume</item> + <item>osgWidget</item> + <item>Patch</item> + <item>Perl</item> + <item>PerlLibs</item> + <item>PHP4</item> + <item>PhysFS</item> + <item>Pike</item> + <item>PkgConfig</item> + <item>PNG</item> + <item>PostgreSQL</item> + <item>Producer</item> + <item>Protobuf</item> + <item>Python</item> + <item>Python2</item> + <item>Python3</item> + <item>Qt3</item> + <item>Qt4</item> + <item>QuickTime</item> + <item>RTI</item> + <item>Ruby</item> + <item>SDL</item> + <item>SDL_image</item> + <item>SDL_mixer</item> + <item>SDL_net</item> + <item>SDL_sound</item> + <item>SDL_ttf</item> + <item>SelfPackers</item> + <item>Squish</item> + <item>SQLite3</item> + <item>Subversion</item> + <item>SWIG</item> + <item>TCL</item> + <item>Tclsh</item> + <item>TclStub</item> + <item>Threads</item> + <item>TIFF</item> + <item>UnixCommands</item> + <item>VTK</item> + <item>Vulkan</item> + <item>Wget</item> + <item>Wish</item> + <item>wxWidgets</item> + <item>X11</item> + <item>XalanC</item> + <item>XCTest</item> + <item>XercesC</item> + <item>XMLRPC</item> + <item>ZLIB</item> + </list> + + <list name="deprecated-modules"> + <item>AddFileDependencies</item> + <item>CMakeDetermineVSServicePack</item> + <item>CMakeExpandImportedTargets</item> + <item>CMakeForceCompiler</item> + <item>CMakeParseArguments</item> + <item>Dart</item> + <item>Documentation</item> + <item>MacroAddFileDependencies</item> + <item>TestCXXAcceptsFlag</item> + <item>UseJavaClassFilelist</item> + <item>UseJavaSymlinks</item> + <item>UsePkgConfig</item> + <item>Use_wxWindows</item> + <item>WriteBasicConfigVersionFile</item> + <item>WriteCompilerDetectionHeader</item> + <item>FindCUDA</item> + <item>FindDart</item> + <item>FindPythonInterp</item> + <item>FindPythonLibs</item> + <item>FindQt</item> + <item>FindwxWindows</item> + <item>CPackArchive</item> + <item>CPackBundle</item> + <item>CPackCygwin</item> + <item>CPackDeb</item> + <item>CPackDMG</item> + <item>CPackFreeBSD</item> + <item>CPackNSIS</item> + <item>CPackNuGet</item> + <item>CPackPackageMaker</item> + <item>CPackProductBuild</item> + <item>CPackRPM</item> + <item>CPackWIX</item> + <item>GetPrerequisites</item> + <item>TestBigEndian</item> + </list> + + +<!-- Source/cmStringAlgorithms.cxx: bool cmIsOff(cm::string_view val) --> + <list name="true_special_arg"> + <item>TRUE</item> + <item>ON</item> + <item>YES</item> + <item>Y</item> + <item>0</item> + </list> + + +<!-- Source/cmStringAlgorithms.cxx: bool cmIsOff(cm::string_view val) --> + <list name="false_special_arg"> + <item>FALSE</item> + <item>OFF</item> + <item>NO</item> + <item>IGNORE</item> + <item>N</item> + <item>0</item> </list> <contexts> <context attribute="Normal Text" lineEndContext="#stay" name="Normal Text"> <DetectSpaces/> - <WordDetect String="break" insensitive="true" attribute="Command" context="break_ctx" /> - <WordDetect String="cmake_host_system_information" insensitive="true" attribute="Command" context="cmake_host_system_information_ctx" /> - <WordDetect String="cmake_minimum_required" insensitive="true" attribute="Command" context="cmake_minimum_required_ctx" /> - <WordDetect String="cmake_parse_arguments" insensitive="true" attribute="Command" context="cmake_parse_arguments_ctx" /> - <WordDetect String="cmake_policy" insensitive="true" attribute="Command" context="cmake_policy_ctx" /> - <WordDetect String="configure_file" insensitive="true" attribute="Command" context="configure_file_ctx" /> - <WordDetect String="continue" insensitive="true" attribute="Command" context="continue_ctx" /> - <WordDetect String="elseif" insensitive="true" attribute="Command" context="elseif_ctx" /> - <WordDetect String="else" insensitive="true" attribute="Command" context="else_ctx" /> - <WordDetect String="endforeach" insensitive="true" attribute="Command" context="endforeach_ctx" /> - <WordDetect String="endfunction" insensitive="true" attribute="Command" context="endfunction_ctx" /> - <WordDetect String="endif" insensitive="true" attribute="Command" context="endif_ctx" /> - <WordDetect String="endmacro" insensitive="true" attribute="Command" context="endmacro_ctx" /> - <WordDetect String="endwhile" insensitive="true" attribute="Command" context="endwhile_ctx" /> - <WordDetect String="execute_process" insensitive="true" attribute="Command" context="execute_process_ctx" /> - <WordDetect String="file" insensitive="true" attribute="Command" context="file_ctx" /> - <WordDetect String="find_file" insensitive="true" attribute="Command" context="find_file_ctx" /> - <WordDetect String="find_library" insensitive="true" attribute="Command" context="find_library_ctx" /> - <WordDetect String="find_package" insensitive="true" attribute="Command" context="find_package_ctx" /> - <WordDetect String="find_path" insensitive="true" attribute="Command" context="find_path_ctx" /> - <WordDetect String="find_program" insensitive="true" attribute="Command" context="find_program_ctx" /> - <WordDetect String="foreach" insensitive="true" attribute="Command" context="foreach_ctx" /> - <WordDetect String="function" insensitive="true" attribute="Command" context="function_ctx" /> - <WordDetect String="get_cmake_property" insensitive="true" attribute="Command" context="get_cmake_property_ctx" /> - <WordDetect String="get_directory_property" insensitive="true" attribute="Command" context="get_directory_property_ctx" /> - <WordDetect String="get_filename_component" insensitive="true" attribute="Command" context="get_filename_component_ctx" /> - <WordDetect String="get_property" insensitive="true" attribute="Command" context="get_property_ctx" /> - <WordDetect String="if" insensitive="true" attribute="Command" context="if_ctx" /> - <WordDetect String="include" insensitive="true" attribute="Command" context="include_ctx" /> - <WordDetect String="include_guard" insensitive="true" attribute="Command" context="include_guard_ctx" /> - <WordDetect String="list" insensitive="true" attribute="Command" context="list_ctx" /> - <WordDetect String="macro" insensitive="true" attribute="Command" context="macro_ctx" /> - <WordDetect String="mark_as_advanced" insensitive="true" attribute="Command" context="mark_as_advanced_ctx" /> - <WordDetect String="math" insensitive="true" attribute="Command" context="math_ctx" /> - <WordDetect String="message" insensitive="true" attribute="Command" context="message_ctx" /> - <WordDetect String="option" insensitive="true" attribute="Command" context="option_ctx" /> - <WordDetect String="return" insensitive="true" attribute="Command" context="return_ctx" /> - <WordDetect String="separate_arguments" insensitive="true" attribute="Command" context="separate_arguments_ctx" /> - <WordDetect String="set_directory_properties" insensitive="true" attribute="Command" context="set_directory_properties_ctx" /> - <WordDetect String="set_property" insensitive="true" attribute="Command" context="set_property_ctx" /> - <WordDetect String="set" insensitive="true" attribute="Command" context="set_ctx" /> - <WordDetect String="site_name" insensitive="true" attribute="Command" context="site_name_ctx" /> - <WordDetect String="string" insensitive="true" attribute="Command" context="string_ctx" /> - <WordDetect String="unset" insensitive="true" attribute="Command" context="unset_ctx" /> - <WordDetect String="variable_watch" insensitive="true" attribute="Command" context="variable_watch_ctx" /> - <WordDetect String="while" insensitive="true" attribute="Command" context="while_ctx" /> - <WordDetect String="add_compile_definitions" insensitive="true" attribute="Command" context="add_compile_definitions_ctx" /> - <WordDetect String="add_compile_options" insensitive="true" attribute="Command" context="add_compile_options_ctx" /> - <WordDetect String="add_custom_command" insensitive="true" attribute="Command" context="add_custom_command_ctx" /> - <WordDetect String="add_custom_target" insensitive="true" attribute="Command" context="add_custom_target_ctx" /> - <WordDetect String="add_definitions" insensitive="true" attribute="Command" context="add_definitions_ctx" /> - <WordDetect String="add_dependencies" insensitive="true" attribute="Command" context="add_dependencies_ctx" /> - <WordDetect String="add_executable" insensitive="true" attribute="Command" context="add_executable_ctx" /> - <WordDetect String="add_library" insensitive="true" attribute="Command" context="add_library_ctx" /> - <WordDetect String="add_link_options" insensitive="true" attribute="Command" context="add_link_options_ctx" /> - <WordDetect String="add_subdirectory" insensitive="true" attribute="Command" context="add_subdirectory_ctx" /> - <WordDetect String="add_test" insensitive="true" attribute="Command" context="add_test_ctx" /> - <WordDetect String="aux_source_directory" insensitive="true" attribute="Command" context="aux_source_directory_ctx" /> - <WordDetect String="build_command" insensitive="true" attribute="Command" context="build_command_ctx" /> - <WordDetect String="create_test_sourcelist" insensitive="true" attribute="Command" context="create_test_sourcelist_ctx" /> - <WordDetect String="define_property" insensitive="true" attribute="Command" context="define_property_ctx" /> - <WordDetect String="enable_language" insensitive="true" attribute="Command" context="enable_language_ctx" /> - <WordDetect String="enable_testing" insensitive="true" attribute="Command" context="enable_testing_ctx" /> - <WordDetect String="export" insensitive="true" attribute="Command" context="export_ctx" /> - <WordDetect String="fltk_wrap_ui" insensitive="true" attribute="Command" context="fltk_wrap_ui_ctx" /> - <WordDetect String="get_source_file_property" insensitive="true" attribute="Command" context="get_source_file_property_ctx" /> - <WordDetect String="get_target_property" insensitive="true" attribute="Command" context="get_target_property_ctx" /> - <WordDetect String="get_test_property" insensitive="true" attribute="Command" context="get_test_property_ctx" /> - <WordDetect String="include_directories" insensitive="true" attribute="Command" context="include_directories_ctx" /> - <WordDetect String="include_external_msproject" insensitive="true" attribute="Command" context="include_external_msproject_ctx" /> - <WordDetect String="include_regular_expression" insensitive="true" attribute="Command" context="include_regular_expression_ctx" /> - <WordDetect String="install" insensitive="true" attribute="Command" context="install_ctx" /> - <WordDetect String="link_directories" insensitive="true" attribute="Command" context="link_directories_ctx" /> - <WordDetect String="link_libraries" insensitive="true" attribute="Command" context="link_libraries_ctx" /> - <WordDetect String="load_cache" insensitive="true" attribute="Command" context="load_cache_ctx" /> - <WordDetect String="project" insensitive="true" attribute="Command" context="project_ctx" /> - <WordDetect String="qt_wrap_cpp" insensitive="true" attribute="Command" context="qt_wrap_cpp_ctx" /> - <WordDetect String="qt_wrap_ui" insensitive="true" attribute="Command" context="qt_wrap_ui_ctx" /> - <WordDetect String="remove_definitions" insensitive="true" attribute="Command" context="remove_definitions_ctx" /> - <WordDetect String="set_source_files_properties" insensitive="true" attribute="Command" context="set_source_files_properties_ctx" /> - <WordDetect String="set_target_properties" insensitive="true" attribute="Command" context="set_target_properties_ctx" /> - <WordDetect String="set_tests_properties" insensitive="true" attribute="Command" context="set_tests_properties_ctx" /> - <WordDetect String="source_group" insensitive="true" attribute="Command" context="source_group_ctx" /> - <WordDetect String="target_compile_definitions" insensitive="true" attribute="Command" context="target_compile_definitions_ctx" /> - <WordDetect String="target_compile_features" insensitive="true" attribute="Command" context="target_compile_features_ctx" /> - <WordDetect String="target_compile_options" insensitive="true" attribute="Command" context="target_compile_options_ctx" /> - <WordDetect String="target_include_directories" insensitive="true" attribute="Command" context="target_include_directories_ctx" /> - <WordDetect String="target_link_directories" insensitive="true" attribute="Command" context="target_link_directories_ctx" /> - <WordDetect String="target_link_libraries" insensitive="true" attribute="Command" context="target_link_libraries_ctx" /> - <WordDetect String="target_link_options" insensitive="true" attribute="Command" context="target_link_options_ctx" /> - <WordDetect String="target_sources" insensitive="true" attribute="Command" context="target_sources_ctx" /> - <WordDetect String="try_compile" insensitive="true" attribute="Command" context="try_compile_ctx" /> - <WordDetect String="try_run" insensitive="true" attribute="Command" context="try_run_ctx" /> - <WordDetect String="ctest_build" insensitive="true" attribute="Command" context="ctest_build_ctx" /> - <WordDetect String="ctest_configure" insensitive="true" attribute="Command" context="ctest_configure_ctx" /> - <WordDetect String="ctest_coverage" insensitive="true" attribute="Command" context="ctest_coverage_ctx" /> - <WordDetect String="ctest_empty_binary_directory" insensitive="true" attribute="Command" context="ctest_empty_binary_directory_ctx" /> - <WordDetect String="ctest_memcheck" insensitive="true" attribute="Command" context="ctest_memcheck_ctx" /> - <WordDetect String="ctest_read_custom_files" insensitive="true" attribute="Command" context="ctest_read_custom_files_ctx" /> - <WordDetect String="ctest_run_script" insensitive="true" attribute="Command" context="ctest_run_script_ctx" /> - <WordDetect String="ctest_sleep" insensitive="true" attribute="Command" context="ctest_sleep_ctx" /> - <WordDetect String="ctest_start" insensitive="true" attribute="Command" context="ctest_start_ctx" /> - <WordDetect String="ctest_submit" insensitive="true" attribute="Command" context="ctest_submit_ctx" /> - <WordDetect String="ctest_test" insensitive="true" attribute="Command" context="ctest_test_ctx" /> - <WordDetect String="ctest_update" insensitive="true" attribute="Command" context="ctest_update_ctx" /> - <WordDetect String="ctest_upload" insensitive="true" attribute="Command" context="ctest_upload_ctx" /> - <RegExpr attribute="Region Marker" context="RST Documentation" String="^#\[(=*)\[\.rst:" column="0" /> - <RegExpr attribute="Comment" context="Bracketed Comment" String="#\[(=*)\[" /> - <DetectChar attribute="Comment" context="Comment" char="#" /> - <DetectIdentifier attribute="User Function/Macro" context="User Function" /> - <RegExpr attribute="@Variable Substitution" context="@VarSubst" String="@&id_re;@" lookAhead="true" /> - <!-- Include keywords matching for language autocompleter work --> - <keyword attribute="Command" context="#stay" String="commands" /> + <WordDetect String="block" insensitive="true" attribute="Command" context="block_ctx" beginRegion="block"/> + <WordDetect String="break" insensitive="true" attribute="Control Flow" context="break_ctx"/> + <WordDetect String="cmake_host_system_information" insensitive="true" attribute="Command" context="cmake_host_system_information_ctx"/> + <WordDetect String="cmake_language" insensitive="true" attribute="Command" context="cmake_language_ctx"/> + <WordDetect String="cmake_minimum_required" insensitive="true" attribute="Command" context="cmake_minimum_required_ctx"/> + <WordDetect String="cmake_parse_arguments" insensitive="true" attribute="Command" context="cmake_parse_arguments_ctx"/> + <WordDetect String="cmake_path" insensitive="true" attribute="Command" context="cmake_path_ctx"/> + <WordDetect String="cmake_policy" insensitive="true" attribute="Command" context="cmake_policy_ctx"/> + <WordDetect String="configure_file" insensitive="true" attribute="Command" context="configure_file_ctx"/> + <WordDetect String="continue" insensitive="true" attribute="Control Flow" context="break_ctx"/> + <WordDetect String="elseif" insensitive="true" attribute="Control Flow" context="elseif_ctx"/> + <WordDetect String="else" insensitive="true" attribute="Control Flow" context="break_ctx"/> + <WordDetect String="endblock" insensitive="true" attribute="Command" context="break_ctx" endRegion="block"/> + <WordDetect String="endforeach" insensitive="true" attribute="Control Flow" context="break_ctx" endRegion="foreach"/> + <WordDetect String="endfunction" insensitive="true" attribute="Command" context="break_ctx" endRegion="function"/> + <WordDetect String="endif" insensitive="true" attribute="Control Flow" context="break_ctx" endRegion="if"/> + <WordDetect String="endmacro" insensitive="true" attribute="Command" context="break_ctx" endRegion="macro"/> + <WordDetect String="endwhile" insensitive="true" attribute="Control Flow" context="break_ctx" endRegion="while"/> + <WordDetect String="execute_process" insensitive="true" attribute="Command" context="execute_process_ctx"/> + <WordDetect String="file" insensitive="true" attribute="Command" context="file_ctx"/> + <WordDetect String="find_file" insensitive="true" attribute="Command" context="find_file_ctx"/> + <WordDetect String="find_library" insensitive="true" attribute="Command" context="find_library_ctx"/> + <WordDetect String="find_package" insensitive="true" attribute="Command" context="find_package_ctx"/> + <WordDetect String="find_path" insensitive="true" attribute="Command" context="find_file_ctx"/> + <WordDetect String="find_program" insensitive="true" attribute="Command" context="find_library_ctx"/> + <WordDetect String="foreach" insensitive="true" attribute="Control Flow" context="foreach_ctx" beginRegion="foreach"/> + <WordDetect String="function" insensitive="true" attribute="Command" context="function_ctx" beginRegion="function"/> + <WordDetect String="get_cmake_property" insensitive="true" attribute="Command" context="get_cmake_property_ctx"/> + <WordDetect String="get_directory_property" insensitive="true" attribute="Command" context="get_directory_property_ctx"/> + <WordDetect String="get_filename_component" insensitive="true" attribute="Command" context="get_filename_component_ctx"/> + <WordDetect String="get_property" insensitive="true" attribute="Command" context="get_property_ctx"/> + <WordDetect String="if" insensitive="true" attribute="Control Flow" context="if_ctx" beginRegion="if"/> + <WordDetect String="include" insensitive="true" attribute="Command" context="include_ctx"/> + <WordDetect String="include_guard" insensitive="true" attribute="Command" context="include_guard_ctx"/> + <WordDetect String="list" insensitive="true" attribute="Command" context="list_ctx"/> + <WordDetect String="macro" insensitive="true" attribute="Command" context="function_ctx" beginRegion="macro"/> + <WordDetect String="mark_as_advanced" insensitive="true" attribute="Command" context="mark_as_advanced_ctx"/> + <WordDetect String="math" insensitive="true" attribute="Command" context="math_ctx"/> + <WordDetect String="message" insensitive="true" attribute="Command" context="message_ctx"/> + <WordDetect String="option" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="return" insensitive="true" attribute="Control Flow" context="return_ctx"/> + <WordDetect String="separate_arguments" insensitive="true" attribute="Command" context="separate_arguments_ctx"/> + <WordDetect String="set_directory_properties" insensitive="true" attribute="Command" context="set_directory_properties_ctx"/> + <WordDetect String="set_property" insensitive="true" attribute="Command" context="set_property_ctx"/> + <WordDetect String="set" insensitive="true" attribute="Command" context="set_ctx"/> + <WordDetect String="site_name" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="string" insensitive="true" attribute="Command" context="string_ctx"/> + <WordDetect String="unset" insensitive="true" attribute="Command" context="unset_ctx"/> + <WordDetect String="variable_watch" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="while" insensitive="true" attribute="Control Flow" context="while_ctx" beginRegion="while"/> + <WordDetect String="add_compile_definitions" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="add_compile_options" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="add_custom_command" insensitive="true" attribute="Command" context="add_custom_command_ctx"/> + <WordDetect String="add_custom_target" insensitive="true" attribute="Command" context="add_custom_target_ctx"/> + <WordDetect String="add_definitions" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="add_dependencies" insensitive="true" attribute="Command" context="add_dependencies_ctx"/> + <WordDetect String="add_executable" insensitive="true" attribute="Command" context="add_executable_ctx"/> + <WordDetect String="add_library" insensitive="true" attribute="Command" context="add_library_ctx"/> + <WordDetect String="add_link_options" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="add_subdirectory" insensitive="true" attribute="Command" context="add_subdirectory_ctx"/> + <WordDetect String="add_test" insensitive="true" attribute="Command" context="add_test_ctx"/> + <WordDetect String="aux_source_directory" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="build_command" insensitive="true" attribute="Command" context="build_command_ctx"/> + <WordDetect String="cmake_file_api" insensitive="true" attribute="Command" context="cmake_file_api_ctx"/> + <WordDetect String="create_test_sourcelist" insensitive="true" attribute="Command" context="create_test_sourcelist_ctx"/> + <WordDetect String="define_property" insensitive="true" attribute="Command" context="define_property_ctx"/> + <WordDetect String="enable_language" insensitive="true" attribute="Command" context="enable_language_ctx"/> + <WordDetect String="enable_testing" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="export" insensitive="true" attribute="Command" context="export_ctx"/> + <WordDetect String="fltk_wrap_ui" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="get_source_file_property" insensitive="true" attribute="Command" context="get_source_file_property_ctx"/> + <WordDetect String="get_target_property" insensitive="true" attribute="Command" context="get_target_property_ctx"/> + <WordDetect String="get_test_property" insensitive="true" attribute="Command" context="get_test_property_ctx"/> + <WordDetect String="include_directories" insensitive="true" attribute="Command" context="include_directories_ctx"/> + <WordDetect String="include_external_msproject" insensitive="true" attribute="Command" context="include_external_msproject_ctx"/> + <WordDetect String="include_regular_expression" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="install" insensitive="true" attribute="Command" context="install_ctx"/> + <WordDetect String="link_directories" insensitive="true" attribute="Command" context="link_directories_ctx"/> + <WordDetect String="link_libraries" insensitive="true" attribute="Command" context="link_libraries_ctx"/> + <WordDetect String="load_cache" insensitive="true" attribute="Command" context="load_cache_ctx"/> + <WordDetect String="project" insensitive="true" attribute="Command" context="project_ctx"/> + <WordDetect String="qt_wrap_cpp" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="qt_wrap_ui" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="remove_definitions" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="set_source_files_properties" insensitive="true" attribute="Command" context="set_source_files_properties_ctx"/> + <WordDetect String="set_target_properties" insensitive="true" attribute="Command" context="set_target_properties_ctx"/> + <WordDetect String="set_tests_properties" insensitive="true" attribute="Command" context="set_tests_properties_ctx"/> + <WordDetect String="source_group" insensitive="true" attribute="Command" context="source_group_ctx"/> + <WordDetect String="target_compile_definitions" insensitive="true" attribute="Command" context="target_compile_definitions_ctx"/> + <WordDetect String="target_compile_features" insensitive="true" attribute="Command" context="target_compile_features_ctx"/> + <WordDetect String="target_compile_options" insensitive="true" attribute="Command" context="target_compile_options_ctx"/> + <WordDetect String="target_include_directories" insensitive="true" attribute="Command" context="target_include_directories_ctx"/> + <WordDetect String="target_link_directories" insensitive="true" attribute="Command" context="target_compile_options_ctx"/> + <WordDetect String="target_link_libraries" insensitive="true" attribute="Command" context="target_link_libraries_ctx"/> + <WordDetect String="target_link_options" insensitive="true" attribute="Command" context="target_compile_definitions_ctx"/> + <WordDetect String="target_precompile_headers" insensitive="true" attribute="Command" context="target_precompile_headers_ctx"/> + <WordDetect String="target_sources" insensitive="true" attribute="Command" context="target_sources_ctx"/> + <WordDetect String="try_compile" insensitive="true" attribute="Command" context="try_compile_ctx"/> + <WordDetect String="try_run" insensitive="true" attribute="Command" context="try_run_ctx"/> + <WordDetect String="ctest_build" insensitive="true" attribute="Command" context="ctest_build_ctx"/> + <WordDetect String="ctest_configure" insensitive="true" attribute="Command" context="ctest_configure_ctx"/> + <WordDetect String="ctest_coverage" insensitive="true" attribute="Command" context="ctest_coverage_ctx"/> + <WordDetect String="ctest_empty_binary_directory" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="ctest_memcheck" insensitive="true" attribute="Command" context="ctest_memcheck_ctx"/> + <WordDetect String="ctest_read_custom_files" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="ctest_run_script" insensitive="true" attribute="Command" context="ctest_run_script_ctx"/> + <WordDetect String="ctest_sleep" insensitive="true" attribute="Command" context="function_ctx"/> + <WordDetect String="ctest_start" insensitive="true" attribute="Command" context="ctest_start_ctx"/> + <WordDetect String="ctest_submit" insensitive="true" attribute="Command" context="ctest_submit_ctx"/> + <WordDetect String="ctest_test" insensitive="true" attribute="Command" context="ctest_test_ctx"/> + <WordDetect String="ctest_update" insensitive="true" attribute="Command" context="ctest_update_ctx"/> + <WordDetect String="ctest_upload" insensitive="true" attribute="Command" context="ctest_upload_ctx"/> + <WordDetect String="android_add_test_data" insensitive="true" attribute="CMake Provided Function/Macro" context="android_add_test_data_ctx"/> + <WordDetect String="fixup_bundle" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="copy_and_fixup_bundle" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="verify_app" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="get_bundle_main_executable" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="get_dotapp_dir" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="get_bundle_and_executable" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="get_bundle_all_executables" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="get_item_key" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="get_item_rpaths" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="clear_bundle_keys" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="set_bundle_key_values" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="get_bundle_keys" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="copy_resolved_item_into_bundle" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="copy_resolved_framework_into_bundle" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="fixup_bundle_item" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="verify_bundle_prerequisites" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="verify_bundle_symlinks" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_c_compiler_flag" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_compiler_flag" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_c_source_compiles" insensitive="true" attribute="CMake Provided Function/Macro" context="check_c_source_compiles_ctx"/> + <WordDetect String="check_c_source_runs" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_cxx_compiler_flag" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_cxx_source_compiles" insensitive="true" attribute="CMake Provided Function/Macro" context="check_c_source_compiles_ctx"/> + <WordDetect String="check_cxx_source_runs" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_cxx_symbol_exists" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_fortran_compiler_flag" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_fortran_function_exists" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_fortran_source_compiles" insensitive="true" attribute="CMake Provided Function/Macro" context="check_fortran_source_compiles_ctx"/> + <WordDetect String="check_fortran_source_runs" insensitive="true" attribute="CMake Provided Function/Macro" context="check_fortran_source_runs_ctx"/> + <WordDetect String="check_function_exists" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_include_file_cxx" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_include_file" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_include_files" insensitive="true" attribute="CMake Provided Function/Macro" context="check_include_files_ctx"/> + <WordDetect String="check_ipo_supported" insensitive="true" attribute="CMake Provided Function/Macro" context="check_ipo_supported_ctx"/> + <WordDetect String="check_language" insensitive="true" attribute="CMake Provided Function/Macro" context="check_language_ctx"/> + <WordDetect String="check_library_exists" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_linker_flag" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_objc_compiler_flag" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_objc_source_compiles" insensitive="true" attribute="CMake Provided Function/Macro" context="check_c_source_compiles_ctx"/> + <WordDetect String="check_objc_source_runs" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_objcxx_compiler_flag" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_objcxx_source_compiles" insensitive="true" attribute="CMake Provided Function/Macro" context="check_c_source_compiles_ctx"/> + <WordDetect String="check_objcxx_source_runs" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_pie_supported" insensitive="true" attribute="CMake Provided Function/Macro" context="check_pie_supported_ctx"/> + <WordDetect String="check_prototype_definition" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_source_compiles" insensitive="true" attribute="CMake Provided Function/Macro" context="check_fortran_source_compiles_ctx"/> + <WordDetect String="check_source_runs" insensitive="true" attribute="CMake Provided Function/Macro" context="check_fortran_source_runs_ctx"/> + <WordDetect String="check_struct_has_member" insensitive="true" attribute="CMake Provided Function/Macro" context="check_include_files_ctx"/> + <WordDetect String="check_symbol_exists" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="check_type_size" insensitive="true" attribute="CMake Provided Function/Macro" context="check_type_size_ctx"/> + <WordDetect String="check_variable_exists" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="cmake_add_fortran_subdirectory" insensitive="true" attribute="CMake Provided Function/Macro" context="cmake_add_fortran_subdirectory_ctx"/> + <WordDetect String="cmake_dependent_option" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="find_dependency" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="configure_package_config_file" insensitive="true" attribute="CMake Provided Function/Macro" context="configure_package_config_file_ctx"/> + <WordDetect String="write_basic_package_version_file" insensitive="true" attribute="CMake Provided Function/Macro" context="write_basic_package_version_file_ctx"/> + <WordDetect String="cmake_print_properties" insensitive="true" attribute="CMake Provided Function/Macro" context="cmake_print_properties_ctx"/> + <WordDetect String="cmake_push_check_state" insensitive="true" attribute="CMake Provided Function/Macro" context="cmake_push_check_state_ctx"/> + <WordDetect String="cmake_pop_check_state" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="cmake_reset_check_state" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="cpack_add_component" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_add_component_ctx"/> + <WordDetect String="cpack_add_component_group" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_add_component_group_ctx"/> + <WordDetect String="cpack_add_install_type" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_add_install_type_ctx"/> + <WordDetect String="cpack_configure_downloads" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_configure_downloads_ctx"/> + <WordDetect String="cpack_ifw_configure_component" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_ifw_configure_component_ctx"/> + <WordDetect String="cpack_ifw_configure_component_group" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_ifw_configure_component_group_ctx"/> + <WordDetect String="cpack_ifw_add_repository" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_ifw_add_repository_ctx"/> + <WordDetect String="cpack_ifw_update_repository" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_ifw_update_repository_ctx"/> + <WordDetect String="cpack_ifw_add_package_resources" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="cpack_ifw_configure_file" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="csharp_set_windows_forms_properties" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="csharp_set_designer_cs_properties" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="csharp_set_xaml_cs_properties" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="csharp_get_filename_keys" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="csharp_get_filename_key_base" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="csharp_get_dependentupon_name" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="ctest_coverage_collect_gcov" insensitive="true" attribute="CMake Provided Function/Macro" context="ctest_coverage_collect_gcov_ctx"/> + <WordDetect String="write_qt4_conf" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="resolve_qt4_paths" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="fixup_qt4_executable" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="install_qt4_plugin_path" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="install_qt4_plugin" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="install_qt4_executable" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="ExternalData_Expand_Arguments" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="ExternalData_Add_Test" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="ExternalData_Add_Target" insensitive="true" attribute="CMake Provided Function/Macro" context="ExternalData_Add_Target_ctx"/> + <WordDetect String="ExternalProject_Add" insensitive="true" attribute="CMake Provided Function/Macro" context="ExternalProject_Add_ctx"/> + <WordDetect String="ExternalProject_Get_Property" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="ExternalProject_Add_Step" insensitive="true" attribute="CMake Provided Function/Macro" context="ExternalProject_Add_Step_ctx"/> + <WordDetect String="ExternalProject_Add_StepTargets" insensitive="true" attribute="CMake Provided Function/Macro" context="ExternalProject_Add_StepTargets_ctx"/> + <WordDetect String="ExternalProject_Add_StepDependencies" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="feature_summary" insensitive="true" attribute="CMake Provided Function/Macro" context="feature_summary_ctx"/> + <WordDetect String="set_package_properties" insensitive="true" attribute="CMake Provided Function/Macro" context="set_package_properties_ctx"/> + <WordDetect String="add_feature_info" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="set_package_info" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="set_feature_info" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="print_enabled_features" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="print_disabled_features" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="FetchContent_Declare" insensitive="true" attribute="CMake Provided Function/Macro" context="FetchContent_Declare_ctx"/> + <WordDetect String="FetchContent_Populate" insensitive="true" attribute="CMake Provided Function/Macro" context="FetchContent_Populate_ctx"/> + <WordDetect String="FetchContent_GetProperties" insensitive="true" attribute="CMake Provided Function/Macro" context="FetchContent_GetProperties_ctx"/> + <WordDetect String="FetchContent_MakeAvailable" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="find_package_handle_standard_args" insensitive="true" attribute="CMake Provided Function/Macro" context="find_package_handle_standard_args_ctx"/> + <WordDetect String="find_package_check_version" insensitive="true" attribute="CMake Provided Function/Macro" context="find_package_check_version_ctx"/> + <WordDetect String="find_package_message" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="FortranCInterface_HEADER" insensitive="true" attribute="CMake Provided Function/Macro" context="FortranCInterface_HEADER_ctx"/> + <WordDetect String="FortranCInterface_VERIFY" insensitive="true" attribute="CMake Provided Function/Macro" context="FortranCInterface_VERIFY_ctx"/> + <WordDetect String="generate_export_header" insensitive="true" attribute="CMake Provided Function/Macro" context="generate_export_header_ctx"/> + <WordDetect String="GNUInstallDirs_get_absolute_install_dir" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="gtest_add_tests" insensitive="true" attribute="CMake Provided Function/Macro" context="gtest_add_tests_ctx"/> + <WordDetect String="gtest_discover_tests" insensitive="true" attribute="CMake Provided Function/Macro" context="gtest_discover_tests_ctx"/> + <WordDetect String="processorcount" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="select_library_configurations" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="test_big_endian" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="ecos_add_include_directories" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="ecos_add_executable" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="ecos_add_target_lib" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="ecos_adjust_directory" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="ecos_use_arm_elf_tools" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="ecos_use_i386_elf_tools" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="ecos_use_ppc_eabi_tools" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="add_jar" insensitive="true" attribute="CMake Provided Function/Macro" context="add_jar_ctx"/> + <WordDetect String="install_jar" insensitive="true" attribute="CMake Provided Function/Macro" context="install_jar_ctx"/> + <WordDetect String="install_jni_symlink" insensitive="true" attribute="CMake Provided Function/Macro" context="install_jar_ctx"/> + <WordDetect String="create_javah" insensitive="true" attribute="CMake Provided Function/Macro" context="create_javah_ctx"/> + <WordDetect String="install_jar_exports" insensitive="true" attribute="CMake Provided Function/Macro" context="install_jar_exports_ctx"/> + <WordDetect String="export_jars" insensitive="true" attribute="CMake Provided Function/Macro" context="export_jars_ctx"/> + <WordDetect String="find_jar" insensitive="true" attribute="CMake Provided Function/Macro" context="find_jar_ctx"/> + <WordDetect String="create_javadoc" insensitive="true" attribute="CMake Provided Function/Macro" context="create_javadoc_ctx"/> + <WordDetect String="swig_add_library" insensitive="true" attribute="CMake Provided Function/Macro" context="swig_add_library_ctx"/> + <WordDetect String="swig_link_libraries" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="squish_add_test" insensitive="true" attribute="CMake Provided Function/Macro" context="squish_add_test_ctx"/> + <WordDetect String="bison_target" insensitive="true" attribute="CMake Provided Function/Macro" context="bison_target_ctx"/> + <WordDetect String="cxxtest_add_test" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="doxygen_add_docs" insensitive="true" attribute="CMake Provided Function/Macro" context="doxygen_add_docs_ctx"/> + <WordDetect String="env_module" insensitive="true" attribute="CMake Provided Function/Macro" context="env_module_ctx"/> + <WordDetect String="env_module_swap" insensitive="true" attribute="CMake Provided Function/Macro" context="env_module_swap_ctx"/> + <WordDetect String="env_module_list" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="env_module_avail" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="flex_target" insensitive="true" attribute="CMake Provided Function/Macro" context="flex_target_ctx"/> + <WordDetect String="add_flex_bison_dependency" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="gettext_create_translations" insensitive="true" attribute="CMake Provided Function/Macro" context="gettext_create_translations_ctx"/> + <WordDetect String="gettext_process_pot_file" insensitive="true" attribute="CMake Provided Function/Macro" context="gettext_process_pot_file_ctx"/> + <WordDetect String="gettext_process_po_files" insensitive="true" attribute="CMake Provided Function/Macro" context="gettext_process_po_files_ctx"/> + <WordDetect String="hg_wc_info" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="matlab_get_version_from_release_name" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="matlab_get_release_name_from_version" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="matlab_extract_all_installed_versions_from_registry" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="matlab_get_all_valid_matlab_roots_from_registry" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="matlab_get_mex_suffix" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="matlab_get_version_from_matlab_run" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="matlab_add_unit_test" insensitive="true" attribute="CMake Provided Function/Macro" context="matlab_add_unit_test_ctx"/> + <WordDetect String="matlab_add_mex" insensitive="true" attribute="CMake Provided Function/Macro" context="matlab_add_mex_ctx"/> + <WordDetect String="pkg_check_modules" insensitive="true" attribute="CMake Provided Function/Macro" context="pkg_check_modules_ctx"/> + <WordDetect String="pkg_search_module" insensitive="true" attribute="CMake Provided Function/Macro" context="pkg_check_modules_ctx"/> + <WordDetect String="pkg_get_variable" insensitive="true" attribute="CMake Provided Function/Macro" context="pkg_get_variable_ctx"/> + <WordDetect String="protobuf_generate_cpp" insensitive="true" attribute="CMake Provided Function/Macro" context="protobuf_generate_cpp_ctx"/> + <WordDetect String="protobuf_generate_python" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="Python_add_library" insensitive="true" attribute="CMake Provided Function/Macro" context="Python_add_library_ctx"/> + <WordDetect String="Subversion_WC_INFO" insensitive="true" attribute="CMake Provided Function/Macro" context="Subversion_WC_INFO_ctx"/> + <WordDetect String="Subversion_WC_LOG" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="xctest_add_bundle" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <WordDetect String="xctest_add_test" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/> + <DetectChar attribute="Comment" context="Match Comments and Docs" char="#" lookAhead="true"/> + <DetectIdentifier attribute="User Function/Macro" context="User Function"/> + <RegExpr attribute="@Variable Substitution" context="@VarSubst" String="@&var_ref_re;@" lookAhead="true"/> + <IncludeRules context="LineError"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="block_ctx"> + <DetectChar attribute="Normal Text" context="block_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="block_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="block_nargs"/> + <keyword attribute="Special Args" context="#stay" String="block_sargs"/> + <IncludeRules context="User Function Args"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="break_ctx"> - <DetectChar attribute="Normal Text" context="break_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="break_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="break_ctx_op"> - <IncludeRules context="EndCmdPop2" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="cmake_host_system_information_ctx"> - <DetectChar attribute="Normal Text" context="cmake_host_system_information_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="cmake_host_system_information_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="cmake_host_system_information_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="cmake_host_system_information_nargs" /> - <keyword attribute="Special Args" context="#stay" String="cmake_host_system_information_sargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cmake_host_system_information_nargs"/> + <keyword attribute="Special Args" context="#stay" String="cmake_host_system_information_sargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cmake_language_ctx"> + <DetectChar attribute="Normal Text" context="cmake_language_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cmake_language_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cmake_language_nargs"/> + <keyword attribute="Special Args" context="#stay" String="cmake_language_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="cmake_minimum_required_ctx"> - <DetectChar attribute="Normal Text" context="cmake_minimum_required_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="cmake_minimum_required_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="cmake_minimum_required_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="cmake_minimum_required_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cmake_minimum_required_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="cmake_parse_arguments_ctx"> - <DetectChar attribute="Normal Text" context="cmake_parse_arguments_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="cmake_parse_arguments_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="cmake_parse_arguments_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="cmake_parse_arguments_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cmake_parse_arguments_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cmake_path_ctx"> + <DetectChar attribute="Normal Text" context="cmake_path_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cmake_path_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cmake_path_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="cmake_policy_ctx"> - <DetectChar attribute="Normal Text" context="cmake_policy_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="cmake_policy_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="cmake_policy_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="cmake_policy_nargs" /> - <keyword attribute="Special Args" context="#stay" String="cmake_policy_sargs" /> - <IncludeRules context="User Function Args" /> - <!-- NOTE Handle CMP<NNN> as a special arg of `cmake_policy` command --> - <RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9]+\b" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cmake_policy_nargs"/> + <keyword attribute="Special Args" context="#stay" String="cmake_policy_sargs"/> + <IncludeRules context="User Function Args"/> + +<!-- NOTE Handle CMP<NNN> as a special arg of `cmake_policy` command --> + <RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9]+\b"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="configure_file_ctx"> - <DetectChar attribute="Normal Text" context="configure_file_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="configure_file_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="configure_file_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="configure_file_nargs" /> - <keyword attribute="Special Args" context="#stay" String="configure_file_sargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="continue_ctx"> - <DetectChar attribute="Normal Text" context="continue_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="continue_ctx_op"> - <IncludeRules context="EndCmdPop2" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="configure_file_nargs"/> + <keyword attribute="Special Args" context="#stay" String="configure_file_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="elseif_ctx"> - <DetectChar attribute="Normal Text" context="elseif_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="elseif_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="elseif_ctx_op"> - <DetectChar attribute="Normal Text" context="elseif_ctx_op_nested" char="(" /> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="elseif_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="elseif_ctx_op_nested" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <WordDetect String="TARGET" attribute="Named Args" context="Target Name"/> + <keyword attribute="Named Args" context="#stay" String="elseif_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="elseif_ctx_op_nested"> - <IncludeRules context="EndCmdPop" /> - <keyword attribute="Named Args" context="#stay" String="elseif_nargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="else_ctx"> - <DetectChar attribute="Normal Text" context="else_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="else_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="endforeach_ctx"> - <DetectChar attribute="Normal Text" context="endforeach_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="endforeach_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="endfunction_ctx"> - <DetectChar attribute="Normal Text" context="endfunction_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="endfunction_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="endif_ctx"> - <DetectChar attribute="Normal Text" context="endif_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="endif_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="endmacro_ctx"> - <DetectChar attribute="Normal Text" context="endmacro_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="endmacro_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="endwhile_ctx"> - <DetectChar attribute="Normal Text" context="endwhile_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="endwhile_ctx_op"> - <IncludeRules context="EndCmdPop2" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + <DetectChar attribute="Normal Text" context="elseif_ctx_op_nested" char="("/> + <keyword attribute="Named Args" context="#stay" String="elseif_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="execute_process_ctx"> - <DetectChar attribute="Normal Text" context="execute_process_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="execute_process_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="execute_process_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="execute_process_nargs" /> - <keyword attribute="Special Args" context="#stay" String="execute_process_sargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="execute_process_ctx_op_nested" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="execute_process_nargs"/> + <keyword attribute="Special Args" context="#stay" String="execute_process_sargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="execute_process_ctx_op_nested"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + <DetectChar attribute="Normal Text" context="execute_process_ctx_op_nested" char="("/> + <keyword attribute="Named Args" context="#stay" String="execute_process_nargs"/> + <keyword attribute="Special Args" context="#stay" String="execute_process_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="file_ctx"> - <DetectChar attribute="Normal Text" context="file_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="file_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="file_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="file_nargs" /> - <keyword attribute="Special Args" context="#stay" String="file_sargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="file_nargs"/> + <keyword attribute="Special Args" context="#stay" String="file_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="find_file_ctx"> - <DetectChar attribute="Normal Text" context="find_file_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="find_file_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="find_file_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="find_file_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="find_file_nargs"/> + <keyword attribute="Special Args" context="#stay" String="find_file_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="find_library_ctx"> - <DetectChar attribute="Normal Text" context="find_library_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="find_library_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="find_library_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="find_library_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="find_library_nargs"/> + <keyword attribute="Special Args" context="#stay" String="find_file_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="find_package_ctx"> - <DetectChar attribute="Normal Text" context="find_package_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="find_package_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="find_package_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="find_package_nargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="find_path_ctx"> - <DetectChar attribute="Normal Text" context="find_path_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="find_path_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="find_path_nargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="find_program_ctx"> - <DetectChar attribute="Normal Text" context="find_program_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="find_program_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="find_program_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="find_package_nargs"/> + <keyword attribute="Standard Module" context="#stay" String="standard-finder-modules"/> + <keyword attribute="Special Args" context="#stay" String="find_file_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="foreach_ctx"> - <DetectChar attribute="Normal Text" context="foreach_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="foreach_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="foreach_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="foreach_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="foreach_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="function_ctx"> - <DetectChar attribute="Normal Text" context="function_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="function_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="function_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="get_cmake_property_ctx"> - <DetectChar attribute="Normal Text" context="get_cmake_property_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="get_cmake_property_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="get_cmake_property_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Property" context="#stay" String="global-properties" /> - <IncludeRules context="Detect More global-properties" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Special Args" context="#stay" String="get_cmake_property_sargs"/> + <keyword attribute="Property" context="#stay" String="global-properties"/> + <IncludeRules context="Detect More global-properties"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="get_directory_property_ctx"> - <DetectChar attribute="Normal Text" context="get_directory_property_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="get_directory_property_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="get_directory_property_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="get_directory_property_nargs" /> - <keyword attribute="Property" context="#stay" String="directory-properties" /> - <IncludeRules context="Detect More directory-properties" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="get_directory_property_nargs"/> + <keyword attribute="Property" context="#stay" String="directory-properties"/> + <IncludeRules context="Detect More directory-properties"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="get_filename_component_ctx"> - <DetectChar attribute="Normal Text" context="get_filename_component_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="get_filename_component_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="get_filename_component_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="get_filename_component_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="get_filename_component_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="get_property_ctx"> - <DetectChar attribute="Normal Text" context="get_property_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="get_property_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="get_property_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="get_property_nargs" /> - <keyword attribute="Property" context="#stay" String="cache-properties" /> - <keyword attribute="Property" context="#stay" String="directory-properties" /> - <IncludeRules context="Detect More directory-properties" /> - <keyword attribute="Property" context="#stay" String="global-properties" /> - <IncludeRules context="Detect More global-properties" /> - <keyword attribute="Property" context="#stay" String="install-properties" /> - <keyword attribute="Property" context="#stay" String="source-properties" /> - <IncludeRules context="Detect More source-properties" /> - <keyword attribute="Property" context="#stay" String="target-properties" /> - <IncludeRules context="Detect More target-properties" /> - <keyword attribute="Property" context="#stay" String="test-properties" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="get_property_nargs"/> + <keyword attribute="Property" context="#stay" String="cache-properties"/> + <keyword attribute="Property" context="#stay" String="directory-properties"/> + <IncludeRules context="Detect More directory-properties"/> + <keyword attribute="Property" context="#stay" String="global-properties"/> + <IncludeRules context="Detect More global-properties"/> + <keyword attribute="Property" context="#stay" String="install-properties"/> + <keyword attribute="Property" context="#stay" String="source-properties"/> + <IncludeRules context="Detect More source-properties"/> + <keyword attribute="Property" context="#stay" String="target-properties"/> + <IncludeRules context="Detect More target-properties"/> + <keyword attribute="Property" context="#stay" String="test-properties"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="if_ctx"> - <DetectChar attribute="Normal Text" context="if_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="if_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="if_ctx_op"> - <DetectChar attribute="Normal Text" context="if_ctx_op_nested" char="(" /> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="if_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="if_ctx_op_nested" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <WordDetect String="TARGET" attribute="Named Args" context="Target Name"/> + <keyword attribute="Named Args" context="#stay" String="elseif_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="if_ctx_op_nested"> - <IncludeRules context="EndCmdPop" /> - <keyword attribute="Named Args" context="#stay" String="if_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + <DetectChar attribute="Normal Text" context="if_ctx_op_nested" char="("/> + <keyword attribute="Named Args" context="#stay" String="elseif_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="include_ctx"> - <DetectChar attribute="Normal Text" context="include_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="include_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="include_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="include_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="include_nargs"/> + <keyword attribute="Standard Module" context="#stay" String="standard-modules"/> + <keyword attribute="Deprecated Module" context="#stay" String="deprecated-modules"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="include_guard_ctx"> - <DetectChar attribute="Normal Text" context="include_guard_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="include_guard_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="include_guard_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="include_guard_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="include_guard_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="list_ctx"> - <DetectChar attribute="Normal Text" context="list_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="list_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="list_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="list_nargs" /> - <keyword attribute="Special Args" context="#stay" String="list_sargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="macro_ctx"> - <DetectChar attribute="Normal Text" context="macro_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="macro_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="list_nargs"/> + <keyword attribute="Special Args" context="#stay" String="list_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="mark_as_advanced_ctx"> - <DetectChar attribute="Normal Text" context="mark_as_advanced_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="mark_as_advanced_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="mark_as_advanced_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="mark_as_advanced_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="mark_as_advanced_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="math_ctx"> - <DetectChar attribute="Normal Text" context="math_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="math_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="math_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="math_nargs" /> - <keyword attribute="Special Args" context="#stay" String="math_sargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="math_nargs"/> + <keyword attribute="Special Args" context="#stay" String="math_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="message_ctx"> - <DetectChar attribute="Normal Text" context="message_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="message_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="message_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="message_nargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="option_ctx"> - <DetectChar attribute="Normal Text" context="option_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="option_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="message_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="return_ctx"> - <DetectChar attribute="Normal Text" context="return_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="return_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="return_ctx_op"> - <IncludeRules context="EndCmdPop2" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="return_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="separate_arguments_ctx"> - <DetectChar attribute="Normal Text" context="separate_arguments_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="separate_arguments_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="separate_arguments_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="separate_arguments_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="separate_arguments_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="set_directory_properties_ctx"> - <DetectChar attribute="Normal Text" context="set_directory_properties_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="set_directory_properties_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="set_directory_properties_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="set_directory_properties_nargs" /> - <keyword attribute="Property" context="#stay" String="cache-properties" /> - <keyword attribute="Property" context="#stay" String="directory-properties" /> - <IncludeRules context="Detect More directory-properties" /> - <keyword attribute="Property" context="#stay" String="global-properties" /> - <IncludeRules context="Detect More global-properties" /> - <keyword attribute="Property" context="#stay" String="install-properties" /> - <keyword attribute="Property" context="#stay" String="source-properties" /> - <IncludeRules context="Detect More source-properties" /> - <keyword attribute="Property" context="#stay" String="target-properties" /> - <IncludeRules context="Detect More target-properties" /> - <keyword attribute="Property" context="#stay" String="test-properties" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="set_directory_properties_nargs"/> + <keyword attribute="Property" context="#stay" String="cache-properties"/> + <keyword attribute="Property" context="#stay" String="directory-properties"/> + <IncludeRules context="Detect More directory-properties"/> + <keyword attribute="Property" context="#stay" String="global-properties"/> + <IncludeRules context="Detect More global-properties"/> + <keyword attribute="Property" context="#stay" String="install-properties"/> + <keyword attribute="Property" context="#stay" String="source-properties"/> + <IncludeRules context="Detect More source-properties"/> + <keyword attribute="Property" context="#stay" String="target-properties"/> + <IncludeRules context="Detect More target-properties"/> + <keyword attribute="Property" context="#stay" String="test-properties"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="set_property_ctx"> - <DetectChar attribute="Normal Text" context="set_property_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="set_property_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="set_property_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="set_property_nargs" /> - <keyword attribute="Property" context="#stay" String="cache-properties" /> - <keyword attribute="Property" context="#stay" String="directory-properties" /> - <IncludeRules context="Detect More directory-properties" /> - <keyword attribute="Property" context="#stay" String="global-properties" /> - <IncludeRules context="Detect More global-properties" /> - <keyword attribute="Property" context="#stay" String="install-properties" /> - <keyword attribute="Property" context="#stay" String="source-properties" /> - <IncludeRules context="Detect More source-properties" /> - <keyword attribute="Property" context="#stay" String="target-properties" /> - <IncludeRules context="Detect More target-properties" /> - <keyword attribute="Property" context="#stay" String="test-properties" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="set_property_nargs"/> + <keyword attribute="Property" context="#stay" String="cache-properties"/> + <keyword attribute="Property" context="#stay" String="directory-properties"/> + <IncludeRules context="Detect More directory-properties"/> + <keyword attribute="Property" context="#stay" String="global-properties"/> + <IncludeRules context="Detect More global-properties"/> + <keyword attribute="Property" context="#stay" String="install-properties"/> + <keyword attribute="Property" context="#stay" String="source-properties"/> + <IncludeRules context="Detect More source-properties"/> + <keyword attribute="Property" context="#stay" String="target-properties"/> + <IncludeRules context="Detect More target-properties"/> + <keyword attribute="Property" context="#stay" String="test-properties"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="set_ctx"> - <DetectChar attribute="Normal Text" context="set_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="set_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="set_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="set_nargs" /> - <keyword attribute="Special Args" context="#stay" String="set_sargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="site_name_ctx"> - <DetectChar attribute="Normal Text" context="site_name_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="site_name_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="set_nargs"/> + <keyword attribute="Special Args" context="#stay" String="set_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="string_ctx"> - <DetectChar attribute="Normal Text" context="string_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="string_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="string_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="string_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="string_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="unset_ctx"> - <DetectChar attribute="Normal Text" context="unset_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="unset_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="unset_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="unset_nargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="variable_watch_ctx"> - <DetectChar attribute="Normal Text" context="variable_watch_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="variable_watch_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="unset_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="while_ctx"> - <DetectChar attribute="Normal Text" context="while_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="while_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="while_ctx_op"> - <DetectChar attribute="Normal Text" context="while_ctx_op_nested" char="(" /> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="while_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="while_ctx_op_nested" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <WordDetect String="TARGET" attribute="Named Args" context="Target Name"/> + <keyword attribute="Named Args" context="#stay" String="elseif_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="while_ctx_op_nested"> - <IncludeRules context="EndCmdPop" /> - <keyword attribute="Named Args" context="#stay" String="while_nargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="add_compile_definitions_ctx"> - <DetectChar attribute="Normal Text" context="add_compile_definitions_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="add_compile_definitions_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="add_compile_options_ctx"> - <DetectChar attribute="Normal Text" context="add_compile_options_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="add_compile_options_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + <DetectChar attribute="Normal Text" context="while_ctx_op_nested" char="("/> + <keyword attribute="Named Args" context="#stay" String="elseif_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="add_custom_command_ctx"> - <DetectChar attribute="Normal Text" context="add_custom_command_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="add_custom_command_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="add_custom_command_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="add_custom_command_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="add_custom_command_ctx_op_nested" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <WordDetect String="TARGET" attribute="Named Args" context="Target Name"/> + <keyword attribute="Named Args" context="#stay" String="add_custom_command_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="add_custom_command_ctx_op_nested"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + <DetectChar attribute="Normal Text" context="add_custom_command_ctx_op_nested" char="("/> + <keyword attribute="Named Args" context="#stay" String="add_custom_command_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="add_custom_target_ctx"> - <DetectChar attribute="Normal Text" context="add_custom_target_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="add_custom_target_ctx_op_tgt_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="add_custom_target_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="add_custom_target_nargs" /> - <IncludeRules context="User Function Args" /> + <context attribute="Normal Text" lineEndContext="#stay" name="add_custom_target_ctx_op_tgt_first"> + <DetectSpaces/> + <RegExpr attribute="Aliased Targets" context="add_custom_target_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + <RegExpr attribute="Targets" context="add_custom_target_ctx_op" String="&tgt_name_re;"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="add_definitions_ctx"> - <DetectChar attribute="Normal Text" context="add_definitions_ctx_op" char="(" /> + <context attribute="Normal Text" lineEndContext="#stay" name="add_custom_target_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="add_custom_target_ctx_op_nested" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="add_custom_target_nargs"/> + <IncludeRules context="User Function Args"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="add_definitions_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <context attribute="Normal Text" lineEndContext="#stay" name="add_custom_target_ctx_op_nested"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + <DetectChar attribute="Normal Text" context="add_custom_target_ctx_op_nested" char="("/> + <keyword attribute="Named Args" context="#stay" String="add_custom_target_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="add_dependencies_ctx"> - <DetectChar attribute="Normal Text" context="add_dependencies_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="add_dependencies_ctx_op_tgts_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="add_dependencies_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <context attribute="Normal Text" lineEndContext="#stay" name="add_dependencies_ctx_op_tgts_first"> + <DetectSpaces/> + <IncludeRules context="Detect Aliased Targets"/> + <IncludeRules context="Detect Targets"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="add_executable_ctx"> - <DetectChar attribute="Normal Text" context="add_executable_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="add_executable_ctx_op_tgt_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="add_executable_ctx_op_tgt_first"> + <DetectSpaces/> + <RegExpr attribute="Aliased Targets" context="add_executable_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + <RegExpr attribute="Targets" context="add_executable_ctx_op" String="&tgt_name_re;"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="add_executable_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="add_executable_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="add_executable_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="add_library_ctx"> - <DetectChar attribute="Normal Text" context="add_library_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="add_library_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="add_library_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectChar attribute="Normal Text" context="add_library_ctx_op_tgt_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="add_link_options_ctx"> - <DetectChar attribute="Normal Text" context="add_link_options_ctx_op" char="(" /> + <context attribute="Normal Text" lineEndContext="#stay" name="add_library_ctx_op_tgt_first"> + <DetectSpaces/> + <RegExpr attribute="Aliased Targets" context="add_library_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + <RegExpr attribute="Targets" context="add_library_ctx_op" String="&tgt_name_re;"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="add_link_options_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <context attribute="Normal Text" lineEndContext="#stay" name="add_library_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <WordDetect String="ALIAS" attribute="Named Args" context="Target Name"/> + <keyword attribute="Named Args" context="#stay" String="add_library_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="add_subdirectory_ctx"> - <DetectChar attribute="Normal Text" context="add_subdirectory_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="add_subdirectory_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="add_subdirectory_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="add_subdirectory_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="add_subdirectory_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="add_test_ctx"> - <DetectChar attribute="Normal Text" context="add_test_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="add_test_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="add_test_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="add_test_nargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="aux_source_directory_ctx"> - <DetectChar attribute="Normal Text" context="aux_source_directory_ctx_op" char="(" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="add_test_ctx_op_nested" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="add_test_nargs"/> + <IncludeRules context="User Function Args"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="aux_source_directory_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <context attribute="Normal Text" lineEndContext="#stay" name="add_test_ctx_op_nested"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + <DetectChar attribute="Normal Text" context="add_test_ctx_op_nested" char="("/> + <keyword attribute="Named Args" context="#stay" String="add_test_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="build_command_ctx"> - <DetectChar attribute="Normal Text" context="build_command_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="build_command_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="build_command_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="build_command_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <WordDetect String="TARGET" attribute="Named Args" context="Target Name"/> + <keyword attribute="Named Args" context="#stay" String="build_command_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cmake_file_api_ctx"> + <DetectChar attribute="Normal Text" context="cmake_file_api_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cmake_file_api_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cmake_file_api_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="create_test_sourcelist_ctx"> - <DetectChar attribute="Normal Text" context="create_test_sourcelist_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="create_test_sourcelist_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="create_test_sourcelist_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="create_test_sourcelist_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="create_test_sourcelist_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="define_property_ctx"> - <DetectChar attribute="Normal Text" context="define_property_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="define_property_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="define_property_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="define_property_nargs" /> - <keyword attribute="Property" context="#stay" String="cache-properties" /> - <keyword attribute="Property" context="#stay" String="directory-properties" /> - <IncludeRules context="Detect More directory-properties" /> - <keyword attribute="Property" context="#stay" String="global-properties" /> - <IncludeRules context="Detect More global-properties" /> - <keyword attribute="Property" context="#stay" String="install-properties" /> - <keyword attribute="Property" context="#stay" String="source-properties" /> - <IncludeRules context="Detect More source-properties" /> - <keyword attribute="Property" context="#stay" String="target-properties" /> - <IncludeRules context="Detect More target-properties" /> - <keyword attribute="Property" context="#stay" String="test-properties" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="define_property_nargs"/> + <keyword attribute="Property" context="#stay" String="cache-properties"/> + <keyword attribute="Property" context="#stay" String="directory-properties"/> + <IncludeRules context="Detect More directory-properties"/> + <keyword attribute="Property" context="#stay" String="global-properties"/> + <IncludeRules context="Detect More global-properties"/> + <keyword attribute="Property" context="#stay" String="install-properties"/> + <keyword attribute="Property" context="#stay" String="source-properties"/> + <IncludeRules context="Detect More source-properties"/> + <keyword attribute="Property" context="#stay" String="target-properties"/> + <IncludeRules context="Detect More target-properties"/> + <keyword attribute="Property" context="#stay" String="test-properties"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="enable_language_ctx"> - <DetectChar attribute="Normal Text" context="enable_language_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="enable_language_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="enable_language_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="enable_language_nargs" /> - <keyword attribute="Special Args" context="#stay" String="enable_language_sargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="enable_testing_ctx"> - <DetectChar attribute="Normal Text" context="enable_testing_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="enable_testing_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="enable_language_nargs"/> + <keyword attribute="Special Args" context="#stay" String="enable_language_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="export_ctx"> - <DetectChar attribute="Normal Text" context="export_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="export_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="export_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="export_nargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="fltk_wrap_ui_ctx"> - <DetectChar attribute="Normal Text" context="fltk_wrap_ui_ctx_op" char="(" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <WordDetect String="TARGETS" attribute="Named Args" context="export_tgts"/> + <keyword attribute="Named Args" context="#stay" String="export_nargs"/> + <IncludeRules context="User Function Args"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="fltk_wrap_ui_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <context attribute="Normal Text" lineEndContext="#stay" name="export_tgts"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#pop" String="export_nargs"/> + <IncludeRules context="Detect Aliased Targets"/> + <IncludeRules context="Detect Targets"/> + <IncludeRules context="User Function Args"/> + <IncludeRules context="LineError"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="get_source_file_property_ctx"> - <DetectChar attribute="Normal Text" context="get_source_file_property_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="get_source_file_property_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="get_source_file_property_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Property" context="#stay" String="source-properties" /> - <IncludeRules context="Detect More source-properties" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="get_source_file_property_nargs"/> + <keyword attribute="Property" context="#stay" String="source-properties"/> + <IncludeRules context="Detect More source-properties"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="get_target_property_ctx"> - <DetectChar attribute="Normal Text" context="get_target_property_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="get_target_property_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="get_target_property_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Property" context="#stay" String="target-properties" /> - <IncludeRules context="Detect More target-properties" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Property" context="#stay" String="target-properties"/> + <IncludeRules context="Detect More target-properties"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="get_test_property_ctx"> - <DetectChar attribute="Normal Text" context="get_test_property_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="get_test_property_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="get_test_property_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Property" context="#stay" String="test-properties" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="get_test_property_nargs"/> + <keyword attribute="Property" context="#stay" String="test-properties"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="include_directories_ctx"> - <DetectChar attribute="Normal Text" context="include_directories_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="include_directories_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="include_directories_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="include_directories_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="include_directories_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="include_external_msproject_ctx"> - <DetectChar attribute="Normal Text" context="include_external_msproject_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="include_external_msproject_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="include_external_msproject_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="include_external_msproject_nargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="include_regular_expression_ctx"> - <DetectChar attribute="Normal Text" context="include_regular_expression_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="include_regular_expression_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="include_external_msproject_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="install_ctx"> - <DetectChar attribute="Normal Text" context="install_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="install_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="install_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="install_nargs" /> - <keyword attribute="Special Args" context="#stay" String="install_sargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <WordDetect String="TARGETS" attribute="Named Args" context="install_tgts"/> + <keyword attribute="Named Args" context="#stay" String="install_nargs"/> + <keyword attribute="Special Args" context="#stay" String="install_sargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="install_tgts"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#pop" String="install_nargs"/> + <IncludeRules context="Detect Aliased Targets"/> + <IncludeRules context="Detect Targets"/> + <IncludeRules context="User Function Args"/> + <IncludeRules context="LineError"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="link_directories_ctx"> - <DetectChar attribute="Normal Text" context="link_directories_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="link_directories_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="link_directories_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="link_directories_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="link_directories_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="link_libraries_ctx"> - <DetectChar attribute="Normal Text" context="link_libraries_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="link_libraries_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="link_libraries_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="link_libraries_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Special Args" context="#stay" String="link_libraries_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="load_cache_ctx"> - <DetectChar attribute="Normal Text" context="load_cache_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="load_cache_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="load_cache_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="load_cache_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="load_cache_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="project_ctx"> - <DetectChar attribute="Normal Text" context="project_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="project_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="project_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="project_nargs" /> - <keyword attribute="Special Args" context="#stay" String="project_sargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="qt_wrap_cpp_ctx"> - <DetectChar attribute="Normal Text" context="qt_wrap_cpp_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="qt_wrap_cpp_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="qt_wrap_ui_ctx"> - <DetectChar attribute="Normal Text" context="qt_wrap_ui_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="qt_wrap_ui_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="remove_definitions_ctx"> - <DetectChar attribute="Normal Text" context="remove_definitions_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="remove_definitions_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="project_nargs"/> + <keyword attribute="Special Args" context="#stay" String="project_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="set_source_files_properties_ctx"> - <DetectChar attribute="Normal Text" context="set_source_files_properties_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="set_source_files_properties_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="set_source_files_properties_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="set_source_files_properties_nargs" /> - <keyword attribute="Property" context="#stay" String="source-properties" /> - <IncludeRules context="Detect More source-properties" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="set_source_files_properties_nargs"/> + <keyword attribute="Property" context="#stay" String="source-properties"/> + <IncludeRules context="Detect More source-properties"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="set_target_properties_ctx"> - <DetectChar attribute="Normal Text" context="set_target_properties_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="set_target_properties_ctx_op_tgts_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="set_target_properties_ctx_op_tgts_first"> + <DetectSpaces/> + +<!-- NOTE Handle the only case in CMake nowadays: + 1. `set_target_properties` have a named keyword (`PROPERTIES`) after targets list + --> + <keyword context="set_target_properties_ctx_op" String="set_directory_properties_nargs" lookAhead="true"/> + <IncludeRules context="Detect Aliased Targets"/> + <IncludeRules context="Detect Targets"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="set_target_properties_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="set_target_properties_nargs" /> - <keyword attribute="Property" context="#stay" String="target-properties" /> - <IncludeRules context="Detect More target-properties" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="set_directory_properties_nargs"/> + <keyword attribute="Property" context="#stay" String="target-properties"/> + <IncludeRules context="Detect More target-properties"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="set_tests_properties_ctx"> - <DetectChar attribute="Normal Text" context="set_tests_properties_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="set_tests_properties_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="set_tests_properties_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="set_tests_properties_nargs" /> - <keyword attribute="Property" context="#stay" String="test-properties" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="set_tests_properties_nargs"/> + <keyword attribute="Property" context="#stay" String="test-properties"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="source_group_ctx"> - <DetectChar attribute="Normal Text" context="source_group_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="source_group_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="source_group_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="source_group_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="source_group_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="target_compile_definitions_ctx"> - <DetectChar attribute="Normal Text" context="target_compile_definitions_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="target_compile_definitions_ctx_op_tgt_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="target_compile_definitions_ctx_op_tgt_first"> + <DetectSpaces/> + <RegExpr attribute="Aliased Targets" context="target_compile_definitions_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + <RegExpr attribute="Targets" context="target_compile_definitions_ctx_op" String="&tgt_name_re;"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="target_compile_definitions_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="target_compile_definitions_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="target_compile_definitions_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="target_compile_features_ctx"> - <DetectChar attribute="Normal Text" context="target_compile_features_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="target_compile_features_ctx_op_tgt_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="target_compile_features_ctx_op_tgt_first"> + <DetectSpaces/> + <RegExpr attribute="Aliased Targets" context="target_compile_features_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + <RegExpr attribute="Targets" context="target_compile_features_ctx_op" String="&tgt_name_re;"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="target_compile_features_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="target_compile_features_nargs" /> - <keyword attribute="Special Args" context="#stay" String="target_compile_features_sargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="target_compile_definitions_nargs"/> + <keyword attribute="Special Args" context="#stay" String="target_compile_features_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="target_compile_options_ctx"> - <DetectChar attribute="Normal Text" context="target_compile_options_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="target_compile_options_ctx_op_tgt_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="target_compile_options_ctx_op_tgt_first"> + <DetectSpaces/> + <RegExpr attribute="Aliased Targets" context="target_compile_options_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + <RegExpr attribute="Targets" context="target_compile_options_ctx_op" String="&tgt_name_re;"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="target_compile_options_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="target_compile_options_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="target_compile_options_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="target_include_directories_ctx"> - <DetectChar attribute="Normal Text" context="target_include_directories_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="target_include_directories_ctx_op_tgt_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="target_include_directories_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="target_include_directories_nargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="target_link_directories_ctx"> - <DetectChar attribute="Normal Text" context="target_link_directories_ctx_op" char="(" /> + <context attribute="Normal Text" lineEndContext="#stay" name="target_include_directories_ctx_op_tgt_first"> + <DetectSpaces/> + <RegExpr attribute="Aliased Targets" context="target_include_directories_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + <RegExpr attribute="Targets" context="target_include_directories_ctx_op" String="&tgt_name_re;"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="target_link_directories_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="target_link_directories_nargs" /> - <IncludeRules context="User Function Args" /> + <context attribute="Normal Text" lineEndContext="#stay" name="target_include_directories_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="target_include_directories_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="target_link_libraries_ctx"> - <DetectChar attribute="Normal Text" context="target_link_libraries_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="target_link_libraries_ctx_op_tgt_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="target_link_libraries_ctx_op_tgt_first"> + <DetectSpaces/> + <RegExpr attribute="Aliased Targets" context="target_link_libraries_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + <RegExpr attribute="Targets" context="target_link_libraries_ctx_op" String="&tgt_name_re;"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="target_link_libraries_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="target_link_libraries_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="target_compile_definitions_nargs"/> + <keyword attribute="Special Args" context="#stay" String="link_libraries_sargs"/> + <IncludeRules context="User Function Args"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="target_link_options_ctx"> - <DetectChar attribute="Normal Text" context="target_link_options_ctx_op" char="(" /> + <context attribute="Normal Text" lineEndContext="#stay" name="target_precompile_headers_ctx"> + <DetectChar attribute="Normal Text" context="target_precompile_headers_ctx_op_tgt_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="target_link_options_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="target_link_options_nargs" /> - <IncludeRules context="User Function Args" /> + <context attribute="Normal Text" lineEndContext="#stay" name="target_precompile_headers_ctx_op_tgt_first"> + <DetectSpaces/> + <RegExpr attribute="Aliased Targets" context="target_precompile_headers_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + <RegExpr attribute="Targets" context="target_precompile_headers_ctx_op" String="&tgt_name_re;"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="target_precompile_headers_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="target_precompile_headers_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="target_sources_ctx"> - <DetectChar attribute="Normal Text" context="target_sources_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="target_sources_ctx_op_tgt_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="target_sources_ctx_op_tgt_first"> + <DetectSpaces/> + <RegExpr attribute="Aliased Targets" context="target_sources_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + <RegExpr attribute="Targets" context="target_sources_ctx_op" String="&tgt_name_re;"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="target_sources_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="target_sources_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="target_sources_nargs"/> + <keyword attribute="Special Args" context="#stay" String="target_sources_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="try_compile_ctx"> - <DetectChar attribute="Normal Text" context="try_compile_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="try_compile_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="try_compile_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="try_compile_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="try_compile_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="try_run_ctx"> - <DetectChar attribute="Normal Text" context="try_run_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="try_run_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="try_run_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="try_run_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="try_run_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_build_ctx"> - <DetectChar attribute="Normal Text" context="ctest_build_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="ctest_build_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_build_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="ctest_build_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="ctest_build_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_configure_ctx"> - <DetectChar attribute="Normal Text" context="ctest_configure_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="ctest_configure_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_configure_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="ctest_configure_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="ctest_configure_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_coverage_ctx"> - <DetectChar attribute="Normal Text" context="ctest_coverage_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="ctest_coverage_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_coverage_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="ctest_coverage_nargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="ctest_empty_binary_directory_ctx"> - <DetectChar attribute="Normal Text" context="ctest_empty_binary_directory_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="ctest_empty_binary_directory_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="ctest_coverage_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_memcheck_ctx"> - <DetectChar attribute="Normal Text" context="ctest_memcheck_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="ctest_memcheck_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_memcheck_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="ctest_memcheck_nargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="ctest_read_custom_files_ctx"> - <DetectChar attribute="Normal Text" context="ctest_read_custom_files_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="ctest_read_custom_files_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="ctest_memcheck_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_run_script_ctx"> - <DetectChar attribute="Normal Text" context="ctest_run_script_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="ctest_run_script_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_run_script_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="ctest_run_script_nargs" /> - <IncludeRules context="User Function Args" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="ctest_sleep_ctx"> - <DetectChar attribute="Normal Text" context="ctest_sleep_ctx_op" char="(" /> - </context> - <context attribute="Normal Text" lineEndContext="#stay" name="ctest_sleep_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="ctest_run_script_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_start_ctx"> - <DetectChar attribute="Normal Text" context="ctest_start_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="ctest_start_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_start_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="ctest_start_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="ctest_start_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_submit_ctx"> - <DetectChar attribute="Normal Text" context="ctest_submit_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="ctest_submit_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_submit_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="ctest_submit_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="ctest_submit_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_test_ctx"> - <DetectChar attribute="Normal Text" context="ctest_test_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="ctest_test_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_test_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="ctest_test_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="ctest_test_nargs"/> + <keyword attribute="Special Args" context="#stay" String="ctest_test_sargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_update_ctx"> - <DetectChar attribute="Normal Text" context="ctest_update_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="ctest_update_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_update_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="ctest_update_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="ctest_update_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_upload_ctx"> - <DetectChar attribute="Normal Text" context="ctest_upload_ctx_op" char="(" /> + <DetectChar attribute="Normal Text" context="ctest_upload_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="ctest_upload_ctx_op"> - <IncludeRules context="EndCmdPop2" /> - <keyword attribute="Named Args" context="#stay" String="ctest_upload_nargs" /> - <IncludeRules context="User Function Args" /> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="ctest_upload_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="android_add_test_data_ctx"> + <DetectChar attribute="Normal Text" context="android_add_test_data_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="android_add_test_data_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="android_add_test_data_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_c_source_compiles_ctx"> + <DetectChar attribute="Normal Text" context="check_c_source_compiles_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_c_source_compiles_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="check_c_source_compiles_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_fortran_source_compiles_ctx"> + <DetectChar attribute="Normal Text" context="check_fortran_source_compiles_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_fortran_source_compiles_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="check_fortran_source_compiles_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_fortran_source_runs_ctx"> + <DetectChar attribute="Normal Text" context="check_fortran_source_runs_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_fortran_source_runs_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="check_fortran_source_runs_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_include_files_ctx"> + <DetectChar attribute="Normal Text" context="check_include_files_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_include_files_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="check_include_files_nargs"/> + <keyword attribute="Special Args" context="#stay" String="check_include_files_sargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_ipo_supported_ctx"> + <DetectChar attribute="Normal Text" context="check_ipo_supported_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_ipo_supported_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="check_ipo_supported_nargs"/> + <keyword attribute="Special Args" context="#stay" String="check_ipo_supported_sargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_language_ctx"> + <DetectChar attribute="Normal Text" context="check_language_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_language_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Special Args" context="#stay" String="enable_language_sargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_pie_supported_ctx"> + <DetectChar attribute="Normal Text" context="check_pie_supported_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_pie_supported_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="check_pie_supported_nargs"/> + <keyword attribute="Special Args" context="#stay" String="check_pie_supported_sargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_type_size_ctx"> + <DetectChar attribute="Normal Text" context="check_type_size_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="check_type_size_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="check_type_size_nargs"/> + <keyword attribute="Special Args" context="#stay" String="check_include_files_sargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cmake_add_fortran_subdirectory_ctx"> + <DetectChar attribute="Normal Text" context="cmake_add_fortran_subdirectory_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cmake_add_fortran_subdirectory_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cmake_add_fortran_subdirectory_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="configure_package_config_file_ctx"> + <DetectChar attribute="Normal Text" context="configure_package_config_file_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="configure_package_config_file_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="configure_package_config_file_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="write_basic_package_version_file_ctx"> + <DetectChar attribute="Normal Text" context="write_basic_package_version_file_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="write_basic_package_version_file_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="write_basic_package_version_file_nargs"/> + <keyword attribute="Special Args" context="#stay" String="write_basic_package_version_file_sargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cmake_print_properties_ctx"> + <DetectChar attribute="Normal Text" context="cmake_print_properties_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cmake_print_properties_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <WordDetect String="TARGETS" attribute="Named Args" context="cmake_print_properties_tgts"/> + <keyword attribute="Named Args" context="#stay" String="cmake_print_properties_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cmake_print_properties_tgts"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#pop" String="cmake_print_properties_nargs"/> + <IncludeRules context="Detect Aliased Targets"/> + <IncludeRules context="Detect Targets"/> + <IncludeRules context="User Function Args"/> + <IncludeRules context="LineError"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cmake_push_check_state_ctx"> + <DetectChar attribute="Normal Text" context="cmake_push_check_state_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cmake_push_check_state_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cmake_push_check_state_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_add_component_ctx"> + <DetectChar attribute="Normal Text" context="cpack_add_component_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_add_component_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cpack_add_component_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_add_component_group_ctx"> + <DetectChar attribute="Normal Text" context="cpack_add_component_group_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_add_component_group_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cpack_add_component_group_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_add_install_type_ctx"> + <DetectChar attribute="Normal Text" context="cpack_add_install_type_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_add_install_type_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cpack_add_install_type_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_configure_downloads_ctx"> + <DetectChar attribute="Normal Text" context="cpack_configure_downloads_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_configure_downloads_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cpack_configure_downloads_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_configure_component_ctx"> + <DetectChar attribute="Normal Text" context="cpack_ifw_configure_component_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_configure_component_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cpack_ifw_configure_component_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_configure_component_group_ctx"> + <DetectChar attribute="Normal Text" context="cpack_ifw_configure_component_group_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_configure_component_group_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cpack_ifw_configure_component_group_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_add_repository_ctx"> + <DetectChar attribute="Normal Text" context="cpack_ifw_add_repository_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_add_repository_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cpack_ifw_add_repository_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_update_repository_ctx"> + <DetectChar attribute="Normal Text" context="cpack_ifw_update_repository_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_update_repository_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="cpack_ifw_update_repository_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="ctest_coverage_collect_gcov_ctx"> + <DetectChar attribute="Normal Text" context="ctest_coverage_collect_gcov_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="ctest_coverage_collect_gcov_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="ctest_coverage_collect_gcov_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="ExternalData_Add_Target_ctx"> + <DetectChar attribute="Normal Text" context="ExternalData_Add_Target_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="ExternalData_Add_Target_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="ExternalData_Add_Target_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="ExternalProject_Add_ctx"> + <DetectChar attribute="Normal Text" context="ExternalProject_Add_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="ExternalProject_Add_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="ExternalProject_Add_nargs"/> + <keyword attribute="Special Args" context="#stay" String="ExternalProject_Add_sargs"/> + <keyword attribute="Property" context="#stay" String="target-properties"/> + <IncludeRules context="Detect More target-properties"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="ExternalProject_Add_Step_ctx"> + <DetectChar attribute="Normal Text" context="ExternalProject_Add_Step_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="ExternalProject_Add_Step_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="ExternalProject_Add_Step_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="ExternalProject_Add_StepTargets_ctx"> + <DetectChar attribute="Normal Text" context="ExternalProject_Add_StepTargets_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="ExternalProject_Add_StepTargets_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="ExternalProject_Add_StepTargets_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="feature_summary_ctx"> + <DetectChar attribute="Normal Text" context="feature_summary_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="feature_summary_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="feature_summary_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="set_package_properties_ctx"> + <DetectChar attribute="Normal Text" context="set_package_properties_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="set_package_properties_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="set_package_properties_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="FetchContent_Declare_ctx"> + <DetectChar attribute="Normal Text" context="FetchContent_Declare_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="FetchContent_Declare_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="FetchContent_Declare_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="FetchContent_Populate_ctx"> + <DetectChar attribute="Normal Text" context="FetchContent_Populate_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="FetchContent_Populate_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="FetchContent_Populate_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="FetchContent_GetProperties_ctx"> + <DetectChar attribute="Normal Text" context="FetchContent_GetProperties_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="FetchContent_GetProperties_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="FetchContent_GetProperties_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="find_package_handle_standard_args_ctx"> + <DetectChar attribute="Normal Text" context="find_package_handle_standard_args_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="find_package_handle_standard_args_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="find_package_handle_standard_args_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="find_package_check_version_ctx"> + <DetectChar attribute="Normal Text" context="find_package_check_version_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="find_package_check_version_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="find_package_check_version_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="FortranCInterface_HEADER_ctx"> + <DetectChar attribute="Normal Text" context="FortranCInterface_HEADER_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="FortranCInterface_HEADER_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="FortranCInterface_HEADER_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="FortranCInterface_VERIFY_ctx"> + <DetectChar attribute="Normal Text" context="FortranCInterface_VERIFY_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="FortranCInterface_VERIFY_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="FortranCInterface_VERIFY_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="generate_export_header_ctx"> + <DetectChar attribute="Normal Text" context="generate_export_header_ctx_op_tgt_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="generate_export_header_ctx_op_tgt_first"> + <DetectSpaces/> + <RegExpr attribute="Aliased Targets" context="generate_export_header_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + <RegExpr attribute="Targets" context="generate_export_header_ctx_op" String="&tgt_name_re;"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="generate_export_header_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="generate_export_header_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="gtest_add_tests_ctx"> + <DetectChar attribute="Normal Text" context="gtest_add_tests_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="gtest_add_tests_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <WordDetect String="TARGET" attribute="Named Args" context="Target Name"/> + <keyword attribute="Named Args" context="#stay" String="gtest_add_tests_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="gtest_discover_tests_ctx"> + <DetectChar attribute="Normal Text" context="gtest_discover_tests_ctx_op_tgt_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="gtest_discover_tests_ctx_op_tgt_first"> + <DetectSpaces/> + <RegExpr attribute="Aliased Targets" context="gtest_discover_tests_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + <RegExpr attribute="Targets" context="gtest_discover_tests_ctx_op" String="&tgt_name_re;"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="gtest_discover_tests_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="gtest_discover_tests_nargs"/> + <keyword attribute="Special Args" context="#stay" String="gtest_discover_tests_sargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="add_jar_ctx"> + <DetectChar attribute="Normal Text" context="add_jar_ctx_op_tgt_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="add_jar_ctx_op_tgt_first"> + <DetectSpaces/> + <RegExpr attribute="Aliased Targets" context="add_jar_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + <RegExpr attribute="Targets" context="add_jar_ctx_op" String="&tgt_name_re;"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="add_jar_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="add_jar_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="install_jar_ctx"> + <DetectChar attribute="Normal Text" context="install_jar_ctx_op_tgt_first" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="install_jar_ctx_op_tgt_first"> + <DetectSpaces/> + <RegExpr attribute="Aliased Targets" context="install_jar_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + <RegExpr attribute="Targets" context="install_jar_ctx_op" String="&tgt_name_re;"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="install_jar_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="install_jar_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="create_javah_ctx"> + <DetectChar attribute="Normal Text" context="create_javah_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="create_javah_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <WordDetect String="TARGET" attribute="Named Args" context="Target Name"/> + <keyword attribute="Named Args" context="#stay" String="create_javah_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="install_jar_exports_ctx"> + <DetectChar attribute="Normal Text" context="install_jar_exports_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="install_jar_exports_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <WordDetect String="TARGETS" attribute="Named Args" context="install_jar_exports_tgts"/> + <keyword attribute="Named Args" context="#stay" String="install_jar_exports_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="install_jar_exports_tgts"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#pop" String="install_jar_exports_nargs"/> + <IncludeRules context="Detect Aliased Targets"/> + <IncludeRules context="Detect Targets"/> + <IncludeRules context="User Function Args"/> + <IncludeRules context="LineError"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="export_jars_ctx"> + <DetectChar attribute="Normal Text" context="export_jars_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="export_jars_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <WordDetect String="TARGETS" attribute="Named Args" context="export_jars_tgts"/> + <keyword attribute="Named Args" context="#stay" String="export_jars_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="export_jars_tgts"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#pop" String="export_jars_nargs"/> + <IncludeRules context="Detect Aliased Targets"/> + <IncludeRules context="Detect Targets"/> + <IncludeRules context="User Function Args"/> + <IncludeRules context="LineError"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="find_jar_ctx"> + <DetectChar attribute="Normal Text" context="find_jar_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="find_jar_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="find_jar_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="create_javadoc_ctx"> + <DetectChar attribute="Normal Text" context="create_javadoc_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="create_javadoc_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="create_javadoc_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="swig_add_library_ctx"> + <DetectChar attribute="Normal Text" context="swig_add_library_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="swig_add_library_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="swig_add_library_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="squish_add_test_ctx"> + <DetectChar attribute="Normal Text" context="squish_add_test_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="squish_add_test_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="squish_add_test_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="bison_target_ctx"> + <DetectChar attribute="Normal Text" context="bison_target_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="bison_target_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="bison_target_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="doxygen_add_docs_ctx"> + <DetectChar attribute="Normal Text" context="doxygen_add_docs_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="doxygen_add_docs_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="doxygen_add_docs_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="env_module_ctx"> + <DetectChar attribute="Normal Text" context="env_module_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="env_module_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="env_module_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="env_module_swap_ctx"> + <DetectChar attribute="Normal Text" context="env_module_swap_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="env_module_swap_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="env_module_swap_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="flex_target_ctx"> + <DetectChar attribute="Normal Text" context="flex_target_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="flex_target_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="flex_target_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="gettext_create_translations_ctx"> + <DetectChar attribute="Normal Text" context="gettext_create_translations_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="gettext_create_translations_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="gettext_create_translations_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="gettext_process_pot_file_ctx"> + <DetectChar attribute="Normal Text" context="gettext_process_pot_file_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="gettext_process_pot_file_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="gettext_process_pot_file_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="gettext_process_po_files_ctx"> + <DetectChar attribute="Normal Text" context="gettext_process_po_files_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="gettext_process_po_files_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="gettext_process_po_files_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="matlab_add_unit_test_ctx"> + <DetectChar attribute="Normal Text" context="matlab_add_unit_test_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="matlab_add_unit_test_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="matlab_add_unit_test_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="matlab_add_mex_ctx"> + <DetectChar attribute="Normal Text" context="matlab_add_mex_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="matlab_add_mex_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="matlab_add_mex_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="pkg_check_modules_ctx"> + <DetectChar attribute="Normal Text" context="pkg_check_modules_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="pkg_check_modules_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="pkg_check_modules_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="pkg_get_variable_ctx"> + <DetectChar attribute="Normal Text" context="pkg_get_variable_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="pkg_get_variable_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="pkg_get_variable_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="protobuf_generate_cpp_ctx"> + <DetectChar attribute="Normal Text" context="protobuf_generate_cpp_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="protobuf_generate_cpp_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="protobuf_generate_cpp_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="Python_add_library_ctx"> + <DetectChar attribute="Normal Text" context="Python_add_library_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="Python_add_library_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="Python_add_library_nargs"/> + <IncludeRules context="User Function Args"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="Subversion_WC_INFO_ctx"> + <DetectChar attribute="Normal Text" context="Subversion_WC_INFO_ctx_op" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="Subversion_WC_INFO_ctx_op"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <keyword attribute="Named Args" context="#stay" String="Subversion_WC_INFO_nargs"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="Detect More global-properties"> - <RegExpr attribute="Property" context="#stay" String="\bFeatureSummary_&id_re;_DESCRIPTION\b" /> + <RegExpr attribute="Property" context="#stay" String="\b(?:FeatureSummary_&var_ref_re;_DESCRIPTION)\b"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="Detect More directory-properties"> - <RegExpr attribute="Property" context="#stay" String="\bINTERPROCEDURAL_OPTIMIZATION_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bVS_GLOBAL_SECTION_POST_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bVS_GLOBAL_SECTION_PRE_&id_re;\b" /> + <RegExpr attribute="Property" context="#stay" String="\b(?:(INTERPROCEDURAL_OPTIMIZATION|VS_GLOBAL_SECTION_(POST|PRE))_&var_ref_re;)\b"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="Detect More target-properties"> - <RegExpr attribute="Property" context="#stay" String="\bARCHIVE_OUTPUT_DIRECTORY_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bARCHIVE_OUTPUT_NAME_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bCOMPILE_PDB_NAME_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bCOMPILE_PDB_OUTPUT_DIRECTORY_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\b&id_re;_OUTPUT_NAME\b" /> - <RegExpr attribute="Property" context="#stay" String="\b&id_re;_POSTFIX\b" /> - <RegExpr attribute="Property" context="#stay" String="\bEXCLUDE_FROM_DEFAULT_BUILD_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_IMPLIB_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_LIBNAME_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_LINK_DEPENDENT_LIBRARIES_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_LINK_INTERFACE_LANGUAGES_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_LINK_INTERFACE_LIBRARIES_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_LINK_INTERFACE_MULTIPLICITY_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_LOCATION_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_NO_SONAME_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_OBJECTS_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_SONAME_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bINTERPROCEDURAL_OPTIMIZATION_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\b&id_re;_CLANG_TIDY\b" /> - <RegExpr attribute="Property" context="#stay" String="\b&id_re;_COMPILER_LAUNCHER\b" /> - <RegExpr attribute="Property" context="#stay" String="\b&id_re;_CPPCHECK\b" /> - <RegExpr attribute="Property" context="#stay" String="\b&id_re;_CPPLINT\b" /> - <RegExpr attribute="Property" context="#stay" String="\b&id_re;_INCLUDE_WHAT_YOU_USE\b" /> - <RegExpr attribute="Property" context="#stay" String="\b&id_re;_VISIBILITY_PRESET\b" /> - <RegExpr attribute="Property" context="#stay" String="\bLIBRARY_OUTPUT_DIRECTORY_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bLIBRARY_OUTPUT_NAME_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bLINK_FLAGS_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bLINK_INTERFACE_LIBRARIES_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bLINK_INTERFACE_MULTIPLICITY_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bLOCATION_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bMAP_IMPORTED_CONFIG_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bOSX_ARCHITECTURES_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bOUTPUT_NAME_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bPDB_NAME_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bPDB_OUTPUT_DIRECTORY_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bRUNTIME_OUTPUT_DIRECTORY_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bRUNTIME_OUTPUT_NAME_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bSTATIC_LIBRARY_FLAGS_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bVS_DOTNET_REFERENCE_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bVS_DOTNET_REFERENCEPROP_&id_re;_TAG_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bVS_GLOBAL_&id_re;\b" /> - <RegExpr attribute="Property" context="#stay" String="\bXCODE_ATTRIBUTE_&id_re;\b" /> + <RegExpr attribute="Property" context="#stay" String="\b(?:&var_ref_re;_((COMPIL|LINK)ER_LAUNCHER|CLANG_TIDY(_EXPORT_FIXES_DIR)?|CPP(CHECK|LINT)|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|((ARCHIVE|LIBRARY|RUNTIME)_OUTPUT_(DIRECTORY|NAME)|COMPILE_PDB_(NAME|OUTPUT_DIRECTORY)|CXX_MODULE_(DIRS|SET)|EXCLUDE_FROM_DEFAULT_BUILD|FRAMEWORK_MULTI_CONFIG_POSTFIX|HEADER_(DIRS|SET)|IMPORTED_((NO_)?SONAME|IMPLIB|LIBNAME|LINK_(DEPENDENT_LIBRARIES|INTERFACE_(LANGUAGES|LIBRARIES|MULTIPLICITY))|LOCATION|OBJECTS)|INTERPROCEDURAL_OPTIMIZATION|LINK_(FLAGS|INTERFACE_(LIBRARIES|MULTIPLICITY))|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_(NAME|OUTPUT_DIRECTORY)|STATIC_LIBRARY_FLAGS|VS_(DOTNET_REFERENCE(PROP_&var_ref_re;_TAG)?|GLOBAL|SOURCE_SETTINGS))_&var_ref_re;|XCODE_(ATTRIBUTE_&var_ref_re;|EMBED_&var_ref_re;(_((CODE_SIGN|REMOVE_HEADERS)_ON_COPY|PATH))?))\b"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="Detect More source-properties"> - <RegExpr attribute="Property" context="#stay" String="\bVS_CSHARP_&id_re;\b" /> - </context> - - <context attribute="Normal Text" lineEndContext="#stay" name="EndCmdPop"> - <DetectChar attribute="Normal Text" context="#pop" char=")" /> - </context> - - <context attribute="Normal Text" lineEndContext="#stay" name="EndCmdPop2"> - <DetectChar attribute="Normal Text" context="#pop#pop" char=")" /> + <RegExpr attribute="Property" context="#stay" String="\b(?:VS_CSHARP_&var_ref_re;)\b"/> </context> <context attribute="User Function/Macro" lineEndContext="#stay" name="User Function"> - <DetectChar attribute="Normal Text" context="User Function Opened" char="(" /> - <IncludeRules context="EndCmdPop2" /> + <DetectChar attribute="Normal Text" context="User Function Opened" char="("/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="User Function Opened"> - <IncludeRules context="EndCmdPop2" /> - <IncludeRules context="User Function Args" /> + <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/> + <IncludeRules context="User Function Args"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="Detect Builtin Variables"> - <keyword attribute="Builtin Variable" context="#stay" String="variables" insensitive="false" /> - <IncludeRules context="Detect More Builtin Variables" /> - <RegExpr attribute="Internal Name" context="#stay" String="\b_&id_re;\b" /> + <RegExpr attribute="Internal Name" context="#stay" String="\b_&var_ref_re;\b"/> + <keyword attribute="CMake Internal Variable" context="#stay" String="deprecated-or-internal-variables" insensitive="false"/> + <keyword attribute="Builtin Variable" context="#stay" String="variables" insensitive="false"/> + <IncludeRules context="Detect More Builtin Variables"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="Detect More Builtin Variables"> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_BINARY_DIR\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_SOURCE_DIR\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_VERSION\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_VERSION_MAJOR\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_VERSION_MINOR\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_VERSION_PATCH\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_VERSION_TWEAK\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_ROOT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;__TRYRUN_OUTPUT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_CONSIDERED_CONFIGS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_CONSIDERED_VERSIONS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_COMPONENTS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_QUIETLY\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_REQUIRED\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_REQUIRED_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_VERSION\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_VERSION_COUNT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_VERSION_EXACT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_VERSION_MAJOR\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_VERSION_MINOR\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_VERSION_PATCH\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_VERSION_TWEAK\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FOUND\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_INCLUDE_DIRS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_LIBRARIES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_LIBRARY_DIRS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_VERSION_COUNT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_VERSION_STRING\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_POSTFIX\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_ANDROID_TOOLCHAIN_MACHINE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_ANDROID_TOOLCHAIN_PREFIX\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_ANDROID_TOOLCHAIN_SUFFIX\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_ARCHIVE_APPEND\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_ARCHIVE_CREATE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_ARCHIVE_FINISH\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_CLANG_TIDY\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_ABI\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_AR\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_EXTERNAL_TOOLCHAIN\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_ID\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_LAUNCHER\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_LOADED\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_RANLIB\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_TARGET\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_VERSION\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILE_OBJECT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_CPPCHECK\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_CPPLINT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_CREATE_SHARED_LIBRARY\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_CREATE_SHARED_MODULE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_CREATE_STATIC_LIBRARY\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_DEBUG\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_DEBUG_INIT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_INIT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_MINSIZEREL\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_MINSIZEREL_INIT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_RELEASE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_RELEASE_INIT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_RELWITHDEBINFO\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_RELWITHDEBINFO_INIT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_GHS_KERNEL_FLAGS_DEBUG\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_GHS_KERNEL_FLAGS_MINSIZEREL\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_GHS_KERNEL_FLAGS_RELEASE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_GHS_KERNEL_FLAGS_RELWITHDEBINFO\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_IGNORE_EXTENSIONS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_IMPLICIT_INCLUDE_DIRECTORIES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_IMPLICIT_LINK_DIRECTORIES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_IMPLICIT_LINK_LIBRARIES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_INCLUDE_WHAT_YOU_USE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_LIBRARY_ARCHITECTURE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_LINKER_PREFERENCE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_LINKER_PREFERENCE_PROPAGATES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_LINKER_WRAPPER_FLAG\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_LINKER_WRAPPER_FLAG_SEP\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_LINK_EXECUTABLE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_OUTPUT_EXTENSION\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_PLATFORM_ID\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_SIMULATE_ID\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_SIMULATE_VERSION\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_SIZEOF_DATA_PTR\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_SOURCE_FILE_EXTENSIONS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_STANDARD_INCLUDE_DIRECTORIES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_STANDARD_LIBRARIES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_VISIBILITY_PRESET\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_ARCHIVE_OUTPUT_DIRECTORY_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_DISABLE_FIND_PACKAGE_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_EXE_LINKER_FLAGS_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_EXE_LINKER_FLAGS_&id_re;_INIT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_INTERPROCEDURAL_OPTIMIZATION_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_LIBRARY_OUTPUT_DIRECTORY_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_MAP_IMPORTED_CONFIG_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_MATCH_[0-9]+\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_MODULE_LINKER_FLAGS_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_MODULE_LINKER_FLAGS_&id_re;_INIT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_PDB_OUTPUT_DIRECTORY_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_POLICY_DEFAULT_CMP&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_POLICY_WARNING_CMP&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_PROJECT_&id_re;_INCLUDE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_RUNTIME_OUTPUT_DIRECTORY_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_SHARED_LINKER_FLAGS_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_SHARED_LINKER_FLAGS_&id_re;_INIT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_STATIC_LINKER_FLAGS_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_STATIC_LINKER_FLAGS_&id_re;_INIT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_USER_MAKE_RULES_OVERRIDE_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_XCODE_ATTRIBUTE_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_&id_re;_COMPONENT_INSTALL\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_ARCHIVE_&id_re;_FILE_NAME\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_BINARY_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_DEPENDS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_DESCRIPTION\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_DISABLED\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_DISPLAY_NAME\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_GROUP\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_HIDDEN\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_REQUIRED\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_DESCRIPTION\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_FILE_NAME\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_ARCHITECTURE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_BREAKS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_CONFLICTS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_CONTROL_EXTRA\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_CONTROL_STRICT_PERMISSION\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_DEPENDS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_ENHANCES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_NAME\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_PREDEPENDS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_PRIORITY\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_PROVIDES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_RECOMMENDS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_REPLACES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_SECTION\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_SHLIBDEPS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_SOURCE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_SUGGESTS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_DEBUGINFO_PACKAGE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NSIS_&id_re;_INSTALL_DIRECTORY\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_AUTHORS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_COPYRIGHT\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_DEPENDENCIES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_DEPENDENCIES_&id_re;_VERSION\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_DESCRIPTION\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_DESCRIPTION_SUMMARY\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_HOMEPAGE_URL\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_ICONURL\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_LICENSEURL\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_NAME\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_OWNERS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_RELEASE_NOTES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_TAGS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_TITLE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_VERSION\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_PACKAGE_DEPENDENCIES_&id_re;_VERSION\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_DEFAULT_DIR_PERMISSIONS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_DEFAULT_FILE_PERMISSIONS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_DEFAULT_GROUP\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_DEFAULT_USER\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_BUILD_SOURCE_DIRS_PREFIX\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_DEBUGINFO_FILE_NAME\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_DEBUGINFO_PACKAGE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_FILE_NAME\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_ARCHITECTURE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_AUTOPROV\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_AUTOREQ\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_AUTOREQPROV\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_CONFLICTS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_DESCRIPTION\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_GROUP\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_NAME\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_OBSOLETES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_PREFIX\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_PROVIDES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_REQUIRES\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_REQUIRES_POST\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_REQUIRES_POSTUN\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_REQUIRES_PRE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_REQUIRES_PREUN\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_SUGGESTS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_SUMMARY\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_URL\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_USER_FILELIST\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_USER_BINARY_SPECFILE\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_NO_&id_re;_INSTALL_PREFIX_RELOCATION\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_WIX_&id_re;_EXTENSIONS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_WIX_&id_re;_EXTRA_FLAGS\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_WIX_PROPERTY_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bDOXYGEN_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bExternalData_CUSTOM_SCRIPT_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bExternalData_URL_ALGO_&id_re;_&id_re;\b" /> - <RegExpr attribute="Builtin Variable" context="#stay" String="\bSWIG_MODULE_&id_re;_EXTRA_DEPS\b" /> + <RegExpr attribute="CMake Internal Variable" context="#stay" String="\b(?:CMAKE_&var_ref_re;_(COMPILER_(ABI|ARCHITECTURE_ID|VERSION_INTERNAL)|PLATFORM_ID))\b"/> + <RegExpr attribute="Builtin Variable" context="#stay" String="\b(?:&var_ref_re;_(((STATIC_)?LINK_)?LIBRARIES|(BINARY|SOURCE)_DIR|(C|LD)FLAGS(_OTHER)?|(INCLUDE|LIBRARY)_DIRS|CONFIG|CONSIDERED_(CONFIGS|VERSIONS)|DESCRIPTION|FIND_(COMPONENTS|REQUIRED(_&var_ref_re;)?|VERSION_(COMPLETE|COUNT|EXACT|M(AX|IN)(_(COUNT|MAJOR|MINOR|PATCH|TWEAK))?|RANGE(_(MAX|MIN))?)|QUIETLY)|FOUND|HOMEPAGE_URL|IS_TOP_LEVEL|KEYWORDS_MISSING_VALUES|MODULE_NAME|ROOT|UNPARSED_ARGUMENTS|VERSION(_(MAJOR|MINOR|PATCH|TWEAK|COUNT|STRING))?)|&var_ref_re;__TRYRUN_OUTPUT|(DOXYGEN|ExternalData_(CUSTOM_SCRIPT|URL_ALGO)|FETCHCONTENT_(SOURCE_DIR|UPDATES_DISCONNECTED))_&var_ref_re;|ARGV[0-9]+|BISON_&var_ref_re;_(COMPILE_FLAGS|DEFINED|INPUT|OUTPUT(S|_(HEADER|SOURCE)))|Boost_&var_ref_re;_LIBRARY(_(DEBUG|RELEASE))?|CMAKE_(&var_ref_re;_(ANDROID_TOOLCHAIN_((PRE|SUF)FIX|MACHINE)|ARCHIVE_(APPEND|CREATE|FINISH)|BYTE_ORDER|CLANG_TIDY(_EXPORT_FIXES_DIR)?|COMPILER(_(AR|EXTERNAL_TOOLCHAIN|FRONTEND_VARIANT|ID|LAUNCHER|LOADED|RANLIB|TARGET|VERSION))?|COMPILE_OBJECT|CPP(CHECK|LINT)|CREATE_(SHARED_(LIBRARY|MODULE)|STATIC_LIBRARY)|EXTENSIONS(_DEFAULT)?|FLAGS(_((DEBUG|MINSIZEREL|REL(EASE|WITHDEBINFO)|&var_ref_re;)(_INIT)?|INIT))?|GHS_KERNEL_FLAGS_(DEBUG|MINSIZEREL|REL(EASE|WITHDEBINFO))|IGNORE_EXTENSIONS|IMPLICIT_(INCLUDE_DIRECTORIES|LINK_((FRAMEWORK_)?DIRECTORIES|LIBRARIES))|INCLUDE_WHAT_YOU_USE|LIBRARY_ARCHITECTURE|LINKER_(LAUNCHER|PREFERENCE(_PROPAGATES)?|WRAPPER_FLAG(_SEP)?)|LINK_(EXECUTABLE|GROUP_USING_&var_ref_re;(_SUPPORTED)?|LIBRARY_(FILE_FLAG|FLAG|USING_&var_ref_re;(_SUPPORTED)?)|WHAT_YOU_USE_FLAG)|OUTPUT_EXTENSION|POSTFIX|SIMULATE_(ID|VERSION)|SIZEOF_DATA_PTR|SOURCE_FILE_EXTENSIONS|STANDARD_(INCLUDE_DIRECTO|LIBRA)RIES|VISIBILITY_PRESET)|((ARCHIVE|(COMPILE_)?PDB|LIBRARY|RUNTIME)_OUTPUT_DIRECTORY|(DISABLE|REQUIRE)_FIND_PACKAGE|FRAMEWORK_MULTI_CONFIG_POSTFIX|GET_OS_RELEASE_FALLBACK_RESULT|INTERPROCEDURAL_OPTIMIZATION|MAP_IMPORTED_CONFIG|USER_MAKE_RULES_OVERRIDE|XCODE_ATTRIBUTE)_&var_ref_re;|(EXE|MODULE|SHARED|STATIC)_LINKER_FLAGS_&var_ref_re;(_INIT)?|LINK_(GROUP|LIBRARY)_USING_&var_ref_re;(_SUPPORTED)?|PROJECT_&var_ref_re;_INCLUDE(_BEFORE)?)|CMAKE_(ARGV|MATCH_)[0-9]+|CMAKE_POLICY_(DEFAULT|WARNING)_CMP[0-9]{4}|CPACK_(&var_ref_re;_COMPONENT_INSTALL|ARCHIVE_&var_ref_re;_FILE_NAME|BINARY_&var_ref_re;|COMPONENT_&var_ref_re;_(DEPENDS|DESCRIPTION|DIS(ABLED|PLAY_NAME)|GROUP|HIDDEN|REQUIRED)|DEBIAN_&var_ref_re;_(DESCRIPTION|FILE_NAME|PACKAGE_((PRE)?DEPENDS|ARCHITECTURE|BREAKS|CONFLICTS|CONTROL_(EXTRA|STRICT_PERMISSION)|ENHANCES|NAME|PRIORITY|PROVIDES|RECOMMENDS|REPLACES|SECTION|SHLIBDEPS|SOURCE|SUGGESTS)|DEBUGINFO_PACKAGE)|DMG_&var_ref_re;_FILE_NAME|INNOSETUP_(&var_ref_re;_INSTALL_DIRECTORY|(DEFINE|SETUP)_&var_ref_re;)|NSIS_&var_ref_re;_INSTALL_DIRECTORY|NUGET_(&var_ref_re;_PACKAGE_(AUTHORS|COPYRIGHT|DEPENDENCIES(_&var_ref_re;_VERSION)?|DESCRIPTION(_SUMMARY)?|HOMEPAGE_URL|ICON(URL)?|LANGUAGE|LICENSE(URL|_(EXPRESSION|FILE_NAME))|NAME|OWNERS|RELEASE_NOTES|TAGS|TITLE|VERSION)|PACKAGE_DEPENDENCIES_&var_ref_re;_VERSION)|P(RE|OST)FLIGHT_&var_ref_re;_SCRIPT|RPM_(&var_ref_re;_(DEFAULT_((DIR|FILE)_PERMISSIONS|GROUP|USER)|BUILD_SOURCE_DIRS_PREFIX|DEBUGINFO_(FILE_NAME|PACKAGE)|FILE_NAME|PACKAGE_(ARCHITECTURE|AUTO(PROV|REQ(PROV)?)|CONFLICTS|DESCRIPTION|GROUP|NAME|OBSOLETES|PREFIX|PROVIDES|REQUIRES(_P(RE|OST)(UN)?)?|SUGGESTS|SUMMARY|URL)|USER_(FILELIST|BINARY_SPECFILE))|NO_&var_ref_re;_INSTALL_PREFIX_RELOCATION)|WIX_(&var_ref_re;_EXT(ENSIONS|RA_FLAGS)|PROPERTY_&var_ref_re;))|ICU_&var_ref_re;_(LIBRARY|EXECUTABLE)|MPI_&var_ref_re;_(ADDITIONAL_INCLUDE_VARS|COMPILE(R|_(DEFINI|OP)TIONS)|LIB(_NAMES|RARY))|OpenACC_&var_ref_re;_(FLAGS|OPTIONS|SPEC_DATE)|OpenMP_&var_ref_re;_(FLAGS|LIB(_NAMES|RARY)|SPEC_DATE)|SWIG_MODULE_&var_ref_re;_EXTRA_DEPS)\b"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="Detect Variable Substitutions"> - <RegExpr attribute="Environment Variable Substitution" context="#stay" String="\$ENV\{\s*[\w-]+\s*\}" /> - <Detect2Chars attribute="Variable Substitution" context="VarSubst" char="$" char1="{" /> - <RegExpr attribute="@Variable Substitution" context="@VarSubst" String="@&id_re;@" lookAhead="true" /> + <RegExpr attribute="Cache Variable Substitution" context="#stay" String="\$CACHE\{\s*[\w-]+\s*\}"/> + <RegExpr attribute="Environment Variable Substitution" context="EnvVarSubst" String="\$?ENV\{"/> + <Detect2Chars attribute="Variable Substitution" context="VarSubst" char="$" char1="{"/> + <RegExpr attribute="@Variable Substitution" context="@VarSubst" String="@&var_ref_re;@" lookAhead="true"/> + </context> + + <context attribute="Environment Variable Substitution" lineEndContext="#pop" name="EnvVarSubst"> + <DetectChar attribute="Environment Variable Substitution" context="#pop" char="}"/> + <keyword attribute="Standard Environment Variable" context="#stay" String="environment-variables" insensitive="false"/> + <RegExpr attribute="Standard Environment Variable" context="#stay" String="\b(?:&var_ref_re;_(DIR|ROOT)|ASM&var_ref_re;(FLAGS)?|CMAKE_&var_ref_re;_(COMPIL|LINK)ER_LAUNCHER)\b"/> + <DetectIdentifier/> + <IncludeRules context="Detect Variable Substitutions"/> </context> <context attribute="Variable Substitution" lineEndContext="#pop" name="VarSubst"> - <IncludeRules context="Detect Builtin Variables" /> - <DetectIdentifier /> - <DetectChar attribute="Variable Substitution" context="#pop" char="}" /> - <IncludeRules context="Detect Variable Substitutions" /> + <DetectChar attribute="Variable Substitution" context="#pop" char="}"/> + <IncludeRules context="Detect Builtin Variables"/> + <DetectIdentifier/> + <IncludeRules context="Detect Variable Substitutions"/> </context> <context attribute="@Variable Substitution" lineEndContext="#pop" name="@VarSubst"> - <DetectChar attribute="@Variable Substitution" context="VarSubst@" char="@" /> + <DetectChar attribute="@Variable Substitution" context="VarSubst@" char="@"/> </context> <context attribute="@Variable Substitution" lineEndContext="#pop#pop" name="VarSubst@"> - <IncludeRules context="Detect Builtin Variables" /> - <DetectIdentifier /> - <DetectChar attribute="@Variable Substitution" context="#pop#pop" char="@" /> + <DetectChar attribute="@Variable Substitution" context="#pop#pop" char="@"/> + <IncludeRules context="Detect Builtin Variables"/> + <DetectIdentifier/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="Target Name"> + <DetectSpaces/> + <RegExpr attribute="Aliased Targets" context="#pop" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + <IncludeRules context="Detect Targets"/> + <IncludeRules context="User Function Opened"/> + <IncludeRules context="LineError"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="Detect Targets"> + <RegExpr attribute="Targets" context="#stay" String="&tgt_name_re;"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="LineError"> + <RegExpr attribute="Error" context="#stay" String=".*"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="User Function Args"> - <Detect2Chars attribute="Normal Text" context="#stay" char="\" char1="(" /> - <Detect2Chars attribute="Normal Text" context="#stay" char="\" char1=")" /> - <RegExpr attribute="Escapes" context="#stay" String="\\["$n\\]" /> - <DetectChar attribute="Strings" context="String" char=""" /> - <RegExpr attribute="Strings" context="Bracketed String" String="\[(=*)\[" /> - <RegExpr attribute="Comment" context="Bracketed Comment" String="#\[(=*)\[" /> - <DetectChar attribute="Comment" context="Comment" char="#" /> - <IncludeRules context="Detect Builtin Variables" /> - <IncludeRules context="Detect Variable Substitutions" /> - <IncludeRules context="Detect Special Values" /> - <IncludeRules context="Detect Aliased Targets" /> - <IncludeRules context="Detect Generator Expressions" /> + <Detect2Chars attribute="Normal Text" context="#stay" char="\" char1="("/> + <Detect2Chars attribute="Normal Text" context="#stay" char="\" char1=")"/> + <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="""/> + <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="$"/> + <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="n"/> + <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="\"/> + <DetectChar attribute="Strings" context="String" char="""/> + <RegExpr attribute="Strings" context="Bracketed String" String="\[(=*)\[" beginRegion="BracketedString"/> + <DetectChar attribute="Comment" context="Match Comments" char="#" lookAhead="true"/> + <IncludeRules context="Detect Builtin Variables"/> + <IncludeRules context="Detect Variable Substitutions"/> + <IncludeRules context="Detect Special Values"/> + <IncludeRules context="Detect Aliased Targets"/> + <IncludeRules context="Detect Generator Expressions"/> + <DetectIdentifier/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="Detect Special Values"> - <RegExpr attribute="True Special Arg" context="#stay" String="\b(TRUE|ON)\b" /> - <RegExpr attribute="False Special Arg" context="#stay" String="\b(FALSE|OFF|(&id_re;-)?NOTFOUND)\b" /> - <RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9][0-9][0-9]\b" /> + <RegExpr attribute="Version Arg" context="#stay" String="\b[0-9]++(.[0-9]++)+\b"/> + <keyword attribute="True Special Arg" context="#stay" String="true_special_arg" insensitive="true"/> + <keyword attribute="False Special Arg" context="#stay" String="false_special_arg" insensitive="true"/> + <RegExpr attribute="False Special Arg" context="#stay" String="\b(?:&var_ref_re;-)?NOTFOUND\b"/> + <RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9][0-9][0-9][0-9]\b"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="Detect Aliased Targets"> - <RegExpr attribute="Aliased Targets" context="#stay" String="\b&id_re;::&id_re;(::&id_re;)*\b" /> + <RegExpr attribute="Aliased Targets" context="#stay" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/> + </context> + + <context attribute="Comment" lineEndContext="#pop" name="Match Comments"> + <DetectSpaces/> + <RegExpr attribute="Comment" context="#pop!Bracketed Comment" String="#\[(=*)\[" beginRegion="BracketedComment"/> + <DetectChar attribute="Comment" context="#pop!Comment" char="#"/> + <DetectIdentifier/> + </context> + + <context attribute="Comment" lineEndContext="#pop" name="Match Comments and Docs"> + <RegExpr attribute="Region Marker" context="#pop!RST Documentation" String="^#\[(=*)\[\.rst:" column="0" beginRegion="RSTDocumentation"/> + <IncludeRules context="Match Comments"/> </context> <context attribute="Comment" lineEndContext="#pop" name="Comment"> - <LineContinue attribute="Comment" context="#pop" /> - <IncludeRules context="##Alerts" /> - <IncludeRules context="##Modelines" /> + <DetectSpaces/> + <LineContinue attribute="Comment" context="#pop"/> + <IncludeRules context="##Comments"/> + <DetectIdentifier/> </context> <context attribute="Comment" lineEndContext="#stay" name="RST Documentation" dynamic="true"> - <RegExpr attribute="Region Marker" context="#pop" String="^#?\]%1\]" dynamic="true" column="0" /> - <IncludeRules context="##reStructuredText" /> + <RegExpr attribute="Region Marker" context="#pop" String="^#?\]%1\]" dynamic="true" column="0" endRegion="RSTDocumentation"/> + <IncludeRules context="##reStructuredText"/> </context> <context attribute="Comment" lineEndContext="#stay" name="Bracketed Comment" dynamic="true"> - <RegExpr attribute="Comment" context="#pop" String=".*\]%1\]" dynamic="true" /> - <IncludeRules context="##Alerts" /> - <IncludeRules context="##Modelines" /> + <LineContinue attribute="Comment" context="#stay"/> + <DetectSpaces/> + <StringDetect attribute="Comment" context="#pop" String="]%1]" dynamic="true" endRegion="BracketedComment"/> + <IncludeRules context="##Comments"/> </context> <context attribute="Strings" lineEndContext="#stay" name="String"> - <RegExpr attribute="Strings" context="#pop" String=""(?=[ );]|$)" /> - <RegExpr attribute="Escapes" context="#stay" String="\\["$nrt\\]" /> - <IncludeRules context="Detect Variable Substitutions" /> - <IncludeRules context="Detect Generator Expressions" /> + <DetectSpaces/> + <DetectIdentifier/> + <RegExpr attribute="Strings" context="#pop" String=""(?=[ );]|$)"/> + <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="""/> + <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="$"/> + <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="n"/> + <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="r"/> + <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="t"/> + <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="\"/> + <IncludeRules context="Detect Variable Substitutions"/> + <IncludeRules context="Detect Generator Expressions"/> </context> <context attribute="Strings" lineEndContext="#stay" name="Bracketed String" dynamic="true"> - <RegExpr attribute="Strings" context="#pop" String="\]%1\]" dynamic="true" /> + <StringDetect attribute="Strings" context="#pop" String="]%1]" dynamic="true" endRegion="BracketedString"/> </context> <context attribute="Normal Text" lineEndContext="#stay" name="Detect Generator Expressions"> - <Detect2Chars attribute="Generator Expression" context="Generator Expression" char="$" char1="<" /> + <Detect2Chars attribute="Generator Expression" context="Generator Expression" char="$" char1="<"/> </context> <context attribute="Generator Expression" lineEndContext="#stay" name="Generator Expression"> - <IncludeRules context="Detect Generator Expressions" /> - <DetectChar attribute="Comment" context="Comment" char="#" /> - <DetectChar attribute="Generator Expression" context="#pop" char=">" /> - <keyword attribute="Generator Expression Keyword" context="#stay" String="generator-expressions" insensitive="false" /> - <IncludeRules context="Detect Aliased Targets" /> - <IncludeRules context="Detect Variable Substitutions" /> + <IncludeRules context="Detect Generator Expressions"/> + <DetectChar attribute="Comment" context="Comment" char="#"/> + <DetectChar attribute="Generator Expression" context="#pop" char=">"/> + <keyword attribute="Generator Expression Keyword" context="#stay" String="generator-expressions" insensitive="false"/> + <WordDetect String="LIST" attribute="Generator Expression Keyword" context="genex_LIST_ctx"/> + <WordDetect String="PATH" attribute="Generator Expression Keyword" context="genex_PATH_ctx"/> + <IncludeRules context="Detect Aliased Targets"/> + <IncludeRules context="Detect Variable Substitutions"/> + <DetectIdentifier/> + </context> + <context attribute="Generator Expression" lineEndContext="#stay" name="genex_LIST_ctx" fallthroughContext="#pop"> + <DetectChar char=":" context="#stay"/> + <DetectSpaces/> + <keyword attribute="Generator Expression Sub-Command" context="#pop" String="genex-LIST-subcommands" insensitive="false"/> + </context> + <context attribute="Generator Expression" lineEndContext="#stay" name="genex_PATH_ctx" fallthroughContext="#pop"> + <DetectChar char=":" context="#stay"/> + <DetectSpaces/> + <keyword attribute="Generator Expression Sub-Command" context="#pop" String="genex-PATH-subcommands" insensitive="false"/> </context> </contexts> <itemDatas> - <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false" /> - <itemData name="Command" defStyleNum="dsKeyword" spellChecking="false" /> - <itemData name="User Function/Macro" defStyleNum="dsFunction" spellChecking="false" /> - <itemData name="Property" defStyleNum="dsOthers" spellChecking="false" /> - <itemData name="Aliased Targets" defStyleNum="dsBaseN" spellChecking="false" /> - <itemData name="Named Args" defStyleNum="dsOthers" spellChecking="false" /> - <itemData name="Special Args" defStyleNum="dsOthers" spellChecking="false" /> - <itemData name="True Special Arg" defStyleNum="dsOthers" color="#30a030" selColor="#30a030" spellChecking="false" /> - <itemData name="False Special Arg" defStyleNum="dsOthers" color="#e05050" selColor="#e05050" spellChecking="false" /> - <itemData name="Strings" defStyleNum="dsString" spellChecking="true" /> - <itemData name="Escapes" defStyleNum="dsChar" spellChecking="false" /> - <itemData name="Builtin Variable" defStyleNum="dsDecVal" color="#c09050" selColor="#c09050" spellChecking="false" /> - <itemData name="Variable Substitution" defStyleNum="dsDecVal" spellChecking="false" /> - <itemData name="@Variable Substitution" defStyleNum="dsBaseN" spellChecking="false" /> - <itemData name="Internal Name" defStyleNum="dsDecVal" color="#303030" selColor="#303030" spellChecking="false" /> - <itemData name="Environment Variable Substitution" defStyleNum="dsFloat" spellChecking="false" /> - <itemData name="Generator Expression Keyword" defStyleNum="dsKeyword" color="#b84040" selColor="#b84040" spellChecking="false" /> - <itemData name="Generator Expression" defStyleNum="dsOthers" color="#b86050" selColor="#b86050" spellChecking="false" /> - <itemData name="Comment" defStyleNum="dsComment" spellChecking="true" /> - <itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false" /> + <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/> + <itemData name="Comment" defStyleNum="dsComment" spellChecking="true"/> + <itemData name="Command" defStyleNum="dsKeyword" spellChecking="false"/> + <itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="false"/> + <itemData name="CMake Provided Function/Macro" defStyleNum="dsFunction" bold="true" spellChecking="false"/> + <itemData name="User Function/Macro" defStyleNum="dsFunction" spellChecking="false"/> + <itemData name="Property" defStyleNum="dsOthers" spellChecking="false"/> + <itemData name="Targets" defStyleNum="dsBaseN" spellChecking="false"/> + <itemData name="Aliased Targets" defStyleNum="dsBaseN" spellChecking="false"/> + <itemData name="Named Args" defStyleNum="dsOthers" spellChecking="false"/> + <itemData name="Special Args" defStyleNum="dsOthers" spellChecking="false"/> + <itemData name="True Special Arg" defStyleNum="dsOthers" color="#30a030" selColor="#30a030" spellChecking="false"/> + <itemData name="False Special Arg" defStyleNum="dsOthers" color="#e05050" selColor="#e05050" spellChecking="false"/> + <itemData name="Version Arg" defStyleNum="dsDataType" spellChecking="false"/> + <itemData name="Strings" defStyleNum="dsString" spellChecking="true"/> + <itemData name="Escapes" defStyleNum="dsSpecialChar" spellChecking="false"/> + <itemData name="Builtin Variable" defStyleNum="dsDecVal" color="#c09050" selColor="#c09050" spellChecking="false"/> + <itemData name="CMake Internal Variable" defStyleNum="dsVariable" spellChecking="false"/> + <itemData name="Internal Name" defStyleNum="dsVariable" spellChecking="false"/> + <itemData name="Variable Substitution" defStyleNum="dsDecVal" spellChecking="false"/> + <itemData name="@Variable Substitution" defStyleNum="dsBaseN" spellChecking="false"/> + <itemData name="Cache Variable Substitution" defStyleNum="dsFloat" spellChecking="false"/> + <itemData name="Environment Variable Substitution" defStyleNum="dsFloat" spellChecking="false"/> + <itemData name="Standard Environment Variable" defStyleNum="dsFloat" spellChecking="false"/> + <itemData name="Generator Expression Keyword" defStyleNum="dsKeyword" color="#b84040" selColor="#b84040" spellChecking="false"/> + <itemData name="Generator Expression Sub-Command" defStyleNum="dsKeyword" color="#c05050" selColor="#c05050" spellChecking="false"/> + <itemData name="Generator Expression" defStyleNum="dsOthers" color="#b86050" selColor="#b86050" spellChecking="false"/> + <itemData name="Standard Module" defStyleNum="dsImport" spellChecking="false"/> + <itemData name="Deprecated Module" defStyleNum="dsImport" spellChecking="false"/> + <itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/> + <itemData name="Error" defStyleNum="dsError" spellChecking="false"/> </itemDatas> </highlighting> <general> <comments> - <comment name="singleLine" start="#" /> + <comment name="singleLine" start="#" position="afterwhitespace"/> + <comment name="multiLine" start="#[[" end="]]" region="BracketedComment"/> </comments> - <keywords casesensitive="1" /> + <keywords casesensitive="1" weakDeliminator="."/> </general> </language> - -<!-- kate: indent-width 2; tab-width 2; --> - +<!-- kate: replace-tabs on; indent-width 2; tab-width 2; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/comments.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/comments.xml new file mode 100644 index 0000000000..011dc8ab21 --- /dev/null +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/comments.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language> +<language + version="1" + kateversion="5.0" + name="Comments" + section="Other" + extensions="" + mimetype="" + author="Alex Turbov (i.zaufi@gmail.com)" + license="MIT" + hidden="true" + > + <highlighting> + <contexts> + <context name="Normal" attribute="Comment" lineEndContext="#pop"> + <IncludeRules context="##Alerts" /> + <IncludeRules context="##Modelines" /> + <IncludeRules context="##SPDX-Comments" /> + </context> + </contexts> + <itemDatas> + <itemData name="Comment" defStyleNum="dsComment" /> + </itemDatas> + </highlighting> +</language> +<!-- kate: indent-width 2; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/css.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/css.xml index 25a614e826..dd2f37ba35 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/css.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/css.xml @@ -1,9 +1,14 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd" +<!DOCTYPE language [ <!-- https://www.w3.org/TR/CSS22/syndata.html#tokenization --> - <!ENTITY nmstart "[_a-zA-Z]|(\\[0-9a-fA-F]{1,6})|(\\[^\n\r\f0-9a-fA-F])"> - <!ENTITY nmchar "[_a-zA-Z0-9-]|(\\[0-9a-fA-F]{1,6})|(\\[^\n\r\f0-9a-fA-F])"> + <!ENTITY escaped "\\([0-9a-fA-F]{1,6}|[^\n\r\f0-9a-fA-F])"> + <!ENTITY ident "-?([_a-zA-Z]|&escaped;)([-_a-zA-Z0-9]+|&escaped;)*"> + <!-- identifiers starting with several - are invalid, but supported by browsers --> + <!ENTITY ident2 "([-\w]+|&escaped;)+"> + <!ENTITY var "--[-\w]*"> + <!ENTITY func "-?[a-zA-Z][-a-zA-Z0-9]*"> + <!ENTITY propcheck "(?=\s*(/[*].*?[*]/\s*)?:)"> ]> <!-- @@ -38,17 +43,23 @@ Changelog: --> -<language name="CSS" version="8" kateversion="5.0" section="Markup" extensions="*.css" indenter="cstyle" mimetype="text/css" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10"> - +<language name="CSS" version="17" kateversion="5.79" section="Markup" extensions="*.css" indenter="cstyle" mimetype="text/css" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10"> <highlighting> + <!-- W3C > Work Draft, from https://www.w3.org/Style/CSS/all-properties (exclude FPWD)--> <list name="properties"> - <!-- W3C > Work Draft, from https://www.w3.org/Style/CSS/all-properties --> + <item>-webkit-line-clamp</item> + <item>-webkit-text-fill-color</item> + <item>-webkit-text-stroke</item> + <item>-webkit-text-stroke-color</item> + <item>-webkit-text-stroke-width</item> + <item>accent-color</item> + <item>additive-symbols</item> <item>align-content</item> <item>align-items</item> - <item>alignment-baseline</item> <item>align-self</item> <item>all</item> <item>animation</item> + <item>animation-composition</item> <item>animation-delay</item> <item>animation-direction</item> <item>animation-duration</item> @@ -58,7 +69,9 @@ Changelog: <item>animation-play-state</item> <item>animation-timing-function</item> <item>appearance</item> - <item>azimuth</item> + <item>ascent-override</item> + <item>aspect-ratio</item> + <item>backdrop-filter</item> <item>backface-visibility</item> <item>background</item> <item>background-attachment</item> @@ -66,21 +79,14 @@ Changelog: <item>background-clip</item> <item>background-color</item> <item>background-image</item> - <item>background-image-transform</item> <item>background-origin</item> <item>background-position</item> + <item>background-position-x</item> + <item>background-position-y</item> <item>background-repeat</item> <item>background-size</item> - <item>baseline-shift</item> + <item>base-palette</item> <item>block-size</item> - <item>block-step</item> - <item>block-step-align</item> - <item>block-step-insert</item> - <item>block-step-round</item> - <item>block-step-size</item> - <item>bookmark-label</item> - <item>bookmark-level</item> - <item>bookmark-state</item> <item>border</item> <item>border-block</item> <item>border-block-color</item> @@ -100,15 +106,15 @@ Changelog: <item>border-bottom-right-radius</item> <item>border-bottom-style</item> <item>border-bottom-width</item> - <item>border-boundary</item> <item>border-collapse</item> <item>border-color</item> + <item>border-end-end-radius</item> + <item>border-end-start-radius</item> <item>border-image</item> <item>border-image-outset</item> <item>border-image-repeat</item> <item>border-image-slice</item> <item>border-image-source</item> - <item>border-image-transform</item> <item>border-image-width</item> <item>border-inline</item> <item>border-inline-color</item> @@ -132,6 +138,8 @@ Changelog: <item>border-right-style</item> <item>border-right-width</item> <item>border-spacing</item> + <item>border-start-end-radius</item> + <item>border-start-start-radius</item> <item>border-style</item> <item>border-top</item> <item>border-top-color</item> @@ -144,22 +152,15 @@ Changelog: <item>box-decoration-break</item> <item>box-shadow</item> <item>box-sizing</item> - <item>box-snap</item> <item>break-after</item> <item>break-before</item> <item>break-inside</item> <item>caption-side</item> - <item>caret</item> <item>caret-color</item> - <item>caret-shape</item> <item>clear</item> - <item>clip</item> <item>clip-path</item> - <item>clip-rule</item> <item>color</item> - <item>color-adjust</item> - <item>color-interpolation-filters</item> - <item>columns</item> + <item>color-scheme</item> <item>column-count</item> <item>column-fill</item> <item>column-gap</item> @@ -169,31 +170,26 @@ Changelog: <item>column-rule-width</item> <item>column-span</item> <item>column-width</item> + <item>columns</item> <item>contain</item> + <item>contain-intrinsic-block-size</item> + <item>contain-intrinsic-height</item> + <item>contain-intrinsic-inline-size</item> + <item>contain-intrinsic-size</item> + <item>contain-intrinsic-width</item> + <item>container</item> + <item>container-name</item> + <item>container-type</item> <item>content</item> - <item>continue</item> <item>counter-increment</item> <item>counter-reset</item> <item>counter-set</item> - <item>cue</item> - <item>cue-after</item> - <item>cue-before</item> <item>cursor</item> + <item>descent-override</item> <item>direction</item> <item>display</item> - <item>dominant-baseline</item> - <item>elevation</item> <item>empty-cells</item> - <item>fill</item> - <item>fill-break</item> - <item>fill-color</item> - <item>fill-image</item> - <item>fill-opacity</item> - <item>fill-origin</item> - <item>fill-position</item> - <item>fill-repeat</item> - <item>fill-rule</item> - <item>fill-size</item> + <item>fallback</item> <item>filter</item> <item>flex</item> <item>flex-basis</item> @@ -203,20 +199,12 @@ Changelog: <item>flex-shrink</item> <item>flex-wrap</item> <item>float</item> - <item>float-defer</item> - <item>float-offset</item> - <item>float-reference</item> - <item>flood-color</item> - <item>flood-opacity</item> - <item>flow-from</item> - <item>flow-into</item> <item>font</item> + <item>font-display</item> <item>font-family</item> <item>font-feature-settings</item> <item>font-kerning</item> <item>font-language-override</item> - <item>font-max-size</item> - <item>font-min-size</item> <item>font-optical-sizing</item> <item>font-palette</item> <item>font-size</item> @@ -224,6 +212,10 @@ Changelog: <item>font-stretch</item> <item>font-style</item> <item>font-synthesis</item> + <item>font-synthesis-position</item> + <item>font-synthesis-small-caps</item> + <item>font-synthesis-style</item> + <item>font-synthesis-weight</item> <item>font-variant</item> <item>font-variant-alternates</item> <item>font-variant-caps</item> @@ -234,10 +226,8 @@ Changelog: <item>font-variant-position</item> <item>font-variation-settings</item> <item>font-weight</item> - <item>footnote-display</item> - <item>footnote-policy</item> + <item>forced-color-adjust</item> <item>gap</item> - <item>glyph-orientation-vertical</item> <item>grid</item> <item>grid-area</item> <item>grid-auto-columns</item> @@ -245,12 +235,9 @@ Changelog: <item>grid-auto-rows</item> <item>grid-column</item> <item>grid-column-end</item> - <item>grid-column-gap</item> <item>grid-column-start</item> - <item>grid-gap</item> <item>grid-row</item> <item>grid-row-end</item> - <item>grid-row-gap</item> <item>grid-row-start</item> <item>grid-template</item> <item>grid-template-areas</item> @@ -260,16 +247,11 @@ Changelog: <item>height</item> <item>hyphenate-character</item> <item>hyphenate-limit-chars</item> - <item>hyphenate-limit-last</item> - <item>hyphenate-limit-lines</item> - <item>hyphenate-limit-zone</item> <item>hyphens</item> <item>image-orientation</item> <item>image-rendering</item> - <item>image-resolution</item> - <item>initial-letter</item> - <item>initial-letter-align</item> - <item>initial-letter-wrap</item> + <item>inherits</item> + <item>initial-value</item> <item>inline-size</item> <item>inset</item> <item>inset-block</item> @@ -284,12 +266,9 @@ Changelog: <item>justify-self</item> <item>left</item> <item>letter-spacing</item> - <item>lighting-color</item> <item>line-break</item> - <item>line-grid</item> + <item>line-gap-override</item> <item>line-height</item> - <item>line-height-step</item> - <item>line-snap</item> <item>list-style</item> <item>list-style-image</item> <item>list-style-position</item> @@ -305,19 +284,6 @@ Changelog: <item>margin-left</item> <item>margin-right</item> <item>margin-top</item> - <item>marker</item> - <item>marker-end</item> - <item>marker-knockout-left</item> - <item>marker-knockout-right</item> - <item>marker-mid</item> - <item>marker-pattern</item> - <item>marker-segment</item> - <item>marker-side</item> - <item>marker-start</item> - <item>marquee-direction</item> - <item>marquee-loop</item> - <item>marquee-speed</item> - <item>marquee-style</item> <item>mask</item> <item>mask-border</item> <item>mask-border-mode</item> @@ -335,32 +301,25 @@ Changelog: <item>mask-repeat</item> <item>mask-size</item> <item>mask-type</item> + <item>math-depth</item> + <item>math-style</item> <item>max-block-size</item> <item>max-height</item> <item>max-inline-size</item> - <item>max-lines</item> <item>max-width</item> <item>min-block-size</item> <item>min-height</item> <item>min-inline-size</item> <item>min-width</item> <item>mix-blend-mode</item> - <item>nav-up</item> - <item>nav-down</item> - <item>nav-left</item> - <item>nav-right</item> + <item>negative</item> <item>object-fit</item> <item>object-position</item> <item>offset</item> - <item>offset-after</item> <item>offset-anchor</item> - <item>offset-before</item> <item>offset-distance</item> - <item>offset-end</item> <item>offset-path</item> - <item>offset-position</item> <item>offset-rotate</item> - <item>offset-start</item> <item>opacity</item> <item>order</item> <item>orphans</item> @@ -370,10 +329,20 @@ Changelog: <item>outline-style</item> <item>outline-width</item> <item>overflow</item> - <item>overflow-style</item> + <item>overflow-anchor</item> + <item>overflow-block</item> + <item>overflow-clip-margin</item> + <item>overflow-inline</item> <item>overflow-wrap</item> <item>overflow-x</item> <item>overflow-y</item> + <item>override-colors</item> + <item>overscroll-behavior</item> + <item>overscroll-behavior-block</item> + <item>overscroll-behavior-inline</item> + <item>overscroll-behavior-x</item> + <item>overscroll-behavior-y</item> + <item>pad</item> <item>padding</item> <item>padding-block</item> <item>padding-block-end</item> @@ -389,75 +358,91 @@ Changelog: <item>page-break-after</item> <item>page-break-before</item> <item>page-break-inside</item> - <item>pause</item> - <item>pause-after</item> - <item>pause-before</item> + <item>page-orientation</item> + <item>paint-order</item> <item>perspective</item> <item>perspective-origin</item> - <item>pitch</item> - <item>pitch-range</item> <item>place-content</item> <item>place-items</item> <item>place-self</item> - <item>play-during</item> <item>pointer-events</item> <item>position</item> + <item>prefix</item> + <item>print-color-adjust</item> <item>quotes</item> - <item>region-fragment</item> + <item>range</item> <item>resize</item> - <item>richness</item> <item>right</item> - <item>rotation</item> - <item>rotation-point</item> + <item>rotate</item> <item>row-gap</item> - <item>ruby-align</item> - <item>ruby-merge</item> <item>ruby-position</item> - <item>running</item> + <item>scale</item> + <item>scroll-behavior</item> + <item>scroll-margin</item> + <item>scroll-margin-block</item> + <item>scroll-margin-block-end</item> + <item>scroll-margin-block-start</item> + <item>scroll-margin-bottom</item> + <item>scroll-margin-inline</item> + <item>scroll-margin-inline-end</item> + <item>scroll-margin-inline-start</item> + <item>scroll-margin-left</item> + <item>scroll-margin-right</item> + <item>scroll-margin-top</item> + <item>scroll-padding</item> + <item>scroll-padding-block</item> + <item>scroll-padding-block-end</item> + <item>scroll-padding-block-start</item> + <item>scroll-padding-bottom</item> + <item>scroll-padding-inline</item> + <item>scroll-padding-inline-end</item> + <item>scroll-padding-inline-start</item> + <item>scroll-padding-left</item> + <item>scroll-padding-right</item> + <item>scroll-padding-top</item> + <item>scroll-snap-align</item> + <item>scroll-snap-stop</item> + <item>scroll-snap-type</item> + <item>scrollbar-color</item> <item>scrollbar-gutter</item> + <item>scrollbar-width</item> <item>shape-image-threshold</item> - <item>shape-inside</item> <item>shape-margin</item> <item>shape-outside</item> <item>size</item> - <item>speak</item> - <item>speak-header</item> - <item>speak-numeral</item> - <item>speak-punctuation</item> - <item>speech-rate</item> - <item>stress</item> - <item>string-set</item> - <item>table-layout</item> + <item>size-adjust</item> + <item>speak-as</item> + <item>src</item> + <item>suffix</item> + <item>symbols</item> + <item>syntax</item> + <item>system</item> <item>tab-size</item> - <item>text-align-all</item> + <item>table-layout</item> <item>text-align</item> <item>text-align-last</item> <item>text-combine-upright</item> - <item>text-decoration-color</item> <item>text-decoration</item> + <item>text-decoration-color</item> <item>text-decoration-line</item> - <item>text-decoration-skip</item> <item>text-decoration-skip-ink</item> <item>text-decoration-style</item> - <item>text-decoration-width</item> + <item>text-decoration-thickness</item> <item>text-emphasis</item> <item>text-emphasis-color</item> <item>text-emphasis-position</item> - <item>text-emphasis-skip</item> <item>text-emphasis-style</item> <item>text-indent</item> <item>text-justify</item> <item>text-orientation</item> <item>text-overflow</item> + <item>text-rendering</item> <item>text-shadow</item> - <item>text-space-collapse</item> - <item>text-space-trim</item> - <item>text-spacing</item> <item>text-transform</item> <item>text-underline-offset</item> <item>text-underline-position</item> - <item>text-wrap</item> <item>top</item> + <item>touch-action</item> <item>transform</item> <item>transform-box</item> <item>transform-origin</item> @@ -467,47 +452,52 @@ Changelog: <item>transition-duration</item> <item>transition-property</item> <item>transition-timing-function</item> + <item>translate</item> <item>unicode-bidi</item> + <item>unicode-range</item> <item>user-select</item> <item>vertical-align</item> <item>visibility</item> - <item>voice-family</item> - <item>volume</item> <item>white-space</item> <item>widows</item> <item>width</item> <item>will-change</item> <item>word-break</item> <item>word-spacing</item> - <item>word-wrap</item> - <item>wrap-after</item> - <item>wrap-before</item> - <item>wrap-flow</item> - <item>wrap-inside</item> - <item>wrap-through</item> <item>writing-mode</item> <item>z-index</item> + <!-- SVG only --> + + <item>alignment-baseline</item> + <item>baseline-shift</item> + <item>color-interpolation</item> + <item>color-interpolation-filters</item> + <item>dominant-baseline</item> + <item>fill</item> + <item>fill-opacity</item> + <item>fill-rule</item> + <item>flood-color</item> + <item>flood-opacity</item> + <item>marker-end</item> + <item>marker-mid</item> + <item>marker-start</item> + <item>shape-rendering</item> + <item>stop-color</item> + <item>stop-opacity</item> + <item>stroke</item> + <item>stroke-dasharray</item> + <item>stroke-dashoffset</item> + <item>stroke-linecap</item> + <item>stroke-linejoin</item> + <item>stroke-miterlimit</item> + <item>stroke-opacity</item> + <item>text-anchor</item> + <item>vector-effect</item> + </list> + + <list name="vendor properties"> <!-- Gecko rendering engine CSS property extensions --> - <item>-moz-animation</item> - <item>-moz-animation-delay</item> - <item>-moz-animation-direction</item> - <item>-moz-animation-duration</item> - <item>-moz-animation-fill-mode</item> - <item>-moz-animation-iteration-count</item> - <item>-moz-animation-name</item> - <item>-moz-animation-play-state</item> - <item>-moz-animation-timing-function</item> - <item>-moz-appearance</item> - <item>-moz-background-clip</item> - <item>-moz-background-origin</item> - <item>-moz-background-size</item> - <item>-moz-border-image</item> - <item>-moz-border-radius</item> - <item>-moz-border-radius-bottomleft</item> - <item>-moz-border-radius-bottomright</item> - <item>-moz-border-radius-topleft</item> - <item>-moz-border-radius-topright</item> <item>-moz-box-align</item> <item>-moz-box-direction</item> <item>-moz-box-flex</item> @@ -515,80 +505,16 @@ Changelog: <item>-moz-box-ordinal-group</item> <item>-moz-box-orient</item> <item>-moz-box-pack</item> - <item>-moz-box-shadow</item> - <item>-moz-box-sizing</item> <item>-moz-box</item> - <item>-moz-column-count</item> - <item>-moz-column-fill</item> - <item>-moz-column-gap</item> - <item>-moz-column-rule</item> - <item>-moz-column-rule-color</item> - <item>-moz-column-rule-style</item> - <item>-moz-column-rule-width</item> - <item>-moz-columns</item> - <item>-moz-column-width</item> - <item>-moz-hyphens</item> - <item>-moz-opacity</item> - <item>-moz-outline-style</item> - <item>-moz-perspective</item> - <item>-moz-resize</item> - <item>-moz-text-align-last</item> - <item>-moz-text-decoration-color</item> - <item>-moz-text-decoration-line</item> - <item>-moz-text-decoration-style</item> - <item>-moz-transform</item> - <item>-moz-transform-origin</item> - <item>-moz-transform-style</item> - <item>-moz-transition</item> - <item>-moz-transition-delay</item> - <item>-moz-transition-duration</item> - <item>-moz-transition-property</item> - <item>-moz-transition-timing-function</item> - <item>-moz-user-select</item> <!-- Opera rendering engine CSS property extensions --> - <item>-o-background-size</item> <item>-o-linear-gradient</item> - <item>-o-text-overflow</item> - <item>-o-transition</item> - <item>-o-transform-origin</item> <!-- konq specific --> <item>konq_bgpos_x</item> <item>konq_bgpos_y</item> - <item>-khtml-background-size</item> - <item>-khtml-border-top-left-radius</item> - <item>-khtml-border-top-right-radius</item> - <item>-khtml-border-bottom-left-radius</item> - <item>-khtml-border-bottom-right-radius</item> - <item>-khtml-border-radius</item> - <item>-khtml-box-shadow</item> - <item>-khtml-opacity</item> <!-- Webkit rendering engine CSS property extensions --> - <item>-webkit-appearance</item> - <item>-webkit-animation</item> - <item>-webkit-animation-name</item> - <item>-webkit-animation-duration</item> - <item>-webkit-animation-iteration</item> - <item>-webkit-animation-direction</item> - <item>-webkit-animation-delay</item> - <item>-webkit-animation-play-state</item> - <item>-webkit-animation-fill-mode</item> - <item>-webkit-background-size</item> - <item>-webkit-backface-visibility</item> - <item>-webkit-border-image</item> - <item>-webkit-border-bottom-colors</item> - <item>-webkit-border-left-colors</item> - <item>-webkit-border-radius</item> - <item>-webkit-border-right-colors</item> - <item>-webkit-border-top-colors</item> - <item>-webkit-border-top-left-radius</item> - <item>-webkit-border-top-right-radius</item> - <item>-webkit-border-bottom-left-radius</item> - <item>-webkit-border-bottom-right-radius</item> - <item>-webkit-border-radius-bottomleft</item> - <item>-webkit-border-radius-bottomright</item> <item>-webkit-box-align</item> <item>-webkit-box-direction</item> <item>-webkit-box-flex</item> @@ -596,46 +522,17 @@ Changelog: <item>-webkit-box-orient</item> <item>-webkit-box-pack</item> <item>-webkit-box-reflect</item> - <item>-webkit-box-shadow</item> - <item>-webkit-box-sizing</item> - <item>-webkit-column-count</item> - <item>-webkit-column-gap</item> - <item>-webkit-hyphens</item> <item>-webkit-linear-gradient</item> <item>-webkit-gradient</item> <item>-webkit-overflow-scrolling</item> - <item>-webkit-perspective</item> - <item>-webkit-text-decoration</item> <item>-webkit-text-decoration-skip</item> - <item>-webkit-text-fill-color</item> - <item>-webkit-text-stroke-color</item> - <item>-webkit-text-stroke-width</item> <item>-webkit-text-size-adjust</item> <item>-webkit-tap-highlight-color</item> - <item>-webkit-transform</item> - <item>-webkit-transform-origin</item> - <item>-webkit-transform-style</item> - <item>-webkit-transition</item> - <item>-webkit-transition-property</item> - <item>-webkit-transition-delay</item> - <item>-webkit-transition-duration</item> - <item>-webkit-user-select</item> <!-- Trident (a.k.a., MSHTML) CSS property extensions --> - <item>zoom</item> - <item>-ms-animation-name</item> - <item>-ms-animation-duration</item> - <item>-ms-animation-iteration</item> - <item>-ms-animation-direction</item> - <item>-ms-animation-delay</item> - <item>-ms-animation-play-state</item> - <item>-ms-animation-fill-mode</item> - <item>-ms-box-sizing</item> <item>-ms-filter</item> <item>-ms-flex</item> <item>-ms-flex-align</item> - <item>-ms-flex-direction</item> - <item>-ms-flex-flow</item> <item>-ms-flex-item-align</item> <item>-ms-flex-line-pack</item> <item>-ms-flex-negative</item> @@ -644,249 +541,537 @@ Changelog: <item>-ms-flex-positive</item> <item>-ms-flex-position</item> <item>-ms-flex-preferred-size</item> - <item>-ms-flex-wrap</item> <item>-ms-interpolation-mode</item> <item>-ms-linear-gradient</item> - <item>-ms-overflow-style</item> <item>-ms-text-size-adjust</item> - <item>-ms-transform</item> - <item>-ms-transition</item> - <item>-ms-user-select</item> </list> <list name="value keywords"> + <item>auto</item> <item>inherit</item> + <item>initial</item> + <item>revert</item> + <item>revert-layer</item> <item>unset</item> - <item>auto</item> - <!-- <item>revert</item> --> </list> <list name="values"> - <item>none</item> - <item>hidden</item> - <item>dotted</item> - <item>dashed</item> - <item>solid</item> - <item>double</item> - <item>groove</item> - <item>ridge</item> - <item>inset</item> - <item>outset</item> - <item>xx-small</item> - <item>x-small</item> - <item>small</item> - <item>medium</item> - <item>large</item> - <item>x-large</item> - <item>xx-large</item> - <item>smaller</item> - <item>larger</item> - <item>italic</item> - <item>oblique</item> - <item>small-caps</item> - <item>normal</item> - <item>bold</item> - <item>bolder</item> - <item>lighter</item> - <item>light</item> - <item>transparent</item> - <item>repeat</item> - <item>repeat-x</item> - <item>repeat-y</item> - <item>no-repeat</item> - <item>baseline</item> - <item>sub</item> - <item>super</item> - <item>top</item> - <item>text-top</item> - <item>middle</item> - <item>bottom</item> - <item>text-bottom</item> - <item>left</item> - <item>right</item> - <item>center</item> - <item>justify</item> - <item>konq-center</item> - <item>disc</item> - <item>circle</item> - <item>square</item> - <item>box</item> - <item>decimal</item> - <item>decimal-leading-zero</item> - <item>lower-roman</item> - <item>upper-roman</item> - <item>lower-greek</item> - <item>lower-alpha</item> - <item>lower-latin</item> - <item>upper-alpha</item> - <item>upper-latin</item> - <item>hebrew</item> - <item>armenian</item> - <item>georgian</item> - <item>cjk-ideographic</item> - <item>hiragana</item> - <item>katakana</item> - <item>hiragana-iroha</item> - <item>katakana-iroha</item> - <item>inline</item> - <item>inline-block</item> - <item>block</item> - <item>list-item</item> - <item>run-in</item> - <item>compact</item> - <item>marker</item> - <item>table</item> - <item>inline-table</item> - <item>table-row-group</item> - <item>table-header-group</item> - <item>table-footer-group</item> - <item>table-row</item> - <item>table-column-group</item> - <item>table-column</item> - <item>table-cell</item> - <item>table-caption</item> - <item>crosshair</item> - <item>default</item> - <item>pointer</item> - <item>move</item> - <item>e-resize</item> - <item>ne-resize</item> - <item>nw-resize</item> - <item>n-resize</item> - <item>se-resize</item> - <item>sw-resize</item> - <item>s-resize</item> - <item>w-resize</item> - <item>text</item> - <item>wait</item> - <item>help</item> - <item>above</item> + <item>-moz-arabic-indic</item> + <item>-moz-bengali</item> + <item>-moz-cjk-earthly-branch</item> + <item>-moz-cjk-heavenly-stem</item> + <item>-moz-devanagari</item> + <item>-moz-gujarati</item> + <item>-moz-gurmukhi</item> + <item>-moz-kannada</item> + <item>-moz-lao</item> + <item>-moz-malayalam</item> + <item>-moz-myanmar</item> + <item>-moz-oriya</item> + <item>-moz-persian</item> + <item>-moz-tamil</item> + <item>-moz-telugu</item> + <item>-moz-thai</item> <item>absolute</item> + <item>accumulate</item> + <item>add</item> + <item>additive</item> + <item>alias</item> + <item>all</item> + <item>all-petite-caps</item> + <item>all-scroll</item> + <item>all-small-caps</item> + <item>allow-end</item> + <item>alpha</item> + <item>alphabetic</item> + <item>alternate</item> + <item>alternate-reverse</item> <item>always</item> + <item>anywhere</item> + <item>arabic-indic</item> + <item>armenian</item> + <item>auto-add</item> + <item>auto-fill</item> + <item>auto-fit</item> <item>avoid</item> - <item>below</item> + <item>avoid-column</item> + <item>avoid-page</item> + <item>avoid-region</item> + <item>backwards</item> + <item>balance</item> + <item>balance-all</item> + <item>baseline</item> + <item>bengali</item> <item>bidi-override</item> - <item>blink</item> + <item>bigger</item> + <item>block</item> + <item>block-end</item> + <item>block-start</item> + <item>bold</item> + <item>bolder</item> + <item>border</item> + <item>border-box</item> <item>both</item> + <item>both-edges</item> + <item>bottom</item> + <item>break-all</item> + <item>break-spaces</item> + <item>break-word</item> + <item>bullets</item> + <item>cambodian</item> + <item>cap-height</item> <item>capitalize</item> - <item>caption</item> + <item>cell</item> + <item>center</item> + <item>ch-width</item> + <item>circle</item> + <item>cjk-decimal</item> + <item>cjk-earthly-branch</item> + <item>cjk-heavenly-stem</item> + <item>cjk-ideographic</item> <item>clip</item> + <item>clone</item> <item>close-quote</item> + <item>col-resize</item> <item>collapse</item> + <item>color</item> + <item>color-burn</item> + <item>color-dodge</item> + <item>column</item> + <item>column-reverse</item> + <item>common-ligatures</item> + <item>compact</item> <item>condensed</item> - <item>crop</item> - <item>cross</item> + <item>contain</item> + <item>content</item> + <item>content-box</item> + <item>contents</item> + <item>context-menu</item> + <item>contextual</item> + <item>copy</item> + <item>cover</item> + <item>crisp-edges</item> + <item>crosshair</item> + <item>currentcolor</item> + <item>cursive</item> + <item>cyclic</item> + <item>dark</item> + <item>darken</item> + <item>dashed</item> + <item>decimal</item> + <item>decimal-leading-zero</item> + <item>default</item> + <item>dense</item> + <item>devanagari</item> + <item>diagonal-fractions</item> + <item>difference</item> + <item>disc</item> + <item>disclosure-closed</item> + <item>disclosure-open</item> + <item>discretionary-ligatures</item> + <item>dot</item> + <item>dotted</item> + <item>double</item> + <item>double-circle</item> + <item>e-resize</item> + <item>each-line</item> + <item>ease</item> + <item>ease-in</item> + <item>ease-in-out</item> + <item>ease-out</item> + <item>economy</item> <item>ellipsis</item> - <item>ellipsis-word</item> <item>embed</item> + <item>emoji</item> + <item>end</item> + <item>ethiopic-numeric</item> + <item>ew-resize</item> + <item>ex-height</item> + <item>exact</item> + <item>exclude</item> + <item>exclusion</item> <item>expanded</item> + <item>extends</item> <item>extra-condensed</item> <item>extra-expanded</item> + <item>fade</item> + <item>fallback</item> + <item>false</item> + <item>fangsong</item> + <item>fantasy</item> + <item>fill</item> + <item>fill-box</item> + <item>filled</item> + <item>first</item> + <item>fit-content</item> <item>fixed</item> - <item>hand</item> + <item>flat</item> + <item>flex</item> + <item>flex-end</item> + <item>flex-start</item> + <item>flow</item> + <item>flow-root</item> + <item>force-end</item> + <item>forwards</item> + <item>from-font</item> + <item>from-image</item> + <item>full-size-kana</item> + <item>full-width</item> + <item>georgian</item> + <item>grab</item> + <item>grabbing</item> + <item>grid</item> + <item>groove</item> + <item>gujarati</item> + <item>gurmukhi</item> + <item>hanging</item> + <item>hard-light</item> + <item>hebrew</item> + <item>help</item> + <item>hidden</item> <item>hide</item> - <item>higher</item> - <item>icon</item> + <item>high-quality</item> + <item>hiragana</item> + <item>hiragana-iroha</item> + <item>historical-forms</item> + <item>historical-ligatures</item> + <item>horizontal</item> + <item>horizontal-tb</item> + <item>hue</item> + <item>ic-height</item> + <item>ic-width</item> + <item>infinite</item> + <item>inline</item> + <item>inline-block</item> + <item>inline-end</item> + <item>inline-flex</item> + <item>inline-grid</item> + <item>inline-size</item> + <item>inline-start</item> + <item>inline-table</item> + <item>inset</item> <item>inside</item> + <item>inter-character</item> + <item>inter-word</item> + <item>intersect</item> <item>invert</item> + <item>isolate</item> + <item>isolate-override</item> + <item>italic</item> + <item>japanese-formal</item> + <item>japanese-informal</item> + <item>jump-both</item> + <item>jump-end</item> + <item>jump-none</item> + <item>jump-start</item> + <item>justify</item> + <item>justify-all</item> + <item>kannada</item> + <item>katakana</item> + <item>katakana-iroha</item> + <item>keep-all</item> + <item>keyword</item> + <item>khmer</item> + <item>korean-hangul-formal</item> + <item>korean-hanja-formal</item> + <item>korean-hanja-informal</item> <item>landscape</item> - <item>level</item> + <item>lao</item> + <item>large</item> + <item>larger</item> + <item>last</item> + <item>layout</item> + <item>left</item> + <item>legacy</item> + <item>light</item> + <item>lighten</item> + <item>lighter</item> <item>line-through</item> - <item>loud</item> - <item>lower</item> + <item>linear</item> + <item>lining-nums</item> + <item>local</item> + <item>loose</item> + <item>lower-alpha</item> + <item>lower-armenian</item> + <item>lower-greek</item> + <item>lower-latin</item> + <item>lower-roman</item> <item>lowercase</item> <item>ltr</item> - <item>menu</item> - <item>message-box</item> - <item>mix</item> - <item>narrower</item> + <item>luminance</item> + <item>luminosity</item> + <item>malayalam</item> + <item>mandatory</item> + <item>manipulation</item> + <item>manual</item> + <item>margin-box</item> + <item>match-parent</item> + <item>match-source</item> + <item>math</item> + <item>max-content</item> + <item>medium</item> + <item>min-content</item> + <item>mixed</item> + <item>mongolian</item> + <item>monospace</item> + <item>move</item> + <item>multiply</item> + <item>myanmar</item> + <item>n-resize</item> + <item>ne-resize</item> + <item>nesw-resize</item> + <item>no-clip</item> <item>no-close-quote</item> + <item>no-common-ligatures</item> + <item>no-contextual</item> + <item>no-discretionary-ligatures</item> + <item>no-drop</item> + <item>no-historical-ligatures</item> <item>no-open-quote</item> + <item>no-repeat</item> + <item>none</item> + <item>normal</item> + <item>not-allowed</item> <item>nowrap</item> + <item>ns-resize</item> + <item>numbers</item> + <item>numeric</item> + <item>nw-resize</item> + <item>nwse-resize</item> + <item>oblique</item> + <item>oldstyle-nums</item> + <item>only</item> + <item>open</item> <item>open-quote</item> + <item>optional</item> + <item>ordinal</item> + <item>oriya</item> + <item>outset</item> <item>outside</item> + <item>over</item> + <item>overlay</item> <item>overline</item> + <item>padding</item> + <item>padding-box</item> + <item>paint</item> + <item>painted</item> + <item>pan-down</item> + <item>pan-left</item> + <item>pan-right</item> + <item>pan-up</item> + <item>pan-x</item> + <item>pan-y</item> + <item>paused</item> + <item>persian</item> + <item>petite-caps</item> + <item>pinch-zoom</item> + <item>pixelated</item> + <item>plaintext</item> + <item>pointer</item> <item>portrait</item> + <item>position</item> <item>pre</item> <item>pre-line</item> <item>pre-wrap</item> + <item>preserve-3d</item> + <item>progress</item> + <item>proportional-nums</item> + <item>proportional-width</item> + <item>proximity</item> + <item>recto</item> <item>relative</item> + <item>repeat</item> + <item>repeat-x</item> + <item>repeat-y</item> + <item>replace</item> + <item>reverse</item> + <item>ridge</item> + <item>right</item> + <item>rotate-left</item> + <item>rotate-right</item> + <item>round</item> + <item>row</item> + <item>row-resize</item> + <item>row-reverse</item> <item>rtl</item> + <item>ruby</item> + <item>ruby-base</item> + <item>ruby-base-container</item> + <item>ruby-text</item> + <item>ruby-text-container</item> + <item>running</item> + <item>s-resize</item> + <item>safe</item> + <item>sans-serif</item> + <item>saturation</item> + <item>scale-down</item> + <item>screen</item> <item>scroll</item> + <item>scroll-position</item> + <item>se-resize</item> + <item>self-end</item> + <item>self-start</item> <item>semi-condensed</item> <item>semi-expanded</item> <item>separate</item> + <item>serif</item> + <item>sesame</item> <item>show</item> - <item>small-caption</item> + <item>sideways</item> + <item>sideways-lr</item> + <item>sideways-right</item> + <item>sideways-rl</item> + <item>simp-chinese-formal</item> + <item>simp-chinese-informal</item> + <item>size</item> + <item>slashed-zero</item> + <item>slice</item> + <item>small</item> + <item>small-caps</item> + <item>smaller</item> + <item>smooth</item> + <item>soft-light</item> + <item>solid</item> + <item>space</item> + <item>space-around</item> + <item>space-between</item> + <item>space-evenly</item> + <item>spell-out</item> + <item>square</item> + <item>stable</item> + <item>stacked-fractions</item> + <item>start</item> <item>static</item> - <item>static-position</item> - <item>status-bar</item> + <item>step-end</item> + <item>step-start</item> + <item>sticky</item> + <item>stretch</item> + <item>strict</item> + <item>stroke</item> + <item>stroke-box</item> + <item>style</item> + <item>sub</item> + <item>subtract</item> + <item>super</item> + <item>sw-resize</item> + <item>swap</item> + <item>symbolic</item> + <item>system-ui</item> + <item>table</item> + <item>table-caption</item> + <item>table-cell</item> + <item>table-column</item> + <item>table-column-group</item> + <item>table-footer-group</item> + <item>table-header-group</item> + <item>table-row</item> + <item>table-row-group</item> + <item>tabular-nums</item> + <item>tamil</item> + <item>telugu</item> + <item>text</item> + <item>thai</item> <item>thick</item> <item>thin</item> + <item>tibetan</item> + <item>titling-caps</item> + <item>top</item> + <item>trad-chinese-formal</item> + <item>trad-chinese-informal</item> + <item>transparent</item> + <item>triangle</item> + <item>true</item> + <item>ui-monospace</item> + <item>ui-rounded</item> + <item>ui-sans-serif</item> + <item>ui-serif</item> <item>ultra-condensed</item> <item>ultra-expanded</item> + <item>under</item> <item>underline</item> + <item>unicase</item> + <item>unicode</item> + <item>unsafe</item> + <item>upper-alpha</item> + <item>upper-armenian</item> + <item>upper-latin</item> + <item>upper-roman</item> <item>uppercase</item> + <item>upright</item> + <item>use-glyph-orientation</item> + <item>verso</item> + <item>vertical</item> + <item>vertical-lr</item> + <item>vertical-rl</item> + <item>vertical-text</item> + <item>view-box</item> <item>visible</item> - <item>wider</item> - <item>break</item> - <item>serif</item> - <item>sans-serif</item> - <item>cursive</item> - <item>fantasy</item> - <item>monospace</item> - <item>border-box</item> - <item>content-box</item> - <item>-epub-hyphens</item> - <item>contain</item> - <item>cover</item> - - <!-- transition and animation --> - <item>all</item> - <item>ease</item> - <item>ease-in</item> - <item>ease-out</item> - <item>ease-in-out</item> - <item>step-start</item> - <item>step-end</item> - <item>linear</item> + <item>visibleFill</item> + <item>visiblePainted</item> + <item>visibleStroke</item> + <item>w-resize</item> + <item>wait</item> + <item>weight</item> + <item>words</item> + <item>wrap</item> + <item>wrap-reverse</item> + <item>x-large</item> + <item>x-small</item> + <item>xx-large</item> + <item>xx-small</item> + <item>xxx-large</item> + <item>zoom-in</item> + <item>zoom-out</item> + + <!-- SVG only --> + + <item>after-edge</item> + <item>arcs</item> + <item>before-edge</item> + <item>bevel</item> + <item>bounding-box</item> + <item>butt</item> + <item>central</item> + <item>crispEdges</item> + <item>evenodd</item> + <item>fixed-position</item> + <item>freeze</item> + <item>geometricPrecision</item> + <item>ideographic</item> + <item>linearRGB</item> + <item>mathematical</item> + <item>middle</item> + <item>miter</item> + <item>miter-clip</item> + <item>non-rotation</item> + <item>non-scaling-size</item> + <item>non-scaling-stroke</item> + <item>nonzero</item> + <item>optimizeLegibility</item> + <item>optimizeQuality</item> + <item>optimizeSpeed</item> + <item>remove</item> + <item>sRGB</item> + <item>text-after-edge</item> + <item>text-before-edge</item> + <item>text-bottom</item> + <item>text-top</item> - <!-- animation --> - <item>infinite</item> - <item>reverse</item> - <item>alternate</item> - <item>alternate-reverse</item> - <item>forwards</item> - <item>backwards</item> - <item>running</item> - <item>paused</item> + <!-- manual list --> + <item>konq-center</item> </list> <list name="colors"> - <item>black</item> - <item>silver</item> - <item>gray</item> - <item>white</item> - <item>maroon</item> - <item>red</item> - <item>purple</item> - <item>fuchsia</item> - <item>green</item> - <item>lime</item> - <item>olive</item> - <item>yellow</item> - <item>navy</item> - <item>blue</item> - <item>teal</item> - <item>aqua</item> - <item>orange</item> <item>aliceblue</item> <item>antiquewhite</item> + <item>aqua</item> <item>aquamarine</item> <item>azure</item> <item>beige</item> <item>bisque</item> + <item>black</item> <item>blanchedalmond</item> + <item>blue</item> <item>blueviolet</item> <item>brown</item> <item>burlywood</item> @@ -898,7 +1083,6 @@ Changelog: <item>cornsilk</item> <item>crimson</item> <item>cyan</item> - <item>aqua</item> <item>darkblue</item> <item>darkcyan</item> <item>darkgoldenrod</item> @@ -926,10 +1110,13 @@ Changelog: <item>firebrick</item> <item>floralwhite</item> <item>forestgreen</item> + <item>fuchsia</item> <item>gainsboro</item> <item>ghostwhite</item> <item>gold</item> <item>goldenrod</item> + <item>gray</item> + <item>green</item> <item>greenyellow</item> <item>grey</item> <item>honeydew</item> @@ -957,10 +1144,11 @@ Changelog: <item>lightslategrey</item> <item>lightsteelblue</item> <item>lightyellow</item> + <item>lime</item> <item>limegreen</item> <item>linen</item> <item>magenta</item> - <item>fuchsia</item> + <item>maroon</item> <item>mediumaquamarine</item> <item>mediumblue</item> <item>mediumorchid</item> @@ -975,8 +1163,11 @@ Changelog: <item>mistyrose</item> <item>moccasin</item> <item>navajowhite</item> + <item>navy</item> <item>oldlace</item> + <item>olive</item> <item>olivedrab</item> + <item>orange</item> <item>orangered</item> <item>orchid</item> <item>palegoldenrod</item> @@ -989,6 +1180,9 @@ Changelog: <item>pink</item> <item>plum</item> <item>powderblue</item> + <item>purple</item> + <item>rebeccapurple</item> + <item>red</item> <item>rosybrown</item> <item>royalblue</item> <item>saddlebrown</item> @@ -997,6 +1191,7 @@ Changelog: <item>seagreen</item> <item>seashell</item> <item>sienna</item> + <item>silver</item> <item>skyblue</item> <item>slateblue</item> <item>slategray</item> @@ -1005,189 +1200,196 @@ Changelog: <item>springgreen</item> <item>steelblue</item> <item>tan</item> + <item>teal</item> <item>thistle</item> <item>tomato</item> <item>turquoise</item> <item>violet</item> <item>wheat</item> + <item>white</item> <item>whitesmoke</item> + <item>yellow</item> <item>yellowgreen</item> - <item>rebeccapurple</item> - - <item>ActiveBorder</item> - <item>ActiveCaption</item> - <item>AppWorkspace</item> - <item>Background</item> + + <!-- System colors --> + <item>AccentColor</item> + <item>AccentColorText</item> + <item>ActiveText</item> + <item>ButtonBorder</item> <item>ButtonFace</item> - <item>ButtonHighlight</item> - <item>ButtonShadow</item> <item>ButtonText</item> - <item>CaptionText</item> + <item>Canvas</item> + <item>CanvasText</item> + <item>Field</item> + <item>FieldText</item> <item>GrayText</item> <item>Highlight</item> <item>HighlightText</item> - <item>InactiveBorder</item> - <item>InactiveCaption</item> - <item>InactiveCaptionText</item> - <item>InfoBackground</item> - <item>InfoText</item> - <item>Menu</item> - <item>MenuText</item> - <item>Scrollbar</item> - <item>ThreeDDarkShadow</item> - <item>ThreeDFace</item> - <item>ThreeDHighlight</item> - <item>ThreeDLightShadow</item> - <item>ThreeDShadow</item> - <item>Window</item> - <item>WindowFrame</item> - <item>WindowText</item> + <item>LinkText</item> + <item>Mark</item> + <item>MarkText</item> + <item>VisitedText</item> </list> + <!-- https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Functions --> <list name="functions"> + <item>abs</item> + <item>acos</item> + <item>annotation</item> + <item>asin</item> + <item>atan</item> + <item>atan2</item> <item>attr</item> - <item>calc</item> - <item>hsl</item> - <item>hsla</item> - <item>linear-gradient</item> - <item>radial-gradient</item> - <item>repeating-linear-gradient</item> - <item>repeating-radial-gradient</item> - <item>rgb</item> - <item>rgba</item> - <item>var</item> - <item>url</item> - - <!-- clip --> - <item>rect</item> - - <!-- shape-outside and clip-path --> - <item>inset</item> - <item>circle</item> - <item>ellipse</item> - <item>polygon</item> - - <!-- filter and backdrop-filter --> <item>blur</item> <item>brightness</item> + <item>calc</item> + <item>character-variant</item> + <item>circle</item> + <item>clamp</item> + <item>color</item> + <item>color-mix</item> + <item>conic-gradient</item> <item>contrast</item> + <item>cos</item> + <item>counter</item> + <item>counters</item> + <item>cross-fade</item> + <item>device-cmyk</item> <item>drop-shadow</item> + <item>ellipse</item> + <item>env</item> + <item>exp</item> + <item>fit-content</item> + <item>format</item> <item>grayscale</item> + <item>hsl</item> <item>hue-rotate</item> + <item>hwb</item> + <item>hypot</item> + <item>image</item> + <item>image-set</item> + <item>inset</item> <item>invert</item> - <item>opacity</item> - <item>saturate</item> - <item>sepia</item> - - <!-- grid-template-columns and grid-template-rows --> - <item>max-content</item> - <item>min-content</item> - <item>minmax</item> - <item>fix-content</item> - <item>repeat</item> - - <!-- transition and animation --> - <item>cubic-bezier</item> - <item>frames</item> - <item>steps</item> - - <!-- transform --> + <item>lab</item> + <item>lch</item> + <item>linear-gradient</item> + <item>local</item> + <item>log</item> <item>matrix</item> <item>matrix3d</item> + <item>max</item> + <item>min</item> + <item>minmax</item> + <item>mod</item> + <item>oklab</item> + <item>oklch</item> + <item>opacity</item> + <item>ornaments</item> + <item>paint</item> + <item>path</item> <item>perspective</item> + <item>polygon</item> + <item>pow</item> + <item>radial-gradient</item> + <item>rem</item> + <item>repeat</item> + <item>repeating-conic-gradient</item> + <item>repeating-linear-gradient</item> + <item>repeating-radial-gradient</item> + <item>rgb</item> <item>rotate</item> <item>rotate3d</item> <item>rotateX</item> <item>rotateY</item> <item>rotateZ</item> + <item>round</item> + <item>saturate</item> <item>scale</item> <item>scale3d</item> <item>scaleX</item> <item>scaleY</item> <item>scaleZ</item> + <item>sepia</item> + <item>sign</item> + <item>sin</item> <item>skew</item> <item>skewX</item> <item>skewY</item> + <item>sqrt</item> + <item>styleset</item> + <item>stylistic</item> + <item>swash</item> + <item>symbols</item> + <item>tan</item> + <item>tech</item> <item>translate</item> <item>translate3d</item> <item>translateX</item> <item>translateY</item> <item>translateZ</item> - - <!-- inner @font-face --> - <item>local</item> - <item>format</item> + <item>url</item> + <item>var</item> </list> - <list name="medias"> - <!-- types --> + <list name="media types"> <item>all</item> <item>print</item> <item>screen</item> <item>speech</item> + </list> - <!-- features --> - <item>any-pointer</item> + <list name="media features"> + <item>-webkit-device-pixel-ratio</item> + <item>-webkit-transform-3d</item> <item>any-hover</item> + <item>any-pointer</item> <item>aspect-ratio</item> <item>color</item> <item>color-gamut</item> <item>color-index</item> <item>display-mode</item> + <item>dynamic-range</item> + <item>forced-colors</item> <item>grid</item> <item>height</item> <item>hover</item> - <item>max-aspect-ratio</item> - <item>max-color</item> - <item>max-color-index</item> - <item>max-device-aspect-ratio</item> - <item>max-device-height</item> - <item>max-device-width</item> + <item>inverted-colors</item> <item>max-height</item> - <item>max-monochrome</item> - <item>max-resolution</item> <item>max-width</item> - <item>min-aspect-ratio</item> - <item>min-color</item> - <item>min-color-index</item> - <item>min-device-aspect-ratio</item> - <item>min-device-height</item> - <item>min-device-width</item> <item>min-height</item> - <item>min-monochrome</item> - <item>min-resolution</item> <item>min-width</item> <item>monochrome</item> <item>orientation</item> + <item>overflow-block</item> + <item>overflow-inline</item> <item>pointer</item> + <item>prefers-color-scheme</item> + <item>prefers-contrast</item> + <item>prefers-reduced-motion</item> <item>resolution</item> - <item>scan</item> + <item>scripting</item> <item>update</item> + <item>video-dynamic-range</item> <item>width</item> </list> <!-- prefixed by :: --> - <list name="pseudoelements"> + <list name="pseudo-elements"> <item>after</item> + <item>backdrop</item> <item>before</item> <item>cue</item> + <item>cue-region</item> + <item>file-selector-button</item> <item>first-letter</item> <item>first-line</item> - <item>selection</item> - - <!-- experimental --> - <item>backdrop</item> + <item>marker</item> + <item>part</item> <item>placeholder</item> - <!-- <item>marker</item> --> + <item>selection</item> <item>slotted</item> - <!-- <item>spelling-error</item> --> - <!-- <item>grammar-error</item> --> - <!-- UI pseudo-classes --> - <item>value</item> - <item>choices</item> - <item>repeat-item</item> - <item>repeat-index</item> + <!-- manual list --> <item>-moz-progress-bar</item> <item>-moz-range-progress</item> @@ -1206,30 +1408,42 @@ Changelog: </list> <!-- prefixed by : --> - <list name="pseudoclasses"> + <list name="pseudo-classes"> <item>active</item> <item>any-link</item> + <item>autofill</item> + <item>buffering</item> <item>checked</item> + <item>current</item> <item>default</item> <item>defined</item> - <!-- <item>dir</item> --> + <item>dir</item> <item>disabled</item> <item>empty</item> <item>enabled</item> + <item>first</item> <item>first-child</item> <item>first-of-type</item> - <item>fullscreen</item> <item>focus</item> + <item>focus-visible</item> <item>focus-within</item> + <item>fullscreen</item> + <item>has</item> <item>host</item> + <item>host-context</item> <item>hover</item> <item>in-range</item> <item>indeterminate</item> <item>invalid</item> + <item>is</item> <item>lang</item> <item>last-child</item> <item>last-of-type</item> + <item>left</item> <item>link</item> + <item>local-link</item> + <item>modal</item> + <item>muted</item> <item>not</item> <item>nth-child</item> <item>nth-last-child</item> @@ -1239,30 +1453,28 @@ Changelog: <item>only-of-type</item> <item>optional</item> <item>out-of-range</item> + <item>paused</item> + <item>picture-in-picture</item> <item>placeholder-shown</item> + <item>playing</item> <item>read-only</item> <item>read-write</item> <item>required</item> + <item>right</item> <item>root</item> <item>scope</item> + <item>seeking</item> + <item>stalled</item> <item>target</item> + <item>user-invalid</item> + <item>user-valid</item> <item>valid</item> <item>visited</item> - - <!-- pseudo-elements --> - <item>after</item> - <item>before</item> - <item>cue</item> - <item>first-letter</item> - <item>first-line</item> - <item>selection</item> - </list> - - <list name="pseudoclass-not"> - <item>not</item> + <item>volume-locked</item> + <item>where</item> </list> - <list name="pseudoclasses-@page"> + <list name="@page pseudo-classes"> <item>blank</item> <item>first</item> <item>left</item> @@ -1272,426 +1484,548 @@ Changelog: </list> <list name="at-rules"> - <item>@character</item> <item>@charset</item> + <item>@container</item> + <item>@font-feature-values</item> <item>@import</item> - <item>@namespace</item> - </list> - - <list name="nested at-rules"> - <item>@document</item> + <item>@keyframes</item> + <item>@layer</item> <item>@media</item> - <item>@supports</item> - </list> - - <list name="@viewport"> - <item>@viewport</item> - </list> - - <list name="within-@viewport"> - <item>min-width</item> - <item>max-width</item> - <item>width</item> - <item>min-height</item> - <item>max-height</item> - <item>height</item> - <item>zoom</item> - <item>min-zoom</item> - <item>max-zoom</item> - <item>user-zoom</item> - <item>orientation</item> - <item>viewport-fit</item> - </list> - - <list name="@page"> + <item>@namespace</item> <item>@page</item> + <item>@supports</item> </list> - <list name="within-@page"> - <item>size</item> - <item>marks</item> - <item>bleed</item> - </list> - - <list name="@font-face"> + <list name="at-rules definitions"> + <item>@color-profile</item> + <item>@counter-style</item> <item>@font-face</item> - </list> - - <list name="within-@font-face"> - <item>font-display</item> - <item>font-family</item> - <item>font-stretch</item> - <item>font-style</item> - <item>font-weight</item> - <item>font-variant</item> - <item>font-feature-settings</item> - <item>font-variation-settings</item> - <item>src</item> - <item>unicode-range</item> - </list> - - <list name="@keyframes"> - <item>@keyframes</item> - </list> - - <list name="within-@keyframes"> - <item>from</item> - <item>to</item> + <item>@font-palette-values</item> + <item>@property</item> </list> <list name="media operators"> + <item>or</item> <item>and</item> <item>only</item> <item>not</item> </list> <contexts> - <context name="Base" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <IncludeRules context="FindComments" /> - <DetectChar attribute="Normal Text" context="RuleSet" char="{" beginRegion="ruleset" /> - <DetectChar attribute="At Rule" context="SelectAtRule" char="@" lookAhead="true" /> - <!-- find selectors // .class #id :hover :nth-child(2n+1) [type="search"] --> - <DetectChar attribute="Selector Pseudo" context="SelectorPseudo" char=":" /> - <DetectChar attribute="Selector Attribute" context="SelectorAttr" char="[" /> - <DetectChar attribute="Separator Symbol" context="#stay" char="," /> - <AnyChar attribute="Operator" context="#stay" String="*>+~|" /> - <RegExpr attribute="Selector Id" context="#stay" String="#[-]?(&nmstart;)(&nmchar;)*" /> - <RegExpr attribute="Selector Class" context="#stay" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" /> - <RegExpr attribute="Selector Tag" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" /> - </context> - - <context name="FindSelector" attribute="Normal Text" lineEndContext="#stay"> - <IncludeRules context="FindComments" /> - <!-- find selectors // .class #id :hover :nth-child(2n+1) [type="search"] --> - <DetectChar attribute="Selector Attribute" context="SelectorAttr" char="[" /> - <DetectChar attribute="Separator Symbol" context="#stay" char="," /> - <AnyChar attribute="Operator" context="#stay" String="*>+~|" /> - <RegExpr attribute="Selector Id" context="#stay" String="#[-]?(&nmstart;)(&nmchar;)*" /> - <RegExpr attribute="Selector Class" context="#stay" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" /> - <RegExpr attribute="Selector Tag" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" /> + <context name="Base" attribute="Normal Text"> + <DetectSpaces/> + <DetectChar attribute="Block Symbol" context="RuleSet" char="{" beginRegion="ruleset"/> + <DetectChar context="SelectAtRule" char="@" lookAhead="1"/> + <IncludeRules context="FindSelector"/> + </context> + + <!-- find selectors // .class #id :hover :nth-child(2n+1) [type="search"] --> + <context name="FindSelector" attribute="Normal Text"> + <DetectChar attribute="Separator Symbol" char=","/> + <DetectChar attribute="Selector Pseudo" context="PseudoClassOrElement" char=":"/> + <DetectChar attribute="Selector Attribute" context="SelectorAttr" char="["/> + <DetectChar attribute="Selector Pseudo" context="PseudoClassSelector" char="("/> + <AnyChar attribute="Selector Symbol" String="*>+~|&"/> + <IncludeRules context="FindComments"/> + <RegExpr attribute="Selector Class" String="\.&ident2;"/> + <RegExpr attribute="Selector Id" String="#&ident2;"/> + <RegExpr attribute="Selector Tag" String="&ident;"/> </context> <!-- find functions // rgba(255,255,255,0.75) --> - <context name="FindFunctions" attribute="Normal Text" lineEndContext="#stay"> - <RegExpr attribute="Function" context="Function" String="[a-z\-]{2,}\(" lookAhead="true" /> + <context name="FindFunctions" attribute="Normal Text"> + <RegExpr context="Function" String="(&func;)?\(" lookAhead="1"/> + </context> + <context name="FindNestedFunctions" attribute="Normal Text"> + <RegExpr context="NestedFunction" String="(&func;)?\(" lookAhead="1"/> </context> <!-- find values // 10px 12pt 2.5em 1rem 75% #ffcc99 red solid --> - <context name="FindValues" attribute="Normal Text" lineEndContext="#stay"> - <DetectChar attribute="Annotation" context="Annotation" char="!" /> - <keyword attribute="Value Keyword" context="#stay" String="value keywords" /> - <keyword attribute="Value" context="#stay" String="values" /> - <keyword attribute="Color" context="#stay" String="colors" /> - <RegExpr attribute="Color" context="#stay" String="#([0-9A-Fa-f]{3}){1,2}\b" /> - <RegExpr attribute="Number" context="FindUnits" String="[-+]?[0-9.]+(?![-+])" /> - <RegExpr attribute="Normal Text" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" /> + <context name="FindValues" attribute="Normal Text"> + <DetectChar attribute="Annotation" context="Annotation" char="!"/> + <keyword attribute="Value Keyword" String="value keywords"/> + <keyword attribute="Value" String="values"/> + <keyword attribute="Named Color" String="colors"/> + <RegExpr attribute="Color" String="#([0-9A-Fa-f]{8}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{3,4})"/> + <IncludeRules context="FindNumber"/> + <IncludeRules context="FindIdentifier"/> </context> - <context name="Annotation" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> - <WordDetect attribute="Annotation" context="#pop" String="important" /> + <context name="FindNumber" attribute="Number" lineEndContext="#pop"> + <RegExpr attribute="Number" context="FindUnits" String="[-+]?([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?(?![-+])"/> </context> - <context name="FindUnits" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> - <RegExpr attribute="Unit" context="#stay" String="(%|(em|ex|ch|rem|vw|vh|vm|px|in|cm|mm|pt|pc|deg|rad|grad|turn|ms|s|Hz|kHz)\b)(?![-+])" /> + <context name="FindIdentifier" attribute="Number" lineEndContext="#pop"> + <RegExpr String="&ident2;\s*"/> + </context> + + <context name="FindVendorProperty" attribute="Normal Text"> + <RegExpr attribute="Vendor Property" String="-(webkit|moz|o|ms)-[-_a-zA-Z0-9]*"/> + </context> + + <context name="Annotation" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop"> + <WordDetect attribute="Annotation" context="#pop" String="important"/> + </context> + + <context name="FindUnits" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop"> + <!-- https://drafts.csswg.org/css-values-4/#lengths --> + <!-- https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Values_and_Units --> + <RegExpr attribute="Unit" String="(%|(em|ex|cap|ch|ic|rem|lh|rlh|vw|vh|vi|vb|vmin|vmax|cqw|cqh|cqi|cqb|cqmin|cqmax|cm|mm|Q|in|pc|pt|px|deg|grad|rad|turn|s|ms|Hz|kHz|fr|dpi|dpcm|dppx|x)\b)(?![-+])"/> </context> <!-- find strings // "some words" 'some words' --> - <context name="FindStrings" attribute="Normal Text" lineEndContext="#stay"> - <DetectChar attribute="String" context="StringDQ" char=""" /> - <DetectChar attribute="String" context="StringSQ" char="'" /> + <context name="FindStrings" attribute="Normal Text"> + <DetectChar attribute="String" context="StringDQ" char="""/> + <DetectChar attribute="String" context="StringSQ" char="'"/> </context> <!-- find comments // /* comment */ --> - <context name="FindComments" attribute="Normal Text" lineEndContext="#stay"> - <Detect2Chars attribute="Comment" context="IsComments" char="/" char1="*" lookAhead="true"/> - <Detect2Chars attribute="Error" context="Error" char="/" char1="/" /> + <context name="FindComments" attribute="Normal Text"> + <Detect2Chars attribute="Comment" context="IsComments" char="/" char1="*" lookAhead="1"/> + <Detect2Chars attribute="Error" context="Error" char="/" char1="/"/> </context> <context name="Error" attribute="Error" lineEndContext="#pop"> - <RegExpr attribute="Error" context="#pop" String=".*" /> + <RegExpr attribute="Error" context="#pop" String=".*"/> </context> - <context name="IsComments" attribute="Normal Text" lineEndContext="#stay"> - <RegExpr attribute="Region Marker" context="#pop" String="/\*\s*BEGIN\b.*\*/" beginRegion="UserDefined" /> - <RegExpr attribute="Region Marker" context="#pop" String="/\*\s*END\b.*\*/" endRegion="UserDefined" /> - <Detect2Chars attribute="Comment" context="Comment" char="/" char1="*" beginRegion="comment" /> + <context name="IsComments" attribute="Normal Text"> + <RegExpr attribute="Region Marker" context="#pop" String="/\*\s*BEGIN\b.*\*/" beginRegion="UserDefined"/> + <RegExpr attribute="Region Marker" context="#pop" String="/\*\s*END\b.*\*/" endRegion="UserDefined"/> + <Detect2Chars attribute="Comment" context="Comment" char="/" char1="*" beginRegion="comment"/> </context> <context name="SelectAtRule" attribute="At Rule" lineEndContext="#pop"> - <keyword attribute="At Rule" context="#pop!NestedAtRule" String="nested at-rules" /> - <keyword attribute="At Rule" context="#pop!AtRule" String="at-rules" /> - <keyword attribute="At Rule" context="#pop!@keyframes" String="@keyframes" /> - <keyword attribute="At Rule" context="#pop!@viewport" String="@viewport" /> - <keyword attribute="At Rule" context="#pop!@font-face" String="@font-face" /> - <keyword attribute="At Rule" context="#pop!@page" String="@page" /> - <RegExpr attribute="At Rule" context="#pop!UnknownAtRule" String="@[a-zA-Z0-9\-_]+\b" /> + <WordDetect attribute="At Rule" context="@keyframes" String="@keyframes"/> + <WordDetect attribute="At Rule" context="@layer" String="@layer"/> + <WordDetect attribute="At Rule" context="@font-feature-values" String="@font-feature-values"/> + <WordDetect attribute="At Rule" context="@page" String="@page"/> + <WordDetect attribute="At Rule" context="@supports" String="@supports"/> + <keyword attribute="At Rule" context="@property" String="at-rules definitions"/> + <RegExpr attribute="At Rule" context="@media" String="@[-a-zA-Z0-9_]*"/> </context> - <context name="@keyframes" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <IncludeRules context="FindComments" /> - <DetectChar attribute="Normal Text" context="Within-@keyframes" char="{" beginRegion="ruleset" /> - </context> - <context name="Within-@keyframes" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <IncludeRules context="FindComments" /> - <DetectChar attribute="Normal Text" context="#pop#pop" char="}" endRegion="ruleset" /> - <DetectChar attribute="Normal Text" context="RuleSet" char="{" beginRegion="ruleset" /> - <keyword attribute="Value" context="#stay" String="within-@keyframes" /> - <RegExpr attribute="Value" context="#stay" String="[-+]?[0-9.]+%" /> + <context name="AtRuleCommon" attribute="At Rule Text"> + <DetectChar char=";" context="#pop#pop" attribute="Separator Symbol"/> + <DetectChar char="}" context="#pop#pop" lookAhead="1"/> + <IncludeRules context="FindStrings"/> + <IncludeRules context="FindComments"/> </context> - - <context name="@viewport" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <IncludeRules context="FindComments" /> - <DetectChar attribute="Selector Pseudo" context="SelectorPseudo" char=":" /> - <DetectChar attribute="Normal Text" context="#pop!Within-@viewport" char="{" beginRegion="ruleset" /> + <context name="AtRuleCommon2" attribute="At Rule Text"> + <DetectChar char="{" context="#pop#pop!NestedRule" attribute="Block Symbol" beginRegion="ruleset"/> + <IncludeRules context="AtRuleCommon"/> </context> - <context name="Within-@viewport" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <keyword attribute="Property" context="IsProperty" String="within-@viewport" /> - <IncludeRules context="RuleSet" /> - </context> - <context name="@font-face" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <IncludeRules context="FindComments" /> - <DetectChar attribute="Normal Text" context="#pop!Within-@font-face" char="{" beginRegion="ruleset" /> + <context name="@media" attribute="At Rule Text"> + <DetectSpaces/> + <DetectChar char="(" context="AtRuleMediaCondition" attribute="Condition Open/Close"/> + <IncludeRules context="AtRuleCommon2"/> + <IncludeRules context="FindFunctions"/> + <keyword String="media operators" attribute="Keyword"/> + <keyword String="media types" attribute="Media Type"/> + <DetectIdentifier/> </context> - <context name="Within-@font-face" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <IncludeRules context="FindComments" /> - <keyword attribute="Property" context="IsProperty" String="within-@font-face" /> - <RegExpr attribute="Unknown Property" context="IsProperty" String="[A-Za-z_-]+\b" /> - <DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" /> + <context name="AtRuleMediaCondition" attribute="At Rule Text"> + <DetectSpaces/> + <DetectChar char=";" context="#pop#pop#pop" attribute="Error"/> + <DetectChar char="{" context="#pop#pop#pop!RuleSet" attribute="Error" beginRegion="ruleset"/> + <DetectChar char="}" context="#pop#pop#pop" lookAhead="1"/> + <IncludeRules context="AtRuleMediaConditionValue"/> </context> - - <context name="@page" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <IncludeRules context="FindComments" /> - <DetectChar attribute="Selector Pseudo" context="SelectorPseudo-@page" char=":" /> - <DetectChar attribute="Normal Text" context="#pop!Within-@page" char="{" beginRegion="ruleset" /> + <context name="NestedAtRuleMediaCondition" attribute="At Rule Text"> + <DetectSpaces/> + <AnyChar String=";{}" context="#pop" lookAhead="1"/> + <IncludeRules context="AtRuleMediaConditionValue"/> + </context> + <context name="AtRuleMediaConditionValue" attribute="At Rule Text"> + <AnyChar String="<>=" attribute="Operator"/> + <DetectChar char=")" context="#pop" attribute="Condition Open/Close"/> + <DetectChar char="(" context="NestedAtRuleMediaCondition" attribute="Condition Open/Close"/> + <DetectChar char=":" attribute="Property Separator"/> + <IncludeRules context="FindStrings"/> + <IncludeRules context="FindComments"/> + <IncludeRules context="FindFunctions"/> + <IncludeRules context="FindNumber"/> + <keyword String="media operators" attribute="Keyword"/> + <keyword String="media features" attribute="Condition Property"/> + <IncludeRules context="FindIdentifier"/> </context> - <context name="SelectorPseudo-@page" attribute="Selector Pseudo" lineEndContext="#pop"> - <keyword attribute="Selector Pseudo" context="#pop" String="pseudoclasses-@page" /> - <RegExpr attribute="Selector Pseudo" context="#pop" String="[-a-zA-Z][-a-zA-Z0-9]*" /> + <context name="NestedRule" attribute="Normal Text"> + <DetectSpaces/> + <DetectChar char="}" context="#pop" attribute="Block Symbol" endRegion="ruleset"/> + <DetectChar char="{" context="RuleSet" attribute="Block Symbol" beginRegion="ruleset"/> + <DetectChar char="@" context="SelectAtRule" lookAhead="1"/> + <IncludeRules context="FindSelector"/> </context> - <context name="Within-@page" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <keyword attribute="Property" context="IsProperty" String="within-@page" /> - <IncludeRules context="RuleSet" /> + + <context name="@supports" attribute="At Rule Text"> + <DetectSpaces/> + <DetectChar char="(" context="AtRuleSupportsCondition" lookAhead="1"/> + <IncludeRules context="AtRuleCommon2"/> + <keyword String="media operators" attribute="Keyword"/> + <WordDetect String="selector(" context="FunctionSelector" attribute="Function"/> + <WordDetect String="font-tech(" context="#pop!SupportsProp" lookAhead="1"/> + <WordDetect String="font-format(" context="#pop!SupportsProp" lookAhead="1"/> + <DetectIdentifier/> + </context> + <context name="SupportsProp" attribute="At Rule Text"> + <DetectSpaces/> + <DetectChar char="{" context="#pop#pop!RuleSet" attribute="Block Symbol" beginRegion="ruleset"/> + <WordDetect String="font-tech(" context="FunctionFont" attribute="Function"/> + <WordDetect String="font-format(" context="FunctionFont" attribute="Function"/> + <IncludeRules context="AtRuleCommon"/> </context> - <context name="IsProperty" attribute="Error" lineEndContext="#stay"> - <DetectSpaces attribute="Normal Text" /> - <DetectChar attribute="Normal Text" context="RuleParameters" char=":" /> + <context name="AtRuleSupportsCondition" attribute="At Rule Text" fallthroughContext="#pop"> + <DetectChar char="(" context="SupportsCondition" attribute="Condition Open/Close"/> + <DetectChar char=";" context="#pop#pop#pop" attribute="Error"/> + <DetectChar char="{" context="#pop#pop#pop!NestedRule" attribute="Error" beginRegion="ruleset"/> + <DetectChar char="}" context="#pop#pop#pop" lookAhead="1"/> + </context> + <context name="SupportsCondition" attribute="At Rule Text" fallthroughContext="#pop!SupportsConditionValue"> + <DetectSpaces/> + <DetectChar char="(" context="SupportsCondition" attribute="Condition Open/Close"/> + <DetectChar char=":" context="#pop!SupportsConditionValue" attribute="Property Separator"/> + <IncludeRules context="FindComments"/> + <keyword String="media operators" attribute="Keyword"/> + <keyword String="properties" attribute="Condition Property"/> + <IncludeRules context="FindVendorProperty"/> + </context> + <context name="SupportsConditionValue" attribute="At Rule Text"> + <AnyChar String=";{}" context="#pop" lookAhead="1"/> + <DetectChar char=")" context="#pop" attribute="Condition Open/Close"/> + <DetectChar char="(" context="SupportsCondition" attribute="Condition Open/Close"/> + <IncludeRules context="FindStrings"/> + <IncludeRules context="FindComments"/> + <IncludeRules context="FindFunctions"/> + <IncludeRules context="FindValues"/> </context> - <context name="NestedAtRule" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <DetectChar attribute="Normal Text" context="NestedBase" char="{" beginRegion="ruleset" /> - <IncludeRules context="AtRuleValue" /> + <context name="FunctionSelector" attribute="At Rule Text"> + <DetectSpaces/> + <AnyChar String=";{}" context="#pop" lookAhead="1"/> + <DetectChar char=")" context="#pop" attribute="Function"/> + <IncludeRules context="FindSelector"/> + </context> + <context name="FunctionFont" attribute="At Rule Text"> + <DetectSpaces/> + <DetectIdentifier/> + <AnyChar String=";{}" context="#pop" lookAhead="1"/> + <DetectChar char=")" context="#pop" attribute="Function"/> + <IncludeRules context="FindStrings"/> + <IncludeRules context="FindComments"/> </context> - <context name="NestedBase" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <DetectChar attribute="Normal Text" context="#pop#pop" char="}" endRegion="ruleset" /> - <IncludeRules context="Base" /> + + <context name="@layer" attribute="At Rule Text"> + <DetectSpaces/> + <DetectIdentifier/> + <DetectChar attribute="Separator Symbol" char=","/> + <IncludeRules context="AtRuleCommon2"/> </context> - <context name="AtRule" attribute="Normal Text" lineEndContext="#pop"> - <DetectSpaces /> - <DetectChar attribute="Separator Symbol" context="#pop" char=";" /> - <IncludeRules context="AtRuleValue" /> + + <context name="@page" attribute="At Rule Text"> + <DetectSpaces/> + <DetectChar attribute="Selector Pseudo" char=":"/> + <AnyChar String="{};" context="#pop#pop" lookAhead="1"/> + <IncludeRules context="FindComments"/> + <keyword attribute="Selector Pseudo" String="@page pseudo-classes"/> + <DetectIdentifier/> </context> - <context name="UnknownAtRule" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <DetectChar attribute="Separator Symbol" context="#pop" char=";" /> - <DetectChar attribute="Normal Text" context="#pop!RuleSet" char="{" beginRegion="ruleset" /> - <DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" /> - <IncludeRules context="AtRuleValue" /> + + <context name="@property" attribute="At Rule Text"> + <DetectSpaces/> + <DetectChar char="-"/> + <DetectChar char="{" context="#pop#pop!RuleSet" attribute="Block Symbol" beginRegion="ruleset"/> + <IncludeRules context="AtRuleCommon"/> + <DetectIdentifier/> </context> - <context name="AtRuleValue" attribute="Normal Text" lineEndContext="#stay"> - <IncludeRules context="FindComments" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindFunctions" /> - <keyword attribute="Keyword" context="#stay" String="media operators" /> - <RegExpr attribute="Property" context="#stay" String="[A-Za-z_-]+(?=\s*:)" /> - <keyword attribute="Value" context="#stay" String="medias" /> - <IncludeRules context="FindValues" /> + + <context name="@font-feature-values" attribute="At Rule Text"> + <DetectSpaces/> + <DetectIdentifier/> + <DetectChar char="{" context="#pop#pop!FontFeatureBlock" attribute="Block Symbol" beginRegion="ruleset"/> + <IncludeRules context="AtRuleCommon"/> + </context> + <context name="FontFeatureBlock" attribute="Normal Text" fallthroughContext="#pop!NestedRule"> + <DetectSpaces/> + <DetectChar char="}" context="#pop" attribute="Block Symbol" endRegion="ruleset"/> + <DetectChar char="{" context="AtRuleSet" attribute="Block Symbol" beginRegion="ruleset"/> + <RegExpr String="@[-a-zA-Z]*" attribute="At Rule"/> + <IncludeRules context="FindComments"/> </context> - <context name="SelectorAttr" attribute="Selector Attribute" lineEndContext="#stay"> - <DetectChar attribute="Selector Attribute" context="#pop" char="]" /> - <IncludeRules context="FindStrings" /> - <DetectChar attribute="Operator" context="SelectorAttrValue" char="=" /> - <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="~" char1="=" /> - <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="^" char1="=" /> - <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="$" char1="=" /> - <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="*" char1="=" /> - <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="|" char1="=" /> - <DetectIdentifier /> + <context name="AtRuleSet" attribute="Normal Text" fallthroughContext="#pop!NestedRule"> + <IncludeRules context="RuleSet"/> </context> - <context name="SelectorAttrValue" attribute="String" lineEndContext="#stay"> - <DetectChar attribute="Selector Attribute" context="#pop#pop" char="]" /> - <DetectIdentifier /> + + <context name="@keyframes" attribute="At Rule Text"> + <DetectSpaces/> + <DetectChar char="{" context="#pop#pop!KeyFramesBlock" attribute="Block Symbol" beginRegion="ruleset"/> + <IncludeRules context="AtRuleCommon"/> + <DetectIdentifier/> </context> + <context name="KeyFramesBlock" attribute="Normal Text"> + <DetectSpaces/> + <DetectChar char="{" context="RuleSet" attribute="Block Symbol" beginRegion="ruleset"/> + <DetectChar char="}" context="#pop" attribute="Block Symbol" endRegion="ruleset"/> + <DetectChar char="," attribute="Separator Symbol"/> + <IncludeRules context="FindComments"/> + <RegExpr attribute="Value" String="\b(from|to)\b|[-+]?[0-9.]+%"/> + </context> + - <context name="SelectorPseudo" attribute="Selector Pseudo" lineEndContext="#pop"> - <DetectChar attribute="Selector Pseudo" context="SelectorPseudoElements" char=":" /> - <keyword attribute="Selector Pseudo" context="SelectorPseudoValueSelector" String="pseudoclass-not" /> - <keyword attribute="Selector Pseudo" context="SelectorPseudoValue" String="pseudoclasses" /> - <RegExpr attribute="Selector Pseudo" context="SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" /> + <context name="SelectorAttr" attribute="Attribute Name"> + <DetectChar attribute="Selector Attribute" context="#pop" char="]"/> + <IncludeRules context="FindStrings"/> + <DetectChar attribute="Attribute Operator" context="SelectorAttrValue" char="="/> + <AnyChar attribute="Attribute Operator" String="~^$*|"/> + <IncludeRules context="FindComments"/> + <DetectIdentifier/> + <AnyChar context="#pop" String="{};#.,:>" lookAhead="1"/> </context> - <context name="SelectorPseudoElements" attribute="Selector Pseudo" lineEndContext="#pop#pop"> - <keyword attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="pseudoelements" /> - <RegExpr attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" /> + <context name="SelectorAttrValue" attribute="Normal Text" fallthroughContext="SelectorAttrEnd"> + <DetectSpaces/> + <AnyChar context="SelectorAttrValueQuoted" String=""'" lookAhead="1"/> + <RegExpr context="SelectorAttrEnd" attribute="String" String="-?(\w|&escaped;)([-\w]+|&escaped;)*"/> + <IncludeRules context="FindComments"/> + </context> + <context name="SelectorAttrValueQuoted" attribute="String" fallthroughContext="#pop!SelectorAttrEnd"> + <IncludeRules context="FindStrings"/> + </context> + <context name="SelectorAttrEnd" attribute="String" fallthroughContext="#pop#pop#pop"> + <DetectSpaces/> + <DetectChar attribute="Selector Attribute" context="#pop#pop#pop" char="]"/> + <Detect2Chars context="SelectorAttrValueSensitiveOp" char="i" char1="]" lookAhead="1"/> + <Detect2Chars context="SelectorAttrValueSensitiveOp" char="I" char1="]" lookAhead="1"/> + <Detect2Chars context="SelectorAttrValueSensitiveOp" char="s" char1="]" lookAhead="1"/> + <Detect2Chars context="SelectorAttrValueSensitiveOp" char="S" char1="]" lookAhead="1"/> + <IncludeRules context="FindComments"/> + </context> + <context name="SelectorAttrValueSensitiveOp" attribute="String"> + <DetectChar attribute="Selector Attribute" context="#pop#pop#pop#pop" char="]"/> + <AnyChar attribute="Attribute Operator" String="isIS"/> </context> - <context name="SelectorPseudoValueSelector" attribute="Selector Pseudo" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop"> - <DetectChar attribute="Selector Pseudo" context="SelectorPseudoValueCloseSelector" char="(" /> + <context name="PseudoClassOrElement" attribute="Selector Pseudo" lineEndContext="#pop" fallthroughContext="#pop"> + <DetectChar char=":" attribute="Selector Pseudo"/> + <WordDetect String="lang" attribute="Selector Pseudo" context="PseudoClassStr"/> + <WordDetect String="part" attribute="Selector Pseudo" context="PseudoClassStr"/> + <RegExpr String="nth-[-a-zA-Z0-9]*" attribute="Selector Pseudo" context="PseudoClassNth"/> + <RegExpr String="[-a-zA-Z]+" attribute="Selector Pseudo" context="#pop"/> + <IncludeRules context="FindComments"/> </context> - <context name="SelectorPseudoValueCloseSelector" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <DetectChar attribute="Selector Pseudo" context="#pop#pop#pop" char=")" /> - <DetectChar attribute="Error" context="#pop#pop#pop!RuleSet" char="{" beginRegion="ruleset" /> - <IncludeRules context="FindSelector" /> + <context name="PseudoClassStr" attribute="Error" lineEndContext="#pop#pop" fallthroughContext="#pop#pop"> + <DetectChar char="(" context="PseudoClassStrInner" attribute="Selector Pseudo"/> + <IncludeRules context="FindComments"/> + </context> + <context name="PseudoClassStrInner" attribute="Error"> + <DetectChar char=")" attribute="Selector Pseudo" context="#pop#pop#pop"/> + <DetectChar char="{" context="#pop#pop#pop!RuleSet" attribute="Error" beginRegion="ruleset"/> + <DetectChar char=":" context="#pop#pop#pop!PseudoClassOrElement" attribute="Error"/> + <RegExpr String="\s*&ident;(\s+&ident;|\s+)*" attribute="String"/> + <IncludeRules context="FindComments"/> </context> - <context name="SelectorPseudoValue" attribute="Selector Pseudo" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop"> - <DetectChar attribute="Selector Pseudo" context="SelectorPseudoValueClose" char="(" /> + <context name="PseudoClassNth" attribute="Error" lineEndContext="#pop#pop" fallthroughContext="#pop#pop"> + <DetectChar char="(" context="PseudoClassNthInner" attribute="Selector Pseudo"/> + <IncludeRules context="FindComments"/> + </context> + <context name="PseudoClassNthInner" attribute="Normal Text" fallthroughContext="#pop#pop!PseudoClassSelector"> + <Int attribute="Number" additionalDeliminator="-"/> + <AnyChar String="+-" attribute="Operator"/> + <DetectChar char="n" attribute="Unit"/> + <DetectChar char=")" attribute="Selector Pseudo" context="#pop#pop#pop"/> + <WordDetect String="odd" attribute="Value"/> + <WordDetect String="even" attribute="Value"/> + <WordDetect String="of" attribute="Keyword" context="#pop#pop!PseudoClassSelector"/> + <IncludeRules context="FindComments"/> + <DetectSpaces/> </context> - <context name="SelectorPseudoValueClose" attribute="Selector Pseudo" lineEndContext="#pop#pop#pop"> - <DetectChar attribute="Selector Pseudo" context="#pop#pop#pop" char=")" /> - <DetectIdentifier /> + <context name="PseudoClassSelector" attribute="Normal Text"> + <DetectSpaces/> + <DetectChar char=")" context="#pop" attribute="Selector Pseudo"/> + <DetectChar attribute="Selector Pseudo" context="NestedPseudoClassSelector" char="("/> + <IncludeRules context="FindSelector"/> + <DetectChar char="{" context="#pop!RuleSet" attribute="Error" beginRegion="ruleset"/> + </context> + <context name="NestedPseudoClassSelector" attribute="Normal Text"> + <DetectChar char="{" context="#pop" lookAhead="1"/> + <IncludeRules context="PseudoClassSelector"/> </context> - <context name="Comment" attribute="Comment" lineEndContext="#stay"> - <DetectSpaces /> - <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="comment" /> - <IncludeRules context="##Alerts" /> - <DetectIdentifier /> + <context name="Comment" attribute="Comment"> + <DetectSpaces/> + <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="comment"/> + <IncludeRules context="##Comments"/> + <DetectIdentifier/> </context> - <context name="RuleSet" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" /> - <RegExpr attribute="Property" context="Rule" String="[A-Za-z_-]+(?=\s*:)" lookAhead="true" /> - <IncludeRules context="Base" /> - <RegExpr attribute="Normal Text" context="#stay" String="[A-Za-z_-]+" /> - <!-- auto-completion only, includes by previous rule --> - <keyword attribute="Normal Text" context="#stay" String="properties" /> + <context name="RuleSet" attribute="Normal Text" fallthroughContext="Rule"> + <DetectSpaces/> + <DetectChar attribute="Block Symbol" context="#pop" char="}" endRegion="ruleset"/> + <DetectChar attribute="Block Symbol" context="RuleSet" char="{" beginRegion="ruleset"/> + <DetectChar context="SelectAtRule" char="@" lookAhead="1"/> + <IncludeRules context="FindComments"/> + <AnyChar context="Selector" String=".#:,[*>+~|&" lookAhead="1"/> </context> - <context name="Rule" attribute="Normal Text" lineEndContext="#stay"> - <DetectChar attribute="Normal Text" context="RuleParameters" char=":" /> - <Detect2Chars attribute="Variable" context="IsVariable" char="-" char1="-" /> - <keyword attribute="Property" context="#stay" String="properties" /> - <RegExpr attribute="Unknown Property" context="#stay" String="[^:]+" /> + <context name="Selector" attribute="Normal Text"> + <DetectSpaces/> + <DetectChar attribute="Block Symbol" context="#pop!RuleSet" char="{" beginRegion="ruleset"/> + <DetectChar attribute="Block Symbol" context="#pop#pop" char="}" endRegion="ruleset"/> + <DetectChar context="#pop!SelectAtRule" char="@" lookAhead="1"/> + <IncludeRules context="FindComments"/> + <IncludeRules context="FindSelector"/> </context> - <context name="IsVariable" attribute="Normal Text" lineEndContext="#pop"> - <DetectChar attribute="Normal Text" context="#pop!RuleParameters" char=":" /> - <RegExpr attribute="Variable" context="#stay" String="[^:]+" /> + <context name="Rule" attribute="Normal Text"> + <DetectChar attribute="Property Separator" context="RuleParameters" char=":"/> + <Detect2Chars attribute="Variable" context="PropertyVariable" char="-" char1="-"/> + <IncludeRules context="FindComments"/> + <AnyChar context="#pop!Selector" String=".#,[*>+~|&@{}" lookAhead="1"/> + <keyword attribute="Property" String="properties"/> + <DetectSpaces attribute="Normal Text"/> + <IncludeRules context="FindVendorProperty"/> + <RegExpr attribute="Unknown Property" String="[-_a-zA-Z]*"/> + </context> + <context name="PropertyVariable" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop"> + <RegExpr attribute="Variable" context="#pop" String="[-_a-zA-Z0-9]*"/> </context> - <context name="RuleParameters" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <IncludeRules context="FindComments" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindFunctions" /> - <IncludeRules context="FindValues" /> + <context name="RuleParameters" attribute="Normal Text"> + <DetectSpaces/> <!-- Jump out conditions --> - <DetectChar attribute="Separator Symbol" context="#pop#pop" char=";" /> - <DetectChar attribute="Separator Symbol" context="#stay" char="," /> - <DetectChar attribute="Normal Text" context="#pop#pop#pop" char="}" endRegion="ruleset" /> - <!-- auto-completion only --> - <keyword attribute="Normal Text" context="#stay" String="functions" /> + <DetectChar attribute="Separator Symbol" context="#pop#pop" char=";"/> + <DetectChar attribute="Block Symbol" context="#pop#pop#pop" char="}" endRegion="ruleset"/> + <DetectChar attribute="Separator Symbol" char=","/> + <IncludeRules context="FindComments"/> + <IncludeRules context="FindStrings"/> + <IncludeRules context="FindFunctions"/> + <IncludeRules context="FindValues"/> </context> - <context name="Function" attribute="Normal Text" lineEndContext="#stay"> - <DetectChar attribute="Function" context="FunctionParameters" char="(" /> - <StringDetect attribute="Function" context="FunctionVar" String="var(" /> - <StringDetect attribute="Function" context="FunctionUrl" String="url(" /> - <StringDetect attribute="Function" context="FunctionCalc" String="calc(" /> - <keyword attribute="Function" context="#stay" String="functions" /> - <RegExpr attribute="Normal Text" context="#stay" String="[-a-zA-Z][-a-zA-Z0-9]*" /> + <context name="Function" attribute="Normal Text"> + <IncludeRules context="FunctionInc"/> + <DetectChar attribute="Error" context="#pop#pop#pop" char=";"/> + <DetectChar attribute="Error" context="#pop#pop#pop" char="}" endRegion="ruleset"/> + <DetectChar attribute="Error" context="#pop#pop#pop!RuleSet" char="{" beginRegion="ruleset"/> </context> - - <context name="FunctionVar" attribute="Variable" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop!FunctionParameters"> - <DetectSpaces /> - <RegExpr attribute="Variable" context="#pop!FunctionParameters" String="--[^ \t\),]+" /> + <context name="NestedFunction" attribute="Normal Text"> + <IncludeRules context="FunctionInc"/> + <AnyChar context="#pop" String="{};" lookAhead="1"/> </context> - - <context name="FunctionCalc" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <DetectChar attribute="Function" context="#pop#pop" char=")" /> - <IncludeRules context="Calc" /> + <context name="FunctionInc" attribute="Normal Text"> + <DetectChar attribute="Function" context="FunctionParameters" char="("/> + <StringDetect attribute="Function" context="FunctionVar" String="var("/> + <StringDetect attribute="Function" context="FunctionCalc" String="calc("/> + <StringDetect attribute="Function" context="FunctionUrl" String="url("/> + <StringDetect attribute="Function" context="FunctionEnv" String="env("/> + <keyword attribute="Function" String="functions"/> + <!-- Legacy --> + <WordDetect attribute="Function" String="rgba"/> + <WordDetect attribute="Function" String="hsla"/> + <RegExpr attribute="Unknown Function" String="&func;"/> </context> - <context name="NestedCalc" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <DetectChar attribute="Normal Text" context="#pop" char=")" /> - <IncludeRules context="Calc" /> + <context name="FunctionVar" attribute="Normal Text" fallthroughContext="FunctionVarSep"> + <RegExpr String="&var;" context="FunctionVarSep" attribute="Variable"/> + <DetectSpaces/> + <IncludeRules context="FindComments"/> + </context> + <context name="FunctionVarSep" attribute="Normal Text" fallthroughContext="FunctionVarParam"> + <DetectChar char=")" context="#pop#pop#pop" attribute="Function"/> + <DetectChar char="," context="FunctionVarParam" attribute="Separator Symbol"/> + </context> + <context name="FunctionVarParam" attribute="Normal Text"> + <DetectSpaces/> + <DetectChar char=")" context="#pop#pop#pop#pop" attribute="Function"/> + <AnyChar String=";{}" context="#pop#pop#pop" lookAhead="1"/> + <IncludeRules context="FindStrings"/> + <IncludeRules context="FindComments"/> + <IncludeRules context="FindNestedFunctions"/> + <IncludeRules context="FindValues"/> </context> - <context name="Calc" attribute="Normal Text" lineEndContext="#stay"> - <DetectChar attribute="Separator Symbol" context="#stay" char="," /> - <DetectChar attribute="Normal Text" context="NestedCalc" char="(" /> - <IncludeRules context="FindComments" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindFunctions" /> - <IncludeRules context="FindValues" /> - <RegExpr attribute="Operator" context="#stay" String="[-](?=$|[ \t(,;])|[+](?=$|[^0-9)])|[/*]" /> - <!-- auto-completion only --> - <keyword attribute="Normal Text" context="#stay" String="functions" /> + <context name="FunctionEnv" attribute="Normal Text" fallthroughContext="FunctionVarSep"> + <RegExpr String="&ident;" context="FunctionVarSep" attribute="Normal Text"/> + <DetectSpaces/> + <IncludeRules context="FindComments"/> </context> - <context name="FunctionUrl" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="UrlValue"> - <DetectSpaces /> - <IncludeRules context="FindStrings" /> - <DetectChar attribute="Function" context="#pop#pop" char=")" /> + <context name="FunctionCalc" attribute="Normal Text"> + <DetectSpaces/> + <DetectChar attribute="Function" context="#pop#pop" char=")"/> + <IncludeRules context="Calc"/> + </context> + <context name="NestedCalc" attribute="Normal Text"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="#pop" char=")"/> + <IncludeRules context="Calc"/> + </context> + <context name="Calc" attribute="Normal Text"> + <DetectChar attribute="Separator Symbol" char=","/> + <DetectChar attribute="Normal Text" context="NestedCalc" char="("/> + <AnyChar String=";{}" context="#pop" lookAhead="1"/> + <IncludeRules context="FindStrings"/> + <IncludeRules context="FindComments"/> + <AnyChar attribute="Operator" String="*/%"/> + <IncludeRules context="FindNestedFunctions"/> + <IncludeRules context="FindNumber"/> + <RegExpr String="[-+]?((?i:infinity|e|pi)|NaN)($|[^-\w])|[-+]($|[\s(,;]|/\*)" context="CalcConstantOrOperator" lookAhead="1"/> + <IncludeRules context="FindIdentifier"/> + </context> + <context name="CalcConstantOrOperator" attribute="Normal Text" fallthroughContext="#pop"> + <DetectIdentifier context="#pop" attribute="Calc Constant"/> + <AnyChar String="-+" attribute="Operator"/> </context> - <context name="UrlValue" attribute="String" lineEndContext="#stay"> - <DetectChar attribute="Function" context="#pop#pop#pop" char=")" /> + <context name="FunctionUrl" attribute="Normal Text" fallthroughContext="UrlValue"> + <DetectSpaces/> + <IncludeRules context="FindStrings"/> + </context> + <context name="UrlValue" attribute="String"> + <DetectChar attribute="Function" context="#pop#pop#pop" char=")"/> + <AnyChar String=";{}" context="#pop#pop" lookAhead="1"/> </context> - <context name="FunctionParameters" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces /> - <DetectChar attribute="Function" context="#pop#pop" char=")" /> - <IncludeRules context="FindComments" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindValues" /> - <DetectChar attribute="Separator Symbol" context="#stay" char="," /> + <context name="FunctionParameters" attribute="Normal Text"> + <DetectSpaces/> + <DetectChar attribute="Function" context="#pop#pop" char=")"/> + <DetectChar attribute="Separator Symbol" char=","/> + <AnyChar String=";{}" context="#pop" lookAhead="1"/> + <IncludeRules context="FindComments"/> + <IncludeRules context="FindStrings"/> + <IncludeRules context="FindNestedFunctions"/> + <IncludeRules context="FindValues"/> </context> <!-- string contexts --> - <context name="StringDQ" attribute="String" lineEndContext="#stay"> - <DetectChar attribute="String" context="#pop" char=""" /> - <IncludeRules context="InsideString" /> + <context name="StringDQ" attribute="String" lineEndContext="#pop"> + <DetectChar attribute="String" context="#pop" char="""/> + <IncludeRules context="InsideString"/> </context> - <context name="StringSQ" attribute="String" lineEndContext="#stay"> - <DetectChar attribute="String" context="#pop" char="'" /> - <IncludeRules context="InsideString" /> + <context name="StringSQ" attribute="String" lineEndContext="#pop"> + <DetectChar attribute="String" context="#pop" char="'"/> + <IncludeRules context="InsideString"/> </context> - <context name="InsideString" attribute="String" lineEndContext="#stay"> - <RegExpr attribute="SpecialChar" context="#stay" String="\\([0-9A-Fa-f]{1,6}|.?)" /> - <RegExpr attribute="String" context="#stay" String="\\?[^"'\\]+" /> + <context name="InsideString" attribute="String"> + <RegExpr attribute="SpecialChar" String="\\([0-9A-Fa-f]{1,6}|.?)"/> + <RegExpr attribute="String" String="\\?[^"'\\]+"/> </context> </contexts> @@ -1699,37 +2033,51 @@ Changelog: <itemDatas> <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/> <itemData name="At Rule" defStyleNum="dsImport" spellChecking="false"/> + <itemData name="At Rule Text" defStyleNum="dsNormal" spellChecking="false"/> + <itemData name="Media Type" defStyleNum="dsAnnotation" spellChecking="false"/> <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> <itemData name="Property" defStyleNum="dsKeyword" spellChecking="false"/> + <itemData name="Vendor Property" defStyleNum="dsKeyword" spellChecking="false" italic="1"/> <itemData name="Unknown Property" defStyleNum="dsNormal" spellChecking="false"/> + <itemData name="Property Separator" defStyleNum="dsChar" spellChecking="false"/> <itemData name="String" defStyleNum="dsString"/> <itemData name="SpecialChar" defStyleNum="dsSpecialChar" spellChecking="false"/> <itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/> <itemData name="Separator Symbol" defStyleNum="dsOperator" spellChecking="false"/> + <itemData name="Block Symbol" defStyleNum="dsNormal" spellChecking="false"/> <itemData name="Value" defStyleNum="dsDecVal" spellChecking="false"/> <itemData name="Number" defStyleNum="dsDecVal" spellChecking="false"/> <itemData name="Value Keyword" defStyleNum="dsBuiltIn" spellChecking="false"/> + <itemData name="Named Color" defStyleNum="dsConstant" spellChecking="false"/> <itemData name="Color" defStyleNum="dsConstant" spellChecking="false"/> <itemData name="Unit" defStyleNum="dsDataType" spellChecking="false"/> <itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/> <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/> + <itemData name="Unknown Function" defStyleNum="dsNormal" spellChecking="false"/> + <itemData name="Calc Constant" defStyleNum="dsDecVal" spellChecking="false"/> <itemData name="Annotation" defStyleNum="dsAttribute" spellChecking="false"/> + <itemData name="Condition Open/Close" defStyleNum="dsFunction" spellChecking="false"/> + <itemData name="Condition Property" defStyleNum="dsKeyword" spellChecking="false"/> <itemData name="Selector Id" defStyleNum="dsPreprocessor" bold="1" spellChecking="false"/> <itemData name="Selector Class" defStyleNum="dsFunction" spellChecking="false"/> <itemData name="Selector Attribute" defStyleNum="dsExtension" spellChecking="false"/> <itemData name="Selector Pseudo" defStyleNum="dsInformation" italic="1" spellChecking="false"/> <itemData name="Selector Tag" defStyleNum="dsNormal" spellChecking="false"/> - <itemData name="Comment" defStyleNum="dsComment" /> + <itemData name="Selector Symbol" defStyleNum="dsOperator" spellChecking="false"/> + <itemData name="Attribute Name" defStyleNum="dsSpecialString" spellChecking="false"/> + <itemData name="Attribute Operator" defStyleNum="dsOperator" spellChecking="false"/> + <itemData name="Comment" defStyleNum="dsComment"/> <itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/> <itemData name="Error" defStyleNum="dsError" spellChecking="false"/> </itemDatas> </highlighting> <general> - <keywords casesensitive="0" weakDeliminator="-%@" /> + <keywords casesensitive="0" weakDeliminator="-%@"/> <comments> - <comment name="multiLine" start="/*" end="*/" /> + <comment name="multiLine" start="/*" end="*/" region="comment"/> </comments> </general> </language> +<!-- kate: replace-tabs on; tab-width 4; indent-width 4; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/doxygen.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/doxygen.xml index a6abda9204..da87e4d917 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/doxygen.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/doxygen.xml @@ -1,10 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd" +<!DOCTYPE language [ - <!ENTITY wordsep "([][,?;()]|\.$|\.?\s)"> <!-- things that end a TagWord --> + <!ENTITY wordsep "(?:[][,?;()]|\.$|\.?\s|$)"> <!-- things that end a TagWord --> + <!ENTITY sl_word ".*?(?=&wordsep;)"> + <!ENTITY ml_word ".*?(?=&wordsep;|\*/)"> ]> <language name="Doxygen" - version="6" + version="15" kateversion="5.0" section="Markup" extensions="*.dox;*.doxygen" @@ -42,10 +44,6 @@ <item>\endrtfonly</item> <item>@endrtfonly</item> <item>\endsecreflist</item> <item>@endsecreflist</item> <item>\endxmlonly</item> <item>@endxmlonly</item> - <item>\f[</item> <item>@f[</item> - <item>\f]</item> <item>@f]</item> - <item>\f$</item> <item>@f$</item> - <!-- TODO Add @f{environment}{ and @f} --> <item>\hideinitializer</item> <item>@hideinitializer</item> <item>\htmlonly</item> <item>@htmlonly</item> <!-- TODO @internal is a candidate to be handled separately, cuz may introduce folding region --> @@ -84,21 +82,6 @@ <item>\test</item> <item>@test</item> <item>\version</item> <item>@version</item> <item>\xmlonly</item> <item>@xmlonly</item> - <!-- TODO Introduce separate context for @~ ? --> - <item>\#</item> <item>@#</item> - <item>\$</item> <item>@$</item> - <item>\%</item> <item>@%</item> - <item>\&</item> <item>@&</item> - <item>\></item> <item>@></item> - <item>\<</item> <item>@<</item> - <item>\"</item> <item>@"</item> - <item>\::</item> <item>@::</item> - <item>\@</item> <item>@@</item> - <item>\\</item> <item>@\</item> - <item>\~</item> <item>@~</item> - <item>\.</item> <item>@.</item> - <item>\--</item> <item>@--</item> - <item>\---</item> <item>@---</item> </list> <list name="TagWord"> @@ -202,6 +185,12 @@ <item>\var</item> <item>@var</item> <item>\vhdlflow</item> <item>@vhdlflow</item> </list> + <list name="TagEnd"> + <item>\endcode</item> <item>@endcode</item> + <item>\endverbatim</item> <item>@endverbatim</item> + <item>\endmsc</item> <item>@endmsc</item> + <item>\enddot</item> <item>@enddot</item> + </list> <list name="Note"> <item>\note</item> <item>@note</item> </list> @@ -231,8 +220,8 @@ TODO Not all commands are handled properly nowadays :( Need few more contexts... --> <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> - <RegExpr attribute="Comment" context="LineComment" String="//(!|(/(?=[^/]|$)))<?" /> - <RegExpr attribute="Comment" context="BlockComment" String="/\*(\*[^*/]|!|[*!]<|\*$)" beginRegion="BlockComment" /> + <RegExpr attribute="Comment" context="LineComment" String="//(?:!|(?:/(?=[^/]|$)))<?" /> + <RegExpr attribute="Comment" context="BlockComment" String="/\*(?:\*[^*/]|!|[*!]<|\*$)" beginRegion="BlockComment" /> <RegExpr attribute="Region" context="#stay" String="//\s*@\{\s*$" beginRegion="MemberGroup" /> <RegExpr attribute="Region" context="#stay" String="//\s*@\}\s*$" endRegion="MemberGroup" /> <RegExpr attribute="Region" context="#stay" String="/\*\s*@\{\s*\*/" beginRegion="MemberGroup" /> @@ -241,39 +230,20 @@ <context attribute="Comment" lineEndContext="#pop" name="LineComment"> <LineContinue attribute="Comment" context="#stay" /> <DetectSpaces /> - <IncludeRules context="##Alerts" /> - <IncludeRules context="SL_DetectEnv" /> - <keyword attribute="Tags" context="#stay" String="TagOnly" /> - <keyword attribute="Tags" context="SL_TagWord" String="TagWord" /> - <keyword attribute="Tags" context="SL_TagParam" String="TagParam" /> - <keyword attribute="Tags" context="SL_TagWordWord" String="TagWordWord" /> - <keyword attribute="Tags" context="SL_TagString" String="TagString" /> - <keyword attribute="Tags" context="SL_TagWordString" String="TagWordString" /> - <RegExpr attribute="Custom Tags" context="#stay" String="[@\\][^@\\ \t]+" /> + <IncludeRules context="##Comments" /> <DetectIdentifier /> - <StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="<!--" /> - <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> - <RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\/?[-\w0-9._:@]+" /> + <AnyChar attribute="Comment" context="SL_StartTag" String="\@" lookAhead="true" /> + <DetectChar attribute="Comment" context="SL_StartHTMLTag" char="<" lookAhead="true" /> + <DetectChar attribute="Comment" context="Entities" char="&" lookAhead="true" /> </context> <context attribute="Comment" lineEndContext="#stay" name="BlockComment"> <DetectSpaces /> - <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="BlockComment" /> - <IncludeRules context="##Alerts" /> - <Detect2Chars attribute="Region" context="#stay" char="@" char1="{" beginRegion="Group" /> - <Detect2Chars attribute="Region" context="#stay" char="@" char1="}" endRegion="Group" /> - <IncludeRules context="SL_DetectEnv" /> - <keyword attribute="Tags" context="#stay" String="TagOnly" /> - <keyword attribute="Tags" context="ML_TagWord" String="TagWord" /> - <keyword attribute="Tags" context="ML_TagParam" String="TagParam" /> - <keyword attribute="Tags" context="ML_TagWordWord" String="TagWordWord" /> - <keyword attribute="Tags" context="ML_TagString" String="TagString" /> - <keyword attribute="Tags" context="ML_TagWordString" String="TagWordString" /> - <RegExpr attribute="Custom Tags" context="#stay" String="[@\\]([^@\\ \t\*]|\*(?!/))+" /> + <IncludeRules context="##Comments" /> <DetectIdentifier /> - <RegExpr attribute="Tags" context="#stay" String="\\(<|>)" /> - <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> - <RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\/?[-\w0-9._:@]+" /> - <StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="<!--" /> + <AnyChar attribute="Comment" context="ML_StartTag" String="\@" lookAhead="true" /> + <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="BlockComment" /> + <DetectChar attribute="Comment" context="ML_StartHTMLTag" char="<" lookAhead="true" /> + <DetectChar attribute="Comment" context="Entities" char="&" lookAhead="true" /> </context> <!-- NOTE: all contexts beginning with ML_ are for multiline comments @@ -284,123 +254,254 @@ much more complex and very hard to understand! (But use IncludeRules where the rules don't refer to another SL_*/ML_* context, to help maintainability.) --> + <context attribute="Comment" lineEndContext="#pop" name="ML_StartTag"> + <keyword attribute="Tags" context="#pop!ML_TagWord" String="TagWord" /> + <keyword attribute="Tags" context="#pop!ML_TagParam" String="TagParam" /> + <keyword attribute="Tags" context="#pop!ML_TagWordWord" String="TagWordWord" /> + <keyword attribute="Tags" context="#pop!ML_TagString" String="TagString" /> + <keyword attribute="Tags" context="#pop!ML_TagWordString" String="TagWordString" /> + <WordDetect attribute="Tags" context="#pop!ML_Code" String="\code" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!ML_Code" String="@code" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!ML_Verbatim" String="\verbatim" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!ML_Verbatim" String="@verbatim" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!ML_Formula" String="\f[" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!ML_Formula" String="@f[" beginRegion="VerbatimBlock" /> + <StringDetect attribute="Tags" context="#pop!ML_FormulaShort" String="\f$" beginRegion="VerbatimBlock" /> + <StringDetect attribute="Tags" context="#pop!ML_FormulaShort" String="@f$" beginRegion="VerbatimBlock" /> + <StringDetect attribute="Tags" context="#pop!ML_FormulaEnv" String="\f{" beginRegion="VerbatimBlock" /> + <StringDetect attribute="Tags" context="#pop!ML_FormulaEnv" String="@f{" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!ML_Msc" String="\msc" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!ML_Msc" String="@msc" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!ML_Dot" String="\dot" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!ML_Dot" String="@dot" beginRegion="VerbatimBlock" /> + <IncludeRules context="Inc_OtherTag" /> + </context> + <context attribute="Comment" lineEndContext="#pop" name="ML_StartHTMLTag"> + <Detect2Chars attribute="Comment" context="#pop" char="<" char1="<" /> + <RegExpr attribute="HTML Tag" context="#pop!ML_htmltag" String="<\/?[-\w0-9._:@]+" /> + <StringDetect attribute="HTML Comment" context="#pop!ML_htmlcomment" String="<!--" /> + <DetectChar attribute="Comment" context="#pop" char="<" /> + </context> + <!-- tag contexts --> <context attribute="Comment" lineEndContext="#pop" name="ML_TagWord"> - <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> - <IncludeRules context="SL_TagWord" /> + <DetectSpaces /> + <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" /> + <keyword attribute="Tags" context="#pop!ML_TagWord" String="TagWord" /> + <IncludeRules context="ML_Inc_Word" /> </context> <context attribute="Comment" lineEndContext="#pop" name="ML_TagParam"> - <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> <DetectSpaces /> - <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in]" /> - <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[out]" /> - <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in,out]" /> - <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" /> - <RegExpr attribute="Word" context="#stay" String="\S" /> + <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" /> + <StringDetect attribute="Tags" context="#pop!ML_TagWord" String="[in]" /> + <StringDetect attribute="Tags" context="#pop!ML_TagWord" String="[out]" /> + <StringDetect attribute="Tags" context="#pop!ML_TagWord" String="[in,out]" /> + <IncludeRules context="ML_Inc_Word" /> </context> <context attribute="Comment" lineEndContext="#pop" name="ML_TagWordWord"> - <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> <DetectSpaces /> - <RegExpr attribute="Word" context="ML_Tag2ndWord" String="\S(?=&wordsep;)" /> - <RegExpr attribute="Word" context="#stay" String="\S" /> - </context> - <!-- TODO for kate 2.x, convert references to "#pop!ML_TagWord" --> - <context attribute="Comment" lineEndContext="#pop#pop" name="ML_Tag2ndWord"> - <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" lookAhead="true" /> - <IncludeRules context="SL_Tag2ndWord" /> + <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" /> + <RegExpr attribute="Word" context="#pop!ML_TagWord" String="&ml_word;" /> </context> <context attribute="Comment" lineEndContext="#pop" name="ML_TagString"> <DetectSpaces /> - <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> + <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" /> <StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="<!--" /> <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> <RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\/?[-\w0-9._:@]+" /> - <RegExpr attribute="Description" context="#stay" String="." /> + <RegExpr attribute="Description" context="#stay" String="[<*]?[^<*\s]+" /> </context> <context attribute="Comment" lineEndContext="#pop" name="ML_TagWordString"> - <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> - <IncludeRules context="SL_TagWordString" /> + <DetectSpaces /> + <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" /> + <IncludeRules context="ML_Inc_Word" /> </context> + <context name="ML_Inc_Word" attribute="Word" lineEndContext="#pop"> + <RegExpr attribute="Word" context="#pop" String="&ml_word;" /> + </context> + + <!-- html contexts --> <context name="ML_htmltag" attribute="Identifier" lineEndContext="#stay"> - <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> + <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" /> <Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1=">" /> <DetectChar attribute="HTML Tag" context="#pop" char=">" /> - <RegExpr attribute="Identifier" context="ML_identifiers" String="\s*=\s*" /> + <DetectSpaces /> + <DetectChar attribute="Identifier" context="ML_identifiers" char="=" /> </context> <context name="ML_htmlcomment" attribute="HTML Comment" lineEndContext="#stay"> - <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> - <IncludeRules context="##Alerts" /> + <DetectSpaces /> + <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" /> + <IncludeRules context="##Comments" /> + <DetectIdentifier /> <StringDetect attribute="HTML Comment" context="#pop" String="-->" /> </context> <context name="ML_identifiers" attribute="Identifier" lineEndContext="#stay"> - <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> - <RegExpr attribute="Identifier" context="#pop" String="\s*#?[a-zA-Z0-9]*" /> + <DetectSpaces /> + <Detect2Chars attribute="Comment" context="#pop#pop#pop" char="*" char1="/" endRegion="BlockComment" /> <DetectChar attribute="Types" context="ML_types1" char="'" /> <DetectChar attribute="Types" context="ML_types2" char=""" /> </context> <context name="ML_types1" attribute="Types" lineEndContext="#stay"> - <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> + <Detect2Chars attribute="Comment" context="#pop#pop#pop#pop" char="*" char1="/" endRegion="BlockComment" /> <DetectChar attribute="Types" context="#pop#pop" char="'" /> </context> <context name="ML_types2" attribute="Types" lineEndContext="#stay"> - <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> + <Detect2Chars attribute="Comment" context="#pop#pop#pop#pop" char="*" char1="/" endRegion="BlockComment" /> <DetectChar attribute="Types" context="#pop#pop" char=""" /> </context> + <context name="ML_FindNextLine" attribute="Comment" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop"> + <DetectSpaces /> + <Detect2Chars attribute="Comment" context="#pop!ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> + <Detect2Chars attribute="Comment" context="ML_VerbatimPrefix" char="*" char1="*" lookAhead="true" /> + <DetectChar attribute="Comment" context="#pop" char="*" /> + </context> + <context name="ML_VerbatimPrefix" attribute="Comment" lineEndContext="#stay"> + <DetectChar attribute="Comment" context="#pop" char="*" /> + </context> + + <context name="ML_End_BlockComment" attribute="Comment" lineEndContext="#stay"> + <Detect2Chars attribute="Error" context="#pop#pop#pop" char="*" char1="/" endRegion="BlockComment"/> + </context> + + <context name="ML_Code" attribute="Code" lineEndContext="ML_FindNextLine"> + <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> + <WordDetect attribute="Tags" context="#pop" String="\endcode" endRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop" String="@endcode" endRegion="VerbatimBlock" /> + </context> + + <context name="ML_Verbatim" attribute="Verbatim" lineEndContext="ML_FindNextLine"> + <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> + <WordDetect attribute="Tags" context="#pop" String="\endverbatim" endRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop" String="@endverbatim" endRegion="VerbatimBlock" /> + </context> + + <context name="ML_Formula" attribute="Formulas" lineEndContext="ML_FindNextLine"> + <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> + <StringDetect attribute="Tags" context="#pop" String="\f]" endRegion="VerbatimBlock" /> + <StringDetect attribute="Tags" context="#pop" String="@f]" endRegion="VerbatimBlock" /> + <!-- TODO: How to force LaTeX math context here?? --> + <!-- <IncludeRules context="##LaTeX" /> --> + </context> + + <context name="ML_FormulaShort" attribute="Formulas" lineEndContext="ML_FindNextLine"> + <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> + <StringDetect attribute="Tags" context="#pop" String="\f$" endRegion="VerbatimBlock" /> + <StringDetect attribute="Tags" context="#pop" String="@f$" endRegion="VerbatimBlock" /> + <!-- TODO: How to force LaTeX math context here?? --> + <!-- <IncludeRules context="##LaTeX" /> --> + </context> + + <context name="ML_FormulaEnv" attribute="Word" lineEndContext="ML_FindNextLine"> + <DetectChar attribute="Tags" context="#pop!ML_FormulaEnvStart" char="}" /> + <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> + </context> + + <context name="ML_FormulaEnvStart" attribute="Formulas" lineEndContext="ML_FindNextLine" fallthrough="true" fallthroughContext="#pop!ML_FormulaEnvFormula"> + <DetectSpaces attribute="Comment" /> + <DetectChar attribute="Tags" context="#pop!ML_FormulaEnvFormula" char="{" /> + <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> + </context> + + <context name="ML_FormulaEnvFormula" attribute="Formulas" lineEndContext="ML_FindNextLine"> + <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> + <StringDetect attribute="Tags" context="#pop" String="\f}" endRegion="VerbatimBlock" /> + <StringDetect attribute="Tags" context="#pop" String="@f}" endRegion="VerbatimBlock" /> + <!-- TODO: How to force LaTeX math context here?? --> + <!-- <IncludeRules context="##LaTeX" /> --> + </context> + + <context name="ML_Msc" attribute="Message Sequence Chart" lineEndContext="ML_FindNextLine"> + <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> + <WordDetect attribute="Tags" context="#pop" String="\endmsc" endRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop" String="@endmsc" endRegion="VerbatimBlock" /> + </context> + + <context name="ML_Dot" attribute="Dot Graph" lineEndContext="ML_FindNextLine"> + <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/> + <WordDetect attribute="Tags" context="#pop" String="\enddot" endRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop" String="@enddot" endRegion="VerbatimBlock" /> + </context> + <!-- NOTE: all contexts beginning with SL_ are for singleline comments --> + <context attribute="Comment" lineEndContext="#pop" name="SL_StartTag"> + <keyword attribute="Tags" context="#pop!SL_TagWord" String="TagWord" /> + <keyword attribute="Tags" context="#pop!SL_TagParam" String="TagParam" /> + <keyword attribute="Tags" context="#pop!SL_TagWordWord" String="TagWordWord" /> + <keyword attribute="Tags" context="#pop!SL_TagString" String="TagString" /> + <keyword attribute="Tags" context="#pop!SL_TagWordString" String="TagWordString" /> + <WordDetect attribute="Tags" context="#pop!SL_Code" String="\code" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!SL_Code" String="@code" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!SL_Verbatim" String="\verbatim" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!SL_Verbatim" String="@verbatim" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!SL_Formula" String="\f[" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!SL_Formula" String="@f[" beginRegion="VerbatimBlock" /> + <StringDetect attribute="Tags" context="#pop!SL_FormulaShort" String="\f$" beginRegion="VerbatimBlock" /> + <StringDetect attribute="Tags" context="#pop!SL_FormulaShort" String="@f$" beginRegion="VerbatimBlock" /> + <StringDetect attribute="Tags" context="#pop!SL_FormulaEnv" String="\f{" beginRegion="VerbatimBlock" /> + <StringDetect attribute="Tags" context="#pop!SL_FormulaEnv" String="@f{" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!SL_Msc" String="\msc" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!SL_Msc" String="@msc" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!SL_Dot" String="\dot" beginRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop!SL_Dot" String="@dot" beginRegion="VerbatimBlock" /> + <IncludeRules context="Inc_OtherTag" /> + </context> + <context attribute="Comment" lineEndContext="#pop" name="SL_StartHTMLTag"> + <Detect2Chars attribute="Comment" context="#pop" char="<" char1="<" /> + <RegExpr attribute="HTML Tag" context="#pop!SL_htmltag" String="<\/?[-\w0-9._:@]+" /> + <StringDetect attribute="HTML Comment" context="#pop!SL_htmlcomment" String="<!--" /> + <DetectChar attribute="Comment" context="#pop" char="<" /> + </context> + <!-- tag contexts --> <context attribute="Comment" lineEndContext="#pop" name="SL_TagWord"> <DetectSpaces /> - <keyword attribute="Tags" context="#pop" String="TagWord" lookAhead="true" /> - <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" /> - <RegExpr attribute="Word" context="#stay" String="\S" /> + <keyword attribute="Tags" context="#pop!SL_TagWord" String="TagWord" /> + <IncludeRules context="SL_Inc_Word" /> </context> <context attribute="Comment" lineEndContext="#pop" name="SL_TagParam"> <DetectSpaces /> - <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in]" /> - <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[out]" /> - <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in,out]" /> - <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" /> - <RegExpr attribute="Word" context="#stay" String="\S" /> + <StringDetect attribute="Tags" context="#pop!SL_TagWord" String="[in]" /> + <StringDetect attribute="Tags" context="#pop!SL_TagWord" String="[out]" /> + <StringDetect attribute="Tags" context="#pop!SL_TagWord" String="[in,out]" /> + <IncludeRules context="SL_Inc_Word" /> </context> <context attribute="Comment" lineEndContext="#pop" name="SL_TagWordWord"> <DetectSpaces /> - <RegExpr attribute="Word" context="SL_Tag2ndWord" String="\S(?=&wordsep;)" /> - <RegExpr attribute="Word" context="#stay" String="\S" /> - </context> - <!-- TODO for kate 2.x, convert references to "#pop!SL_TagWord" --> - <context attribute="Comment" lineEndContext="#pop#pop" name="SL_Tag2ndWord"> - <DetectSpaces /> - <RegExpr attribute="Word" context="#pop#pop" String="\S(?=&wordsep;)" /> - <RegExpr attribute="Word" context="#stay" String="\S" /> + <RegExpr attribute="Word" context="#pop!SL_TagWord" String="&sl_word;" /> </context> <context attribute="Comment" lineEndContext="#pop" name="SL_TagString"> <DetectSpaces /> <StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="<!--" /> <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> <RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\/?[-\w0-9._:@]+" /> - <RegExpr attribute="Description" context="#stay" String="." /> + <RegExpr attribute="Description" context="#stay" String="<?[^<\s]+" /> </context> <context attribute="Comment" lineEndContext="#pop" name="SL_TagWordString"> <DetectSpaces /> - <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" /> - <RegExpr attribute="Word" context="#stay" String="\S" /> + <IncludeRules context="SL_Inc_Word" /> + </context> + <context name="SL_Inc_Word" attribute="Word" lineEndContext="#pop"> + <RegExpr attribute="Word" context="#pop" String="&sl_word;" /> </context> <!-- html contexts --> <context name="SL_htmltag" attribute="Identifier" lineEndContext="#pop"> <Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1=">" /> <DetectChar attribute="HTML Tag" context="#pop" char=">" /> - <RegExpr attribute="Identifier" context="SL_identifiers" String="\s*=\s*" /> + <DetectSpaces /> + <DetectChar attribute="Identifier" context="SL_identifiers" char="=" /> </context> <context name="SL_htmlcomment" attribute="HTML Comment" lineEndContext="#pop"> - <IncludeRules context="##Alerts" /> + <DetectSpaces /> + <IncludeRules context="##Comments" /> + <DetectIdentifier /> <StringDetect attribute="HTML Comment" context="#pop" String="-->" /> </context> <context name="SL_identifiers" attribute="Identifier" lineEndContext="#pop"> - <RegExpr attribute="Identifier" context="#pop" String="\s*#?[a-zA-Z0-9]*" /> + <DetectSpaces /> <DetectChar attribute="Types" context="SL_types1" char="'" /> <DetectChar attribute="Types" context="SL_types2" char=""" /> </context> @@ -411,55 +512,93 @@ <DetectChar attribute="Types" context="#pop#pop" char=""" /> </context> - <context attribute="Comment" name="SL_DetectEnv" lineEndContext="#pop"> - <RegExpr attribute="Tags" context="Code" String="[@\\]code\b" beginRegion="Code" /> - <RegExpr attribute="Tags" context="Verbatim" String="[@\\]verbatim\b" beginRegion="Verbatim" /> - <RegExpr attribute="Tags" context="Formula" String="[@\\]f\[" beginRegion="Formula" /> - <RegExpr attribute="Tags" context="Msc" String="[@\\]msc\b" beginRegion="Msc" /> - <RegExpr attribute="Tags" context="Dot" String="[@\\]dot\b" beginRegion="Dot" /> - <keyword attribute="Note" context="#stay" String="Note" /> - <keyword attribute="Warning" context="#stay" String="Warning" /> - <keyword attribute="Attention" context="#stay" String="Attention" /> - <keyword attribute="Todo" context="#stay" String="Todo" /> - <RegExpr attribute="Entities" context="#stay" String="&[A-Za-z]+;" /> + <context name="SL_FindNextLine" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop#pop#pop"> + <DetectSpaces /> + <StringDetect attribute="Comment" context="#pop" String="///" /> + <StringDetect attribute="Comment" context="#pop" String="//!" /> + <RegExpr attribute="Comment" context="#pop#pop#pop" String="." lookAhead="true" endRegion="VerbatimBlock" /> </context> - <context attribute="Comment" name="SL_DetectComment" lineEndContext="#pop"> - <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" /> - <DetectChar attribute="Comment" context="#stay" char="*" /> - <StringDetect attribute="Comment" context="#stay" String="///" /> + <context name="SL_Code" attribute="Code" lineEndContext="SL_FindNextLine"> + <WordDetect attribute="Tags" context="#pop" String="\endcode" endRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop" String="@endcode" endRegion="VerbatimBlock" /> </context> - <context attribute="Code" lineEndContext="#stay" name="Code"> - <IncludeRules context="SL_DetectComment" /> - <RegExpr attribute="Tags" context="#pop" String="[@\\]endcode\b" endRegion="Code" /> + <context name="SL_Verbatim" attribute="Verbatim" lineEndContext="SL_FindNextLine"> + <WordDetect attribute="Tags" context="#pop" String="\endverbatim" endRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop" String="@endverbatim" endRegion="VerbatimBlock" /> </context> - <context attribute="Verbatim" lineEndContext="#stay" name="Verbatim"> - <IncludeRules context="SL_DetectComment" /> - <RegExpr attribute="Tags" context="#pop" String="[@\\]endverbatim\b" endRegion="Verbatim" /> + <context name="SL_Formula" attribute="Formulas" lineEndContext="SL_FindNextLine"> + <StringDetect attribute="Tags" context="#pop" String="\f]" endRegion="VerbatimBlock" /> + <StringDetect attribute="Tags" context="#pop" String="@f]" endRegion="VerbatimBlock" /> + <!-- TODO: How to force LaTeX math context here?? --> + <!-- <IncludeRules context="##LaTeX" /> --> </context> - <context attribute="Formulas" lineEndContext="#stay" name="Formula"> - <IncludeRules context="SL_DetectComment" /> - <RegExpr attribute="Tags" context="#pop" String="[@\\]f\]" endRegion="Formula" /> + <context name="SL_FormulaShort" attribute="Formulas" lineEndContext="SL_FindNextLine"> + <StringDetect attribute="Tags" context="#pop" String="\f$" endRegion="VerbatimBlock" /> + <StringDetect attribute="Tags" context="#pop" String="@f$" endRegion="VerbatimBlock" /> <!-- TODO: How to force LaTeX math context here?? --> <!-- <IncludeRules context="##LaTeX" /> --> </context> - <context attribute="Message Sequence Chart" lineEndContext="#stay" name="Msc"> - <IncludeRules context="SL_DetectComment" /> - <RegExpr attribute="Tags" context="#pop" String="[@\\]endmsc\b" endRegion="Msc" /> + <context name="SL_FormulaEnv" attribute="Word" lineEndContext="SL_FindNextLine"> + <DetectChar attribute="Tags" context="#pop!SL_FormulaEnvStart" char="}" /> </context> - <context attribute="Dot Graph" lineEndContext="#stay" name="Dot"> - <IncludeRules context="SL_DetectComment" /> - <RegExpr attribute="Tags" context="#pop" String="[@\\]enddot\b" endRegion="Dot" /> + <context name="SL_FormulaEnvStart" attribute="Formulas" lineEndContext="SL_FindNextLine" fallthrough="true" fallthroughContext="#pop!SL_FormulaEnvFormula"> + <DetectSpaces attribute="Comment" /> + <DetectChar attribute="Tags" context="#pop!SL_FormulaEnvFormula" char="{" /> + </context> + + <context name="SL_FormulaEnvFormula" attribute="Formulas" lineEndContext="SL_FindNextLine"> + <StringDetect attribute="Tags" context="#pop" String="\f}" endRegion="VerbatimBlock" /> + <StringDetect attribute="Tags" context="#pop" String="@f}" endRegion="VerbatimBlock" /> + <!-- TODO: How to force LaTeX math context here?? --> + <!-- <IncludeRules context="##LaTeX" /> --> + </context> + + <context name="SL_Msc" attribute="Message Sequence Chart" lineEndContext="SL_FindNextLine"> + <WordDetect attribute="Tags" context="#pop" String="\endmsc" endRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop" String="@endmsc" endRegion="VerbatimBlock" /> + </context> + + <context name="SL_Dot" attribute="Dot Graph" lineEndContext="SL_FindNextLine"> + <WordDetect attribute="Tags" context="#pop" String="\enddot" endRegion="VerbatimBlock" /> + <WordDetect attribute="Tags" context="#pop" String="@enddot" endRegion="VerbatimBlock" /> + </context> + + <context name="Entities" attribute="Word" lineEndContext="#stay"> + <RegExpr attribute="Entities" context="#pop" String="&[A-Za-z]+;" /> + <DetectChar attribute="Comment" context="#pop" char="&" /> + </context> + + <context name="Inc_OtherTag" attribute="Comment" lineEndContext="#pop"> + <keyword attribute="Note" context="#pop" String="Note" /> + <keyword attribute="Warning" context="#pop" String="Warning" /> + <keyword attribute="Attention" context="#pop" String="Attention" /> + <keyword attribute="Todo" context="#pop" String="Todo" /> + <keyword attribute="Tags" context="#pop" String="TagOnly" /> + <Detect2Chars attribute="Region" context="#pop" char="@" char1="{" beginRegion="Group" /> + <Detect2Chars attribute="Region" context="#pop" char="@" char1="}" endRegion="Group" /> + <Detect2Chars attribute="Tags" context="#pop!LanguageId" char="\" char1="~" /> + <Detect2Chars attribute="Tags" context="#pop!LanguageId" char="@" char1="~" /> + <keyword attribute="Error" context="#pop" String="TagEnd" /> + <RegExpr attribute="Error" context="#pop" String="[@\\]f[]}]" /> + <RegExpr attribute="Escape sequence" context="#pop" String="[@\\](?:[#$%&<>"@\\.~=|]|::|---?)" /> + <RegExpr attribute="Custom Tags" context="#pop" String="[@\\](?:[^@\\ \t\*]|\*(?!/))+" /> + <AnyChar attribute="Comment" context="#pop" String="\@" /> + </context> + + <context name="LanguageId" attribute="Word" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> + <DetectIdentifier /> </context> </contexts> <itemDatas> <itemData name="Normal Text" defStyleNum="dsNormal" /> + <itemData name="Escape sequence" defStyleNum="dsSpecialChar" /> <itemData name="Tags" defStyleNum="dsAnnotation" bold="1" /> <itemData name="Custom Tags" defStyleNum="dsAnnotation" /> <itemData name="Word" defStyleNum="dsCommentVar" bold="1" italic="0" /> @@ -480,10 +619,11 @@ <itemData name="Warning" defStyleNum="dsWarning" bold="1" italic="0" /> <itemData name="Attention" defStyleNum="dsAnnotation" bold="1" italic="0" /> <itemData name="Todo" defStyleNum="dsAnnotation" bold="1" italic="0" /> + <itemData name="Error" defStyleNum="dsError" /> </itemDatas> </highlighting> <general> - <keywords casesensitive="1" weakDeliminator="\$~" /> + <keywords casesensitive="1" weakDeliminator="\$" /> </general> </language> <!-- kate: indent-width 2; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/dtd.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/dtd.xml index 5c39c1b597..0526efc625 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/dtd.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/dtd.xml @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE language SYSTEM "language.dtd"[ +<!DOCTYPE language[ <!ENTITY nmtoken "[\-\w\d\.:_]+"> <!ENTITY entref "(#[0-9]+|#[xX][0-9A-Fa-f]+|&nmtoken;);"> ]> -<language name="DTD" version="2" kateversion="3.4" section="Markup" extensions="*.dtd" mimetype="application/xml-dtd" author="Andriy Lesyuk (s-andy@in.if.ua)" license="LGPL"> +<language name="DTD" version="4" kateversion="5.0" section="Markup" extensions="*.dtd" mimetype="application/xml-dtd" author="Andriy Lesyuk (s-andy@in.if.ua)" license="LGPL"> <highlighting> <list name="Category"> @@ -45,7 +45,7 @@ <context name="Comment" attribute="Comment" lineEndContext="#stay"> <DetectSpaces /> <StringDetect attribute="Comment" context="#pop" String="-->" endRegion="comment" /> - <IncludeRules context="##Alerts" /> + <IncludeRules context="##Comments" /> <DetectIdentifier /> </context> @@ -77,7 +77,7 @@ <context name="InlineComment" attribute="Comment" lineEndContext="#pop"> <DetectSpaces /> <Detect2Chars attribute="Comment" context="#pop" char="-" char1="-" /> - <IncludeRules context="##Alerts" /> + <IncludeRules context="##Comments" /> <DetectIdentifier /> </context> @@ -101,10 +101,9 @@ <general> <comments> - <comment name="multiLine" start="<!--" end="-->" /> + <comment name="multiLine" start="<!--" end="-->" region="comment" /> </comments> </general> </language> -<!-- kate: indent-width 2; indent-mode normal; tab-indents on; --> - +<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/gnuassembler.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/gnuassembler.xml new file mode 100644 index 0000000000..26a306c28a --- /dev/null +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/gnuassembler.xml @@ -0,0 +1,2352 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language> +<!-- + +************************************************************************* +* * +* Syntax highlighting for the GNU Assembler * +* Copyright (C) 2002, John Zaitseff * +* Copyright (C) 2021, Waqar Ahmed * +* * +************************************************************************* + +Updated: Waqar Ahmed <waqar.17a@gmail.com> +Date: 30 April, 2021 +Version: 2.0 + +Updated: Miquel Sabaté <mikisabate@gmail.com> +Date: 14th September, 2010 +Version: 1.02 + +Updated: Roland Pabel <roland@pabel.name> +Date: 15th August, 2002 +Version: 1.01 + +Author: John Zaitseff <J.Zaitseff@zap.org.au> +Date: 15th April, 2002 +Version: 1.0 + +This file contains the XML syntax highlighting description for the GNU +Assembler, for KATE, the KDE Advanced Editor. Keywords have been taken +directly from the GNU Assembler source code (read.c). + +Known problems: Floating point highlighting does not work correctly. + +This program, including associated files, is free software. You may +distribute it and/or modify it under the terms of the GNU General Public +License as published by the Free Software Foundation; either Version 2 of +the license, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License along +with this program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +--> + +<language name="GNU Assembler" version="9" kateversion="5.0" section="Assembler" extensions="*.s;*.S" mimetype="text/x-asm" author="John Zaitseff (J.Zaitseff@zap.org.au), Roland Pabel (roland@pabel.name), Miquel Sabaté (mikisabate@gmail.com) Waqar Ahmed (waqar.17a@gmail.com)" license="GPLv2+"> + <highlighting> + <list name="registers"> + <!-- General purpose registers --> + <item>rax</item> + <item>eax</item> + <item>ax</item> + <item>ah</item> + <item>al</item> + <item>rbx</item> + <item>ebx</item> + <item>bx</item> + <item>bh</item> + <item>bl</item> + <item>rcx</item> + <item>ecx</item> + <item>cx</item> + <item>ch</item> + <item>cl</item> + <item>rdx</item> + <item>edx</item> + <item>dx</item> + <item>dh</item> + <item>dl</item> + <item>rbp</item> + <item>ebp</item> + <item>bp</item> + <item>bpl</item> + <item>rsi</item> + <item>esi</item> + <item>si</item> + <item>sil</item> + <item>rdi</item> + <item>edi</item> + <item>di</item> + <item>dil</item> + + <item>rip</item> + <item>eip</item> + <item>ip</item> + + <item>rsp</item> + <item>esp</item> + <item>sp</item> + <item>spl</item> + <item>r8</item> + <item>r8d</item> + <item>r8w</item> + <item>r8b</item> + <item>r9</item> + <item>r9d</item> + <item>r9w</item> + <item>r9b</item> + <item>r10</item> + <item>r10d</item> + <item>r10w</item> + <item>r10b</item> + <item>r11</item> + <item>r11d</item> + <item>r11w</item> + <item>r11b</item> + <item>r12</item> + <item>r12d</item> + <item>r12w</item> + <item>r12b</item> + <item>r13</item> + <item>r13d</item> + <item>r13w</item> + <item>r13b</item> + <item>r14</item> + <item>r14d</item> + <item>r14w</item> + <item>r14b</item> + <item>r15</item> + <item>r15d</item> + <item>r15w</item> + <item>r15b</item> + <!-- Segmentation registers --> + <item>cs</item> + <item>ds</item> + <item>es</item> + <item>fs</item> + <item>gs</item> + <item>ss</item> + <!-- Control registers --> + <item>cr0</item> + <!--<item>cr1</item>--> + <item>cr2</item> + <item>cr3</item> + <item>cr4</item> + <!-- Debug registers --> + <item>dr0</item> + <item>dr1</item> + <item>dr2</item> + <item>dr3</item> + <item>dr6</item> + <item>dr7</item> + <!-- x87 FPU Registers --> + <item>st</item> + <!-- MMX registers --> + <item>mm0</item> + <item>mm1</item> + <item>mm2</item> + <item>mm3</item> + <item>mm4</item> + <item>mm5</item> + <item>mm6</item> + <item>mm7</item> + <!-- XMM registers --> + <item>xmm0</item> + <item>xmm1</item> + <item>xmm2</item> + <item>xmm3</item> + <item>xmm4</item> + <item>xmm5</item> + <item>xmm6</item> + <item>xmm7</item> + <item>xmm8</item> + <item>xmm9</item> + <item>xmm10</item> + <item>xmm11</item> + <item>xmm12</item> + <item>xmm13</item> + <item>xmm14</item> + <item>xmm15</item> + <item>xmm16</item> + <item>xmm17</item> + <item>xmm18</item> + <item>xmm19</item> + <item>xmm20</item> + <item>xmm21</item> + <item>xmm22</item> + <item>xmm23</item> + <item>xmm24</item> + <item>xmm25</item> + <item>xmm26</item> + <item>xmm27</item> + <item>xmm28</item> + <item>xmm29</item> + <item>xmm30</item> + <item>xmm31</item> + <!-- YMM registers --> + <item>ymm0</item> + <item>ymm1</item> + <item>ymm2</item> + <item>ymm3</item> + <item>ymm4</item> + <item>ymm5</item> + <item>ymm6</item> + <item>ymm7</item> + <item>ymm8</item> + <item>ymm9</item> + <item>ymm10</item> + <item>ymm11</item> + <item>ymm12</item> + <item>ymm13</item> + <item>ymm14</item> + <item>ymm15</item> + <item>ymm16</item> + <item>ymm17</item> + <item>ymm18</item> + <item>ymm19</item> + <item>ymm20</item> + <item>ymm21</item> + <item>ymm22</item> + <item>ymm23</item> + <item>ymm24</item> + <item>ymm25</item> + <item>ymm26</item> + <item>ymm27</item> + <item>ymm28</item> + <item>ymm29</item> + <item>ymm30</item> + <item>ymm31</item> + <!-- ZMM registers --> + <item>zmm0</item> + <item>zmm1</item> + <item>zmm2</item> + <item>zmm3</item> + <item>zmm4</item> + <item>zmm5</item> + <item>zmm6</item> + <item>zmm7</item> + <item>zmm8</item> + <item>zmm9</item> + <item>zmm10</item> + <item>zmm11</item> + <item>zmm12</item> + <item>zmm13</item> + <item>zmm14</item> + <item>zmm15</item> + <item>zmm16</item> + <item>zmm17</item> + <item>zmm18</item> + <item>zmm19</item> + <item>zmm20</item> + <item>zmm21</item> + <item>zmm22</item> + <item>zmm23</item> + <item>zmm24</item> + <item>zmm25</item> + <item>zmm26</item> + <item>zmm27</item> + <item>zmm28</item> + <item>zmm29</item> + <item>zmm30</item> + <item>zmm31</item> + </list> + + <list name="instructions"> + <item>lock</item> + <item>rep</item> + <item>repe</item> + <item>repz</item> + <item>repne</item> + <item>repnz</item> + <item>xaquire</item> + <item>xrelease</item> + <item>bnd</item> + <item>nobnd</item> + <item>aaa</item> + <item>aad</item> + <item>aam</item> + <item>aas</item> + <item>adc</item> + <item>addb</item> + <item>addw</item> + <item>addl</item> + <item>addq</item> + <item>and</item> + <item>arpl</item> + <item>bb0_reset</item> + <item>bb1_reset</item> + <item>bound</item> + <item>bsf</item> + <item>bsr</item> + <item>bswap</item> + <item>bt</item> + <item>btc</item> + <item>btr</item> + <item>bts</item> + <item>cbw</item> + <item>cdq</item> + <item>cdqe</item> + <item>clc</item> + <item>cld</item> + <item>cli</item> + <item>clts</item> + <item>cltd</item> + <item>cbtw</item> + <item>cwtl</item> + <item>cwtd</item> + <item>cltq</item> + <item>cqto</item> + <item>cmc</item> + <item>cmpb</item> + <item>cmpw</item> + <item>cmpl</item> + <item>cmpq</item> + <item>cmpsb</item> + <item>cmpsd</item> + <item>cmpsq</item> + <item>cmpsw</item> + <item>cmpxchg</item> + <item>cmpxchg486</item> + <item>cmpxchg8b</item> + <item>cmpxchg16b</item> + <item>cpuid</item> + <item>cpu_read</item> + <item>cpu_write</item> + <item>cqo</item> + <item>cwd</item> + <item>cwde</item> + <item>daa</item> + <item>das</item> + <item>dec</item> + <item>decl</item> + <item>decq</item> + <item>div</item> + <item>divb</item> + <item>divw</item> + <item>divl</item> + <item>divq</item> + <item>dmint</item> + <item>emms</item> + <item>enter</item> + <item>equ</item> + <item>f2xm1</item> + <item>fabs</item> + <item>fadd</item> + <item>faddp</item> + <item>fbld</item> + <item>fbstp</item> + <item>fchs</item> + <item>fclex</item> + <item>fcmovb</item> + <item>fcmovbe</item> + <item>fcmove</item> + <item>fcmovnb</item> + <item>fcmovnbe</item> + <item>fcmovne</item> + <item>fcmovnu</item> + <item>fcmovu</item> + <item>fcom</item> + <item>fcomi</item> + <item>fcomip</item> + <item>fcomp</item> + <item>fcompp</item> + <item>fcos</item> + <item>fdecstp</item> + <item>fdisi</item> + <item>fdiv</item> + <item>fdivp</item> + <item>fdivr</item> + <item>fdivrp</item> + <item>femms</item> + <item>feni</item> + <item>ffree</item> + <item>ffreep</item> + <item>fiadd</item> + <item>ficom</item> + <item>ficomp</item> + <item>fidiv</item> + <item>fidivr</item> + <item>fild</item> + <item>fimul</item> + <item>fincstp</item> + <item>finit</item> + <item>fist</item> + <item>fistp</item> + <item>fisttp</item> + <item>fisub</item> + <item>fisubr</item> + <item>fld</item> + <item>fld1</item> + <item>fldcw</item> + <item>fldenv</item> + <item>fldl2e</item> + <item>fldl2t</item> + <item>fldlg2</item> + <item>fldln2</item> + <item>fldpi</item> + <item>fldz</item> + <item>fmul</item> + <item>fmulp</item> + <item>fnclex</item> + <item>fndisi</item> + <item>fneni</item> + <item>fninit</item> + <item>fnop</item> + <item>fnsave</item> + <item>fnstcw</item> + <item>fnstenv</item> + <item>fnstsw</item> + <item>fpatan</item> + <item>fprem</item> + <item>fprem1</item> + <item>fptan</item> + <item>frndint</item> + <item>frstor</item> + <item>fsave</item> + <item>fscale</item> + <item>fsetpm</item> + <item>fsin</item> + <item>fsincos</item> + <item>fsqrt</item> + <item>fst</item> + <item>fstcw</item> + <item>fstenv</item> + <item>fstp</item> + <item>fstsw</item> + <item>fsub</item> + <item>fsubp</item> + <item>fsubr</item> + <item>fsubrp</item> + <item>ftst</item> + <item>fucom</item> + <item>fucomi</item> + <item>fucomip</item> + <item>fucomp</item> + <item>fucompp</item> + <item>fxam</item> + <item>fxch</item> + <item>fxtract</item> + <item>fyl2x</item> + <item>fyl2xp1</item> + <item>global</item> + <item>globl</item> + <item>hlt</item> + <item>ibts</item> + <item>icebp</item> + <item>idiv</item> + <item>idivb</item> + <item>idivw</item> + <item>idivl</item> + <item>idivq</item> + <item>imul</item> + <item>imulb</item> + <item>imulw</item> + <item>imull</item> + <item>imulq</item> + <item>in</item> + <item>inc</item> + <item>incl</item> + <item>incq</item> + <item>incbin</item> + <item>insb</item> + <item>insd</item> + <item>insw</item> + <item>int</item> + <item>int01</item> + <item>int1</item> + <item>int03</item> + <item>int3</item> + <item>into</item> + <item>invd</item> + <item>invpcid</item> + <item>invlpg</item> + <item>invlpga</item> + <item>iret</item> + <item>iretd</item> + <item>iretq</item> + <item>iretw</item> + <item>jcxz</item> + <item>jecxz</item> + <item>jrcxz</item> + <item>lahf</item> + <item>lar</item> + <item>lds</item> + <item>leal</item> + <item>leaq</item> + <item>leave</item> + <item>les</item> + <item>lfence</item> + <item>lfs</item> + <item>lgdt</item> + <item>lgs</item> + <item>lidt</item> + <item>lldt</item> + <item>lmsw</item> + <item>loadall</item> + <item>loadall286</item> + <item>lodsb</item> + <item>lodsd</item> + <item>lodsq</item> + <item>lodsw</item> + <item>loop</item> + <item>loope</item> + <item>loopne</item> + <item>loopnz</item> + <item>loopz</item> + <item>lsl</item> + <item>lss</item> + <item>ltr</item> + <item>mfence</item> + <item>monitor</item> + <item>movb</item> + <item>movw</item> + <item>movl</item> + <item>movq</item> + <item>movsb</item> + <item>movsd</item> + <item>movsq</item> + <item>movsw</item> + <item>movsx</item> + <item>movsxd</item> + <item>movzx</item> + <item>movsbw</item> + <item>movsxb</item> + <item>movsbl</item> + <item>movsbq</item> + <item>movswl</item> + <item>movsxw</item> + <item>movswq</item> + <item>movslq</item> + <item>movsxl</item> + <item>movzbw</item> + <item>movzxb</item> + <item>movzbl</item> + <item>movzbq</item> + <item>movzwl</item> + <item>movzxw</item> + <item>movzwq</item> + <item>mul</item> + <item>mulb</item> + <item>mulw</item> + <item>mull</item> + <item>mulq</item> + <item>mwait</item> + <item>neg</item> + <item>nop</item> + <item>not</item> + <item>or</item> + <item>out</item> + <item>outsb</item> + <item>outsd</item> + <item>outsw</item> + <item>packssdw</item> + <item>packsswb</item> + <item>packuswb</item> + <item>paddb</item> + <item>paddd</item> + <item>paddsb</item> + <item>paddsiw</item> + <item>paddsw</item> + <item>paddusb</item> + <item>paddusw</item> + <item>paddw</item> + <item>pand</item> + <item>pandn</item> + <item>pause</item> + <item>paveb</item> + <item>pavgusb</item> + <item>pcmpeqb</item> + <item>pcmpeqd</item> + <item>pcmpeqw</item> + <item>pcmpgtb</item> + <item>pcmpgtd</item> + <item>pcmpgtw</item> + <item>pdistib</item> + <item>pf2id</item> + <item>pfacc</item> + <item>pfadd</item> + <item>pfcmpeq</item> + <item>pfcmpge</item> + <item>pfcmpgt</item> + <item>pfmax</item> + <item>pfmin</item> + <item>pfmul</item> + <item>pfrcp</item> + <item>pfrcpit1</item> + <item>pfrcpit2</item> + <item>pfrsqit1</item> + <item>pfrsqrt</item> + <item>pfsub</item> + <item>pfsubr</item> + <item>pi2fd</item> + <item>pmachriw</item> + <item>pmaddwd</item> + <item>pmagw</item> + <item>pmulhriw</item> + <item>pmulhrwa</item> + <item>pmulhrwc</item> + <item>pmulhw</item> + <item>pmullw</item> + <item>pmvgezb</item> + <item>pmvlzb</item> + <item>pmvnzb</item> + <item>pmvzb</item> + <item>pop</item> + <item>popl</item> + <item>popq</item> + <item>popa</item> + <item>popad</item> + <item>popaw</item> + <item>popf</item> + <item>popfd</item> + <item>popfq</item> + <item>popfw</item> + <item>por</item> + <item>prefetch</item> + <item>prefetchw</item> + <item>pslld</item> + <item>psllq</item> + <item>psllw</item> + <item>psrad</item> + <item>psraw</item> + <item>psrld</item> + <item>psrlq</item> + <item>psrlw</item> + <item>psubb</item> + <item>psubd</item> + <item>psubsb</item> + <item>psubsiw</item> + <item>psubsw</item> + <item>psubusb</item> + <item>psubusw</item> + <item>psubw</item> + <item>punpckhbw</item> + <item>punpckhdq</item> + <item>punpckhwd</item> + <item>punpcklbw</item> + <item>punpckldq</item> + <item>punpcklwd</item> + <item>push</item> + <item>pusha</item> + <item>pushl</item> + <item>pushq</item> + <item>pushad</item> + <item>pushaw</item> + <item>pushf</item> + <item>pushfd</item> + <item>pushfq</item> + <item>pushfw</item> + <item>pxor</item> + <item>rcl</item> + <item>rcr</item> + <item>rdshr</item> + <item>rdmsr</item> + <item>rdpmc</item> + <item>rdtsc</item> + <item>rdtscp</item> + <item>ret</item> + <item>retf</item> + <item>retn</item> + <item>retq</item> + <item>rol</item> + <item>ror</item> + <item>rdm</item> + <item>rsdc</item> + <item>rsldt</item> + <item>rsm</item> + <item>rsts</item> + <item>sahf</item> + <item>sal</item> + <item>sall</item> + <item>salq</item> + <item>salc</item> + <item>sar</item> + <item>sarl</item> + <item>sarq</item> + <item>sbb</item> + <item>scasb</item> + <item>scasd</item> + <item>scasq</item> + <item>scasw</item> + <item>sfence</item> + <item>sgdt</item> + <item>shl</item> + <item>shll</item> + <item>shllq</item> + <item>shld</item> + <item>shr</item> + <item>shrd</item> + <item>sidt</item> + <item>sldt</item> + <item>skinit</item> + <item>smi</item> + <item>smint</item> + <item>smintold</item> + <item>smsw</item> + <item>stc</item> + <item>std</item> + <item>sti</item> + <item>stosb</item> + <item>stosd</item> + <item>stosq</item> + <item>stosw</item> + <item>str</item> + <item>sub</item> + <item>subw</item> + <item>subl</item> + <item>subq</item> + <item>svdc</item> + <item>svldt</item> + <item>svts</item> + <item>swapgs</item> + <item>syscall</item> + <item>sysenter</item> + <item>sysexit</item> + <item>sysret</item> + <item>test</item> + <item>testl</item> + <item>testq</item> + <item>ud0</item> + <item>ud1</item> + <item>ud2b</item> + <item>ud2</item> + <item>ud2a</item> + <item>umov</item> + <item>verr</item> + <item>verw</item> + <item>fwait</item> + <item>wbinvd</item> + <item>wrshr</item> + <item>wrmsr</item> + <item>xadd</item> + <item>xbts</item> + <item>xchg</item> + <item>xlatb</item> + <item>xlat</item> + <item>xor</item> + <item>xorl</item> + <item>xorq</item> + <item>cmove</item> + <item>cmovz</item> + <item>cmovne</item> + <item>cmovnz</item> + <item>cmova</item> + <item>cmovnbe</item> + <item>cmovae</item> + <item>cmovnb</item> + <item>cmovb</item> + <item>cmovnae</item> + <item>cmovbe</item> + <item>cmovna</item> + <item>cmovg</item> + <item>cmovnle</item> + <item>cmovge</item> + <item>cmovnl</item> + <item>cmovl</item> + <item>cmovnge</item> + <item>cmovle</item> + <item>cmovng</item> + <item>cmovc</item> + <item>cmovnc</item> + <item>cmovo</item> + <item>cmovno</item> + <item>cmovs</item> + <item>cmovns</item> + <item>cmovp</item> + <item>cmovpe</item> + <item>cmovnp</item> + <item>cmovpo</item> + <item>sete</item> + <item>setz</item> + <item>setne</item> + <item>setnz</item> + <item>seta</item> + <item>setnbe</item> + <item>setae</item> + <item>setnb</item> + <item>setnc</item> + <item>setb</item> + <item>setnae</item> + <item>setcset</item> + <item>setbe</item> + <item>setna</item> + <item>setg</item> + <item>setnle</item> + <item>setge</item> + <item>setnl</item> + <item>setl</item> + <item>setnge</item> + <item>setle</item> + <item>setng</item> + <item>sets</item> + <item>setns</item> + <item>seto</item> + <item>setno</item> + <item>setpe</item> + <item>setp</item> + <item>setpo</item> + <item>setnp</item> + <item>addps</item> + <item>addss</item> + <item>andnps</item> + <item>andps</item> + <item>cmpeqps</item> + <item>cmpeqss</item> + <item>cmpleps</item> + <item>cmpless</item> + <item>cmpltps</item> + <item>cmpltss</item> + <item>cmpneqps</item> + <item>cmpneqss</item> + <item>cmpnleps</item> + <item>cmpnless</item> + <item>cmpnltps</item> + <item>cmpnltss</item> + <item>cmpordps</item> + <item>cmpordss</item> + <item>cmpunordps</item> + <item>cmpunordss</item> + <item>cmpps</item> + <item>cmpss</item> + <item>comiss</item> + <item>cvtpi2ps</item> + <item>cvtps2pi</item> + <item>cvtsi2ss</item> + <item>cvtss2si</item> + <item>cvttps2pi</item> + <item>cvttss2si</item> + <item>divps</item> + <item>divss</item> + <item>ldmxcsr</item> + <item>maxps</item> + <item>maxss</item> + <item>minps</item> + <item>minss</item> + <item>movaps</item> + <item>movhps</item> + <item>movlhps</item> + <item>movlps</item> + <item>movhlps</item> + <item>movmskps</item> + <item>movntps</item> + <item>movss</item> + <item>movups</item> + <item>mulps</item> + <item>mulss</item> + <item>orps</item> + <item>rcpps</item> + <item>rcpss</item> + <item>rsqrtps</item> + <item>rsqrtss</item> + <item>shufps</item> + <item>sqrtps</item> + <item>sqrtss</item> + <item>stmxcsr</item> + <item>subps</item> + <item>subss</item> + <item>ucomiss</item> + <item>unpckhps</item> + <item>unpcklps</item> + <item>xorps</item> + <item>fxrstor</item> + <item>fxrstor64</item> + <item>fxsave</item> + <item>fxsave64</item> + <item>xgetbv</item> + <item>xsetbv</item> + <item>xsave</item> + <item>xsave64</item> + <item>xsaveopt</item> + <item>xsaveopt64</item> + <item>xrstor</item> + <item>xrstor64</item> + <item>prefetchnta</item> + <item>prefetcht0</item> + <item>prefetcht1</item> + <item>prefetcht2</item> + <item>maskmovq</item> + <item>movntq</item> + <item>pavgb</item> + <item>pavgw</item> + <item>pextrw</item> + <item>pinsrw</item> + <item>pmaxsw</item> + <item>pmaxub</item> + <item>pminsw</item> + <item>pminub</item> + <item>pmovmskb</item> + <item>pmulhuw</item> + <item>psadbw</item> + <item>pshufw</item> + <item>pf2iw</item> + <item>pfnacc</item> + <item>pfpnacc</item> + <item>pi2fw</item> + <item>pswapd</item> + <item>maskmovdqu</item> + <item>clflush</item> + <item>movntdq</item> + <item>movnti</item> + <item>movntpd</item> + <item>movdqa</item> + <item>movdqu</item> + <item>movdq2q</item> + <item>movq2dq</item> + <item>paddq</item> + <item>pmuludq</item> + <item>pshufd</item> + <item>pshufhw</item> + <item>pshuflw</item> + <item>pslldq</item> + <item>psrldq</item> + <item>psubq</item> + <item>punpckhqdq</item> + <item>punpcklqdq</item> + <item>addpd</item> + <item>addsd</item> + <item>andnpd</item> + <item>andpd</item> + <item>cmpeqpd</item> + <item>cmpeqsd</item> + <item>cmplepd</item> + <item>cmplesd</item> + <item>cmpltpd</item> + <item>cmpltsd</item> + <item>cmpneqpd</item> + <item>cmpneqsd</item> + <item>cmpnlepd</item> + <item>cmpnlesd</item> + <item>cmpnltpd</item> + <item>cmpnltsd</item> + <item>cmpordpd</item> + <item>cmpordsd</item> + <item>cmpunordpd</item> + <item>cmpunordsd</item> + <item>cmppd</item> + <item>comisd</item> + <item>cvtdq2pd</item> + <item>cvtdq2ps</item> + <item>cvtpd2dq</item> + <item>cvtpd2pi</item> + <item>cvtpd2ps</item> + <item>cvtpi2pd</item> + <item>cvtps2dq</item> + <item>cvtps2pd</item> + <item>cvtsd2si</item> + <item>cvtsd2ss</item> + <item>cvtsi2sd</item> + <item>cvtss2sd</item> + <item>cvttpd2pi</item> + <item>cvttpd2dq</item> + <item>cvttps2dq</item> + <item>cvttsd2si</item> + <item>divpd</item> + <item>divsd</item> + <item>maxpd</item> + <item>maxsd</item> + <item>minpd</item> + <item>minsd</item> + <item>movapd</item> + <item>movhpd</item> + <item>movlpd</item> + <item>movmskpd</item> + <item>movupd</item> + <item>mulpd</item> + <item>mulsd</item> + <item>orpd</item> + <item>shufpd</item> + <item>sqrtpd</item> + <item>sqrtsd</item> + <item>subpd</item> + <item>subsd</item> + <item>ucomisd</item> + <item>unpckhpd</item> + <item>unpcklpd</item> + <item>xorpd</item> + <item>addsubpd</item> + <item>addsubps</item> + <item>haddpd</item> + <item>haddps</item> + <item>hsubpd</item> + <item>hsubps</item> + <item>lddqu</item> + <item>movddup</item> + <item>movshdup</item> + <item>movsldup</item> + <item>clgi</item> + <item>stgi</item> + <item>vmcall</item> + <item>vmclear</item> + <item>vmfunc</item> + <item>vmlaunch</item> + <item>vmload</item> + <item>vmmcall</item> + <item>vmptrld</item> + <item>vmptrst</item> + <item>vmread</item> + <item>vmresume</item> + <item>vmrun</item> + <item>vmsave</item> + <item>vmwrite</item> + <item>vmxoff</item> + <item>vmxon</item> + <item>invept</item> + <item>invvpid</item> + <item>pabsb</item> + <item>pabsw</item> + <item>pabsd</item> + <item>palignr</item> + <item>phaddw</item> + <item>phaddd</item> + <item>phaddsw</item> + <item>phsubw</item> + <item>phsubd</item> + <item>phsubsw</item> + <item>pmaddubsw</item> + <item>pmulhrsw</item> + <item>pshufb</item> + <item>psignb</item> + <item>psignw</item> + <item>psignd</item> + <item>extrq</item> + <item>insertq</item> + <item>movntsd</item> + <item>movntss</item> + <item>lzcnt</item> + <item>blendpd</item> + <item>blendps</item> + <item>blendvpd</item> + <item>blendvps</item> + <item>dppd</item> + <item>dpps</item> + <item>extractps</item> + <item>insertps</item> + <item>movntdqa</item> + <item>mpsadbw</item> + <item>packusdw</item> + <item>pblendvb</item> + <item>pblendw</item> + <item>pcmpeqq</item> + <item>pextrb</item> + <item>pextrd</item> + <item>pextrq</item> + <item>phminposuw</item> + <item>pinsrb</item> + <item>pinsrd</item> + <item>pinsrq</item> + <item>pmaxsb</item> + <item>pmaxsd</item> + <item>pmaxud</item> + <item>pmaxuw</item> + <item>pminsb</item> + <item>pminsd</item> + <item>pminud</item> + <item>pminuw</item> + <item>pmovsxbw</item> + <item>pmovsxbd</item> + <item>pmovsxbq</item> + <item>pmovsxwd</item> + <item>pmovsxwq</item> + <item>pmovsxdq</item> + <item>pmovzxbw</item> + <item>pmovzxbd</item> + <item>pmovzxbq</item> + <item>pmovzxwd</item> + <item>pmovzxwq</item> + <item>pmovzxdq</item> + <item>pmuldq</item> + <item>pmulld</item> + <item>ptest</item> + <item>roundpd</item> + <item>roundps</item> + <item>roundsd</item> + <item>roundss</item> + <item>crc32</item> + <item>pcmpestri</item> + <item>pcmpestrm</item> + <item>pcmpistri</item> + <item>pcmpistrm</item> + <item>pcmpgtq</item> + <item>popcnt</item> + <item>getsec</item> + <item>pfrcpv</item> + <item>pfrsqrtv</item> + <item>movbe</item> + <item>aesenc</item> + <item>aesenclast</item> + <item>aesdec</item> + <item>aesdeclast</item> + <item>aesimc</item> + <item>aeskeygenassist</item> + <item>vaesenc</item> + <item>vaesenclast</item> + <item>vaesdec</item> + <item>vaesdeclast</item> + <item>vaesimc</item> + <item>vaeskeygenassist</item> + <item>vaddpd</item> + <item>vaddps</item> + <item>vaddsd</item> + <item>vaddss</item> + <item>vaddsubpd</item> + <item>vaddsubps</item> + <item>vandpd</item> + <item>vandps</item> + <item>vandnpd</item> + <item>vandnps</item> + <item>vblendpd</item> + <item>vblendps</item> + <item>vblendvpd</item> + <item>vblendvps</item> + <item>vbroadcastss</item> + <item>vbroadcastsd</item> + <item>vbroadcastf128</item> + <item>vcmpeq_ospd</item> + <item>vcmpeqpd</item> + <item>vcmplt_ospd</item> + <item>vcmpltpd</item> + <item>vcmple_ospd</item> + <item>vcmplepd</item> + <item>vcmpunord_qpd</item> + <item>vcmpunordpd</item> + <item>vcmpneq_uqpd</item> + <item>vcmpneqpd</item> + <item>vcmpnlt_uspd</item> + <item>vcmpnltpd</item> + <item>vcmpnle_uspd</item> + <item>vcmpnlepd</item> + <item>vcmpord_qpd</item> + <item>vcmpordpd</item> + <item>vcmpeq_uqpd</item> + <item>vcmpnge_uspd</item> + <item>vcmpngepd</item> + <item>vcmpngt_uspd</item> + <item>vcmpngtpd</item> + <item>vcmpfalse_oqpd</item> + <item>vcmpfalsepd</item> + <item>vcmpneq_oqpd</item> + <item>vcmpge_ospd</item> + <item>vcmpgepd</item> + <item>vcmpgt_ospd</item> + <item>vcmpgtpd</item> + <item>vcmptrue_uqpd</item> + <item>vcmptruepd</item> + <item>vcmplt_oqpd</item> + <item>vcmple_oqpd</item> + <item>vcmpunord_spd</item> + <item>vcmpneq_uspd</item> + <item>vcmpnlt_uqpd</item> + <item>vcmpnle_uqpd</item> + <item>vcmpord_spd</item> + <item>vcmpeq_uspd</item> + <item>vcmpnge_uqpd</item> + <item>vcmpngt_uqpd</item> + <item>vcmpfalse_ospd</item> + <item>vcmpneq_ospd</item> + <item>vcmpge_oqpd</item> + <item>vcmpgt_oqpd</item> + <item>vcmptrue_uspd</item> + <item>vcmppd</item> + <item>vcmpeq_osps</item> + <item>vcmpeqps</item> + <item>vcmplt_osps</item> + <item>vcmpltps</item> + <item>vcmple_osps</item> + <item>vcmpleps</item> + <item>vcmpunord_qps</item> + <item>vcmpunordps</item> + <item>vcmpneq_uqps</item> + <item>vcmpneqps</item> + <item>vcmpnlt_usps</item> + <item>vcmpnltps</item> + <item>vcmpnle_usps</item> + <item>vcmpnleps</item> + <item>vcmpord_qps</item> + <item>vcmpordps</item> + <item>vcmpeq_uqps</item> + <item>vcmpnge_usps</item> + <item>vcmpngeps</item> + <item>vcmpngt_usps</item> + <item>vcmpngtps</item> + <item>vcmpfalse_oqps</item> + <item>vcmpfalseps</item> + <item>vcmpneq_oqps</item> + <item>vcmpge_osps</item> + <item>vcmpgeps</item> + <item>vcmpgt_osps</item> + <item>vcmpgtps</item> + <item>vcmptrue_uqps</item> + <item>vcmptrueps</item> + <item>vcmplt_oqps</item> + <item>vcmple_oqps</item> + <item>vcmpunord_sps</item> + <item>vcmpneq_usps</item> + <item>vcmpnlt_uqps</item> + <item>vcmpnle_uqps</item> + <item>vcmpord_sps</item> + <item>vcmpeq_usps</item> + <item>vcmpnge_uqps</item> + <item>vcmpngt_uqps</item> + <item>vcmpfalse_osps</item> + <item>vcmpneq_osps</item> + <item>vcmpge_oqps</item> + <item>vcmpgt_oqps</item> + <item>vcmptrue_usps</item> + <item>vcmpps</item> + <item>vcmpeq_ossd</item> + <item>vcmpeqsd</item> + <item>vcmplt_ossd</item> + <item>vcmpltsd</item> + <item>vcmple_ossd</item> + <item>vcmplesd</item> + <item>vcmpunord_qsd</item> + <item>vcmpunordsd</item> + <item>vcmpneq_uqsd</item> + <item>vcmpneqsd</item> + <item>vcmpnlt_ussd</item> + <item>vcmpnltsd</item> + <item>vcmpnle_ussd</item> + <item>vcmpnlesd</item> + <item>vcmpord_qsd</item> + <item>vcmpordsd</item> + <item>vcmpeq_uqsd</item> + <item>vcmpnge_ussd</item> + <item>vcmpngesd</item> + <item>vcmpngt_ussd</item> + <item>vcmpngtsd</item> + <item>vcmpfalse_oqsd</item> + <item>vcmpfalsesd</item> + <item>vcmpneq_oqsd</item> + <item>vcmpge_ossd</item> + <item>vcmpgesd</item> + <item>vcmpgt_ossd</item> + <item>vcmpgtsd</item> + <item>vcmptrue_uqsd</item> + <item>vcmptruesd</item> + <item>vcmplt_oqsd</item> + <item>vcmple_oqsd</item> + <item>vcmpunord_ssd</item> + <item>vcmpneq_ussd</item> + <item>vcmpnlt_uqsd</item> + <item>vcmpnle_uqsd</item> + <item>vcmpord_ssd</item> + <item>vcmpeq_ussd</item> + <item>vcmpnge_uqsd</item> + <item>vcmpngt_uqsd</item> + <item>vcmpfalse_ossd</item> + <item>vcmpneq_ossd</item> + <item>vcmpge_oqsd</item> + <item>vcmpgt_oqsd</item> + <item>vcmptrue_ussd</item> + <item>vcmpsd</item> + <item>vcmpeq_osss</item> + <item>vcmpeqss</item> + <item>vcmplt_osss</item> + <item>vcmpltss</item> + <item>vcmple_osss</item> + <item>vcmpless</item> + <item>vcmpunord_qss</item> + <item>vcmpunordss</item> + <item>vcmpneq_uqss</item> + <item>vcmpneqss</item> + <item>vcmpnlt_usss</item> + <item>vcmpnltss</item> + <item>vcmpnle_usss</item> + <item>vcmpnless</item> + <item>vcmpord_qss</item> + <item>vcmpordss</item> + <item>vcmpeq_uqss</item> + <item>vcmpnge_usss</item> + <item>vcmpngess</item> + <item>vcmpngt_usss</item> + <item>vcmpngtss</item> + <item>vcmpfalse_oqss</item> + <item>vcmpfalsess</item> + <item>vcmpneq_oqss</item> + <item>vcmpge_osss</item> + <item>vcmpgess</item> + <item>vcmpgt_osss</item> + <item>vcmpgtss</item> + <item>vcmptrue_uqss</item> + <item>vcmptruess</item> + <item>vcmplt_oqss</item> + <item>vcmple_oqss</item> + <item>vcmpunord_sss</item> + <item>vcmpneq_usss</item> + <item>vcmpnlt_uqss</item> + <item>vcmpnle_uqss</item> + <item>vcmpord_sss</item> + <item>vcmpeq_usss</item> + <item>vcmpnge_uqss</item> + <item>vcmpngt_uqss</item> + <item>vcmpfalse_osss</item> + <item>vcmpneq_osss</item> + <item>vcmpge_oqss</item> + <item>vcmpgt_oqss</item> + <item>vcmptrue_usss</item> + <item>vcmpss</item> + <item>vcomisd</item> + <item>vcomiss</item> + <item>vcvtdq2pd</item> + <item>vcvtdq2ps</item> + <item>vcvtpd2dq</item> + <item>vcvtpd2ps</item> + <item>vcvtps2dq</item> + <item>vcvtps2pd</item> + <item>vcvtsd2si</item> + <item>vcvtsd2ss</item> + <item>vcvtsi2sd</item> + <item>vcvtsi2ss</item> + <item>vcvtss2sd</item> + <item>vcvtss2si</item> + <item>vcvttpd2dq</item> + <item>vcvttps2dq</item> + <item>vcvttsd2si</item> + <item>vcvttss2si</item> + <item>vdivpd</item> + <item>vdivps</item> + <item>vdivsd</item> + <item>vdivss</item> + <item>vdppd</item> + <item>vdpps</item> + <item>vextractf128</item> + <item>vextractps</item> + <item>vhaddpd</item> + <item>vhaddps</item> + <item>vhsubpd</item> + <item>vhsubps</item> + <item>vinsertf128</item> + <item>vinsertps</item> + <item>vlddqu</item> + <item>vldqqu</item> + <item>vldmxcsr</item> + <item>vmaskmovdqu</item> + <item>vmaskmovps</item> + <item>vmaskmovpd</item> + <item>vmaxpd</item> + <item>vmaxps</item> + <item>vmaxsd</item> + <item>vmaxss</item> + <item>vminpd</item> + <item>vminps</item> + <item>vminsd</item> + <item>vminss</item> + <item>vmovapd</item> + <item>vmovaps</item> + <item>vmovd</item> + <item>vmovq</item> + <item>vmovddup</item> + <item>vmovdqa</item> + <item>vmovqqa</item> + <item>vmovdqu</item> + <item>vmovqqu</item> + <item>vmovhlps</item> + <item>vmovhpd</item> + <item>vmovhps</item> + <item>vmovlhps</item> + <item>vmovlpd</item> + <item>vmovlps</item> + <item>vmovmskpd</item> + <item>vmovmskps</item> + <item>vmovntdq</item> + <item>vmovntqq</item> + <item>vmovntdqa</item> + <item>vmovntpd</item> + <item>vmovntps</item> + <item>vmovsd</item> + <item>vmovshdup</item> + <item>vmovsldup</item> + <item>vmovss</item> + <item>vmovupd</item> + <item>vmovups</item> + <item>vmpsadbw</item> + <item>vmulpd</item> + <item>vmulps</item> + <item>vmulsd</item> + <item>vmulss</item> + <item>vorpd</item> + <item>vorps</item> + <item>vpabsb</item> + <item>vpabsw</item> + <item>vpabsd</item> + <item>vpacksswb</item> + <item>vpackssdw</item> + <item>vpackuswb</item> + <item>vpackusdw</item> + <item>vpaddb</item> + <item>vpaddw</item> + <item>vpaddd</item> + <item>vpaddq</item> + <item>vpaddsb</item> + <item>vpaddsw</item> + <item>vpaddusb</item> + <item>vpaddusw</item> + <item>vpalignr</item> + <item>vpand</item> + <item>vpandn</item> + <item>vpavgb</item> + <item>vpavgw</item> + <item>vpblendvb</item> + <item>vpblendw</item> + <item>vpcmpestri</item> + <item>vpcmpestrm</item> + <item>vpcmpistri</item> + <item>vpcmpistrm</item> + <item>vpcmpeqb</item> + <item>vpcmpeqw</item> + <item>vpcmpeqd</item> + <item>vpcmpeqq</item> + <item>vpcmpgtb</item> + <item>vpcmpgtw</item> + <item>vpcmpgtd</item> + <item>vpcmpgtq</item> + <item>vpermilpd</item> + <item>vpermilps</item> + <item>vperm2f128</item> + <item>vpextrb</item> + <item>vpextrw</item> + <item>vpextrd</item> + <item>vpextrq</item> + <item>vphaddw</item> + <item>vphaddd</item> + <item>vphaddsw</item> + <item>vphminposuw</item> + <item>vphsubw</item> + <item>vphsubd</item> + <item>vphsubsw</item> + <item>vpinsrb</item> + <item>vpinsrw</item> + <item>vpinsrd</item> + <item>vpinsrq</item> + <item>vpmaddwd</item> + <item>vpmaddubsw</item> + <item>vpmaxsb</item> + <item>vpmaxsw</item> + <item>vpmaxsd</item> + <item>vpmaxub</item> + <item>vpmaxuw</item> + <item>vpmaxud</item> + <item>vpminsb</item> + <item>vpminsw</item> + <item>vpminsd</item> + <item>vpminub</item> + <item>vpminuw</item> + <item>vpminud</item> + <item>vpmovmskb</item> + <item>vpmovsxbw</item> + <item>vpmovsxbd</item> + <item>vpmovsxbq</item> + <item>vpmovsxwd</item> + <item>vpmovsxwq</item> + <item>vpmovsxdq</item> + <item>vpmovzxbw</item> + <item>vpmovzxbd</item> + <item>vpmovzxbq</item> + <item>vpmovzxwd</item> + <item>vpmovzxwq</item> + <item>vpmovzxdq</item> + <item>vpmulhuw</item> + <item>vpmulhrsw</item> + <item>vpmulhw</item> + <item>vpmullw</item> + <item>vpmulld</item> + <item>vpmuludq</item> + <item>vpmuldq</item> + <item>vpor</item> + <item>vpsadbw</item> + <item>vpshufb</item> + <item>vpshufd</item> + <item>vpshufhw</item> + <item>vpshuflw</item> + <item>vpsignb</item> + <item>vpsignw</item> + <item>vpsignd</item> + <item>vpslldq</item> + <item>vpsrldq</item> + <item>vpsllw</item> + <item>vpslld</item> + <item>vpsllq</item> + <item>vpsraw</item> + <item>vpsrad</item> + <item>vpsrlw</item> + <item>vpsrld</item> + <item>vpsrlq</item> + <item>vptest</item> + <item>vpsubb</item> + <item>vpsubw</item> + <item>vpsubd</item> + <item>vpsubq</item> + <item>vpsubsb</item> + <item>vpsubsw</item> + <item>vpsubusb</item> + <item>vpsubusw</item> + <item>vpunpckhbw</item> + <item>vpunpckhwd</item> + <item>vpunpckhdq</item> + <item>vpunpckhqdq</item> + <item>vpunpcklbw</item> + <item>vpunpcklwd</item> + <item>vpunpckldq</item> + <item>vpunpcklqdq</item> + <item>vpxor</item> + <item>vrcpps</item> + <item>vrcpss</item> + <item>vrsqrtps</item> + <item>vrsqrtss</item> + <item>vroundpd</item> + <item>vroundps</item> + <item>vroundsd</item> + <item>vroundss</item> + <item>vshufpd</item> + <item>vshufps</item> + <item>vsqrtpd</item> + <item>vsqrtps</item> + <item>vsqrtsd</item> + <item>vsqrtss</item> + <item>vstmxcsr</item> + <item>vsubpd</item> + <item>vsubps</item> + <item>vsubsd</item> + <item>vsubss</item> + <item>vtestps</item> + <item>vtestpd</item> + <item>vucomisd</item> + <item>vucomiss</item> + <item>vunpckhpd</item> + <item>vunpckhps</item> + <item>vunpcklpd</item> + <item>vunpcklps</item> + <item>vxorpd</item> + <item>vxorps</item> + <item>vzeroall</item> + <item>vzeroupper</item> + <item>pclmullqlqdq</item> + <item>pclmulhqlqdq</item> + <item>pclmullqhqdq</item> + <item>pclmulhqhqdq</item> + <item>pclmulqdq</item> + <item>vpclmullqlqdq</item> + <item>vpclmulhqlqdq</item> + <item>vpclmullqhqdq</item> + <item>vpclmulhqhqdq</item> + <item>vpclmulqdq</item> + <item>vfmadd132ps</item> + <item>vfmadd132pd</item> + <item>vfmadd312ps</item> + <item>vfmadd312pd</item> + <item>vfmadd213ps</item> + <item>vfmadd213pd</item> + <item>vfmadd123ps</item> + <item>vfmadd123pd</item> + <item>vfmadd231ps</item> + <item>vfmadd231pd</item> + <item>vfmadd321ps</item> + <item>vfmadd321pd</item> + <item>vfmaddsub132ps</item> + <item>vfmaddsub132pd</item> + <item>vfmaddsub312ps</item> + <item>vfmaddsub312pd</item> + <item>vfmaddsub213ps</item> + <item>vfmaddsub213pd</item> + <item>vfmaddsub123ps</item> + <item>vfmaddsub123pd</item> + <item>vfmaddsub231ps</item> + <item>vfmaddsub231pd</item> + <item>vfmaddsub321ps</item> + <item>vfmaddsub321pd</item> + <item>vfmsub132ps</item> + <item>vfmsub132pd</item> + <item>vfmsub312ps</item> + <item>vfmsub312pd</item> + <item>vfmsub213ps</item> + <item>vfmsub213pd</item> + <item>vfmsub123ps</item> + <item>vfmsub123pd</item> + <item>vfmsub231ps</item> + <item>vfmsub231pd</item> + <item>vfmsub321ps</item> + <item>vfmsub321pd</item> + <item>vfmsubadd132ps</item> + <item>vfmsubadd132pd</item> + <item>vfmsubadd312ps</item> + <item>vfmsubadd312pd</item> + <item>vfmsubadd213ps</item> + <item>vfmsubadd213pd</item> + <item>vfmsubadd123ps</item> + <item>vfmsubadd123pd</item> + <item>vfmsubadd231ps</item> + <item>vfmsubadd231pd</item> + <item>vfmsubadd321ps</item> + <item>vfmsubadd321pd</item> + <item>vfnmadd132ps</item> + <item>vfnmadd132pd</item> + <item>vfnmadd312ps</item> + <item>vfnmadd312pd</item> + <item>vfnmadd213ps</item> + <item>vfnmadd213pd</item> + <item>vfnmadd123ps</item> + <item>vfnmadd123pd</item> + <item>vfnmadd231ps</item> + <item>vfnmadd231pd</item> + <item>vfnmadd321ps</item> + <item>vfnmadd321pd</item> + <item>vfnmsub132ps</item> + <item>vfnmsub132pd</item> + <item>vfnmsub312ps</item> + <item>vfnmsub312pd</item> + <item>vfnmsub213ps</item> + <item>vfnmsub213pd</item> + <item>vfnmsub123ps</item> + <item>vfnmsub123pd</item> + <item>vfnmsub231ps</item> + <item>vfnmsub231pd</item> + <item>vfnmsub321ps</item> + <item>vfnmsub321pd</item> + <item>vfmadd132ss</item> + <item>vfmadd132sd</item> + <item>vfmadd312ss</item> + <item>vfmadd312sd</item> + <item>vfmadd213ss</item> + <item>vfmadd213sd</item> + <item>vfmadd123ss</item> + <item>vfmadd123sd</item> + <item>vfmadd231ss</item> + <item>vfmadd231sd</item> + <item>vfmadd321ss</item> + <item>vfmadd321sd</item> + <item>vfmsub132ss</item> + <item>vfmsub132sd</item> + <item>vfmsub312ss</item> + <item>vfmsub312sd</item> + <item>vfmsub213ss</item> + <item>vfmsub213sd</item> + <item>vfmsub123ss</item> + <item>vfmsub123sd</item> + <item>vfmsub231ss</item> + <item>vfmsub231sd</item> + <item>vfmsub321ss</item> + <item>vfmsub321sd</item> + <item>vfnmadd132ss</item> + <item>vfnmadd132sd</item> + <item>vfnmadd312ss</item> + <item>vfnmadd312sd</item> + <item>vfnmadd213ss</item> + <item>vfnmadd213sd</item> + <item>vfnmadd123ss</item> + <item>vfnmadd123sd</item> + <item>vfnmadd231ss</item> + <item>vfnmadd231sd</item> + <item>vfnmadd321ss</item> + <item>vfnmadd321sd</item> + <item>vfnmsub132ss</item> + <item>vfnmsub132sd</item> + <item>vfnmsub312ss</item> + <item>vfnmsub312sd</item> + <item>vfnmsub213ss</item> + <item>vfnmsub213sd</item> + <item>vfnmsub123ss</item> + <item>vfnmsub123sd</item> + <item>vfnmsub231ss</item> + <item>vfnmsub231sd</item> + <item>vfnmsub321ss</item> + <item>vfnmsub321sd</item> + <item>rdfsbase</item> + <item>rdgsbase</item> + <item>rdrand</item> + <item>wrfsbase</item> + <item>wrgsbase</item> + <item>vcvtph2ps</item> + <item>vcvtps2ph</item> + <item>adcx</item> + <item>adox</item> + <item>rdseed</item> + <item>clac</item> + <item>stac</item> + <item>xstore</item> + <item>xcryptecb</item> + <item>xcryptcbc</item> + <item>xcryptctr</item> + <item>xcryptcfb</item> + <item>xcryptofb</item> + <item>montmul</item> + <item>xsha1</item> + <item>xsha256</item> + <item>llwpcb</item> + <item>slwpcb</item> + <item>lwpval</item> + <item>lwpins</item> + <item>vfmaddpd</item> + <item>vfmaddps</item> + <item>vfmaddsd</item> + <item>vfmaddss</item> + <item>vfmaddsubpd</item> + <item>vfmaddsubps</item> + <item>vfmsubaddpd</item> + <item>vfmsubaddps</item> + <item>vfmsubpd</item> + <item>vfmsubps</item> + <item>vfmsubsd</item> + <item>vfmsubss</item> + <item>vfnmaddpd</item> + <item>vfnmaddps</item> + <item>vfnmaddsd</item> + <item>vfnmaddss</item> + <item>vfnmsubpd</item> + <item>vfnmsubps</item> + <item>vfnmsubsd</item> + <item>vfnmsubss</item> + <item>vfrczpd</item> + <item>vfrczps</item> + <item>vfrczsd</item> + <item>vfrczss</item> + <item>vpcmov</item> + <item>vpcomb</item> + <item>vpcomd</item> + <item>vpcomq</item> + <item>vpcomub</item> + <item>vpcomud</item> + <item>vpcomuq</item> + <item>vpcomuw</item> + <item>vpcomw</item> + <item>vphaddbd</item> + <item>vphaddbq</item> + <item>vphaddbw</item> + <item>vphadddq</item> + <item>vphaddubd</item> + <item>vphaddubq</item> + <item>vphaddubw</item> + <item>vphaddudq</item> + <item>vphadduwd</item> + <item>vphadduwq</item> + <item>vphaddwd</item> + <item>vphaddwq</item> + <item>vphsubbw</item> + <item>vphsubdq</item> + <item>vphsubwd</item> + <item>vpmacsdd</item> + <item>vpmacsdqh</item> + <item>vpmacsdql</item> + <item>vpmacssdd</item> + <item>vpmacssdqh</item> + <item>vpmacssdql</item> + <item>vpmacsswd</item> + <item>vpmacssww</item> + <item>vpmacswd</item> + <item>vpmacsww</item> + <item>vpmadcsswd</item> + <item>vpmadcswd</item> + <item>vpperm</item> + <item>vprotb</item> + <item>vprotd</item> + <item>vprotq</item> + <item>vprotw</item> + <item>vpshab</item> + <item>vpshad</item> + <item>vpshaq</item> + <item>vpshaw</item> + <item>vpshlb</item> + <item>vpshld</item> + <item>vpshlq</item> + <item>vpshlw</item> + <item>vbroadcasti128</item> + <item>vpblendd</item> + <item>vpbroadcastb</item> + <item>vpbroadcastw</item> + <item>vpbroadcastd</item> + <item>vpbroadcastq</item> + <item>vpermd</item> + <item>vpermpd</item> + <item>vpermps</item> + <item>vpermq</item> + <item>vperm2i128</item> + <item>vextracti128</item> + <item>vinserti128</item> + <item>vpmaskmovd</item> + <item>vpmaskmovq</item> + <item>vpsllvd</item> + <item>vpsllvq</item> + <item>vpsravd</item> + <item>vpsrlvd</item> + <item>vpsrlvq</item> + <item>vgatherdpd</item> + <item>vgatherqpd</item> + <item>vgatherdps</item> + <item>vgatherqps</item> + <item>vpgatherdd</item> + <item>vpgatherqd</item> + <item>vpgatherdq</item> + <item>vpgatherqq</item> + <item>xabort</item> + <item>xbegin</item> + <item>xend</item> + <item>xtest</item> + <item>andn</item> + <item>bextr</item> + <item>blci</item> + <item>blcic</item> + <item>blsi</item> + <item>blsic</item> + <item>blcfill</item> + <item>blsfill</item> + <item>blcmsk</item> + <item>blsmsk</item> + <item>blsr</item> + <item>blcs</item> + <item>bzhi</item> + <item>mulx</item> + <item>pdep</item> + <item>pext</item> + <item>rorx</item> + <item>sarx</item> + <item>shlx</item> + <item>shrx</item> + <item>tzcnt</item> + <item>tzmsk</item> + <item>t1mskc</item> + <item>valignd</item> + <item>valignq</item> + <item>vblendmpd</item> + <item>vblendmps</item> + <item>vbroadcastf32x4</item> + <item>vbroadcastf64x4</item> + <item>vbroadcasti32x4</item> + <item>vbroadcasti64x4</item> + <item>vcompresspd</item> + <item>vcompressps</item> + <item>vcvtpd2udq</item> + <item>vcvtps2udq</item> + <item>vcvtsd2usi</item> + <item>vcvtss2usi</item> + <item>vcvttpd2udq</item> + <item>vcvttps2udq</item> + <item>vcvttsd2usi</item> + <item>vcvttss2usi</item> + <item>vcvtudq2pd</item> + <item>vcvtudq2ps</item> + <item>vcvtusi2sd</item> + <item>vcvtusi2ss</item> + <item>vexpandpd</item> + <item>vexpandps</item> + <item>vextractf32x4</item> + <item>vextractf64x4</item> + <item>vextracti32x4</item> + <item>vextracti64x4</item> + <item>vfixupimmpd</item> + <item>vfixupimmps</item> + <item>vfixupimmsd</item> + <item>vfixupimmss</item> + <item>vgetexppd</item> + <item>vgetexpps</item> + <item>vgetexpsd</item> + <item>vgetexpss</item> + <item>vgetmantpd</item> + <item>vgetmantps</item> + <item>vgetmantsd</item> + <item>vgetmantss</item> + <item>vinsertf32x4</item> + <item>vinsertf64x4</item> + <item>vinserti32x4</item> + <item>vinserti64x4</item> + <item>vmovdqa32</item> + <item>vmovdqa64</item> + <item>vmovdqu32</item> + <item>vmovdqu64</item> + <item>vpabsq</item> + <item>vpandd</item> + <item>vpandnd</item> + <item>vpandnq</item> + <item>vpandq</item> + <item>vpblendmd</item> + <item>vpblendmq</item> + <item>vpcmpltd</item> + <item>vpcmpled</item> + <item>vpcmpneqd</item> + <item>vpcmpnltd</item> + <item>vpcmpnled</item> + <item>vpcmpd</item> + <item>vpcmpltq</item> + <item>vpcmpleq</item> + <item>vpcmpneqq</item> + <item>vpcmpnltq</item> + <item>vpcmpnleq</item> + <item>vpcmpq</item> + <item>vpcmpequd</item> + <item>vpcmpltud</item> + <item>vpcmpleud</item> + <item>vpcmpnequd</item> + <item>vpcmpnltud</item> + <item>vpcmpnleud</item> + <item>vpcmpud</item> + <item>vpcmpequq</item> + <item>vpcmpltuq</item> + <item>vpcmpleuq</item> + <item>vpcmpnequq</item> + <item>vpcmpnltuq</item> + <item>vpcmpnleuq</item> + <item>vpcmpuq</item> + <item>vpcompressd</item> + <item>vpcompressq</item> + <item>vpermi2d</item> + <item>vpermi2pd</item> + <item>vpermi2ps</item> + <item>vpermi2q</item> + <item>vpermt2d</item> + <item>vpermt2pd</item> + <item>vpermt2ps</item> + <item>vpermt2q</item> + <item>vpexpandd</item> + <item>vpexpandq</item> + <item>vpmaxsq</item> + <item>vpmaxuq</item> + <item>vpminsq</item> + <item>vpminuq</item> + <item>vpmovdb</item> + <item>vpmovdw</item> + <item>vpmovqb</item> + <item>vpmovqd</item> + <item>vpmovqw</item> + <item>vpmovsdb</item> + <item>vpmovsdw</item> + <item>vpmovsqb</item> + <item>vpmovsqd</item> + <item>vpmovsqw</item> + <item>vpmovusdb</item> + <item>vpmovusdw</item> + <item>vpmovusqb</item> + <item>vpmovusqd</item> + <item>vpmovusqw</item> + <item>vpord</item> + <item>vporq</item> + <item>vprold</item> + <item>vprolq</item> + <item>vprolvd</item> + <item>vprolvq</item> + <item>vprord</item> + <item>vprorq</item> + <item>vprorvd</item> + <item>vprorvq</item> + <item>vpscatterdd</item> + <item>vpscatterdq</item> + <item>vpscatterqd</item> + <item>vpscatterqq</item> + <item>vpsraq</item> + <item>vpsravq</item> + <item>vpternlogd</item> + <item>vpternlogq</item> + <item>vptestmd</item> + <item>vptestmq</item> + <item>vptestnmd</item> + <item>vptestnmq</item> + <item>vpxord</item> + <item>vpxorq</item> + <item>vrcp14pd</item> + <item>vrcp14ps</item> + <item>vrcp14sd</item> + <item>vrcp14ss</item> + <item>vrndscalepd</item> + <item>vrndscaleps</item> + <item>vrndscalesd</item> + <item>vrndscaless</item> + <item>vrsqrt14pd</item> + <item>vrsqrt14ps</item> + <item>vrsqrt14sd</item> + <item>vrsqrt14ss</item> + <item>vscalefpd</item> + <item>vscalefps</item> + <item>vscalefsd</item> + <item>vscalefss</item> + <item>vscatterdpd</item> + <item>vscatterdps</item> + <item>vscatterqpd</item> + <item>vscatterqps</item> + <item>vshuff32x4</item> + <item>vshuff64x2</item> + <item>vshufi32x4</item> + <item>vshufi64x2</item> + <item>kandnw</item> + <item>kandw</item> + <item>kmovw</item> + <item>knotw</item> + <item>kortestw</item> + <item>korw</item> + <item>kshiftlw</item> + <item>kshiftrw</item> + <item>kunpckbw</item> + <item>kxnorw</item> + <item>kxorw</item> + <item>vpbroadcastmb2q</item> + <item>vpbroadcastmw2d</item> + <item>vpconflictd</item> + <item>vpconflictq</item> + <item>vplzcntd</item> + <item>vplzcntq</item> + <item>vexp2pd</item> + <item>vexp2ps</item> + <item>vrcp28pd</item> + <item>vrcp28ps</item> + <item>vrcp28sd</item> + <item>vrcp28ss</item> + <item>vrsqrt28pd</item> + <item>vrsqrt28ps</item> + <item>vrsqrt28sd</item> + <item>vrsqrt28ss</item> + <item>vgatherpf0dpd</item> + <item>vgatherpf0dps</item> + <item>vgatherpf0qpd</item> + <item>vgatherpf0qps</item> + <item>vgatherpf1dpd</item> + <item>vgatherpf1dps</item> + <item>vgatherpf1qpd</item> + <item>vgatherpf1qps</item> + <item>vscatterpf0dpd</item> + <item>vscatterpf0dps</item> + <item>vscatterpf0qpd</item> + <item>vscatterpf0qps</item> + <item>vscatterpf1dpd</item> + <item>vscatterpf1dps</item> + <item>vscatterpf1qpd</item> + <item>vscatterpf1qps</item> + <item>prefetchwt1</item> + <item>bndmk</item> + <item>bndcl</item> + <item>bndcu</item> + <item>bndcn</item> + <item>bndmov</item> + <item>bndldx</item> + <item>bndstx</item> + <item>sha1rnds4</item> + <item>sha1nexte</item> + <item>sha1msg1</item> + <item>sha1msg2</item> + <item>sha256rnds2</item> + <item>sha256msg1</item> + <item>sha256msg2</item> + <item>hint_nop</item> + </list> + + <list name="branch instructions"> + <item>call</item> + <item>callq</item> + <item>iret</item> + <item>iretd</item> + <item>iretq</item> + <item>iretw</item> + <item>ja</item> + <item>jae</item> + <item>jb</item> + <item>jbe</item> + <item>jc</item> + <item>jcxz</item> + <item>je</item> + <item>jecxz</item> + <item>jg</item> + <item>jge</item> + <item>jl</item> + <item>jle</item> + <item>jmp</item> + <item>jmpe</item> + <item>jna</item> + <item>jnae</item> + <item>jnb</item> + <item>jnbe</item> + <item>jnc</item> + <item>jne</item> + <item>jng</item> + <item>jnge</item> + <item>jnl</item> + <item>jnle</item> + <item>jno</item> + <item>jnp</item> + <item>jns</item> + <item>jnz</item> + <item>jo</item> + <item>jp</item> + <item>jpe</item> + <item>jpo</item> + <item>jrcxz</item> + <item>js</item> + <item>jz</item> + <item>ret</item> + <item>retd</item> + <item>retf</item> + <item>retfd</item> + <item>retfq</item> + <item>retfw</item> + <item>retn</item> + <item>retnd</item> + <item>retnq</item> + <item>retnw</item> + <item>retq</item> + <item>retw</item> + </list> + + <list name="keywords"> + <item>.abort</item> + <item>.align</item> + <item>.app-file</item> + <item>.appline</item> + <item>.ascii</item> + <item>.asciz</item> + <item>.att_syntax</item> + <item>.balign</item> + <item>.balignl</item> + <item>.balignw</item> + <item>.byte</item> + <item>.code16</item> + <item>.code32</item> + <item>.comm</item> + <item>.common.s</item> + <item>.common</item> + <item>.data</item> + <item>.dc.b</item> + <item>.dc.d</item> + <item>.dc.l</item> + <item>.dc.s</item> + <item>.dc.w</item> + <item>.dc.x</item> + <item>.dc</item> + <item>.dcb.b</item> + <item>.dcb.d</item> + <item>.dcb.l</item> + <item>.dcb.s</item> + <item>.dcb.w</item> + <item>.dcb.x</item> + <item>.dcb</item> + <item>.debug</item> + <item>.def</item> + <item>.desc</item> + <item>.dim</item> + <item>.double</item> + <item>.ds.b</item> + <item>.ds.d</item> + <item>.ds.l</item> + <item>.ds.p</item> + <item>.ds.s</item> + <item>.ds.w</item> + <item>.ds.x</item> + <item>.ds</item> + <item>.dsect</item> + <item>.eject</item> + <item>.else</item> + <item>.elsec</item> + <item>.elseif</item> + <item>.end</item> + <item>.endc</item> + <item>.endef</item> + <item>.endfunc</item> + <item>.endif</item> + <item>.endm</item> + <item>.endr</item> + <item>.equ</item> + <item>.equiv</item> + <item>.err</item> + <item>.exitm</item> + <item>.extend</item> + <item>.extern</item> + <item>.fail</item> + <item>.file</item> + <item>.fill</item> + <item>.float</item> + <item>.format</item> + <item>.func</item> + <item>.global</item> + <item>.globl</item> + <item>.hidden</item> + <item>.hword</item> + <item>.ident</item> + <item>.if</item> + <item>.ifc</item> + <item>.ifdef</item> + <item>.ifeq</item> + <item>.ifeqs</item> + <item>.ifge</item> + <item>.ifgt</item> + <item>.ifle</item> + <item>.iflt</item> + <item>.ifnc</item> + <item>.ifndef</item> + <item>.ifne</item> + <item>.ifnes</item> + <item>.ifnotdef</item> + <item>.include</item> + <item>.int</item> + <item>.intel_syntax</item> + <item>.internal</item> + <item>.irep</item> + <item>.irepc</item> + <item>.irp</item> + <item>.irpc</item> + <item>.lcomm</item> + <item>.lflags</item> + <item>.line</item> + <item>.linkonce</item> + <item>.list</item> + <item>.llen</item> + <item>.ln</item> + <item>.long</item> + <item>.lsym</item> + <item>.macro</item> + <item>.mexit</item> + <item>.name</item> + <item>.noformat</item> + <item>.nolist</item> + <item>.nopage</item> + <item>noprefix</item> + <item>.octa</item> + <item>.offset</item> + <item>.org</item> + <item>.p2align</item> + <item>.p2alignl</item> + <item>.p2alignw</item> + <item>.page</item> + <item>.plen</item> + <item>.popsection</item> + <item>.previous</item> + <item>.print</item> + <item>.protected</item> + <item>.psize</item> + <item>.purgem</item> + <item>.pushsection</item> + <item>.quad</item> + <item>.rodata</item> + <item>.rep</item> + <item>.rept</item> + <item>.rva</item> + <item>.sbttl</item> + <item>.scl</item> + <item>.sect.s</item> + <item>.sect</item> + <item>.section.s</item> + <item>.section</item> + <item>.set</item> + <item>.short</item> + <item>.single</item> + <item>.size</item> + <item>.skip</item> + <item>.sleb128</item> + <item>.space</item> + <item>.spc</item> + <item>.stabd</item> + <item>.stabn</item> + <item>.stabs</item> + <item>.string</item> + <item>.struct</item> + <item>.subsection</item> + <item>.symver</item> + <item>.tag</item> + <item>.text</item> + <item>.title</item> + <item>.ttl</item> + <item>.type</item> + <item>.uleb128</item> + <item>.use</item> + <item>.val</item> + <item>.version</item> + <item>.vtable_entry</item> + <item>.vtable_inherit</item> + <item>.weak</item> + <item>.word</item> + <item>.xcom</item> + <item>.xdef</item> + <item>.xref</item> + <item>.xstabs</item> + <item>.zero</item> + <!-- Directives specific to ARM --> + <item>.arm</item> + <item>.bss</item> + <item>.code</item> + <item>.even</item> + <item>.force_thumb</item> + <item>.ldouble</item> + <item>.loc</item> + <item>.ltorg</item> + <item>.packed</item> + <item>.pool</item> + <item>.req</item> + <item>.thumb</item> + <item>.thumb_func</item> + <item>.thumb_set</item> + </list> + + <contexts> + <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> + <RegExpr attribute="Label" context="#stay" String="[\.]?[_\w\d-]*\s*:" /> + <keyword attribute="Keyword" context="#stay" String="keywords"/> + <keyword attribute="Registers" context="#stay" String="registers"/> + <keyword attribute="Instructions" context="#stay" String="instructions"/> + <keyword attribute="Branch Instructions" context="#stay" String="branch instructions"/> + <HlCOct attribute="Octal" context="#stay" /> + <HlCHex attribute="Hex" context="#stay" /> + <RegExpr attribute="Binary" context="#stay" String="0[bB][01]+" /> + <Int attribute="Decimal" context="#stay" /> + <RegExpr attribute="Decimal" context="#stay" String="\$[0-9]+" /> + <RegExpr attribute="Float" context="#stay" String="0[fFeEdD][-+]?[0-9]*\.?[0-9]*[eE]?[-+]?[0-9]+" /> + <RegExpr attribute="Normal Text" context="#stay" String="[A-Za-z_.$][A-Za-z0-9_.$]*" /> + <HlCChar attribute="Char" context="#stay" /> + <RegExpr attribute="Char" context="#stay" String="'(\\x[0-9a-fA-F][0-9a-fA-F]?|\\[0-7]?[0-7]?[0-7]?|\\.|.)" /> + <DetectChar attribute="String" context="String" char=""" /> + <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*if(?:def|ndef)?(?=\s+\S)" insensitive="true" beginRegion="PP" firstNonSpace="true" /> + <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*endif" insensitive="true" endRegion="PP" firstNonSpace="true" /> + <RegExpr attribute="Preprocessor" context="Define" String="#\s*define.*((?=\\))" insensitive="true" firstNonSpace="true" /> + <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*(?:el(?:se|if)|include(?:_next)?|define|undef|line|error|warning|pragma)" firstNonSpace="true" /> + <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="*" beginRegion="BlockComment" /> + <AnyChar attribute="Comment" context="Commentar 2" String="@;#" /> + <AnyChar attribute="Symbol" context="#stay" String="!#%&*()+,-<=>?/:[]^{|}~" /> + </context> + <context attribute="Comment" lineEndContext="#stay" name="Commentar 1"> + <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="BlockComment" /> + <DetectSpaces /> + <IncludeRules context="##Comments" /> + </context> + <context attribute="Comment" lineEndContext="#pop" name="Commentar 2" > + <DetectSpaces /> + <IncludeRules context="##Comments" /> + </context> + <context attribute="String" lineEndContext="#pop" name="String"> + <LineContinue attribute="String" context="Some Context" /> + <HlCStringChar attribute="String Char" context="#stay" /> + <DetectChar attribute="String" context="#pop" char=""" /> + </context> + <context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor" /> + <context attribute="Preprocessor" lineEndContext="#pop" name="Define"> + <LineContinue attribute="Preprocessor" context="#stay"/> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="Some Context" /> + </contexts> + + <itemDatas> + <itemData name="Normal Text" defStyleNum="dsNormal" /> + <itemData name="Label" defStyleNum="dsFunction" /> + <itemData name="Keyword" defStyleNum="dsKeyword" /> + <itemData name="Registers" defStyleNum="dsKeyword" /> + <itemData name="Instructions" defStyleNum="dsKeyword" /> + <itemData name="Branch Instructions" defStyleNum="dsControlFlow" /> + <itemData name="Decimal" defStyleNum="dsDecVal" /> + <itemData name="Octal" defStyleNum="dsBaseN" /> + <itemData name="Hex" defStyleNum="dsBaseN" /> + <itemData name="Binary" defStyleNum="dsBaseN" /> + <itemData name="Float" defStyleNum="dsFloat" /> + <itemData name="Char" defStyleNum="dsChar" /> + <itemData name="String" defStyleNum="dsString" /> + <itemData name="String Char" defStyleNum="dsSpecialChar" /> + <itemData name="Symbol" defStyleNum="dsOperator" /> + <itemData name="Comment" defStyleNum="dsComment" /> + <itemData name="Preprocessor" defStyleNum="dsPreprocessor" /> + </itemDatas> + </highlighting> + + <general> + <comments> + <comment name="singleLine" start="#" position="afterwhitespace" /> + <comment name="multiLine" start="/*" end="*/" region="BlockComment" /> + </comments> + <keywords casesensitive="1" weakDeliminator="_.$" /> + </general> +</language> +<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/html.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/html.xml index 107e1067da..6e42c66f20 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/html.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/html.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd" +<!DOCTYPE language [ <!ENTITY name "[A-Za-z_:][\w.:_-]*"> <!ENTITY attributeName "[A-Za-z_:*#\(\[][\)\]\w.:_-]*"> - <!ENTITY entref "&(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);"> + <!ENTITY entref "&(?:#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);"> ]> -<language name="HTML" version="7" kateversion="3.4" section="Markup" extensions="*.htm;*.html;*.shtml;*.shtm" mimetype="text/html" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10"> +<language name="HTML" version="18" kateversion="5.79" section="Markup" extensions="*.htm;*.html;*.shtml;*.shtm;*.aspx" mimetype="text/html" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10"> <highlighting> <contexts> @@ -18,46 +18,72 @@ <DetectIdentifier/> <StringDetect attribute="Comment" context="Comment" String="<!--" beginRegion="comment" /> <StringDetect attribute="CDATA" context="CDATA" String="<![CDATA[" beginRegion="cdata" /> - <RegExpr attribute="Doctype" context="Doctype" String="<!DOCTYPE\s+" insensitive="true" beginRegion="doctype" /> + <WordDetect attribute="Doctype" context="Doctype" String="<!DOCTYPE" insensitive="true" beginRegion="doctype" /> + <IncludeRules context="FindElements" /> <RegExpr attribute="Processing Instruction" context="PI" String="<\?[\w:-]*" beginRegion="pi" /> - <RegExpr attribute="Element" context="CSS" String="<style\b" insensitive="true" beginRegion="style" /> - <RegExpr attribute="Element" context="JS" String="<script\b" insensitive="true" beginRegion="script" /> - <RegExpr attribute="Element" context="El Open" String="<pre\b" insensitive="true" beginRegion="pre" /> - <RegExpr attribute="Element" context="El Open" String="<div\b" insensitive="true" beginRegion="div" /> - <RegExpr attribute="Element" context="El Open" String="<table\b" insensitive="true" beginRegion="table" /> - <RegExpr attribute="Element" context="El Open" String="<ul\b" insensitive="true" beginRegion="ul" /> - <RegExpr attribute="Element" context="El Open" String="<ol\b" insensitive="true" beginRegion="ol" /> - <RegExpr attribute="Element" context="El Open" String="<dl\b" insensitive="true" beginRegion="dl" /> - <RegExpr attribute="Element" context="El Open" String="<article\b" insensitive="true" beginRegion="article" /> - <RegExpr attribute="Element" context="El Open" String="<aside\b" insensitive="true" beginRegion="aside" /> - <RegExpr attribute="Element" context="El Open" String="<details\b" insensitive="true" beginRegion="details" /> - <RegExpr attribute="Element" context="El Open" String="<figure\b" insensitive="true" beginRegion="figure" /> - <RegExpr attribute="Element" context="El Open" String="<footer\b" insensitive="true" beginRegion="footer" /> - <RegExpr attribute="Element" context="El Open" String="<header\b" insensitive="true" beginRegion="header" /> - <RegExpr attribute="Element" context="El Open" String="<main\b" insensitive="true" beginRegion="main" /> - <RegExpr attribute="Element" context="El Open" String="<nav\b" insensitive="true" beginRegion="nav" /> - <RegExpr attribute="Element" context="El Open" String="<section\b" insensitive="true" beginRegion="section" /> - <RegExpr attribute="Element" context="El Open" String="<&name;" /> - <RegExpr attribute="Element" context="El Close" String="</pre\b" insensitive="true" endRegion="pre" /> - <RegExpr attribute="Element" context="El Close" String="</div\b" insensitive="true" endRegion="div" /> - <RegExpr attribute="Element" context="El Close" String="</table\b" insensitive="true" endRegion="table" /> - <RegExpr attribute="Element" context="El Close" String="</ul\b" insensitive="true" endRegion="ul" /> - <RegExpr attribute="Element" context="El Close" String="</ol\b" insensitive="true" endRegion="ol" /> - <RegExpr attribute="Element" context="El Close" String="</dl\b" insensitive="true" endRegion="dl" /> - <RegExpr attribute="Element" context="El Close" String="</article\b" insensitive="true" endRegion="article" /> - <RegExpr attribute="Element" context="El Close" String="</aside\b" insensitive="true" endRegion="aside" /> - <RegExpr attribute="Element" context="El Close" String="</details\b" insensitive="true" endRegion="details" /> - <RegExpr attribute="Element" context="El Close" String="</figure\b" insensitive="true" endRegion="figure" /> - <RegExpr attribute="Element" context="El Close" String="</footer\b" insensitive="true" endRegion="footer" /> - <RegExpr attribute="Element" context="El Close" String="</header\b" insensitive="true" endRegion="header" /> - <RegExpr attribute="Element" context="El Close" String="</main\b" insensitive="true" endRegion="main" /> - <RegExpr attribute="Element" context="El Close" String="</nav\b" insensitive="true" endRegion="nav" /> - <RegExpr attribute="Element" context="El Close" String="</section\b" insensitive="true" endRegion="section" /> - <RegExpr attribute="Element" context="El Close" String="</&name;" /> + <!-- as long as kde gives DTDs the text/html mimetype--><IncludeRules context="FindDTDRules" /> <IncludeRules context="FindEntityRefs" /> </context> + <context name="FindElements" attribute="Other Text" lineEndContext="#pop"> + <RegExpr attribute="Element Symbols" context="ElementTagName" String="<(?=(&name;))" /> + <RegExpr attribute="Element Symbols" context="ElementTagNameClose" String="</(?=(&name;))" /> + </context> + + <context name="ElementTagName" attribute="Other Text" lineEndContext="#pop"> + <IncludeRules context="FindHTMLTags" /> + <IncludeRules context="FindSpecialHTMLTags" /> + <StringDetect attribute="Element" context="#pop!El Open" String="%1" dynamic="true" /> + </context> + + <context name="ElementTagNameClose" attribute="Other Text" lineEndContext="#pop"> + <IncludeRules context="FindHTMLTagsClose" /> + <StringDetect attribute="Element" context="#pop!El Close" String="%1" dynamic="true" /> + </context> + + <!-- This allows you to insert HTML tags in other syntax definitions --> + <context name="FindSpecialHTMLTags" attribute="Normal Text" lineEndContext="#stay"> + <WordDetect attribute="Element" context="#pop!CSS" String="style" insensitive="true" beginRegion="style" /> + <WordDetect attribute="Element" context="#pop!JS" String="script" insensitive="true" beginRegion="script" /> + </context> + + <context name="FindHTMLTags" attribute="Normal Text" lineEndContext="#stay"> + <WordDetect attribute="Element" context="#pop!El Open" String="pre" insensitive="true" beginRegion="pre" /> + <WordDetect attribute="Element" context="#pop!El Open" String="div" insensitive="true" beginRegion="div" /> + <WordDetect attribute="Element" context="#pop!El Open" String="table" insensitive="true" beginRegion="table" /> + <WordDetect attribute="Element" context="#pop!El Open" String="ul" insensitive="true" beginRegion="ul" /> + <WordDetect attribute="Element" context="#pop!El Open" String="ol" insensitive="true" beginRegion="ol" /> + <WordDetect attribute="Element" context="#pop!El Open" String="dl" insensitive="true" beginRegion="dl" /> + <WordDetect attribute="Element" context="#pop!El Open" String="article" insensitive="true" beginRegion="article" /> + <WordDetect attribute="Element" context="#pop!El Open" String="aside" insensitive="true" beginRegion="aside" /> + <WordDetect attribute="Element" context="#pop!El Open" String="details" insensitive="true" beginRegion="details" /> + <WordDetect attribute="Element" context="#pop!El Open" String="figure" insensitive="true" beginRegion="figure" /> + <WordDetect attribute="Element" context="#pop!El Open" String="footer" insensitive="true" beginRegion="footer" /> + <WordDetect attribute="Element" context="#pop!El Open" String="header" insensitive="true" beginRegion="header" /> + <WordDetect attribute="Element" context="#pop!El Open" String="main" insensitive="true" beginRegion="main" /> + <WordDetect attribute="Element" context="#pop!El Open" String="nav" insensitive="true" beginRegion="nav" /> + <WordDetect attribute="Element" context="#pop!El Open" String="section" insensitive="true" beginRegion="section" /> + </context> + + <context name="FindHTMLTagsClose" attribute="Normal Text" lineEndContext="#stay"> + <WordDetect attribute="Element" context="#pop!El Close" String="pre" insensitive="true" endRegion="pre" /> + <WordDetect attribute="Element" context="#pop!El Close" String="div" insensitive="true" endRegion="div" /> + <WordDetect attribute="Element" context="#pop!El Close" String="table" insensitive="true" endRegion="table" /> + <WordDetect attribute="Element" context="#pop!El Close" String="ul" insensitive="true" endRegion="ul" /> + <WordDetect attribute="Element" context="#pop!El Close" String="ol" insensitive="true" endRegion="ol" /> + <WordDetect attribute="Element" context="#pop!El Close" String="dl" insensitive="true" endRegion="dl" /> + <WordDetect attribute="Element" context="#pop!El Close" String="article" insensitive="true" endRegion="article" /> + <WordDetect attribute="Element" context="#pop!El Close" String="aside" insensitive="true" endRegion="aside" /> + <WordDetect attribute="Element" context="#pop!El Close" String="details" insensitive="true" endRegion="details" /> + <WordDetect attribute="Element" context="#pop!El Close" String="figure" insensitive="true" endRegion="figure" /> + <WordDetect attribute="Element" context="#pop!El Close" String="footer" insensitive="true" endRegion="footer" /> + <WordDetect attribute="Element" context="#pop!El Close" String="header" insensitive="true" endRegion="header" /> + <WordDetect attribute="Element" context="#pop!El Close" String="main" insensitive="true" endRegion="main" /> + <WordDetect attribute="Element" context="#pop!El Close" String="nav" insensitive="true" endRegion="nav" /> + <WordDetect attribute="Element" context="#pop!El Close" String="section" insensitive="true" endRegion="section" /> + </context> + <context name="FindEntityRefs" attribute="Other Text" lineEndContext="#stay"> <RegExpr attribute="EntityRef" context="#stay" String="&entref;" /> <AnyChar attribute="Error" context="#stay" String="&<" /> @@ -70,22 +96,21 @@ </context> <context name="FindAttributes" attribute="Other Text" lineEndContext="#stay"> - <RegExpr attribute="Attribute" context="#stay" String="&attributeName;" column="0"/> - <RegExpr attribute="Attribute" context="#stay" String="\s+&attributeName;" /> - <DetectChar attribute="Attribute" context="Value" char="=" /> + <DetectChar attribute="Attribute Separator" context="Value" char="=" /> + <RegExpr attribute="Attribute" context="#stay" String="(^|\s+)&attributeName;(\s+&attributeName;)*\s*|\s+" /> </context> <context name="FindDTDRules" attribute="Other Text" lineEndContext="#stay"> - <RegExpr attribute="Doctype" context="Doctype Markupdecl" String="<!(ELEMENT|ENTITY|ATTLIST|NOTATION)\b" /> + <RegExpr attribute="Doctype" context="Doctype Markupdecl" String="<!(?:ELEMENT|ENTITY|ATTLIST|NOTATION)\b" /> </context> <context name="Comment" attribute="Comment" lineEndContext="#stay"> <DetectSpaces/> - <IncludeRules context="##Alerts" /> - <DetectIdentifier/> <StringDetect attribute="Comment" context="#pop" String="-->" endRegion="comment" /> - <RegExpr attribute="Error" context="#stay" String="-(-(?!->))+" /> + <IncludeRules context="##Comments" /> + <DetectIdentifier/> + <RegExpr attribute="Error" context="#stay" String="-(?:-(?!->))+" /> </context> <context name="CDATA" attribute="Other Text" lineEndContext="#stay"> @@ -128,49 +153,40 @@ <IncludeRules context="FindPEntityRefs" /> </context> - <context name="El Open" attribute="Other Text" lineEndContext="#stay"> - <Detect2Chars attribute="Element" context="#pop" char="/" char1=">" /> - <DetectChar attribute="Element" context="#pop" char=">" /> + <context name="El Open" attribute="Error" lineEndContext="#stay"> + <Detect2Chars attribute="Element Symbols" context="#pop" char="/" char1=">" /> + <DetectChar attribute="Element Symbols" context="#pop" char=">" /> <IncludeRules context="FindAttributes" /> - <RegExpr attribute="Error" context="#stay" String="\S" /> </context> <context name="El Close" attribute="Other Text" lineEndContext="#stay"> - <DetectChar attribute="Element" context="#pop" char=">" /> - <RegExpr attribute="Error" context="#stay" String="\S" /> - </context> - - <context name="El Close 2" attribute="Other Text" lineEndContext="#stay"> - <DetectChar attribute="Element" context="#pop#pop#pop" char=">" /> - <RegExpr attribute="Error" context="#stay" String="\S" /> - </context> - - <context name="El Close 3" attribute="Other Text" lineEndContext="#stay"> - <DetectChar attribute="Element" context="#pop#pop#pop#pop" char=">" /> + <DetectChar attribute="Element Symbols" context="#pop" char=">" /> <RegExpr attribute="Error" context="#stay" String="\S" /> </context> - <context name="CSS" attribute="Other Text" lineEndContext="#stay"> - <Detect2Chars attribute="Element" context="#pop" char="/" char1=">" endRegion="style" /> - <DetectChar attribute="Element" context="CSS content" char=">" /> + <context name="CSS" attribute="Error" lineEndContext="#stay"> + <Detect2Chars attribute="Element Symbols" context="#pop" char="/" char1=">" endRegion="style" /> + <DetectChar attribute="Element Symbols" context="CSS content" char=">" /> <IncludeRules context="FindAttributes" /> - <RegExpr attribute="Error" context="#stay" String="\S" /> </context> <context name="CSS content" attribute="Other Text" lineEndContext="#stay"> - <RegExpr attribute="Element" context="El Close 2" String="</style\b" insensitive="true" endRegion="style" /> + <RegExpr attribute="Element Symbols" context="CSS content Close" String="</(?=style\b)" insensitive="true" /> <IncludeRules context="##CSS" includeAttrib="true"/> </context> + <context name="CSS content Close" attribute="Other Text" lineEndContext="#stay"> + <DetectIdentifier attribute="Element" context="#pop#pop#pop!El Close" endRegion="style" /> + </context> - <context name="JS" attribute="Other Text" lineEndContext="#stay"> - <RegExpr attribute="Attribute" context="Script-Type" String="(\s+|^)type(?=\=|\s|$)" insensitive="true"/> - <DetectChar attribute="Element" context="JS content" char=">" /> + <context name="JS" attribute="Error" lineEndContext="#stay"> + <RegExpr attribute="Attribute" context="Script-Type" String="(?:\s+|^)type(?=\=|\s|$)" insensitive="true"/> + <DetectChar attribute="Element Symbols" context="JS content" char=">" /> <IncludeRules context="DefaultJS" /> </context> <context name="DefaultJS" attribute="Other Text" lineEndContext="#stay"> - <Detect2Chars attribute="Element" context="#pop" char="/" char1=">" endRegion="script" /> - <IncludeRules context="FindAttributes" /> - <RegExpr attribute="Error" context="#stay" String="\S" /> + <Detect2Chars attribute="Element Symbols" context="#pop" char="/" char1=">" endRegion="script" /> + <DetectChar attribute="Attribute Separator" context="Value" char="=" /> + <RegExpr attribute="Attribute" context="#stay" String="(^|\s+)&attributeName;|\s+" /> </context> <context name="JS content" attribute="Other Text" lineEndContext="#stay"> @@ -178,25 +194,35 @@ <IncludeRules context="Normal##JavaScript" includeAttrib="true"/> </context> <context name="Default JS content" attribute="Other Text" lineEndContext="#stay"> - <RegExpr attribute="Element" context="El Close 2" String="</script\b" insensitive="true" endRegion="script" /> + <IncludeRules context="FindScriptTagClose" /> <RegExpr attribute="Comment" context="JS comment close" String="//(?=.*</script\b)" insensitive="true" /> </context> + <context name="FindScriptTagClose" attribute="Other Text" lineEndContext="#stay"> + <RegExpr attribute="Element Symbols" context="ScriptTagClose" String="</(?=script\b)" insensitive="true" /> + </context> + <context name="ScriptTagClose" attribute="Other Text" lineEndContext="#stay"> + <DetectIdentifier attribute="Element" context="#pop#pop#pop!El Close" endRegion="script" /> + </context> + <context name="JS comment close" attribute="Comment" lineEndContext="#pop"> - <RegExpr attribute="Element" context="El Close 3" String="</script\b" insensitive="true" endRegion="script" /> - <IncludeRules context="##Alerts" /> + <RegExpr attribute="Element Symbols" context="#pop!ScriptTagClose" String="</(?=script\b)" insensitive="true" /> + <DetectSpaces /> + <IncludeRules context="##Comments" /> </context> - <context name="Value" attribute="Other Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="Value NQ"> + <context name="Value" attribute="Other Text" lineEndContext="#stay" fallthroughContext="Value NQ"> <DetectChar attribute="Value" context="Value DQ" char=""" /> <DetectChar attribute="Value" context="Value SQ" char="'" /> <DetectSpaces /> </context> - <context name="Value NQ" attribute="Other Text" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop"> + <context name="Value NQ" attribute="Other Text" lineEndContext="#pop#pop" fallthroughContext="#pop#pop"> + <!-- '{' and '}' are valid, but used with twig --> + <RegExpr attribute="Value" String="[^><"'&\s=`{}]+" /> <IncludeRules context="FindEntityRefs" /> - <RegExpr attribute="Value" context="#stay" String="/(?!>)" /> - <RegExpr attribute="Value" context="#stay" String="[^/><"'\s]" /> + <AnyChar attribute="Error" String=""'`=" /> + <AnyChar attribute="Value" String="{}" /> </context> <context name="Value DQ" attribute="Value" lineEndContext="#stay"> @@ -212,11 +238,11 @@ <!-- Read content from the "type" attribute to change the language to highlight in the <script> tag. The default language is JavaScript. --> - <context name="Script-Type" attribute="Other Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop"> + <context name="Script-Type" attribute="Other Text" lineEndContext="#stay" fallthroughContext="#pop"> <DetectSpaces /> <DetectChar attribute="Attribute" context="#pop!Script-Type Value" char="=" /> </context> - <context name="Script-Type Value" attribute="Other Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop!Value"> + <context name="Script-Type Value" attribute="Other Text" lineEndContext="#stay" fallthroughContext="#pop!Value"> <DetectSpaces /> <!-- TypeScript --> <StringDetect attribute="Value" context="#pop#pop!TypeScript" String=""text/typescript""/> @@ -230,7 +256,7 @@ <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String=""x-tmpl-mustache""/> <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="'x-tmpl-mustache'"/> <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String=""text/mustache""/> - <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="'text/mustache'"/> + <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="'text/mustache'"/> <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String=""text/x-mustache-template""/> <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="'text/x-mustache-template'"/> <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String=""text/x-handlebars-template""/> @@ -242,17 +268,17 @@ <StringDetect attribute="Value" context="#pop#pop!Script HTML template" String="'text/html'"/> </context> - <context name="JSX" attribute="Other Text" lineEndContext="#stay"> - <DetectChar attribute="Element" context="JSX content" char=">" /> + <context name="JSX" attribute="Error" lineEndContext="#stay"> + <DetectChar attribute="Element Symbols" context="JSX content" char=">" /> <IncludeRules context="DefaultJS" /> </context> <context name="JSX content" attribute="Other Text" lineEndContext="#stay"> <IncludeRules context="Default JS content"/> - <IncludeRules context="Normal##JavaScript React" includeAttrib="true"/> + <IncludeRules context="Normal##JavaScript React (JSX)" includeAttrib="true"/> </context> - <context name="TypeScript" attribute="Other Text" lineEndContext="#stay"> - <DetectChar attribute="Element" context="TypeScript content" char=">" /> + <context name="TypeScript" attribute="Error" lineEndContext="#stay"> + <DetectChar attribute="Element Symbols" context="TypeScript content" char=">" /> <IncludeRules context="DefaultJS" /> </context> <context name="TypeScript content" attribute="Other Text" lineEndContext="#stay"> @@ -260,25 +286,25 @@ <IncludeRules context="Normal##TypeScript" includeAttrib="true"/> </context> - <context name="MustacheJS" attribute="Other Text" lineEndContext="#stay"> - <DetectChar attribute="Element" context="MustacheJS content" char=">" /> + <context name="MustacheJS" attribute="Error" lineEndContext="#stay"> + <DetectChar attribute="Element Symbols" context="MustacheJS content" char=">" /> <IncludeRules context="DefaultJS" /> </context> <context name="MustacheJS content" attribute="Other Text" lineEndContext="#stay"> - <RegExpr attribute="Element" context="El Close 2" String="</script\b" insensitive="true" endRegion="script" /> + <IncludeRules context="FindScriptTagClose" /> <StringDetect attribute="Error" context="#stay" String="<script>" insensitive="true" /> - <RegExpr attribute="Error" context="#stay" String="<script\b" insensitive="true" /> + <WordDetect attribute="Error" context="#stay" String="<script" insensitive="true" /> <IncludeRules context="Base##Mustache/Handlebars (HTML)" includeAttrib="true"/> </context> - <context name="Script HTML template" attribute="Other Text" lineEndContext="#stay"> - <DetectChar attribute="Element" context="Script HTML template content" char=">" /> + <context name="Script HTML template" attribute="Error" lineEndContext="#stay"> + <DetectChar attribute="Element Symbols" context="Script HTML template content" char=">" /> <IncludeRules context="DefaultJS" /> </context> <context name="Script HTML template content" attribute="Other Text" lineEndContext="#stay"> - <RegExpr attribute="Element" context="El Close 2" String="</script\b" insensitive="true" endRegion="script" /> + <IncludeRules context="FindScriptTagClose" /> <StringDetect attribute="Error" context="#stay" String="<script>" insensitive="true" /> - <RegExpr attribute="Error" context="#stay" String="<script\b" insensitive="true" /> + <WordDetect attribute="Error" context="#stay" String="<script" insensitive="true" /> <IncludeRules context="FindHTML" /> </context> @@ -291,7 +317,9 @@ <itemData name="Processing Instruction" defStyleNum="dsKeyword" spellChecking="false" /> <itemData name="Doctype" defStyleNum="dsDataType" bold="1" spellChecking="false" /> <itemData name="Element" defStyleNum="dsKeyword" spellChecking="false" /> + <itemData name="Element Symbols" defStyleNum="dsDataType" spellChecking="false" /> <itemData name="Attribute" defStyleNum="dsOthers" spellChecking="false" /> + <itemData name="Attribute Separator" defStyleNum="dsOperator" spellChecking="false" /> <itemData name="Value" defStyleNum="dsString" spellChecking="false" /> <itemData name="EntityRef" defStyleNum="dsDecVal" spellChecking="false" /> <itemData name="PEntityRef" defStyleNum="dsDecVal" spellChecking="false" /> @@ -301,7 +329,8 @@ </highlighting> <general> <comments> - <comment name="multiLine" start="<!--" end="-->" /> + <comment name="multiLine" start="<!--" end="-->" region="comment" /> </comments> </general> </language> +<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/ini.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/ini.xml index ce300fff47..56a35e80c7 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/ini.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/ini.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd"> -<language name="INI Files" section="Configuration" extensions="*.ini;*.pls;*.kcfgc" mimetype="" version="5" kateversion="2.4" author="Jan Janssen (medhefgo@web.de)" license="LGPL"> +<!DOCTYPE language> +<language name="INI Files" section="Configuration" extensions="*.ini;*.cfg;*.pls;*.kcfgc;.gitattributes*;.gitconfig*;.gitmodules*;.editorconfig*" mimetype="" version="13" kateversion="5.0" author="Jan Janssen (medhefgo@web.de)" license="LGPL" priority="1"> <highlighting> <list name="keywords"> @@ -34,45 +34,55 @@ <contexts> <context name="ini" attribute="Normal Text" lineEndContext="#stay"> - <RangeDetect attribute="Section" context="#stay" char="[" char1="]" beginRegion="Section" endRegion="Section" /> + <RangeDetect attribute="Section" context="#stay" char="[" char1="]" beginRegion="Section" endRegion="Section" /> <DetectChar attribute="Assignment" context="Value" char="=" /> - <DetectChar char=";" attribute="Comment" context="Comment" firstNonSpace="true" /> - <DetectChar char="#" attribute="Comment" context="Comment" firstNonSpace="true" /> + <AnyChar String=";#" attribute="Comment" context="Comment" firstNonSpace="true" /> + <DetectIdentifier /> + <DetectSpaces /> + </context> + + <context name="Value" attribute="Value" lineEndContext="#pop" fallthrough="1" fallthroughContext="#pop!NormalValue"> + <RegExpr context="#pop!SpecialValue" String="\s*((-?(\d+(\.\d*)?|\.d+)(e\d+)?|On|Off|Defaults?|Localhost|Null|True|False|Yes|No|Normal)\s*$|~?(E_ALL|E_ERROR|E_WARNING|E_PARSE|E_NOTICE|E_STRICT|E_CORE_ERROR|E_CORE_WARNING|E_COMPILE_ERROR|E_COMPILE_WARNING|E_USER_ERROR|E_USER_WARNING|E_USER_NOTICE)\b)" lookAhead="1" insensitive="1"/> </context> - <context name="Value" attribute="Value" lineEndContext="#pop" > + <context name="SpecialValue" attribute="Value" lineEndContext="#pop"> <Float attribute="Float" /> <Int attribute="Int" /> - <keyword attribute="Keyword" String="keywords" /> + <keyword attribute="Keyword" String="keywords"/> + <DetectChar attribute="Int" char="-" /> + <DetectSpaces /> + </context> + + <context name="NormalValue" attribute="Value" lineEndContext="#pop"> </context> <context name="Comment" attribute="Comment" lineEndContext="#pop"> <DetectSpaces /> - <IncludeRules context="##Alerts" /> + <IncludeRules context="##Comments" /> <DetectIdentifier /> </context> </contexts> <itemDatas> - <itemData name="Normal Text" defStyleNum="dsDataType" /> - <itemData name="Section" defStyleNum="dsKeyword" /> - <itemData name="Comment" defStyleNum="dsComment" /> - <itemData name="Assignment" defStyleNum="dsOthers" /> - <itemData name="Value" defStyleNum="dsString" /> - <itemData name="Float" defStyleNum="dsFloat" /> - <itemData name="Int" defStyleNum="dsDecVal" /> - <itemData name="Keyword" defStyleNum="dsKeyword" /> + <itemData name="Normal Text" defStyleNum="dsDataType" spellChecking="false"/> + <itemData name="Section" defStyleNum="dsKeyword" spellChecking="false"/> + <itemData name="Comment" defStyleNum="dsComment"/> + <itemData name="Assignment" defStyleNum="dsOthers" spellChecking="false"/> + <itemData name="Value" defStyleNum="dsString" spellChecking="false"/> + <itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/> + <itemData name="Int" defStyleNum="dsDecVal" spellChecking="false"/> + <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> </itemDatas> </highlighting> <general> <comments> - <comment name="singleLine" start="#" /> <comment name="singleLine" start=";" /> </comments> <keywords casesensitive="0" /> </general> </language> +<!-- kate: replace-tabs on; indent-width 1; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/java.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/java.xml index f59415048e..aaeef26c3f 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/java.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/java.xml @@ -1,10 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd" +<!DOCTYPE language [ - <!ENTITY int "[0-9]([0-9_]*[0-9])?"> - <!ENTITY hex "[0-9a-fA-F]([0-9a-fA-F_]*[0-9a-fA-F])?"> + <!ENTITY int "(?:[0-9]++(_++[0-9]++)*+)"> + <!ENTITY hex "(?:[0-9a-fA-F]++(_++[0-9a-fA-F]++)*+)"> + <!ENTITY exp "(?:[eE][-+]?∫)"> + <!ENTITY float "(\b∫(\.((∫&exp;?+|&exp;)[fFdD]?\b|[fFdD]\b)?|&exp;[fFdD]?\b|[fFdD]\b)|\.∫&exp;?[fFdD]?\b)"> + <!ENTITY hexfloat "\b0[xX](&hex;\.?+&hex;?+|\.&hex;?)[pP][-+]?∫[fFdD]?\b"> ]> -<language name="Java" version="5" kateversion="5.0" section="Sources" extensions="*.java" mimetype="text/x-java" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)"> +<language name="Java" version="13" kateversion="5.79" section="Sources" extensions="*.java" mimetype="text/x-java" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)"> <highlighting> <list name="java15"> <item>ACTIVE</item> @@ -3702,26 +3705,17 @@ <!-- end new classes --> </list> + + <!-- https://docs.oracle.com/javase/specs/jls/se20/html/jls-3.html#jls-Keyword --> <list name="keywords"> <item>abstract</item> - <item>break</item> - <item>case</item> - <item>catch</item> <item>class</item> - <item>continue</item> <item>default</item> - <item>do</item> - <item>else</item> <item>enum</item> <item>extends</item> <item>false</item> - <item>finally</item> - <item>for</item> - <item>goto</item> - <item>if</item> <item>implements</item> <item>instanceof</item> - <item>@interface</item> <item>interface</item> <item>native</item> <item>new</item> @@ -3729,19 +3723,38 @@ <item>private</item> <item>protected</item> <item>public</item> - <item>return</item> <item>super</item> <item>strictfp</item> - <item>switch</item> <item>synchronized</item> <item>this</item> <item>throws</item> - <item>throw</item> <item>transient</item> <item>true</item> - <item>try</item> <item>volatile</item> + <!-- contextual --> + <item>non-sealed</item> + <item>permits</item> + <item>record</item> + <item>sealed</item> + </list> + <list name="control flow"> + <item>assert</item> + <item>break</item> + <item>case</item> + <item>catch</item> + <item>continue</item> + <item>do</item> + <item>else</item> + <item>finally</item> + <item>for</item> + <item>goto</item> + <item>if</item> + <item>return</item> + <item>switch</item> + <item>throw</item> + <item>try</item> <item>while</item> + <item>yield</item> </list> <list name="types"> <item>boolean</item> @@ -3755,87 +3768,158 @@ <item>long</item> <item>short</item> <item>static</item> + <item>var</item> <item>void</item> </list> + + <list name="annotations"> + <!-- builtin --> + <item>@Override</item> + <item>@Deprecated</item> + <item>@SuppressWarnings</item> + <item>@SafeVarargs</item> + <item>@FunctionalInterface</item> + <item>@interface</item> + <!-- java.lang.annotation --> + <item>@Retention</item> + <item>@Documented</item> + <item>@Target</item> + <item>@Inherited</item> + <item>@Repeatable</item> + </list> + + <!-- https://docs.oracle.com/javase/specs/jls/se20/html/jls-3.html --> + <contexts> <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> + <DetectSpaces context="#stay"/> + + <DetectChar attribute="Symbol" context="Dot" char="." lookAhead="1"/> + <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1"/> + <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1"/> + <DetectChar attribute="Annotation" context="Annotation" char="@" /> + <DetectChar attribute="Symbol" context="InFunctionCall" char="("/> + <!-- Comment next line if you don't use Javadoc tool --> <IncludeRules context="##Javadoc"/> + <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/> + <Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/> + + <AnyChar attribute="Symbol" context="#stay" String="[]&|+,-/*<=>;!%?:~^"/> + + <AnyChar context="Number" String="0123456789" lookAhead="1"/> + + <StringDetect attribute="Text Block" context="TextBlock" String="""""/> + <DetectChar attribute="String" context="String" char="""/> + <DetectChar context="Char" char="'" lookAhead="1"/> + <keyword attribute="Keyword" context="#stay" String="keywords"/> + <keyword attribute="Control Flow" context="#stay" String="control flow"/> <keyword attribute="Data Type" context="#stay" String="types"/> <keyword attribute="Java15" context="#stay" String="java15"/> - <RegExpr attribute="Float" context="#stay" String="(\b∫\.?|(\b∫)?\.∫)([eE][\-\+]?∫[fFdD]?|[fFdD])\b"/> - <RegExpr attribute="Float" context="#stay" String="(\b∫\.|(\b∫)?\.∫\b)"/> - <RegExpr attribute="Float" context="#stay" String="\b0[xX](&hex;\.?|(&hex;)?\.&hex;)[pP][\-\+]?∫[fFdD]?\b"/> - <RegExpr attribute="Hex" context="#stay" String="\b0[xX]&hex;[lL]?\b"/> - <RegExpr attribute="Binary" context="#stay" String="\b0[bB][01]([01_]*[01])?[lL]?\b"/> - <RegExpr attribute="Octal" context="#stay" String="\b0[0-7]([0-7_]*[0-7])?[lL]?\b"/> - <RegExpr attribute="Decimal" context="#stay" String="\b(0|[1-9]([0-9_]*[0-9])?)[lL]?\b"/> - <HlCChar attribute="Char" context="#stay"/> - <RegExpr attribute="Char" context="#stay" String="'\\u[0-9a-fA-F]{4}'"/> - <RegExpr attribute="Decimal" context="#stay" String="//\s*BEGIN.*$" beginRegion="Region1"/> - <RegExpr attribute="Decimal" context="#stay" String="//\s*END.*$" endRegion="Region1"/> - <DetectChar attribute="String" context="String" char="""/> - <RegExpr attribute="Function" context="EnterPrintf" String="\.(format|printf)\b"/> - <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/> - <Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/> - <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1"/> - <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1"/> - <RegExpr attribute="Keyword" context="#stay" String="\.{3,3}\s+" /> - <RegExpr attribute="Keyword" context="StaticImports" String="\b(import\s+static)\b" /> - <RegExpr attribute="Keyword" context="Imports" String="\b(package|import)\b" /> - <RegExpr attribute="Function" context="#stay" String="\b[_\w][_\w\d]*(?=[\s]*(/\*\s*\d+\s*\*/\s*)?[(])" /> - <RegExpr attribute="Annotation" context="#stay" String="@[_\w][_\w\d]*" /> - <RegExpr attribute="Symbol" context="Member" String="[.]{1,1}" /> - <DetectChar attribute="Symbol" context="InFunctionCall" char="("/> - <AnyChar attribute="Symbol" context="#stay" String=":!%&+,-/.*<=>?[]|~^;"/> + + <WordDetect attribute="Keyword" context="Imports" String="package" /> + <WordDetect attribute="Keyword" context="ImportsOrStaticImports" String="import" /> + + <RegExpr attribute="Function" context="#stay" String="\b[_a-zA-Z]\w*(?=[\s]*(/\*\s*\d+\s*\*/\s*)?[(])" /> + <WordDetect attribute="Keyword" context="ImportsOrStaticImports" String="non-sealed" /> + <DetectIdentifier attribute="Normal Text"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="Number"> + <IncludeRules context="FindFloat"/> + <RegExpr attribute="Hex" context="#pop" String="\b0[xX]&hex;[lL]?\b"/> + <RegExpr attribute="Binary" context="#pop" String="\b0[bB][01]++(_++[01]++)*+[lL]?\b"/> + <RegExpr attribute="Octal" context="#pop" String="\b0_*+[0-7]++(_++[0-7_]++)*+[lL]?\b"/> + <RegExpr attribute="Decimal" context="#pop" String="\b(0|[1-9][0-9]*+(_++[0-9_]++)*+)[lL]?\b"/> + <AnyChar attribute="Error" context="#pop" String="0123456789"/> </context> + <context attribute="Normal Text" lineEndContext="#stay" name="FindFloat"> + <RegExpr attribute="Float" context="#pop" String="&float;|&hexfloat;"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="Char"> + <HlCChar attribute="Char" context="#pop"/> + <RegExpr attribute="Char" context="#pop" String="'\\u+[0-9a-fA-F]{4}'"/> + <RegExpr attribute="Error" context="#pop" String="'(\\(u+[0-9a-fA-F]*|.))?'?"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="InFunctionCall"> <IncludeRules context="Normal"/> <DetectChar attribute="Symbol" context="#pop" char=")"/> </context> + <context attribute="String" lineEndContext="#pop" name="String"> - <LineContinue attribute="String" context="#stay"/> - <HlCStringChar attribute="String Char" context="#stay"/> - <RegExpr attribute="String Char" context="#stay" String="\\u[0-9a-fA-F]{4}"/> + <DetectChar context="StringEscapedChar" char="\" lookAhead="1"/> <DetectChar attribute="String" context="#pop" char="""/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="EnterPrintf" fallthrough="true" fallthroughContext="#pop"> - <DetectChar attribute="Symbol" context="Printf" char="("/> + <context attribute="String" lineEndContext="#pop" name="StringEscapedChar"> + <HlCStringChar attribute="String Char" context="#pop"/> + <RegExpr attribute="String Char" context="#pop" String="\\u+[0-9a-fA-F]{4}"/> + <RegExpr attribute="Error" context="#pop" String="\\(u+[0-9a-fA-F]*|.)?"/> + </context> + + <context attribute="Text Block" lineEndContext="#stay" name="TextBlock"> + <DetectChar context="StringEscapedChar" char="\" lookAhead="1"/> + <StringDetect attribute="Text Block" context="#pop" String="""""/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="Printf" fallthroughContext="#pop"> + <DetectChar attribute="Symbol" context="#pop!InPrintf" char="("/> <DetectSpaces attribute="Normal Text" context="#stay"/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="Printf"> + <context attribute="Normal Text" lineEndContext="#stay" name="InPrintf"> <DetectChar attribute="String" context="PrintfString" char="""/> <IncludeRules context="InFunctionCall"/> </context> <context attribute="PrintfString" lineEndContext="#pop" name="PrintfString"> - <LineContinue attribute="String" context="#stay"/> - <HlCStringChar attribute="String Char" context="#stay"/> - <DetectChar attribute="String" context="#pop" char="""/> - <RegExpr attribute="String Char" context="#stay" String="%(\d+\$)?(-|#|\+|\ |0|,|\()*\d*(\.\d+)?[a-hosxA-CEGHSX]" /> - <RegExpr attribute="String Char" context="#stay" String="%(\d+\$)?(-|#|\+|\ |0|,|\()*\d*(t|T)(a|A|b|B|c|C|d|D|e|F|h|H|I|j|k|l|L|m|M|N|p|P|Q|r|R|s|S|T|y|Y|z|Z)" /> - <RegExpr attribute="String Char" context="#stay" String="%(%|n)" /> + <IncludeRules context="String"/> + <RegExpr attribute="String Char" context="#stay" String="%((\d+\$)?[-#+ 0,(]*\d*((\.\d+)?[a-hosxA-CEGHSX]|[tT][aAbBcCdDeFhHIjklLmMNpPQrRsSTyYzZ])|[%n])" /> </context> - <context attribute="Normal Text" lineEndContext="#pop" name="Member" fallthrough="true" fallthroughContext="#pop"> - <RegExpr attribute="Function" context="#pop" String="\b[_a-zA-Z]\w*(?=[\s]*)" /> + + <context attribute="Normal Text" lineEndContext="#stay" name="Dot"> + <StringDetect attribute="Keyword" context="#pop" String="..." /> + <IncludeRules context="FindFloat"/> + <DetectChar attribute="Symbol" context="#pop!Member" char="." /> </context> - <context attribute="Normal Text" lineEndContext="#pop" name="StaticImports"> - <RegExpr attribute="StaticImports" context="#pop" String="\s*.*;" /> + <context attribute="Normal Text" lineEndContext="#stay" name="Member" fallthroughContext="#pop"> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <WordDetect attribute="Function" context="#pop!Printf" String="printf"/> + <WordDetect attribute="Function" context="#pop!Printf" String="format"/> + <DetectIdentifier attribute="Function" context="#pop"/> </context> - <context attribute="Normal Text" lineEndContext="#pop" name="Imports"> - <RegExpr attribute="Imports" context="#pop" String="\s*.*;" /> + + <context attribute="Normal Text" lineEndContext="#pop" name="Annotation" fallthroughContext="#pop"> + <DetectIdentifier attribute="Annotation" context="#pop"/> + </context> + + <context attribute="Normal Text" lineEndContext="#pop" name="ImportsOrStaticImports" fallthroughContext="#pop!Imports"> + <DetectSpaces attribute="Normal Text"/> + <WordDetect attribute="Keyword" context="#pop!StaticImports" String="static"/> </context> + <context attribute="StaticImports" lineEndContext="#pop" name="StaticImports"> + <IncludeRules context="Imports"/> + </context> + <context attribute="Imports" lineEndContext="#pop" name="Imports"> + <AnyChar attribute="Symbol" context="#stay" String=".*"/> + <DetectChar attribute="Symbol" context="#pop" char=";"/> + </context> + <context attribute="Comment" lineEndContext="#pop" name="Commentar 1"> - <IncludeRules context="##Alerts"/> + <DetectSpaces /> + <IncludeRules context="##Comments"/> </context> <context attribute="Comment" lineEndContext="#stay" name="Commentar 2"> <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/> - <IncludeRules context="##Alerts"/> + <DetectSpaces /> + <IncludeRules context="##Comments"/> </context> + </contexts> <itemDatas> <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/> <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> + <itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="false"/> <itemData name="Annotation" defStyleNum="dsAttribute" spellChecking="false"/> <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/> <itemData name="StaticImports" defStyleNum="dsImport" spellChecking="false"/> @@ -3847,19 +3931,22 @@ <itemData name="Binary" defStyleNum="dsBaseN" spellChecking="false"/> <itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/> <itemData name="Char" defStyleNum="dsChar" spellChecking="false"/> + <itemData name="Text Block" defStyleNum="dsString"/> <itemData name="String" defStyleNum="dsString"/> <itemData name="String Char" defStyleNum="dsSpecialChar" spellChecking="false"/> <itemData name="PrintfString" defStyleNum="dsString"/> <itemData name="Comment" defStyleNum="dsComment"/> - <itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/> + <itemData name="Symbol" defStyleNum="dsOperator" spellChecking="false"/> <itemData name="Java15" defStyleNum="dsBuiltIn" spellChecking="false"/> + <itemData name="Error" defStyleNum="dsError" spellChecking="false"/> </itemDatas> </highlighting> <general> <comments> - <comment name="singleLine" start="//"/> - <comment name="multiLine" start="/*" end="*/"/> + <comment name="singleLine" start="//" position="afterwhitespace"/> + <comment name="multiLine" start="/*" end="*/" region="Comment"/> </comments> <keywords casesensitive="1"/> </general> </language> +<!-- kate: replace-tabs off; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/javadoc.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/javadoc.xml index e72488b221..84c7841cad 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/javadoc.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/javadoc.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd"> -<language name="Javadoc" version="3" kateversion="5.0" section="Markup" extensions="" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)"> +<!DOCTYPE language> +<language name="Javadoc" version="7" kateversion="5.79" section="Markup" extensions="" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)"> <highlighting> <contexts> <context name="Start" attribute="Normal Text" lineEndContext="#stay"> @@ -12,74 +12,52 @@ </context> <context attribute="JavadocFS" lineEndContext="#stay" name="JavadocFSar"> <Detect2Chars attribute="JavadocFS" context="#pop" char="*" char1="/" endRegion="Javadoc"/> - <RegExpr attribute="JavadocFS" context="Javadocar" String="(!|\?)" /> - <RegExpr attribute="JavadocFS" context="Javadocar" String="(\.\s*$)" /> - <RegExpr attribute="JavadocFS" context="Javadocar" String="(\.\s)(?![\da-z])" /> - <RegExpr attribute="JavadocFS" context="Javadocar" String="\**\s*(?=@(author|deprecated|exception|param|return|see|serial|serialData|serialField|since|throws|version)(\s|$))" firstNonSpace="true"/> - <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@code " /> - <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@code	" /> - <StringDetect attribute="InlineTag" context="#stay" String="{@docRoot}" /> - <StringDetect attribute="InlineTag" context="#stay" String="{@inheritDoc}" /> - <StringDetect attribute="InlineTag" context="InlineTagar" String="{@link " /> - <StringDetect attribute="InlineTag" context="InlineTagar" String="{@link	" /> - <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain " /> - <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain	" /> - <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal " /> - <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal	" /> - <StringDetect attribute="InlineTag" context="#stay" String="{@value}" /> - <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value " /> - <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value	" /> - <IncludeRules context="##Alerts"/> + <RegExpr attribute="JavadocFS" context="Javadocar" String="[!?.](\s*$|\s(?![\da-z]))|^\s*\**\s*(?=@(author|deprecated|exception|param|return|see|serial|serialData|serialField|since|throws|version)(\s|$))"/> + <IncludeRules context="FindInlineTag"/> + <IncludeRules context="##Comments"/> <IncludeRules context="##HTML"/> </context> + <context attribute="Javadoc" lineEndContext="#stay" name="FindInlineTag"> + <WordDetect attribute="InlineTag" context="LiteralTagar" String="{@code"/> + <StringDetect attribute="InlineTag" context="#stay" String="{@docRoot}"/> + <StringDetect attribute="InlineTag" context="#stay" String="{@inheritDoc}"/> + <WordDetect attribute="InlineTag" context="InlineTagar" String="{@link"/> + <WordDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain"/> + <WordDetect attribute="InlineTag" context="LiteralTagar" String="{@literal"/> + <StringDetect attribute="InlineTag" context="#stay" String="{@value}"/> + <WordDetect attribute="InlineTag" context="InlineTagar" String="{@value"/> + <WordDetect attribute="InlineTag" context="LiteralTagar" String="{@summary"/> + <WordDetect attribute="InlineTag" context="LiteralTagar" String="{@systemProperty"/> + </context> <context attribute="Javadoc" lineEndContext="#stay" name="Javadocar"> <Detect2Chars attribute="JavadocFS" context="#pop#pop" char="*" char1="/" endRegion="Javadoc"/> - <RegExpr attribute="JavadocFS" context="#stay" String="\*+(?!/)" firstNonSpace="true"/> - <StringDetect attribute="BlockTag" context="#stay" String="@author " /> - <StringDetect attribute="BlockTag" context="#stay" String="@deprecated " /> - <StringDetect attribute="BlockTag" context="JavadocParam" String="@exception " /> - <StringDetect attribute="BlockTag" context="JavadocParam" String="@param " /> - <StringDetect attribute="BlockTag" context="#stay" String="@return " /> - <StringDetect attribute="BlockTag" context="SeeTag" String="@see "/> - <StringDetect attribute="BlockTag" context="#stay" String="@serial " /> - <StringDetect attribute="BlockTag" context="#stay" String="@serialData " /> - <StringDetect attribute="BlockTag" context="#stay" String="@serialField " /> - <StringDetect attribute="BlockTag" context="#stay" String="@since " /> - <StringDetect attribute="BlockTag" context="JavadocParam" String="@throws " /> - <StringDetect attribute="BlockTag" context="#stay" String="@version " /> - <StringDetect attribute="BlockTag" context="#stay" String="@author	" /> - <StringDetect attribute="BlockTag" context="#stay" String="@deprecated	" /> - <StringDetect attribute="BlockTag" context="JavadocParam" String="@exception	" /> - <StringDetect attribute="BlockTag" context="JavadocParam" String="@param	" /> - <StringDetect attribute="BlockTag" context="#stay" String="@return	" /> - <StringDetect attribute="BlockTag" context="SeeTag" String="@see	" /> - <StringDetect attribute="BlockTag" context="#stay" String="@serial	" /> - <StringDetect attribute="BlockTag" context="#stay" String="@serialData	" /> - <StringDetect attribute="BlockTag" context="#stay" String="@serialField	" /> - <StringDetect attribute="BlockTag" context="#stay" String="@since	" /> - <StringDetect attribute="BlockTag" context="JavadocParam" String="@throws	" /> - <StringDetect attribute="BlockTag" context="#stay" String="@version	" /> - <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@code " /> - <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@code	" /> - <StringDetect attribute="InlineTag" context="#stay" String="{@docRoot}" /> - <StringDetect attribute="InlineTag" context="#stay" String="{@inheritDoc}" /> - <StringDetect attribute="InlineTag" context="InlineTagar" String="{@link " /> - <StringDetect attribute="InlineTag" context="InlineTagar" String="{@link	" /> - <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain " /> - <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain	" /> - <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal " /> - <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal	" /> - <StringDetect attribute="InlineTag" context="#stay" String="{@value}" /> - <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value " /> - <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value	" /> + <DetectChar attribute="JavadocFS" context="JavadocFSStarPrefix" char="*" firstNonSpace="true"/> + <WordDetect attribute="BlockTag" context="#stay" String="@author"/> + <WordDetect attribute="BlockTag" context="#stay" String="@deprecated"/> + <WordDetect attribute="BlockTag" context="JavadocParam" String="@exception"/> + <WordDetect attribute="BlockTag" context="JavadocParam" String="@param"/> + <WordDetect attribute="BlockTag" context="#stay" String="@return"/> + <WordDetect attribute="BlockTag" context="SeeTag" String="@see"/> + <WordDetect attribute="BlockTag" context="#stay" String="@serial"/> + <WordDetect attribute="BlockTag" context="#stay" String="@serialData"/> + <WordDetect attribute="BlockTag" context="#stay" String="@serialField"/> + <WordDetect attribute="BlockTag" context="#stay" String="@since"/> + <WordDetect attribute="BlockTag" context="JavadocParam" String="@throws"/> + <WordDetect attribute="BlockTag" context="#stay" String="@version"/> + <IncludeRules context="FindInlineTag"/> <IncludeRules context="##Alerts"/> <IncludeRules context="##HTML"/> </context> - <context attribute="Javadoc" lineEndContext="#pop" name="JavadocParam"> - <DetectSpaces /> - <RegExpr attribute="JavadocParam" context="#pop#pop" String="\S*(?=\*/)" /> - <RegExpr attribute="JavadocParam" context="#pop" String="\S*(\s|$)" /> - <IncludeRules context="##Alerts"/> + <context attribute="Javadoc" lineEndContext="#pop" name="JavadocFSStarPrefix" fallthroughContext="#pop"> + <Detect2Chars attribute="JavadocFS" context="#pop#pop#pop" char="*" char1="/" endRegion="Javadoc"/> + <DetectChar attribute="JavadocFS" context="#stay" char="*"/> + </context> + <context attribute="Javadoc" lineEndContext="#pop" name="JavadocParam" fallthroughContext="JavadocParamIdent"> + <DetectSpaces context="JavadocParamIdent"/> + </context> + <context attribute="JavadocParam" lineEndContext="#pop#pop" name="JavadocParamIdent"> + <DetectSpaces attribute="Javadoc" context="#pop#pop"/> + <Detect2Chars attribute="JavadocFS" context="#pop#pop#pop#pop" char="*" char1="/" endRegion="Javadoc"/> </context> <context attribute="InlineTag" name="InlineTagar" lineEndContext="#stay"> <DetectChar attribute="InlineTag" context="#pop" char="}" /> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/json.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/json.xml index 28ad8e8a33..f302ff1369 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/json.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/json.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd"> +<!DOCTYPE language> <!-- *************************************************************************** ** Writing a Kate Highlighting XML File @@ -10,9 +10,10 @@ ** ** The application/json Media Type for JavaScript Object Notation (JSON) ** http://tools.ietf.org/html/rfc4627 + ** https://www.json.org/json-en.html *************************************************************************** --> -<language name="JSON" section="Markup" version="3" kateversion="2.4" extensions="*.json;.kateproject;.arcconfig;*.gltf" mimetype="application/json" author="Sebastian Pipping (sebastian@pipping.org)" license="GPL"> +<language name="JSON" section="Markup" version="8" kateversion="2.4" extensions="*.json;.kateproject;.arcconfig;*.geojson;*.gltf;*.theme" mimetype="application/json" author="Sebastian Pipping (sebastian@pipping.org)" license="GPL"> <highlighting> <list name="Constants"> <item>null</item> @@ -39,43 +40,47 @@ <context name="String_Key" lineEndContext="#stay" attribute="Style_String_Key"> <DetectChar char=""" context="#pop" attribute="Style_String_Key" /> - <RegExpr String="\\(?:["\\/bfnrt]|u[0-9a-fA-f]{4})" context="#stay" insensitive="false" minimal="false" attribute="Style_String_Key_Char" /> + <DetectChar char="\" context="String_Key_Char" lookAhead="1"/> + </context> + + <context name="String_Key_Char" lineEndContext="#stay" attribute="Style_Normal"> + <RegExpr String="\\(?:["\\/bfnrt]|u[0-9a-fA-f]{4})" context="#pop" attribute="Style_String_Key_Char" /> + <RegExpr String="\\(u[0-9a-fA-f]+|.)?" context="#pop" attribute="Style_Error" /> </context> <context name="Value" lineEndContext="#stay" attribute="Style_Error" > + <AnyChar String="}," context="#pop" lookAhead="true" /> + <IncludeRules context="JsonValue"/> + </context> + + <context name="JsonValue" lineEndContext="#stay" attribute="Style_Error" > <DetectChar char=""" context="String_Value" attribute="Style_String_Value" /> <DetectChar char="{" context="Pair" beginRegion="Region_Object" attribute="Style_Seperator_Pair" /> <DetectChar char="[" context="Array" beginRegion="Region_Array" attribute="Style_Seperator_Array" /> - <DetectChar char="}" context="#pop" lookAhead="true" /> - <DetectChar char="," context="#pop" lookAhead="true" /> <DetectSpaces context="#stay" attribute="Style_Normal" /> <keyword String="Constants" context="#stay" attribute="Style_Keyword" /> - <RegExpr String="-?(?:[0-9]|[1-9][0-9]+)\.[0-9]+(?:[eE][+-]?[0-9]+)?" context="#stay" insensitive="false" minimal="false" attribute="Style_Float" /> - <RegExpr String="-?(?:[0-9]|[1-9][0-9]+)(?:[eE][+-]?[0-9]+)?" context="#stay" insensitive="false" minimal="false" attribute="Style_Decimal" /> + <RegExpr String="-?\b([1-9][0-9]*\.[0-9]+(?:[eE][+-]?[0-9]+)?)" context="#stay" attribute="Style_Float" /> + <RegExpr String="-?\b(0\b|[1-9][0-9]*(?:[eE][+-]?[0-9]+)?)" context="#stay" attribute="Style_Decimal" /> </context> <context name="String_Value" lineEndContext="#stay" attribute="Style_String_Value"> <DetectChar char=""" context="#pop" attribute="Style_String_Value" /> - <RegExpr String="\\(?:["\\/bfnrt]|u[0-9a-fA-f]{4})" context="#stay" insensitive="false" minimal="false" attribute="Style_String_Value_Char" /> + <DetectChar char="\" context="String_Key_Value" lookAhead="1" /> + </context> + + <context name="String_Key_Value" lineEndContext="#stay" attribute="Style_Normal"> + <RegExpr String="\\(?:["\\/bfnrt]|u[0-9a-fA-f]{4})" context="#pop" attribute="Style_String_Value_Char" /> + <RegExpr String="\\(u[0-9a-fA-f]+|.)?" context="#pop" attribute="Style_Error" /> </context> <context name="Array" lineEndContext="#stay" attribute="Style_Error"> <DetectChar char="," context="#stay" attribute="Style_Seperator_Array" /> <DetectChar char="]" context="#pop" endRegion="Region_Array" attribute="Style_Seperator_Array" /> - <DetectChar char="{" context="Pair" beginRegion="Region_Object" attribute="Style_Seperator_Pair" /> - <DetectChar char="[" context="Array" beginRegion="Region_Array" attribute="Style_Seperator_Array" /> - <DetectChar char=""" context="String_Value" attribute="Style_String_Value" /> - - <DetectSpaces context="#stay" attribute="Style_Normal" /> - - <keyword String="Constants" context="#stay" attribute="Style_Keyword" /> - - <RegExpr String="-?(?:[0-9]|[1-9][0-9]+)\.[0-9]+(?:[eE][+-]?[0-9]+)?" context="#stay" insensitive="false" minimal="false" attribute="Style_Float" /> - <RegExpr String="-?(?:[0-9]|[1-9][0-9]+)(?:[eE][+-]?[0-9]+)?" context="#stay" insensitive="false" minimal="false" attribute="Style_Decimal" /> + <IncludeRules context="JsonValue"/> </context> </contexts> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.GPLv2 b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.GPLv2 new file mode 100644 index 0000000000..b9033aeae6 --- /dev/null +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.GPLv2 @@ -0,0 +1,282 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + +Everyone is permitted to copy and distribute verbatim copies of this +license document, but changing it is not allowed. + +Preamble + + The licenses for most software are designed to take away your freedom +to share and change it. By contrast, the GNU General Public License is +intended to guarantee your freedom to share and change free software +--to make sure the software is free for all its users. This General +Public License applies to most of the Free Software Foundation's +software and to any other program whose authors commit to using it. +(Some other Free Software Foundation software is covered by the GNU +Lesser General Public License instead.) You can apply it to your +programs, too. + +When we speak of free software, we are referring to freedom, not price. +Our General Public Licenses are designed to make sure that you have the +freedom to distribute copies of free software (and charge for this +service if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs; and that you know you can do these things. + +To protect your rights, we need to make restrictions that forbid anyone +to deny you these rights or to ask you to surrender the rights. These +restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + +For example, if you distribute copies of such a program, whether gratis + or for a fee, you must give the recipients all the rights that you +have. You must make sure that they, too, receive or can get the source +code. And you must show them these terms so they know their rights. + +We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + +Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + +Finally, any free program is threatened constantly by software patents. +We wish to avoid the danger that redistributors of a free program will +individually obtain patent licenses, in effect making the program +proprietary. To prevent this, we have made it clear that any patent +must be licensed for everyone's free use or not licensed at all. + +The precise terms and conditions for copying, distribution and +modification follow. + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License applies to any program or other work which contains a +notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of running +the Program is not restricted, and the output from the Program is +covered only if its contents constitute a work based on the Program +(independent of having been made by running the Program). Whether that +is true depends on what the Program does. + +1. You may copy and distribute verbatim copies of the Program's source +code as you receive it, in any medium, provided that you conspicuously +and appropriately publish on each copy an appropriate copyright notice +and disclaimer of warranty; keep intact all the notices that refer to +this License and to the absence of any warranty; and give any other +recipients of the Program a copy of this License along with the +Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Program or any portion of +it, thus forming a work based on the Program, and copy and distribute +such modifications or work under the terms of Section 1 above, provided +that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but does + not normally print such an announcement, your work based on the + Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of a +storage or distribution medium does not bring the other work under the +scope of this License. + +3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software + interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your cost + of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to control +compilation and installation of the executable. However, as a special +exception, the source code distributed need not include anything that +is normally distributed (in either source or binary form) with the +major components (compiler, kernel, and so on) of the operating system +on which the executable runs, unless that component itself accompanies +the executable. + +If distribution of executable or object code is made by offering access +to copy from a designated place, then offering equivalent access to +copy the source code from the same place counts as distribution of the +source code, even though third parties are not compelled to copy the +source along with the object code. + +4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt otherwise +to copy, modify, sublicense or distribute the Program is void, and will +automatically terminate your rights under this License. However, +parties who have received copies, or rights, from you under this License +will not have their licenses terminated so long as such parties remain +in full compliance. + +5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + +6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further restrictions +on the recipients' exercise of the rights granted herein. You are not +responsible for enforcing compliance by third parties to this License. + +7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent license +would not permit royalty-free redistribution of the Program by all +those who receive copies directly or indirectly through you, then the +only way you could satisfy both it and this License would be to refrain +entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + +8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License may +add an explicit geographical distribution limitation excluding those +countries, so that distribution is permitted only in or among countries +not thus excluded. In such case, this License incorporates the limitation +as if written in the body of this License. + +9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail +to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Program does not specify a version +number of this License, you may choose any version ever published by +the Free Software Foundation. + +10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the +author to ask for permission. For software which is copyrighted by +the Free Software Foundation, write to the Free Software Foundation; +we sometimes make exceptions for this. Our decision will be guided by +the two goals of preserving the free status of all derivatives of our +free software and of promoting the sharing and reuse of software +generally. + +NO WARRANTY + +11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, +EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE +ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH +YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL +NECESSARY SERVICING, REPAIR OR CORRECTION. + +12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY +MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE +TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + +END OF TERMS AND CONDITIONS diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.GPLv3 b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.GPLv3 new file mode 100644 index 0000000000..94a9ed024d --- /dev/null +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.GPLv3 @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + <program> Copyright (C) <year> <name of author> + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +<http://www.gnu.org/licenses/>. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +<http://www.gnu.org/philosophy/why-not-lgpl.html>. diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.LGPLv21 b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.LGPLv21 new file mode 100644 index 0000000000..ec3ce5f2b0 --- /dev/null +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.LGPLv21 @@ -0,0 +1,504 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + <one line to give the library's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + <signature of Ty Coon>, 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.LGPLv3 b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.LGPLv3 new file mode 100644 index 0000000000..eb33241551 --- /dev/null +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.LGPLv3 @@ -0,0 +1,163 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/> +Everyone is permitted to copy and distribute verbatim copies of this +licensedocument, but changing it is not allowed. + +This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + +0. Additional Definitions. + + As used herein, “this License” refers to version 3 of the GNU Lesser +General Public License, and the “GNU GPL” refers to version 3 of the +GNU General Public License. + + “The Library” refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An “Application” is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A “Combined Work” is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the “Linked +Version”. + + The “Minimal Corresponding Source” for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The “Corresponding Application Code” for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + +1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + +2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort + to ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + +3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this + license document. + +4. Combined Works. + + You may convey a Combined Work under terms of your choice that, taken +together, effectively do not restrict modification of the portions of +the Library contained in the Combined Work and reverse engineering for +debugging such modifications, if you also do each of the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this + license document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of + this License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with + the Library. A suitable mechanism is one that (a) uses at run + time a copy of the Library already present on the user's + computer system, and (b) will operate properly with a modified + version of the Library that is interface-compatible with the + Linked Version. + + e) Provide Installation Information, but only if you would + otherwise be required to provide such information under section 6 + of the GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the Application + with a modified version of the Linked Version. (If you use option + 4d0, the Installation Information must accompany the Minimal + Corresponding Source and Corresponding Application Code. If you + use option 4d1, you must provide the Installation Information in + the manner specified by section 6 of the GNU GPL for conveying + Corresponding Source.) + +5. Combined Libraries. + + You may place library facilities that are a work based on the Library +side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities, conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of + it is a work based on the Library, and explaining where to find + the accompanying uncombined form of the same work. + +6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +as you received it specifies that a certain numbered version of the +GNU Lesser General Public License “or any later version” applies to +it, you have the option of following the terms and conditions either +of that published version or of any later version published by the +Free Software Foundation. If the Library as you received it does not +specify a version number of the GNU Lesser General Public License, +you may choose any version of the GNU Lesser General Public License +ever published by the Free Software Foundation. + +If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the Library. + diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/makefile.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/makefile.xml deleted file mode 100644 index 6067a2470f..0000000000 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/makefile.xml +++ /dev/null @@ -1,498 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd"> -<!-- Makefile syntaxfile v0.9 by Per Wigren <wigren@home.se> --> -<!-- Modified by Joseph Wenninger <jowenn@kde.org> --> -<!-- Modified by Rui Santana <santana.rui@gmail.com> --> -<!-- v2.0 by Andreas Nordal <andreas.nordal@gmail.com> --> -<!-- small priority to allow for example Makefile.cpp to be detected as cpp file --> -<!-- v2.1 by Alex Turbov <i.zaufi@gmail.com> - improve comments handling --> -<!-- v4 by Alex Richardson <arichardson.kde@gmail.com> - added bmake support --> -<language name="Makefile" section="Other" - version="7" kateversion="3.4" - extensions="GNUmakefile;Makefile;makefile;GNUmakefile.*;Makefile.*;makefile.*;*.mk" - mimetype="text/x-makefile" priority="11" - author="Per Wigren (wigren@home.se)" license=""> - <highlighting> - <list name = "keywords" > - <item>include</item> - <item>-include</item> - <item>define</item> - <item>endef</item> - </list> - <!-- https://www.gnu.org/software/make/manual/html_node/Conditional-Syntax.html --> - <list name="gmake_if_keywords"> - <item>if</item> - <item>ifeq</item> - <item>ifneq</item> - <item>ifdef</item> - <item>ifndef</item> - </list> - <list name="gmake_else_keywords"><item>else</item></list> - <list name="gmake_endif_keywords"><item>endif</item></list> - <!-- bmake statements: https://www.freebsd.org/cgi/man.cgi?make(1)#INCLUDE_STATEMENTS,_CONDITIONALS_AND_FOR_LOOPS --> - <list name="bmake_if_keywords"> - <item>.if</item> - <item>.ifdef</item> - <item>.ifndef</item> - <item>.ifmake</item> - <item>.ifnmake</item> - </list> - <list name="bmake_else_keywords"> - <item>.elif</item> - <item>.elifdef</item> - <item>.elifndef</item> - <item>.elifmake</item> - <item>.elifnmake</item> - <item>.else</item> <!-- TODO: anything following .else should be highlighted as an error --> - </list> - <list name="bmake_endif_keywords"><item>.endif</item></list> - - <list name="bmake_expressions"> - <item>defined</item> - <item>empty</item> - <item>exists</item> - <item>target</item> - <item>commands</item> - </list> - - <list name="bmake_include_stmt"> - <item>.include</item> - <item>.-include</item> - <item>.sinclude</item> - <!-- For compat bmake also handles include but this is already highlighted. <item>include</item> --> - </list> - <list name="bmake_message_stmt"> - <item>.info</item> - <item>.warning</item> - <item>.error</item> - </list> - <!-- Use single element list here so that .for/.endfor also shows up in code completion --> - <list name="bmake_for_stmt"><item>.for</item></list> - <list name="bmake_endfor_stmt"><item>.endfor</item></list> - - <!-- https://www.freebsd.org/cgi/man.cgi?make(1)#SPECIAL_TARGETS --> - <list name="bmake_special_targets"> - <item>.BEGIN</item> - <item>.DEFAULT</item> - <item>.END</item> - <item>.ERROR</item> - <item>.IGNORE</item> - <item>.INTERRUPT</item> - <item>.MAIN</item> - <item>.MAKEFLAGS</item> - <item>.NOPATH</item> - <item>.NOTPARALLEL</item> - <item>.NO_PARALLEL</item> - <item>.OBJDIR</item> - <item>.ORDER</item> - <item>.PATH</item> - <item>.PHONY</item> - <item>.PRECIOUS</item> - <item>.SHELL</item> - <item>.SILENT</item> - <item>.STALE</item> - <item>.SUFFIXES</item> - </list> - <!-- https://www.freebsd.org/cgi/man.cgi?make(1)#SPECIAL_SOURCES_(ATTRIBUTES) --> - <list name="bmake_special_sources"> - <item>.EXEC</item> - <item>.IGNORE</item> - <item>.MADE</item> - <item>.MAKE</item> - <item>.META</item> - <item>.NOMETA</item> - <item>.NOMETA_CMP</item> - <item>.NOPATH</item> - <item>.NOTMAIN</item> - <item>.OPTIONAL</item> - <item>.PHONY</item> - <item>.PRECIOUS</item> - <item>.RECURSIVE</item> - <item>.SILENT</item> - <item>.USE</item> - <item>.USEBEFORE</item> - <item>.WAIT</item> - </list> - - <list name="bmake_other_stmts"> - <item>.unexport-env</item> - <item>.unexport</item> - <item>.undef</item> - <item>.export-env</item> - <item>.export</item> - </list> - - <list name = "functions"> - <item>call</item> - <item>subst</item> - <item>patsubst</item> - <item>strip</item> - <item>findstring</item> - <item>filter</item> - <item>filter-out</item> - <item>sort</item> - <item>word</item> - <item>wordlist</item> - <item>words</item> - <item>firstword</item> - <item>lastword</item> - <item>dir</item> - <item>notdir</item> - <item>suffix</item> - <item>basename</item> - <item>addsuffix</item> - <item>addprefix</item> - <item>join</item> - <item>wildcard</item> - <item>realpath</item> - <item>abspath</item> - <item>if</item> - <item>or</item> - <item>and</item> - <item>foreach</item> - <item>value</item> - <item>eval</item> - <item>origin</item> - <item>flavor</item> - <item>shell</item> - <item>error</item> - <item>warning</item> - <item>info</item> - </list> - <contexts> - <context name="normal" attribute="Normal" lineEndContext="#stay"> - <DetectSpaces/> - <DetectChar attribute="Comment" context="Comment" char="#"/> - <keyword attribute="ControlFlow" String="bmake_if_keywords" context="bmake_conditional" beginRegion="bmake_if" firstNonSpace="true"/> - <!--TODO: trailing non-space after .else should be highlighted as an error --> - <keyword attribute="ControlFlow" String="bmake_else_keywords" context="bmake_conditional" endRegion="bmake_if" beginRegion="bmake_if" firstNonSpace="true"/> - <keyword attribute="ControlFlow" String="bmake_endif_keywords" context="#stay" endRegion="bmake_if"/> - - <keyword attribute="ControlFlow" String="gmake_if_keywords" context="#stay" beginRegion="gmake_if" firstNonSpace="true"/> - <!--TODO: trailing non-space after .else should be highlighted as an error --> - <keyword attribute="ControlFlow" String="gmake_else_keywords" context="gmake_else" endRegion="gmake_if" beginRegion="gmake_if" firstNonSpace="true"/> - <keyword attribute="ControlFlow" String="gmake_endif_keywords" context="#stay" endRegion="gmake_if"/> - - <keyword attribute="Keyword" context="#stay" String="keywords"/> - <keyword attribute="Keyword" context="bmake_other_stmts" String="bmake_other_stmts" firstNonSpace="true"/> - <RegExpr attribute="Variable" context="assign" String="[^\s+:?+]*\s*(?=:=|=|\+=|\?=)"/> - <keyword attribute="SpecialTarget" context="bmake_special_target" String="bmake_special_targets" firstNonSpace="true"/> - <RegExpr attribute="SpecialTarget" context="prereq" String="\.PATH\.[^:]*:" firstNonSpace="true"/> - <keyword attribute="Keyword" context="bmake_include" String="bmake_include_stmt" firstNonSpace="true"/> - <keyword attribute="Keyword" context="bmake_message" String="bmake_message_stmt" firstNonSpace="true"/> - <keyword attribute="Keyword" context="bmake_for_loop" String="bmake_for_stmt" firstNonSpace="true" beginRegion="for"/> - <keyword attribute="Keyword" context="#stay" String="bmake_endfor_stmt" firstNonSpace="true" endRegion="for"/> - - <RegExpr attribute="Section" context="prereq" String="^\.[^.][^:]*:"/> - <RegExpr attribute="Target" context="prereq" String="^[^:]*:"/> - <DetectIdentifier/> - <DetectChar attribute="String" context="string"" char="""/> - <DetectChar attribute="String" context="string'" char="'"/> - <DetectChar attribute="Operator" context="dollar" char="$"/> - <Detect2Chars attribute="Special" context="#stay" char="\" char1="#"/> - <Detect2Chars attribute="Special" context="#stay" char="\" char1="\"/> - <AnyChar attribute="Operator" context="silent" String="@-" firstNonSpace="1"/> - </context> - - <context name="strings_and_vars" attribute="Normal" lineEndContext="#pop"> - <DetectChar attribute="Operator" context="dollar" char="$"/> - <DetectChar attribute="String" context="string"" char="""/> - <DetectChar attribute="String" context="string'" char="'"/> - <DetectChar attribute="Comment" context="Comment" char="#"/> - </context> - - <context name="gmake_else" attribute="Error" lineEndContext="#pop"> - <DetectSpaces attribute="Normal"/> - <keyword attribute="ControlFlow" String="gmake_if_keywords" context="#stay"/> - <IncludeRules context="strings_and_vars"/> - </context> - - <context name="bmake_include" attribute="Normal" lineEndContext="#pop"> - <DetectSpaces /> - <RangeDetect char="<" char1=">" context="#stay" attribute="Include" /> - <RangeDetect char=""" char1=""" context="#stay" attribute="Include" /> - </context> - - - <context name="bmake_conditional" attribute="Normal" lineEndContext="#pop"> - <DetectSpaces/> - <IncludeRules context="strings_and_vars"/> - <keyword attribute="Builtin" context="bmake_expression" String="bmake_expressions"/> - <Detect2Chars attribute="RealOperator" context="#stay" char="&" char1="&"/> - <Detect2Chars attribute="RealOperator" context="#stay" char="|" char1="|"/> - <Detect2Chars attribute="RealOperator" context="#stay" char="!" char1="="/> - <Detect2Chars attribute="RealOperator" context="#stay" char="=" char1="="/> - <DetectChar attribute="RealOperator" context="#stay" char="!"/> - <HlCHex attribute="Number" context="#stay"/> - <Int attribute="Number" context="#stay"/> - <DetectIdentifier attribute="Variable" context="#stay"/> - <LineContinue attribute="Operator" context="#stay"/> - </context> - - <context name="bmake_for_loop" attribute="Variable" lineEndContext="#pop"> - <DetectSpaces/> - <IncludeRules context="strings_and_vars"/> - <WordDetect attribute="RealOperator" context="#stay" String="in" /> - </context> - - <context name="bmake_other_stmts" attribute="Variable" lineEndContext="#pop"> - <DetectSpaces/> - <IncludeRules context="strings_and_vars"/> - </context> - - <context name="bmake_expression" attribute="Variable" lineEndContext="#pop"> - <DetectSpaces/> - <IncludeRules context="strings_and_vars"/> - <DetectChar attribute="Normal" context="#stay" char="("/> - <DetectChar attribute="Normal" context="#pop" char=")"/> - <DetectIdentifier attribute="Variable"/> - </context> - - <context name="bmake_special_target" attribute="Error" lineEndContext="rule"> - <!-- anything but spaces before the : should be an error --> - <DetectSpaces attribute="Normal" /> - <DetectChar attribute="SpecialTarget" context="#pop!prereq" char=":"/> - </context> - - <context name="bmake_message" attribute="String" lineEndContext="#pop"> - <DetectChar attribute="Operator" context="dollar" char="$"/> - </context> - - <context name="prereq" attribute="Prereq" lineEndContext="rule"> - <DetectSpaces/> - <keyword attribute="SpecialPrereq" context="#stay" String="bmake_special_sources"/> - <DetectIdentifier/> - <LineContinue attribute="Operator" context="#stay"/> - <DetectChar attribute="Operator" context="dollar" char="$"/> - <Detect2Chars attribute="Special" context="#stay" char="\" char1="#"/> - <Detect2Chars attribute="Special" context="#stay" char="\" char1="\"/> - <DetectChar attribute="Comment" context="Comment" char="#"/> - </context> - - <context name="rule" attribute="Normal" lineEndContext="#stay"> - <LineContinue attribute="Operator" context="#stay"/> - <!-- pop if there is a leading non-tab, - and in particular, mark leading spaces as errors --> - <RegExpr attribute="Error" context="#pop#pop#pop" String="^ +" firstNonSpace="1"/> - <RegExpr context="#pop#pop#pop" String="^[^\t]" lookAhead="1" firstNonSpace="1"/> - <DetectSpaces/> - <DetectIdentifier/> - <DetectChar attribute="String" context="string"" char="""/> - <DetectChar attribute="String" context="string'" char="'"/> - <DetectChar attribute="Operator" context="dollar" char="$"/> - <Detect2Chars attribute="Special" context="#stay" char="\" char1="#"/> - <Detect2Chars attribute="Special" context="#stay" char="\" char1="\"/> - <AnyChar attribute="Operator" context="silent" String="@-" firstNonSpace="1"/> - <DetectChar attribute="Comment" context="Comment" char="#"/> - </context> - - <context name="silent" attribute="Silent" lineEndContext="#pop"> - <LineContinue attribute="Operator" context="#stay"/> - <DetectSpaces/> - <DetectIdentifier/> - <DetectChar attribute="String" context="string"" char="""/> - <DetectChar attribute="String" context="string'" char="'"/> - <DetectChar attribute="Operator" context="dollar" char="$"/> - <Detect2Chars attribute="Special" context="#stay" char="\" char1="#"/> - <Detect2Chars attribute="Special" context="#stay" char="\" char1="\"/> - <DetectChar attribute="Comment" context="Comment" char="#"/> - </context> - - <context name="string"" attribute="String" lineEndContext="#pop"> - <LineContinue attribute="Operator" context="#stay"/> - <DetectChar attribute="String" context="#pop" char="""/> - <DetectChar attribute="Operator" context="dollar" char="$"/> - </context> - - <context name="string'" attribute="String" lineEndContext="#pop"> - <LineContinue attribute="String" context="#stay"/> - <DetectChar attribute="String" context="#pop" char="'"/> - <DetectChar attribute="Operator" context="dollar" char="$"/> - </context> - - <context name="assign" attribute="Operator" lineEndContext="#pop"> - <DetectChar attribute="Operator" context="value" char="="/> - </context> - - <context name="value" attribute="String" lineEndContext="#pop#pop"> - <LineContinue attribute="Operator"/> - <DetectChar attribute="Operator" context="dollar" char="$"/> - <RegExpr attribute="Special" context="#pop#pop" String="@[-_\d\w]*@"/> - <DetectChar attribute="Operator" char=";" context="#pop#pop"/> - </context> - - <context name="dollar" attribute="Operator" lineEndContext="#pop"> - <DetectChar attribute="Operator" context="call(" char="("/> - <DetectChar attribute="Operator" context="call{" char="{"/> - <RegExpr attribute="Operator" context="#pop" String="."/> - </context> - - <context name="call(" attribute="Variable" lineEndContext="#stay" fallthroughContext="callVar(" fallthrough="1"> - <keyword attribute="Keyword" context="callFunc(" String="functions"/> - </context> - - <context name="call{" attribute="Variable" lineEndContext="#stay" fallthroughContext="callVar{" fallthrough="1"> - <keyword attribute="Keyword" context="callFunc{" String="functions"/> - </context> - - <context name="callVar(" attribute="Variable" lineEndContext="#stay"> - <DetectChar attribute="Operator" char=")" context="#pop#pop#pop"/> - <DetectChar attribute="Operator" context="dollar" char="$"/> - <DetectSpaces attribute="Error" context="#stay"/> - <AnyChar attribute="Error" context="#stay" String="=#:"/> - </context> - - <context name="callVar{" attribute="Variable" lineEndContext="#stay"> - <DetectChar attribute="Operator" char="}" context="#pop#pop#pop"/> - <DetectChar attribute="Operator" context="dollar" char="$"/> - <DetectSpaces attribute="Error" context="#stay"/> - <!-- Handle bmake Variable modifiers: ${variable[:modifier[:...]]} --> - <Detect2Chars context="#stay" char="\" char1=":"/> - <!-- other modifiers --> - <DetectChar attribute="RealOperator" context="bmake_var_modifier" char=":"/> - <AnyChar attribute="Error" context="#stay" String="=#"/> - </context> - - <context name="bmake_var_modifier_arg" attribute="VarModifier" lineEndContext="#pop"> - <DetectChar attribute="Operator" context="dollar" char="$"/> - <Detect2Chars context="#stay" char="\" char1="}"/> - <DetectChar attribute="Operator" char="}" context="#pop#pop#pop#pop"/> - <Detect2Chars context="#stay" char="\" char1=":"/> - <DetectChar attribute="RealOperator" context="#pop!bmake_var_modifier" char=":"/> - </context> - - <!-- TODO: once all modifiers are properly handled change fallthroughContext to "expect}" --> - <context name="bmake_var_modifier" attribute="VarModifier" lineEndContext="#pop" fallthroughContext="#pop!bmake_var_modifier_arg" fallthrough="true"> - <DetectChar attribute="Operator" context="dollar" char="$"/> - - <!-- - TODO :?true_string:false_string - TODO :old_string=new_string This is the AT&T System V UNIX style variable substitution. - TODO :@temp@string@ This is the loop expansion mechanism from the OSF Development Environment (ODE) make. - TODO :!cmd! The output of running cmd is the value. - TODO :[range] - --> - <!-- Modifiers without arguments:--> - <!-- - :E Replaces each word in the variable with its suffix. - :H Replaces each word in the variable with everything but the last component. - :O Order every word in variable alphabetically. - :Q Quotes every shell meta-character in the variable - :R Replaces each word in the variable with everything but its suffix. - :T Replaces each word in the variable with its last component. - :u Remove adjacent duplicate words (like uniq(1)). - :L The name of the variable is the value. - :P The path of the node which has the same name as the variable is the value. - --> - <AnyChar attribute="Builtin" context="#pop!expect}" String="EHOQRTuLP"/> - <!-- :sh If the variable is non-empty it is run as a command and the output becomes the new value. --> - <Detect2Chars attribute="Builtin" context="#pop!expect}" char="s" char1="h"/> - <!-- :Ox Randomize words in variable. --> - <Detect2Chars attribute="Builtin" context="#pop!expect}" char="O" char1="x"/> - <!-- :tA Attempt to convert variable to an absolute path using realpath(3),--> - <Detect2Chars attribute="Builtin" context="#pop!expect}" char="t" char1="A"/> - <!-- :tl Converts variable to lower-case letters.--> - <Detect2Chars attribute="Builtin" context="#pop!expect}" char="t" char1="L"/> - <!-- :gmtime The value is a format string for strftime(3), using the current gmtime(3). --> - <StringDetect attribute="Builtin" String="gmtime" context="#pop!expect}" /> - <!-- :hash Compute a 32bit hash of the value and encode it as hex digits. --> - <StringDetect attribute="Builtin" String="hash" context="#pop!expect}" /> - <!-- :localtime The value is a format string for strftime(3), using the current localtime(3). --> - <StringDetect attribute="Builtin" String="localtime" context="#pop!expect}" /> - <!--Now the modifiers with arguments:--> - <!-- - :Mpattern Select only those words that match pattern. - :Npattern This is identical to `:M', but selects all words which do not match pattern. - :Dnewval If the variable is defined newval is the value. - :Unewval If the variable is undefined newval is the value. - --> - <AnyChar attribute="Builtin" context="#pop!bmake_var_modifier_arg" String="MNDU"/> - <!-- TODO: add new context to highligh old_string and new_string differently - :S/old_string/new_string/[1gW] - :C/pattern/replacement/[1gW] - --> - <AnyChar attribute="Builtin" context="#pop!bmake_var_modifier_arg" String="SC"/> - <!-- ::=str The variable is assigned the value str after substitution. --> - <Detect2Chars attribute="Builtin" context="#pop!bmake_var_modifier_arg" char=":" char1="="/> - <!-- ::?=str As for ::= but only if the variable does not already have a value. --> - <StringDetect attribute="Builtin" String=":?=" context="#pop!bmake_var_modifier_arg" /> - <!-- ::+=str Append str to the variable. --> - <StringDetect attribute="Builtin" String=":+=" context="#pop!bmake_var_modifier_arg" /> - <!-- ::!=cmd Assign the output of cmd to the variable. --> - <StringDetect attribute="Builtin" String=":!=" context="#pop!bmake_var_modifier_arg" /> - <!-- :tu Converts variable to upper-case letters. --> - <Detect2Chars attribute="Builtin" context="#pop!bmake_var_modifier_arg" char="t" char1="u"/> - <!-- :tW Causes the value to be treated as a single word. See also `:[*]'. --> - <Detect2Chars attribute="Builtin" context="#pop!bmake_var_modifier_arg" char="t" char1="W"/> - <!-- :tw Causes the value to be treated as a sequence of words delimited by white space. See also `:[@]'.--> - <Detect2Chars attribute="Builtin" context="#pop!bmake_var_modifier_arg" char="t" char1="w"/> - <!-- :tsc Words in the variable are normally separated by a space on - expansion. This modifier sets the separator to the character c. If - c is omitted, then no separator is used. The common escapes - (including octal numeric codes), work as expected. --> - <Detect2Chars attribute="Builtin" context="#pop!bmake_var_modifier_arg" char="t" char1="s"/> - - <IncludeRules context="bmake_var_modifier_arg"/> - </context> - - <context name="expect}" attribute="Error" lineEndContext="#pop#pop#pop#pop"> - <Detect2Chars context="#stay" char="\" char1="}"/> - <DetectChar attribute="Operator" char="}" context="#pop#pop#pop#pop"/> - </context> - - <context name="callFunc(" attribute="FuncParam" lineEndContext="#stay"> - <DetectChar attribute="Operator" char=")" context="#pop#pop#pop"/> - <DetectChar attribute="Operator" context="dollar" char="$"/> - <DetectChar attribute="Keyword" context="#stay" char=","/> - <DetectChar attribute="String" context="string'" char="'"/> - </context> - - <context name="callFunc{" attribute="FuncParam" lineEndContext="#stay"> - <DetectChar attribute="Operator" char="}" context="#pop#pop#pop"/> - <DetectChar attribute="Operator" context="dollar" char="$"/> - <DetectChar attribute="Keyword" context="#stay" char=","/> - <DetectChar attribute="String" context="string'" char="'"/> - </context> - - <context attribute="Comment" lineEndContext="#pop" name="Comment"> - <LineContinue attribute="Comment" context="#stay" /> - <IncludeRules context="##Alerts" /> - <IncludeRules context="##Modelines" /> - </context> - - </contexts> - <itemDatas> - <itemData name="Normal" defStyleNum="dsNormal" spellChecking="0"/> - <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/> - <itemData name="Comment" defStyleNum="dsComment"/> - <itemData name="String" defStyleNum="dsString" spellChecking="0"/> - <itemData name="Variable" defStyleNum="dsDataType" spellChecking="0"/> - <itemData name="Target" defStyleNum="dsDecVal" spellChecking="0"/> - <itemData name="Section" defStyleNum="dsOthers" spellChecking="0"/> - <itemData name="Prereq" defStyleNum="dsDataType" spellChecking="0"/> - <itemData name="FuncParam" defStyleNum="dsString" spellChecking="0"/> - <itemData name="Operator" defStyleNum="dsChar" spellChecking="0"/> - <itemData name="Silent" defStyleNum="dsFunction" spellChecking="0"/> - <itemData name="Special" defStyleNum="dsFloat" spellChecking="0"/> - <itemData name="Error" defStyleNum="dsError" spellChecking="0"/> - <itemData name="Builtin" defStyleNum="dsBuiltIn" spellChecking="0"/> - <itemData name="Number" defStyleNum="dsDecVal" spellChecking="0"/> - <itemData name="Include" defStyleNum="dsImport" spellChecking="0"/> - <itemData name="ControlFlow" defStyleNum="dsControlFlow" spellChecking="0"/> - <itemData name="VarModifier" defStyleNum="dsSpecialString" spellChecking="0"/> - <itemData name="RealOperator" defStyleNum="dsKeyword" spellChecking="0"/> - <itemData name="SpecialTarget" defStyleNum="dsOthers" spellChecking="0" bold="1"/> - <itemData name="SpecialPrereq" defStyleNum="dsDataType" spellChecking="0" bold="1"/> - </itemDatas> - </highlighting> - <general> - <comments> - <comment name = "singleLine" start = "#"/> - </comments> - <!-- '-' is not a deliminator in function filter-out --> - <keywords casesensitive="1" weakDeliminator = ".-"/> - </general> -</language> -<!-- kate: space-indent on; indent-width 2; replace-tabs on; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/markdown.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/markdown.xml index f88848729f..c3811c772f 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/markdown.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/markdown.xml @@ -6,6 +6,7 @@ Dual-Licensed under both GPL and BSD licenses. Extended 2009 Claes Holmerson. http://github.com/claes/kate-markdown/ + Extended 2019 Nibaldo González S. <nibgonz@gmail.com> (changes under MIT license). --> <!-- The [^\s]{1} is in the regex to avoid interfering with bullet list which @@ -15,189 +16,685 @@ Match space or newline, followed by "*", followed by one non-space, followed by anything non-asterisk, followed by "*", followed by space, end-of-sentence punctuation, or the end of the line. + + TODO: We can be more specific and highlight text combinations in bold, + italic and strikethrough. + Example: **bold text and _italic and bold text_** + __bold and ~~strikeout and bold~~__ --> -<!DOCTYPE language SYSTEM "language.dtd" +<!DOCTYPE language [ -<!ENTITY strongemphasisregex "(\s|^)[\*_]{3}[^\*_]+[\*_]{3}(\s|\.|,|;|:|\-|\?|$)"> -<!ENTITY strongregex "(\s|^)[\*_]{2}[^\s]{1}[^\*_]+[\*_]{2}(\s|\.|,|;|:|\-|\?|$)"> -<!ENTITY emphasisregex "(\s|^)[\*_]{1}[^\s]{1}[^\*_]+[\*_]{1}(\s|\.|,|;|:|\-|\?|$)"> -<!ENTITY reflinkregex '\[[^\]\^]+\]\s*\[[^\]]*\]\s*(\s+\"[^\"]*\"){0,1}'> -<!ENTITY reflinktargetregex '\[[^\]\^]+\]\:\s+[^\s]+(\s+\"[^\"]*\"){0,1}'> -<!ENTITY footnoteregex "\[\^[^\]]+\]"> -<!ENTITY inlinelinkregex "\[[^\]\^]+\]\s*\([^\(]*\)"> -<!ENTITY inlineimageregex "\!\[[^\]\^]+\]\([^\(]*\)"> -<!ENTITY refimageregex "\!\[[^\]\^]+\]\[[^\[]*\]"> -<!ENTITY autolinkregex '<(https?|ftp):[^\">\s]+>'> -<!ENTITY mailtolinkregex "<(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>"> -<!ENTITY rulerregex "\s*([\*\-_]\s?){3,}\s*"> +<!-- NOTE: To correctly detect bold, italic or strike out text, use minimal="true" in RegExpr rules --> +<!ENTITY contentregex_ast "(?:(?:[^\*\s\\]|\\.)(?:[^\\]|\\.)*)?(?:[^\*\s\\]|\\\S)"> +<!ENTITY contentregex_und "(?:(?:[^_\s\\]|\\.)(?:[^\\]|\\.)*)?(?:[^_\s\\]|\\\S)"> +<!-- strong + emphasis text --> +<!ENTITY strongemphasisregex_ast "\*{3,5}&contentregex_ast;\*{3}"> +<!ENTITY strongemphasisregex_und "\b_{3,5}&contentregex_und;_{3}"> +<!ENTITY strongemphasisregex_ast_und "\*{2,5}(?:(?:_|_{3}|_{5})&contentregex_und;_+|(?:_{2}|_{4})&contentregex_und;_)\*{2}"> +<!ENTITY strongemphasisregex_ast_und2 "\*_{2,5}&contentregex_und;_{2,5}\*(?!\*)"> +<!ENTITY strongemphasisregex_und_ast "\b_{2,5}(?:(?:\*|\*{3}|\*{5})&contentregex_ast;\*+|(?:\*{2}|\*{4})&contentregex_ast;\*)_{2}"> +<!ENTITY strongemphasisregex_und_ast2 "\b_(?:\*{2,5}&contentregex_ast;\*{2,5}_{0,4}|_{0,4}\*{2,5}&contentregex_ast;\*{2,5})_\b"> +<!-- strong text --> +<!ENTITY strongregex_ast "\*{2}(?:&contentregex_ast;\*{2}|\*{1,3}&contentregex_ast;\*{2}(?!\*))"> +<!ENTITY strongregex_und "\b_{2}(?:&contentregex_und;_{2}|_{1,3}&contentregex_und;_{2}(?!_))"> +<!-- emphasis text --> +<!ENTITY emphasisregex_ast "\*(?:&contentregex_ast;\*|\*{1,4}&contentregex_ast;\*(?!\*))"> +<!ENTITY emphasisregex_und "\b_(?:&contentregex_und;_+|_{1,4}&contentregex_und;_)\b"> +<!-- links. + Keep in sync with reStructuredText (rest) --> +<!ENTITY startlink "(?:https?|ftp)\://"> +<!ENTITY link "&startlink;[^">\s]+"> +<!-- link in normal text. + Keep in sync with reStructuredText’s (rest) StandaloneHyperlink attribute --> +<!ENTITY implicitlink "\b&startlink;[^">\s`\)]*[^\s!"'`\(\)\*,\.:;<>\?~\]\}\\](?=[[:punct:]]*(?:[\s\)]|$))"> +<!-- references: [name], [name][id], [name][id] "title", [name](https://example.com) --> +<!ENTITY refchar "(?:\\.|[^\]\\])"> +<!ENTITY refname "(?:\\.|[^\s\[\]\\])&refchar;*"> +<!ENTITY reflinkid "\s*(?:&refname;)?"> +<!ENTITY reflinkidregex "(?:\s?\[&reflinkid;\]|\((?:\\.|[^\(\)\\])*\))"> +<!ENTITY reflinkregex "\[(?:(?=\s*&refname;\])|\s+(?=\]))"> +<!-- target ref.: [id]: https://example.com "Title" --> +<!ENTITY reflinktargetregex '\[\s*(?:&refname;|\s)\]\:\s+(?=\S)'> +<!-- footnote: [^name] --> +<!ENTITY footnoteregex "\[\^&refchar;+\]"> +<!-- image: ![title](https://example.com), ![title][id] --> +<!ENTITY startinlineimage "\!\[(?:\\.|[^\[\]\\])*\]\("> +<!ENTITY endinlineimage "(?:\\.|[^\(\)\\])*\)"> +<!ENTITY inlineimageregex "&startinlineimage;(?=&endinlineimage;)"> +<!ENTITY refimageregex "\!\[(?:\\.|[^\[\]\\])*\]\[&reflinkid;\]"> +<!-- autolink & email: <https://example.com>, <example@kde.org>, <mailto:example@kde.org> --> +<!ENTITY autolinkregex '<&link;>'> +<!ENTITY email "[\-\.\w]+\@[\-a-z0-9]+(?:\.[\-a-z0-9]+)*\.[a-z]+"> +<!ENTITY mailtolinkregex "<(?:mailto:)?(?=&email;>)"> +<!-- horizontal rule: avoid conflicts with strong-emphasis text, lists and code blocks --> +<!ENTITY rulerregex "\s*(?:(?:\*\s*){3,}|(?:_\s*){3,}|(?:\-\s*){3,})\s*$"> <!-- two spaces at end of line generates linebreak --> <!ENTITY linebreakregex " $"> -<!ENTITY strikeoutregex "[~]{2}[^~].*[^~][~]{2}"> -<!-- pandoc style --> +<!-- strikethrough text, pandoc style --> +<!ENTITY strikeoutregex "[~]{2}[^~](?:.*[^~])?[~]{2}"> +<!-- highlight text --> +<!ENTITY highlightregex "[=]{2}[^=](?:.*[^=])?[=]{2}"> +<!-- emoji --> +<!ENTITY emojiregex ":([-+]1|\w+):"> +<!-- start of fenced code block --> +<!ENTITY fcode "(`{3,}|~{3,})"> +<!-- end of line & empty line --> +<!ENTITY end "\s*$"> +<!ENTITY emptyline "^\s*$"> +<!-- indented code block --> +<!ENTITY indentedcodeblock "(?:\s{4}|\t).*$"> +<!-- bullet of list --> +<!ENTITY listbullet "[\*\+\-]"> +<!-- metadata key & name of html tag --> +<!ENTITY metadatakey "[a-zA-Z0-9][\w\-\s]*\:"> +<!ENTITY htmlname "[A-Za-z_\:][\w\.\:\-]*"> +<!-- comment --> +<!ENTITY startcomment "<!--"> +<!ENTITY endcomment "-->"> +<!ENTITY checkbox "\[[ x]\](?=\s)"> ]> -<language name="Markdown" version="6" kateversion="5.0" section="Markup" extensions="*.md;*.mmd;*.markdown" priority="15" author="Darrin Yeager, Claes Holmerson" license="GPL,BSD"> + +<language name="Markdown" version="30" kateversion="5.79" section="Markup" extensions="*.md;*.mmd;*.markdown;*.md.html" mimetype="text/markdown" priority="15" author="Darrin Yeager, Claes Holmerson" license="GPL,BSD"> <highlighting> <contexts> - <context attribute="Normal Text" lineEndContext="#stay" name="Normal Text"> - <DetectChar context="blockquote" char=">" column="0"/> - <RegExpr attribute="h1" String="^#\s.*[#]?$"/> - <RegExpr attribute="h2" String="^##\s.*[#]?$"/> - <RegExpr attribute="h3" String="^###\s.*[#]?$"/> - <RegExpr attribute="h4" String="^####\s.*[#]?$"/> - <RegExpr attribute="h5" String="^#####\s.*[#]?$"/> - <RegExpr attribute="h6" String="^######\s.*[#]?$"/> - <RegExpr attribute="ruler" String="&rulerregex;"/> - <RegExpr attribute="strong" String="&strongregex;"/> - <RegExpr attribute="emphasis" String="&emphasisregex;"/> - <RegExpr attribute="strongemphasis" String="&strongemphasisregex;"/> - <RegExpr attribute="code" String="^([\s]{4,}|\t+).*$"/> - <RegExpr context="bullet" String="^[\*\+\-]\s"/> - <RegExpr context="numlist" String="^[\d]+\.\s"/> - <RegExpr attribute="meta" String="^(Title|Author|Date|Copyright|Revision|CSS|LaTeX\ XSLT|Categories|Tags|BaseName|Excerpt):(.*)+$"/> - <IncludeRules context="inc"/> + <!-- Start of the Markdown document: find metadata or code block --> + <context name="Start Document" attribute="Normal Text" lineEndContext="Normal Text" lineEmptyContext="Normal Text" fallthroughContext="Normal Text"> + <!-- Some titles: (Title|Author|Date|Copyright|Revision|CSS|LaTeX\ XSLT|Categories|Tags|BaseName|Excerpt) --> + <!-- Metadata: Markdown format --> + <RegExpr attribute="Metadata" context="metadata" String="^\-{3}&end;" column="0" beginRegion="metadata"/> + <!-- Metadata: MultiMarkdown format --> + <RegExpr attribute="Metadata Title" context="metadata-mm-value" String="^&metadatakey;(?=\s|$)" column="0"/> + <!-- Code Block --> + <RegExpr attribute="Code" context="find-code-block-start" String="^&indentedcodeblock;" column="0"/> + </context> + <context name="metadata" attribute="Metadata" lineEndContext="#stay"> + <StringDetect attribute="Metadata" context="#pop!Normal Text" String="---" column="0" endRegion="metadata"/> + <StringDetect attribute="Metadata" context="#pop!Normal Text" String="..." column="0" endRegion="metadata"/> + <RegExpr attribute="Metadata Title" String="^&metadatakey;(?=\s|$)" column="0"/> + </context> + <context name="metadata-mm-value" attribute="Metadata" lineEndContext="#pop!metadata-mm"/> + <context name="metadata-mm" attribute="Metadata" lineEndContext="#stay" lineEmptyContext="#pop!Normal Text" fallthroughContext="#pop!Normal Text"> + <!-- Find Metadata key or value --> + <RegExpr attribute="Metadata Title" context="#pop!metadata-mm-value" String="^&metadatakey;(?=\s|$)" column="0"/> + <RegExpr attribute="Metadata" context="#pop!metadata-mm-value" String="^(?:\s{4}|\t)" column="0"/> </context> - <context attribute="blockquote" lineEndContext="#stay" lineEmptyContext="#pop" name="blockquote"> - <RegExpr attribute="bq-strong" String="&strongregex;"/> - <RegExpr attribute="bq-emphasis" String="&emphasisregex;"/> + <context name="find-code-block-start" attribute="Normal Text" lineEndContext="#stay" lineEmptyContext="#stay" fallthroughContext="#pop!Normal Text"> + <IncludeRules context="find-code-block"/> + </context> + + <!-- Normal Text Document --> + <context name="Normal Text" attribute="Normal Text" lineEndContext="#stay" lineEmptyContext="find-code-block"> + <!-- Header --> + <DetectChar context="find-header" char="#" column="0" lookAhead="true"/> + <RegExpr attribute="Header H1" String="(?:\=\s*){2,}$" firstNonSpace="true"/> + <!-- Highlight code block after line only with spaces or comment --> + <RegExpr attribute="Normal Text" context="find-code-block" String="&emptyline;" column="0"/> + <StringDetect attribute="Comment" context="find-code-block" String="&startcomment;" column="0" lookAhead="true"/> + <!-- Horizontal rules, Blockquotes and Lists. + NOTE: The indentation of the lists is captured. --> + <RegExpr attribute="Horizontal Rule" context="find-code-block" String="^&rulerregex;" column="0"/> + <DetectChar attribute="Blockquote" context="blockquote" char=">" firstNonSpace="true"/> + <RegExpr attribute="List" context="list" String="^(\s*)&listbullet;(\s+)" column="0"/> + <RegExpr attribute="Number List" context="numlist" String="^(\s*)\d\.(\s+)" column="0"/> + <RegExpr attribute="Number List" context="numlist2" String="^(\s*)\d\d+\.(\s+)" column="0"/> + <!-- Find Strong, Emphasis and Strikethrough Text --> + <DetectChar context="find-strong-normal" char="*" lookAhead="true"/> + <DetectChar context="find-emphasis-normal" char="_" lookAhead="true"/> + <RegExpr attribute="Strikethrough Text" minimal="true" String="&strikeoutregex;"/> + <RegExpr attribute="Highlight Text" minimal="true" String="&highlightregex;"/> + <!-- Common --> <IncludeRules context="inc"/> + <RegExpr attribute="Normal Text: Link" String="&implicitlink;"/> + <!-- Table --> + <DetectChar attribute="Table" char="|" context="table" firstNonSpace="true" lookAhead="1"/> + </context> + <!-- Find indented code blocks. These are only allowed after an empty line or on the first line --> + <context name="find-code-block" attribute="Normal Text" lineEndContext="#stay" lineEmptyContext="#stay" fallthroughContext="#pop"> + <RegExpr attribute="Code" String="^&indentedcodeblock;" column="0"/> + <RegExpr attribute="Normal Text" String="&end;" /> + <RegExpr attribute="Comment" context="comment" String="^\s*&startcomment;|\s*&startcomment;(?=.*&endcomment;)" beginRegion="comment"/> + </context> + + <!-- Table in Normal Text Document --> + <context name="table" attribute="Normal Text" lineEndContext="#pop" lineEmptyContext="#pop!find-code-block"> + <IncludeRules context="find-table-element"/> + <IncludeRules context="Normal Text"/> + </context> + + <context name="find-table-element" attribute="Normal Text" lineEndContext="#pop"> + <RegExpr attribute="Table" String="(\|(\s*:?---+:?)?)++"/> + </context> + + <context name="find-header" attribute="Normal Text" lineEndContext="#pop"> + <RegExpr attribute="Header H1" context="#pop!close-H2-region" String="^#\s" column="0" endRegion="H1" beginRegion="H1" lookAhead="true"/> + <RegExpr attribute="Header H2" context="#pop!close-H3-region" String="^##\s" column="0" endRegion="H2" beginRegion="H2" lookAhead="true"/> + <RegExpr attribute="Header H3" context="#pop!close-H4-region" String="^###\s" column="0" endRegion="H3" beginRegion="H3" lookAhead="true"/> + <RegExpr attribute="Header H4" context="#pop!close-H5-region" String="^####\s" column="0" endRegion="H4" beginRegion="H4" lookAhead="true"/> + <RegExpr attribute="Header H5" context="#pop!close-H6-region" String="^#####\s" column="0" endRegion="H5" beginRegion="H5" lookAhead="true"/> + <RegExpr attribute="Header H6" context="#pop" String="^######\s.*" column="0" endRegion="H6" beginRegion="H6"/> + <DetectChar attribute="Normal Text" context="#pop" char="#"/> + </context> + <!-- BUG: 441278 sub-headers should be closed when their parent header is closed (e.g. in h1 h2 h3 h1, h1-h3 should all be closed at the 2nd h1) --> + <!-- TODO: Port to a less hacky version (maybe a new attribute for declaring multiple endRegions) --> + <context name="close-H2-region" attribute="Header H2" lineEndContext="#pop!close-H3-region" fallthroughContext="#pop!close-H3-region"> + <DetectChar attribute="Header H2" context="#pop!close-H3-region" char="#" lookAhead="true" endRegion="H2"/> + </context> + <context name="close-H3-region" attribute="Header H3" lineEndContext="#pop!close-H4-region" fallthroughContext="#pop!close-H4-region"> + <DetectChar attribute="Header H3" context="#pop!close-H4-region" char="#" lookAhead="true" endRegion="H3"/> + </context> + <context name="close-H4-region" attribute="Header H4" lineEndContext="#pop!close-H5-region" fallthroughContext="#pop!close-H5-region"> + <DetectChar attribute="Header H4" context="#pop!close-H5-region" char="#" lookAhead="true" endRegion="H4"/> + </context> + <context name="close-H5-region" attribute="Header H5" lineEndContext="#pop!close-H6-region" fallthroughContext="#pop!close-H6-region"> + <DetectChar attribute="Header H5" context="#pop!close-H6-region" char="#" lookAhead="true" endRegion="H5"/> + </context> + <context name="close-H6-region" attribute="Header H6" lineEndContext="#pop" fallthroughContext="#pop"> + <DetectChar attribute="Header H6" context="#pop!close-sentinel-region" char="#" lookAhead="true" endRegion="H6"/> + </context> + <!-- This sentinel does not close any actual region, it's just here so that the proper attribute/highlighting is applied and --> + <!--to ensure that H6 headers won't be set as the "primary" region that was closed just because it was closed last --> + <context name="close-sentinel-region" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop"> + <RegExpr attribute="Header H1" context="#pop" String="^#\s.*" column="0"/> + <RegExpr attribute="Header H2" context="#pop" String="^##\s.*" column="0"/> + <RegExpr attribute="Header H3" context="#pop" String="^###\s.*" column="0"/> + <RegExpr attribute="Header H4" context="#pop" String="^####\s.*" column="0"/> + <RegExpr attribute="Header H5" context="#pop" String="^#####\s.*" column="0"/> </context> - <context attribute="bullet" lineEndContext="#stay" lineEmptyContext="#pop" name="bullet"> - <RegExpr attribute="bl-strong" String="&strongregex;"/> - <RegExpr attribute="bl-emphasis" String="&emphasisregex;"/> + + + <context name="find-strong-normal" attribute="Normal Text" lineEndContext="#pop"> + <RegExpr attribute="Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_ast_und;|&strongemphasisregex_ast_und2;"/> + <RegExpr attribute="Strong Text" context="#pop" minimal="true" String="&strongregex_ast;"/> + <RegExpr attribute="Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_ast;"/> + <RegExpr attribute="Emphasis Text" context="#pop" minimal="true" String="&emphasisregex_ast;"/> + <DetectChar attribute="Normal Text" context="#pop" char="*"/> + </context> + <context name="find-emphasis-normal" attribute="Normal Text" lineEndContext="#pop"> + <RegExpr attribute="Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_und_ast;|&strongemphasisregex_und_ast2;"/> + <RegExpr attribute="Strong Text" context="#pop" minimal="true" String="&strongregex_und;"/> + <RegExpr attribute="Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_und;"/> + <RegExpr attribute="Emphasis Text" context="#pop" minimal="true" String="&emphasisregex_und;"/> + <DetectChar attribute="Normal Text" context="#pop" char="_"/> + </context> + + <!-- Blockquote --> + <context name="blockquote" attribute="Blockquote: Normal Text" lineEndContext="#stay" lineEmptyContext="#pop"> + <IncludeRules context="default-blockquote-1"/> + <!-- Find code block --> + <RegExpr attribute="Normal Text" context="#pop!find-code-block" String="&emptyline;" column="0"/> + <StringDetect attribute="Comment" context="#pop!find-code-block" String="&startcomment;" column="0" lookAhead="true"/> + <IncludeRules context="default-blockquote-2"/> + <IncludeRules context="find-table-element"/> + </context> + <!-- Blockquote within a list --> + <context name="blockquote-list" attribute="Blockquote: Normal Text" lineEndContext="#stay" lineEmptyContext="#pop"> + <IncludeRules context="default-blockquote-1"/> + <!-- Don't find code block --> + <RegExpr attribute="Normal Text" context="#pop" String="&emptyline;" column="0"/> + <StringDetect attribute="Comment" context="#pop!comment" String="&startcomment;" firstNonSpace="true"/> + <IncludeRules context="default-blockquote-2"/> + </context> + + <context name="default-blockquote-1" attribute="Blockquote: Normal Text" lineEndContext="#stay"> + <DetectChar attribute="Blockquote" char=">" firstNonSpace="true"/> + <!-- End with header, horizontal rule or list/numlist --> + <RegExpr context="#pop" String="^(?:\s*(?:&listbullet;|[\d]+\.)\s|#{1,6}\s|&rulerregex;)" column="0" lookAhead="true"/> + </context> + <context name="default-blockquote-2" attribute="Blockquote: Normal Text" lineEndContext="#stay"> + <!-- Strong, emphasis, strong-emphasis and strikethrough text --> + <AnyChar context="find-strong-emphasis-blockquote" String="*_" lookAhead="true"/> + <RegExpr attribute="Blockquote: Strikethrough Text" minimal="true" String="&strikeoutregex;"/> + <RegExpr attribute="Blockquote: Highlight Text" minimal="true" String="&highlightregex;"/> + <!-- Common --> <IncludeRules context="inc"/> + <RegExpr attribute="Blockquote: Link" String="&implicitlink;"/> + </context> + <context name="find-strong-emphasis-blockquote" attribute="Blockquote: Normal Text" lineEndContext="#pop"> + <RegExpr attribute="Blockquote: Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_ast_und;|&strongemphasisregex_und_ast;|&strongemphasisregex_ast_und2;|&strongemphasisregex_und_ast2;"/> + <RegExpr attribute="Blockquote: Strong Text" context="#pop" minimal="true" String="&strongregex_ast;|&strongregex_und;"/> + <RegExpr attribute="Blockquote: Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_ast;|&strongemphasisregex_und;"/> + <RegExpr attribute="Blockquote: Emphasis Text" context="#pop" minimal="true" String="&emphasisregex_ast;|&emphasisregex_und;"/> + <AnyChar attribute="Blockquote: Normal Text" context="#pop" String="*_"/> </context> - <context attribute="numlist" lineEndContext="#stay" lineEmptyContext="#pop" name="numlist"> - <RegExpr attribute="nl-strong" String="&strongregex;"/> - <RegExpr attribute="nl-emphasis" String="&emphasisregex;"/> + + <!-- List and Numbered List --> + <!-- NOTE: The indentation of the lists is captured. New paragraphs, code blocks, blockquotes or + horizontal rules must have an indentation equal to or greater than the list, to be part of it. --> + <!-- * list --> + <context name="list" attribute="List: Normal Text" lineEndContext="#stay" fallthroughContext="content-list"> + <!-- Find indented code blocks, blockquotes and horizontal rules --> + <RegExpr attribute="Code" String="^%1%2\s&indentedcodeblock;" column="0" dynamic="true"/> + <RegExpr attribute="Blockquote" context="blockquote-list" String="^%1%2\s+>" column="0" dynamic="true"/> + <RegExpr attribute="Horizontal Rule" String="^%1%2\s+&rulerregex;" column="0" dynamic="true"/> + <RegExpr String="&emptyline;" column="0"/> + <!-- Text with the same indentation captured corresponds to the item list --> + <RegExpr context="content-list" String="^%1%2\s" column="0" lookAhead="true" dynamic="true"/> + <!-- Finish when the text has a lower indentation than the list --> + <RegExpr context="#pop" String="^\s*\S" column="0" lookAhead="true"/> + <!-- Highlight checkbox at the start of the item (task list) --> + <RegExpr attribute="List: Checkbox" context="content-list" String="\s*&checkbox;"/> + <!-- Highlight checkbox at the start of the item (task list) --> + <RegExpr attribute="Table" context="content-list-table" String="\s*\|"/> + </context> + <!-- 1. numlist (one digit) --> + <context name="numlist" attribute="List: Normal Text" lineEndContext="#stay" fallthroughContext="content-list"> + <!-- Find indented code blocks, blockquotes and horizontal rules --> + <RegExpr attribute="Code" String="^%1%2\s{2}&indentedcodeblock;" column="0" dynamic="true"/> + <RegExpr attribute="Blockquote" context="blockquote-list" String="^%1%2\s{2,}>" column="0" dynamic="true"/> + <RegExpr attribute="Horizontal Rule" String="^%1%2\s{2,}&rulerregex;" column="0" dynamic="true"/> + <RegExpr String="&emptyline;" column="0"/> + <!-- Text with the same indentation captured --> + <RegExpr context="content-list" String="^%1%2\s{2}" column="0" lookAhead="true" dynamic="true"/> + <!-- Finish when the text has a lower indentation than the list --> + <RegExpr context="#pop" String="^\s*\S" column="0" lookAhead="true"/> + </context> + <!-- 10. numlist (two or more digits) --> + <context name="numlist2" attribute="List: Normal Text" lineEndContext="#stay" fallthroughContext="content-list"> + <!-- Find indented code blocks, blockquotes and horizontal rules --> + <RegExpr attribute="Code" String="^%1%2\s{3}&indentedcodeblock;" column="0" dynamic="true"/> + <RegExpr attribute="Blockquote" context="blockquote-list" String="^%1%2\s{3,}>" column="0" dynamic="true"/> + <RegExpr attribute="Horizontal Rule" String="^%1%2\s{3,}&rulerregex;" column="0" dynamic="true"/> + <RegExpr String="&emptyline;" column="0"/> + <!-- Text with the same indentation captured --> + <RegExpr context="content-list" String="^%1%2\s{3}" column="0" lookAhead="true" dynamic="true"/> + <!-- Finish when the text has a lower indentation than the list --> + <RegExpr context="#pop" String="^\s*\S" column="0" lookAhead="true"/> + </context> + + <!-- NOTE: Empty lines, blockquotes and horizontal rules send to contexts "list", "numlist" or "numlist2" (#pop), + to check the indentation of the text and determine if the content of the list ends. --> + <context name="content-list" attribute="List: Normal Text" lineEndContext="#stay" lineEmptyContext="#pop"> + <RegExpr context="#pop" String="&emptyline;" column="0"/> + <!-- Blockquote and horizontal rule (check indentation) --> + <RegExpr context="#pop" String="^\s*(?:>|&rulerregex;)" column="0" lookAhead="true"/> + <!-- End with header or new list/numlist --> + <RegExpr context="#pop#pop" String="^(?:\s*(?:&listbullet;|[\d]+\.)\s|#{1,6}\s)" column="0" lookAhead="true"/> + <!-- Strong, emphasis, strong-emphasis and strikethrough text --> + <AnyChar context="find-strong-emphasis-list" String="*_" lookAhead="true"/> + <RegExpr attribute="List: Strikethrough Text" minimal="true" String="&strikeoutregex;"/> + <RegExpr attribute="List: Highlight Text" minimal="true" String="&highlightregex;"/> + <!-- Common --> <IncludeRules context="inc"/> + <RegExpr attribute="List: Link" String="&implicitlink;"/> + </context> + <context name="find-strong-emphasis-list" attribute="List: Normal Text" lineEndContext="#pop"> + <RegExpr attribute="List: Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_ast_und;|&strongemphasisregex_und_ast;|&strongemphasisregex_ast_und2;|&strongemphasisregex_und_ast2;"/> + <RegExpr attribute="List: Strong Text" context="#pop" minimal="true" String="&strongregex_ast;|&strongregex_und;"/> + <RegExpr attribute="List: Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_ast;|&strongemphasisregex_und;"/> + <RegExpr attribute="List: Emphasis Text" context="#pop" minimal="true" String="&emphasisregex_ast;|&emphasisregex_und;"/> + <AnyChar attribute="List: Normal Text" context="#pop" String="*_"/> + </context> + + <!-- Table in List --> + <context name="content-list-table" attribute="List: Normal Text" lineEndContext="#stay" lineEmptyContext="#pop"> + <IncludeRules context="find-table-element"/> + <IncludeRules context="content-list"/> + </context> + + <!-- Comments --> + <context name="comment" attribute="Comment" lineEndContext="#stay"> + <StringDetect attribute="Comment" context="#pop" String="&endcomment;" endRegion="comment"/> + <IncludeRules context="##Comments"/> </context> - <context attribute="comment" lineEndContext="#stay" name="comment"> - <RegExpr String="-->" attribute="comment" context="#pop" endRegion="comment"/> + + <!-- Fenced Code Blocks --> + <context name="find-lang-fenced-code" attribute="Normal Text" lineEndContext="#pop"> + <!-- Apply syntax highlighting to fenced code blocks for some languages --> + <RegExpr attribute="Fenced Code" context="#pop!code" String="&fcode;&end;" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!bash-code" String="&fcode;\s*(?:bash(?:rc|_profile|_login|_logout)?|shell|sh|profile|PKGBUILD|APKBUILD|ebuild|eclass|nix)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!zsh-code" String="&fcode;\s*(?:zsh)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!cpp-code" String="&fcode;\s*(?:[ch]pp|[ch]\+\+|[ch]xx|h?cc|hh|cuh?|ino|pde|moc)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!csharp-code" String="&fcode;\s*(?:cs|csharp|c\#)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!cmake-code" String="&fcode;\s*(?:cmake|CMakeLists(?:\.txt)?)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!css-code" String="&fcode;\s*css&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!c-code" String="&fcode;\s*[ch]&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!doxygen-code" String="&fcode;\s*doxygen&end;" insensitive="true" beginRegion="code-block"/> <!-- Block comment of Doxygen --> + <RegExpr attribute="Fenced Code" context="#pop!email-code" String="&fcode;\s*(?:email|emlx?|mbo?x)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!go-code" String="&fcode;\s*go(?:lang)?&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!hamlet-code" String="&fcode;\s*[wxs]?hamlet&end;" insensitive="true" beginRegion="code-block"/> <!-- Included in the Haskell definition --> + <RegExpr attribute="Fenced Code" context="#pop!haskell-code" String="&fcode;\s*(?:haskell|c?hs|hs\-boot)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!html-code" String="&fcode;\s*(?:[sx]?html?|inc|tmpl|tpl)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!java-code" String="&fcode;\s*(?:java|bsh)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!javascript-code" String="&fcode;\s*(?:javascript|m?js|es6|kwinscript|julius)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!jsx-code" String="&fcode;\s*(?:jsx|tsx|(?:java|type)script\-react)&end;" insensitive="true" beginRegion="code-block"/> <!-- Included in the HTML definition. Also apply for TSX. --> + <RegExpr attribute="Fenced Code" context="#pop!json-code" String="&fcode;\s*(?:json5?|gltf)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!yaml-code" String="&fcode;\s*(?:ya?ml)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!matlab-code" String="&fcode;\s*matlab&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!markdown-code" String="&fcode;\s*(?:markdown|m?md)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!mustache-code" String="&fcode;\s*(?:handlebars|hbs|mustache|mst|ractive|hogan|hulk)&end;" insensitive="true" beginRegion="code-block"/> <!-- Included in the HTML definition --> + <RegExpr attribute="Fenced Code" context="#pop!perl-code" String="&fcode;\s*(?:perl|p[lm]|pod|psgi|vcl)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!php-code" String="&fcode;\s*(?:php[3457t]?|wml|phtml?|aw|ctp)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!python-code" String="&fcode;\s*(?:python[23]?|py[23w]?|[rc]py|sconstruct|gypi?)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!qml-code" String="&fcode;\s*qml(?:types)?&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!r-code" String="&fcode;\s*(?:r|rprofile|rscript)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!raku-code" String="&fcode;\s*(?:raku(?:mod|doc|test)?|perl6|p[lm]?6|pod6|nqp)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!rest-code" String="&fcode;\s*(?:rst|rest|restructuredtext)&end;" insensitive="true" beginRegion="code-block"/> <!-- Included in the CMake definition --> + <RegExpr attribute="Fenced Code" context="#pop!ruby-code" String="&fcode;\s*(?:ruby|rbx?|rjs|rake|f?cgi|gemspec|irbrc|ru|prawn|Appraisals|(?:Rake|Cap|Chef|Gem|Guard|Hobo|Vagrant||Rant|Berks|Thor|Puppet)file|rxml|(?:xml|js)\.erb)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!rust-code" String="&fcode;\s*(?:rust|rs)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!mysql-code" String="&fcode;\s*(?:mysql|sql|ddl)&end;" insensitive="true" beginRegion="code-block"/> <!-- Included in the PHP definition --> + <RegExpr attribute="Fenced Code" context="#pop!nim-code" String="&fcode;\s*(?:nims?)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!typescript-code" String="&fcode;\s*(?:typescript|ts)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!xml-code" String="&fcode;\s*(?:xml|xsd|xspf|tld|jsp|c?pt|dtml|rss|opml|svg|daml|rdf|ui|kcfg|qrc|wsdl|scxml|xbel|dae|sch|brd|docbook)&end;" insensitive="true" beginRegion="code-block"/> + <RegExpr attribute="Fenced Code" context="#pop!code" String="&fcode;.*$" beginRegion="code-block"/> + </context> + <context name="code" attribute="Code" lineEndContext="#stay"> <!-- Unknown language --> + <RegExpr attribute="Fenced Code" context="#pop" String="%1[~`]*(?=&end;)" firstNonSpace="true" dynamic="true" endRegion="code-block"/> </context> - <context attribute="code" lineEndContext="#stay" name="bash-code"> - <WordDetect attribute="code" context="#pop" String="```"/> + <context attribute="Normal Text" lineEndContext="#stay" name="bash-code" fallthroughContext="Command##Bash"> + <IncludeRules context="code"/> <IncludeRules context="##Bash" includeAttrib="true"/> </context> - <context attribute="code" lineEndContext="#stay" name="cmake-code"> - <WordDetect attribute="code" context="#pop" String="```"/> + <context attribute="Normal Text" lineEndContext="#stay" name="zsh-code" fallthroughContext="Command##Zsh"> + <IncludeRules context="code"/> + <IncludeRules context="##Zsh" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cmake-code"> + <IncludeRules context="code"/> <IncludeRules context="##CMake" includeAttrib="true"/> </context> - <context attribute="code" lineEndContext="#stay" name="cpp-code"> - <WordDetect attribute="code" context="#pop" String="```"/> + <context attribute="Normal Text" lineEndContext="#stay" name="c-code"> + <IncludeRules context="code"/> + <IncludeRules context="##C" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="cpp-code"> + <IncludeRules context="code"/> <IncludeRules context="##C++" includeAttrib="true"/> </context> - <context attribute="code" lineEndContext="#stay" name="css-code"> - <WordDetect attribute="code" context="#pop" String="```"/> + <context attribute="Normal Text" lineEndContext="#stay" name="csharp-code"> + <IncludeRules context="code"/> + <IncludeRules context="##C#" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="css-code"> + <IncludeRules context="code"/> <IncludeRules context="##CSS" includeAttrib="true"/> </context> - <context attribute="code" lineEndContext="#stay" name="email-code"> - <WordDetect attribute="code" context="#pop" String="```"/> + <context attribute="Normal Text" lineEndContext="#stay" name="doxygen-code"> + <IncludeRules context="code"/> + <IncludeRules context="BlockComment##Doxygen" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="email-code"> + <IncludeRules context="code"/> <IncludeRules context="##Email" includeAttrib="true"/> </context> - <context attribute="code" lineEndContext="#stay" name="haskell-code"> - <WordDetect attribute="code" context="#pop" String="```"/> + <context attribute="Normal Text" lineEndContext="#stay" name="go-code"> + <IncludeRules context="code"/> + <IncludeRules context="##Go" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="hamlet-code"> + <IncludeRules context="code"/> + <IncludeRules context="##Hamlet" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="haskell-code"> + <IncludeRules context="code"/> <IncludeRules context="##Haskell" includeAttrib="true"/> </context> - <context attribute="code" lineEndContext="#stay" name="html-code"> - <WordDetect attribute="code" context="#pop" String="```"/> + <context attribute="Normal Text" lineEndContext="#stay" name="html-code"> + <IncludeRules context="code"/> <IncludeRules context="##HTML" includeAttrib="true"/> </context> - <context attribute="code" lineEndContext="#stay" name="json-code"> - <WordDetect attribute="code" context="#pop" String="```"/> + <context attribute="Normal Text" lineEndContext="#stay" name="java-code"> + <IncludeRules context="code"/> + <IncludeRules context="##Java" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="javascript-code"> + <IncludeRules context="code"/> + <IncludeRules context="Normal##JavaScript" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="jsx-code"> + <IncludeRules context="code"/> + <IncludeRules context="Normal##JavaScript React (JSX)" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="json-code"> + <IncludeRules context="code"/> <IncludeRules context="##JSON" includeAttrib="true"/> </context> - <context attribute="code" lineEndContext="#stay" name="php-code"> - <WordDetect attribute="code" context="#pop" String="```"/> + <context attribute="Normal Text" lineEndContext="#stay" name="yaml-code"> + <IncludeRules context="code"/> + <IncludeRules context="##YAML" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" lineEmptyContext="find-code-block" name="markdown-code"> + <IncludeRules context="code"/> + <IncludeRules context="Normal Text"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="matlab-code"> + <IncludeRules context="code"/> + <IncludeRules context="##Matlab" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="mustache-code"> + <IncludeRules context="code"/> + <IncludeRules context="##Mustache/Handlebars (HTML)" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="perl-code"> + <IncludeRules context="code"/> + <IncludeRules context="##Perl" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="php-code"> + <IncludeRules context="code"/> <IncludeRules context="phpsource##PHP/PHP" includeAttrib="true"/> </context> - <context attribute="code" lineEndContext="#stay" name="python-code"> - <WordDetect attribute="code" context="#pop" String="```"/> + <context attribute="Normal Text" lineEndContext="#stay" name="python-code"> + <IncludeRules context="code"/> <IncludeRules context="##Python" includeAttrib="true"/> </context> - <context attribute="code" lineEndContext="#stay" name="qml-code"> - <WordDetect attribute="code" context="#pop" String="```"/> - <IncludeRules context="##QML" includeAttrib="true"/> + <context attribute="Normal Text" lineEndContext="#stay" name="qml-code"> + <IncludeRules context="code"/> + <IncludeRules context="Normal##QML" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="r-code"> + <IncludeRules context="code"/> + <IncludeRules context="##R Script" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="raku-code" fallthroughContext="term##Raku"> + <IncludeRules context="code"/> + <IncludeRules context="base##Raku" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="rest-code"> + <IncludeRules context="code"/> + <IncludeRules context="##reStructuredText" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="ruby-code"> + <IncludeRules context="code"/> + <IncludeRules context="##Ruby" includeAttrib="true"/> </context> - <context attribute="code" lineEndContext="#stay" name="rust-code"> - <WordDetect attribute="code" context="#pop" String="```"/> + <context attribute="Normal Text" lineEndContext="#stay" name="rust-code"> + <IncludeRules context="code"/> <IncludeRules context="##Rust" includeAttrib="true"/> </context> - <context attribute="code" lineEndContext="#stay" name="xml-code"> - <WordDetect attribute="code" context="#pop" String="```"/> + <context attribute="Normal Text" lineEndContext="#stay" name="mysql-code"> + <IncludeRules context="code"/> + <IncludeRules context="##SQL (MySQL)" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="nim-code"> + <IncludeRules context="code"/> + <IncludeRules context="##Nim" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="typescript-code"> + <IncludeRules context="code"/> + <IncludeRules context="Normal##TypeScript" includeAttrib="true"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="xml-code"> + <IncludeRules context="code"/> <IncludeRules context="##XML" includeAttrib="true"/> </context> - <context attribute="code" lineEndContext="#stay" name="code"> - <WordDetect attribute="code" context="#pop" String="```"/> - </context> - <context attribute="common" name="inc" lineEndContext="#stay"> - <RegExpr attribute="code" String="`[^`]+`"/> - <RegExpr context="comment" String="<!--" beginRegion="comment"/> - <RegExpr attribute="reflink" String="&reflinkregex;"/> - <RegExpr attribute="footnote" String="&footnoteregex;"/> - <RegExpr attribute="inlinelink" String="&inlinelinkregex;"/> - <RegExpr attribute="reflinktarget" String="&reflinktargetregex;"/> - <RegExpr attribute="inlineimage" String="&inlineimageregex;"/> - <RegExpr attribute="refimage" String="&refimageregex;"/> - <RegExpr attribute="autolink" String="&autolinkregex;"/> - <RegExpr attribute="mailtolink" String="&mailtolinkregex;"/> - <RegExpr attribute="strikeout" minimal="true" String="&strikeoutregex;"/> - <RegExpr attribute="linebreak" minimal="true" String="&linebreakregex;"/> - <WordDetect attribute="code" context="bash-code" String="```bash"/> - <WordDetect attribute="code" context="cmake-code" String="```cmake"/> - <WordDetect attribute="code" context="cpp-code" String="```cpp"/> - <WordDetect attribute="code" context="css-code" String="```css"/> - <WordDetect attribute="code" context="email-code" String="```email"/> - <WordDetect attribute="code" context="haskell-code" String="```haskell"/> - <WordDetect attribute="code" context="html-code" String="```html"/> - <WordDetect attribute="code" context="json-code" String="```json"/> - <WordDetect attribute="code" context="php-code" String="```php"/> - <WordDetect attribute="code" context="python-code" String="```python"/> - <WordDetect attribute="code" context="qml-code" String="```qml"/> - <WordDetect attribute="code" context="rust-code" String="```rust"/> - <WordDetect attribute="code" context="xml-code" String="```xml"/> - <StringDetect attribute="code" context="code" String="```"/> + + <!-- Common --> + <context name="inc" attribute="Normal Text" lineEndContext="#stay"> + <!-- Code --> + <RegExpr attribute="Code" String="`[^`]+`(?!`)|`{2}[^`](?:.*?[^`])?`{2}(?!`)|`{3}[^`](?:.*?[^`])?`{3}(?!`)|`{4}[^`](?:.*?[^`])?`{4}(?!`)|`{5,}[^`](?:.*?[^`])?`{5,}"/> + <!-- Find Fenced Code Block --> + <RegExpr attribute="Fenced Code" context="find-lang-fenced-code" String="`{3,}(?=[^`]*$)|~{3,}(?=[^~]*$)" firstNonSpace="true" lookAhead="true"/> + <!-- Comment --> + <StringDetect attribute="Comment" context="comment" String="&startcomment;" beginRegion="comment"/> + <!-- Links and References --> + <RegExpr attribute="Reference-Link Target" context="reflinktarget" String="&reflinktargetregex;" firstNonSpace="true"/> + <RegExpr attribute="Footnote" String="&footnoteregex;"/> + <RegExpr attribute="Reference-Link" context="find-reflink" String="&reflinkregex;"/> + <RegExpr attribute="Inline Image" context="inlineimage" String="&inlineimageregex;"/> + <RegExpr attribute="Reference Image" String="&refimageregex;"/> + <RegExpr attribute="Auto-Link" context="autolink" String="&autolinkregex;" lookAhead="true"/> + <RegExpr attribute="Mailto-Link" context="mailtolink" String="&mailtolinkregex;"/> + <!-- Emoji --> + <RegExpr attribute="Emoji" String="&emojiregex;"/> + <!-- Line Break --> + <RegExpr attribute="Line Break" minimal="true" String="&linebreakregex;"/> + <!-- Backslash Escapes --> + <Detect2Chars attribute="Backslash Escape" char="\" char1="\"/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="`"/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="*"/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="_"/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="{"/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="}"/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="["/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="]"/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="("/> + <Detect2Chars attribute="Backslash Escape" char="\" char1=")"/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="#"/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="+"/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="-"/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="."/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="!"/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="|"/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="<"/> + <Detect2Chars attribute="Backslash Escape" char="\" char1=">"/> + <Detect2Chars attribute="Backslash Escape" char="\" char1="&"/> + <!-- Inline HTML --> + <RegExpr attribute="EntityRef" String="&(?:#[0-9]+|#[xX][0-9A-Fa-f]+|&htmlname;);"/> + <RegExpr context="find-html-block" String="</?&htmlname;(?:[\s>]|/>|$)" lookAhead="true"/> + </context> + <context name="find-html-block" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop"> + <IncludeRules context="FindElements##HTML"/> + </context> + + <!-- Links and email: <https://example.com>, <example@kde.org> --> + <context name="autolink" attribute="Auto-Link" lineEndContext="#pop" fallthroughContext="#pop"> + <DetectChar attribute="Auto-Link" char="<"/> + <DetectChar attribute="Auto-Link" context="#pop" char=">"/> + <RegExpr attribute="Link" String="&startlink;[^">\s]+"/> + </context> + <context name="mailtolink" attribute="Email" lineEndContext="#pop"> + <DetectChar attribute="Mailto-Link" context="#pop" char=">"/> + </context> + + <!-- References: [example][id], [example](http://example.com) --> + <context name="find-reflink" attribute="Reference-Link Name" lineEndContext="#pop"> + <Detect2Chars attribute="Reference-Link Name" char="\" char1="]"/> + <RegExpr attribute="Reference-Link" context="#pop!find-reflink-id" String="\](?=&reflinkidregex;)"/> <!-- Find id --> + <DetectChar attribute="Reference-Link" context="#pop" char="]"/> + <!-- Image as link or reference --> + <RegExpr attribute="Inline Image" context="inlineimage" String="&startinlineimage;(?=&endinlineimage;&refchar;*\])"/> + <RegExpr attribute="Reference Image" String="&refimageregex;(?=&refchar;*\])"/> + <RegExpr attribute="Reference-Link Name" context="#stay" String="(?:\[(?:\\.|[^\[\]\\])*\](?:\\.|[^\[\]\\])*)+(?=\])" minimal="true"/> + </context> + <context name="find-reflink-id" attribute="Reference-Link" lineEndContext="#pop"> + <DetectSpaces /> + <!-- Ref.: [an example][id] "Optional title" --> + <DetectChar attribute="Reference-Link" context="#pop!reflink-id" char="["/> + <!-- Inline Ref.: [an example](http://example.com/ "Title") --> + <DetectChar attribute="Reference-Link" context="#pop!reflink-inline-id" char="("/> + </context> + <context name="reflink-inline-id" attribute="Reference-Link" lineEndContext="#pop"> + <Detect2Chars attribute="Reference-Link" char="\" char1=")"/> + <DetectChar attribute="Reference-Link" context="#pop" char=")"/> + <RegExpr attribute="Reference-Link: Link" String="\b&startlink;(?:\\.|[^">\s\)\\])+"/> + <RegExpr attribute="Reference-Link: Email" String="\b&email;\b"/> + </context> + <context name="reflink-id" attribute="Reference-Link ID" lineEndContext="#pop"> + <Detect2Chars attribute="Reference-Link ID" char="\" char1="]"/> + <DetectChar attribute="Reference-Link" context="#pop!reflink-title" char="]"/> + <RegExpr attribute="Reference-Link: Link" String="\b&startlink;(?:\\.|[^">\s\]\\])+"/> + </context> + <!-- [an example][id] "title" --> + <context name="reflink-title" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop"> + <RegExpr attribute="Reference-Link" context="#pop" String="\s+"(?:\\.|[^"\\])*""/> + </context> + + <!-- Target Ref.: [foo]: http://example.com/ "Optional Title Here" --> + <context name="reflinktarget" attribute="Reference-Link Target" lineEndContext="#pop" fallthroughContext="#pop"> + <RegExpr attribute="Reference-Link Target: Link" context="#pop!reflinktarget-title" String="\s*&link;(?=\s|$)"/> + <RegExpr attribute="Reference-Link Target" context="#pop!reflinktarget-link" String="\s*<(?=&link;>(?:\s|$))"/> + <RegExpr attribute="Reference-Link Target" context="#pop!reflinktarget-title" String="\s*#[\w\.\:\-]+\b"/> + </context> + <context name="reflinktarget-link" attribute="Reference-Link Target" lineEndContext="#pop" fallthroughContext="#pop"> + <DetectChar attribute="Reference-Link Target" context="#pop!reflinktarget-title" char=">"/> + <RegExpr attribute="Reference-Link Target: Link" String="&link;"/> + </context> + <context name="reflinktarget-title" attribute="Reference-Link Target" lineEndContext="#pop" fallthroughContext="#pop"> + <DetectSpaces attribute="Reference-Link Target"/> + <RegExpr attribute="Reference-Link Target" context="#pop" String=""(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^\)\\])*\)"/> + </context> + + <!-- Image --> + <context name="inlineimage" attribute="Inline Image" lineEndContext="#pop"> + <DetectChar attribute="Inline Image" context="#pop" char=")"/> + <Detect2Chars attribute="Inline Image" char="\" char1=")"/> + <RegExpr attribute="Inline Image: Link" String="\b&startlink;(?:\\.|[^">\s\)\\])+"/> </context> </contexts> <itemDatas> <itemData name="Normal Text" defStyleNum="dsNormal"/> - <itemData name="common" defStyleNum="dsNormal"/> - <itemData name="strongemphasis" defStyleNum="dsNormal" italic="true" bold="true"/> - <itemData name="emphasis" defStyleNum="dsNormal" italic="true"/> - <itemData name="strong" defStyleNum="dsNormal" bold="true"/> - <itemData name="ruler" defStyleNum="dsNormal" bold="true"/> - <itemData name="strikeout" defStyleNum="dsNormal" strikeOut="true"/> - <itemData name="linebreak" defStyleNum="dsNormal" underline="true" color="#999999"/> - <itemData name="h1" defStyleNum="dsFunction" bold="true"/> - <itemData name="h2" defStyleNum="dsFunction" bold="true"/> - <itemData name="h3" defStyleNum="dsFunction" bold="true"/> - <itemData name="h4" defStyleNum="dsFunction" bold="true"/> - <itemData name="h5" defStyleNum="dsFunction" bold="true"/> - <itemData name="h6" defStyleNum="dsFunction" bold="true"/> - <itemData name="blockquote" defStyleNum="dsDataType"/> - <itemData name="bq-emphasis" defStyleNum="dsDataType" italic="true"/> - <itemData name="bq-strong" defStyleNum="dsDataType" bold="true"/> - <itemData name="bullet" defStyleNum="dsString"/> - <itemData name="bl-emphasis" defStyleNum="dsString" italic="true"/> - <itemData name="bl-strong" defStyleNum="dsString" bold="true"/> - <itemData name="numlist" defStyleNum="dsString"/> - <itemData name="nl-emphasis" defStyleNum="dsString" italic="true"/> - <itemData name="nl-strong" defStyleNum="dsString" bold="true"/> - <itemData name="comment" defStyleNum="dsComment"/> - <itemData name="code" defStyleNum="dsBaseN"/> - <itemData name="reflink" defStyleNum="dsOthers" underline="true"/> - <itemData name="inlinelink" defStyleNum="dsOthers" underline="true"/> - <itemData name="autolink" defStyleNum="dsOthers" underline="true"/> - <itemData name="mailtolink" defStyleNum="dsOthers" underline="true"/> - <itemData name="footnote" defStyleNum="dsOthers" italic="true"/> - <itemData name="meta" defStyleNum="dsComment"/> - <itemData name="reflinktarget" defStyleNum="dsOthers" italic="false" bold="false"/> - <itemData name="inlineimage" defStyleNum="dsAlert" italic="false" bold="false"/> - <itemData name="refimage" defStyleNum="dsAlert" italic="false" bold="false"/> + <itemData name="Emphasis Text" defStyleNum="dsNormal" italic="true"/> + <itemData name="Strong Text" defStyleNum="dsNormal" bold="true"/> + <itemData name="Strong-Emphasis Text" defStyleNum="dsNormal" italic="true" bold="true"/> + <itemData name="Strikethrough Text" defStyleNum="dsNormal" strikeOut="true"/> + <itemData name="Highlight Text" defStyleNum="dsAlert"/> + <itemData name="Normal Text: Link" defStyleNum="dsNormal" underline="true" spellChecking="false"/> + <itemData name="Horizontal Rule" defStyleNum="dsNormal" bold="true" spellChecking="false"/> + <itemData name="Line Break" defStyleNum="dsNormal" underline="true" color="#999999" spellChecking="false"/> + <itemData name="Header H1" defStyleNum="dsFunction" bold="true"/> + <itemData name="Header H2" defStyleNum="dsFunction" bold="true"/> + <itemData name="Header H3" defStyleNum="dsFunction" bold="true"/> + <itemData name="Header H4" defStyleNum="dsFunction" bold="true"/> + <itemData name="Header H5" defStyleNum="dsFunction" bold="true"/> + <itemData name="Header H6" defStyleNum="dsFunction" bold="true"/> + <itemData name="Blockquote" defStyleNum="dsAttribute" spellChecking="false"/> + <itemData name="Blockquote: Normal Text" defStyleNum="dsAttribute"/> + <itemData name="Blockquote: Emphasis Text" defStyleNum="dsAttribute" italic="true"/> + <itemData name="Blockquote: Strong Text" defStyleNum="dsAttribute" bold="true"/> + <itemData name="Blockquote: Strong-Emphasis Text" defStyleNum="dsAttribute" italic="true" bold="true"/> + <itemData name="Blockquote: Strikethrough Text" defStyleNum="dsAttribute" strikeOut="true"/> + <itemData name="Blockquote: Highlight Text" defStyleNum="dsAlert"/> + <itemData name="Blockquote: Link" defStyleNum="dsAttribute" underline="true" spellChecking="false"/> + <itemData name="List" defStyleNum="dsSpecialString" bold="1" spellChecking="false"/> + <itemData name="Number List" defStyleNum="dsSpecialString" spellChecking="false"/> + <itemData name="List: Normal Text" defStyleNum="dsNormal"/> + <itemData name="List: Emphasis Text" defStyleNum="dsNormal" italic="true"/> + <itemData name="List: Strong Text" defStyleNum="dsNormal" bold="true"/> + <itemData name="List: Strong-Emphasis Text" defStyleNum="dsNormal" italic="true" bold="true"/> + <itemData name="List: Strikethrough Text" defStyleNum="dsNormal" strikeOut="true"/> + <itemData name="List: Highlight Text" defStyleNum="dsAlert"/> + <itemData name="List: Link" defStyleNum="dsNormal" underline="true" spellChecking="false"/> + <itemData name="List: Checkbox" defStyleNum="dsVariable" spellChecking="false"/> + <itemData name="Comment" defStyleNum="dsComment"/> + <itemData name="Code" defStyleNum="dsInformation"/> + <itemData name="Fenced Code" defStyleNum="dsInformation" spellChecking="false"/> + <itemData name="Table" defStyleNum="dsPreprocessor"/> + <itemData name="Emoji" defStyleNum="dsSpecialChar" spellChecking="false"/> + <itemData name="Auto-Link" defStyleNum="dsOthers" spellChecking="false"/> + <itemData name="Link" defStyleNum="dsOthers" underline="true" spellChecking="false"/> + <itemData name="Mailto-Link" defStyleNum="dsOthers" spellChecking="false"/> + <itemData name="Email" defStyleNum="dsOthers" italic="true" underline="true" spellChecking="false"/> + <itemData name="Footnote" defStyleNum="dsOthers" italic="true"/> + <itemData name="Reference-Link" defStyleNum="dsComment" italic="false"/> + <itemData name="Reference-Link Name" defStyleNum="dsOthers" underline="true" italic="false"/> + <itemData name="Reference-Link ID" defStyleNum="dsComment" italic="false"/> + <itemData name="Reference-Link: Link" defStyleNum="dsComment" underline="true" italic="false" spellChecking="false"/> + <itemData name="Reference-Link: Email" defStyleNum="dsComment" italic="true" underline="true" spellChecking="false"/> + <itemData name="Reference-Link Target" defStyleNum="dsOthers" italic="false" bold="false"/> + <itemData name="Reference-Link Target: Link" defStyleNum="dsOthers" underline="true" spellChecking="false"/> + <itemData name="Inline Image" defStyleNum="dsAlert" italic="false" bold="false"/> + <itemData name="Reference Image" defStyleNum="dsAlert" italic="false" bold="false"/> + <itemData name="Inline Image: Link" defStyleNum="dsAlert" italic="false" bold="false" underline="true"/> + <itemData name="Metadata Title" defStyleNum="dsAnnotation"/> + <itemData name="Metadata" defStyleNum="dsComment" italic="0"/> + <itemData name="Backslash Escape" defStyleNum="dsSpecialChar" spellChecking="false"/> + <itemData name="EntityRef" defStyleNum="dsDecVal" spellChecking="false"/> </itemDatas> </highlighting> <general> + <keywords additionalDeliminator="`"/> <comments> - <comment name="multiLine" start="<!--" end="-->" region="comment"/> + <comment name="multiLine" start="&startcomment;" end="&endcomment;" region="comment"/> </comments> </general> </language> +<!-- kate: replace-tabs on; indent-width 2; tab-width 2; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/modelines.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/modelines.xml index 0f3c882b6c..855bca4802 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/modelines.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/modelines.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd" +<!DOCTYPE language [ <!ENTITY space " "> <!ENTITY end ";"> @@ -8,7 +8,7 @@ Copyright (c) 2012-2014 by Alex Turbov (i.zaufi@gmail.com) --> <language name="Modelines" - version="4" + version="6" kateversion="5.0" section="Other" extensions="" @@ -127,50 +127,44 @@ </list> <contexts> - <context name="Normal" attribute="Comment" lineEndContext="#pop"> - <DetectSpaces /> + <context name="Normal" attribute="Comment" lineEndContext="#stay"> <keyword String="ModelineStartKeyword" context="Modeline" attribute="Keyword" /> - <RegExpr String="kate-(mimetype|wildcard)\(.*\):" context="Modeline" attribute="Keyword" /> + <RegExpr String="\bkate-(?:mimetype|wildcard)\(.*\):" context="Modeline" attribute="Keyword" /> </context> - <context name="Modeline" attribute="Comment" lineEndContext="#pop"> + <context name="Modeline" attribute="Comment" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> <DetectSpaces /> <keyword String="Booleans" context="Booleans" attribute="Variable" /> <keyword String="Integrals" context="Integrals" attribute="Variable" /> <keyword String="Strings" context="Strings" attribute="Variable" /> <keyword String="RemoveSpaces" context="RemoveSpaces" attribute="Variable" /> - <LineContinue context="#pop" /> </context> - <context name="Booleans" attribute="Comment" lineEndContext="#pop"> + <context name="Booleans" attribute="Comment" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> <DetectSpaces /> <keyword String="True" attribute="Option ON" context="#stay" /> <keyword String="False" attribute="Option OFF" context="#stay" /> <DetectChar char="&end;" context="#pop" attribute="Variable" /> - <LineContinue context="#pop" /> </context> - <context name="Integrals" attribute="Comment" lineEndContext="#pop"> + <context name="Integrals" attribute="Comment" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> <DetectSpaces /> <Int attribute="Number" context="#stay" /> <DetectChar char="&end;" context="#pop" attribute="Variable" /> - <LineContinue context="#pop" /> </context> <context name="Strings" attribute="String" lineEndContext="#pop"> <DetectSpaces /> <RegExpr String="[^&end;&space;]" context="#stay" /> <DetectChar char="&end;" context="#pop" attribute="Variable" /> - <LineContinue context="#pop" /> </context> - <context name="RemoveSpaces" attribute="Comment" lineEndContext="#pop"> + <context name="RemoveSpaces" attribute="Comment" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> <DetectSpaces /> <keyword String="RemoveSpacesOptions" attribute="Value" context="#pop!RemoveSpacesEnd" /> <DetectChar char="&end;" context="#pop" attribute="Variable" /> - <LineContinue context="#pop" /> </context> - <context name="RemoveSpacesEnd" attribute="Comment" lineEndContext="#pop"> + <context name="RemoveSpacesEnd" attribute="Comment" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> <DetectChar char="&end;" context="#pop" attribute="Variable" /> </context> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/perl.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/perl.xml index 0d1931649c..ed843a7d46 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/perl.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/perl.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd"> +<!DOCTYPE language> <!-- This file is part of the KDE project Copyright (C) 2001, 2002, 2003, 2004 Anders Lund <anders@alweb.dk> @@ -39,7 +39,7 @@ Enhance tr/// and y/// support. --> -<language name="Perl" version="8" kateversion="2.4" section="Scripts" extensions="*.pl;*.PL;*.pm;*.pl6;*.PL6;*.p6;*.pm6;" mimetype="application/x-perl;text/x-perl" priority="5" author="Anders Lund (anders@alweb.dk)" license="LGPLv2"> +<language name="Perl" version="19" kateversion="5.0" section="Scripts" extensions="*.pl;*.PL;*.pm" mimetype="application/x-perl;text/x-perl" priority="5" author="Anders Lund (anders@alweb.dk)" license="LGPLv2"> <highlighting> <list name="keywords"> <item>if</item> @@ -92,7 +92,7 @@ <item>+</item> <item>-</item> <item>*</item> - <!-- <item>/</item>//--> + <!-- <item>/</item>//--> <item>%</item> <item>||</item> <item>//</item> @@ -252,6 +252,7 @@ <item>rewinddir</item> <item>rindex</item> <item>rmdir</item> + <item>say</item> <item>scalar</item> <item>seek</item> <item>seekdir</item> @@ -338,7 +339,7 @@ </list> <contexts> <context name="normal" attribute="Normal Text" lineEndContext="#stay"> - <RegExpr attribute="Keyword" context="#stay" String="^#!\/.*" /> + <RegExpr attribute="Keyword" context="#stay" String="^#!\/.*" column="0" /> <StringDetect attribute="Keyword" context="data_handle" String="__DATA__" firstNonSpace="true" /> <StringDetect attribute="Keyword" context="#stay" String="__END__" firstNonSpace="true"/> <RegExpr attribute="Keyword" context="sub_name_def" String="\bsub\s+" /> @@ -346,7 +347,7 @@ <keyword attribute="Operator" context="#stay" String="operators" /> <keyword attribute="Function" context="#stay" String="functions" /> <keyword attribute="Pragma" context="#stay" String="pragmas" /> - <RegExpr attribute="Pod" context="pod" String="\=\w+(\s|$)" column="0" beginRegion="POD"/> + <RegExpr attribute="Pod" context="pod" String="^\=\w+(\s|$)" column="0" beginRegion="POD"/> <DetectSpaces /> <DetectChar attribute="Comment" context="comment" char="#" /> @@ -383,8 +384,7 @@ <RegExpr attribute="Operator" context="find_pattern" String="\b(?:m|qr)(?=\s*[^\w\s\]})])" /> - <RegExpr attribute="Normal Text" context="#stay" String="[\w_]+\s*//?\=?" /> - <RegExpr attribute="Normal Text" context="#stay" String="[<>"':]//?\=?" /> + <RegExpr attribute="Normal Text" context="#stay" String="[\w_]+\s*//?\=?|[<>"':]//?\=?" /> <!-- Avoid conflicts between operators / and // --> <StringDetect attribute="Normal Text" context="#stay" String="//=" /> <Detect2Chars attribute="Normal Text" context="#stay" char="/" char1="/" /> @@ -420,22 +420,15 @@ <DetectChar attribute="Operator" context="quote_word_paren" char="(" beginRegion="Wordlist" /> <DetectChar attribute="Operator" context="quote_word_brace" char="{" beginRegion="Wordlist" /> <DetectChar attribute="Operator" context="quote_word_bracket" char="[" beginRegion="Wordlist" /> - <RegExpr attribute="Operator" context="quote_word" String="([^a-zA-Z0-9_\s[\]{}()])" beginRegion="Wordlist" /> + <DetectChar attribute="Operator" context="quote_word_angular" char="<" beginRegion="Wordlist" /> + <RegExpr attribute="Operator" context="quote_word" String="([^a-zA-Z0-9_\s[\]{}()\<>])" beginRegion="Wordlist" /> <RegExpr attribute="Comment" context="#stay" String="\s+#.*" /><!-- q[qwx] # == comment, look for the delim on the next line --> </context> <!-- ====== Contexts for strings ===== --> <context name="ipstring_internal" attribute="String (interpolated)" lineEndContext="#stay"> <DetectIdentifier /> - <RegExpr attribute="String Special Character" context="#stay" String="\\c[^\s\\]" /> - <RegExpr attribute="String Special Character" context="#stay" String="\\g(\{(\w+|\-\d+)\}|\d+)" /> - <RegExpr attribute="String Special Character" context="#stay" String="\\k(\{\w+\}|<\w+>|'\w+')" /> - <RegExpr attribute="String Special Character" context="#stay" String="\\N\{[^\{\}]*\}" /> - <RegExpr attribute="String Special Character" context="#stay" String="\\o\{[0-7]+\}" /> - <RegExpr attribute="String Special Character" context="#stay" String="\\[pP](\{\w+\}|P)" /> - <RegExpr attribute="String Special Character" context="#stay" String="\\x([0-9a-fA-F]{2}|\{[0-9a-fA-F]+\})" /> - <RegExpr attribute="String Special Character" context="#stay" String="\\[0-7]{3}" /> - <RegExpr attribute="String Special Character" context="#stay" String="\\[1aAbBdDeEfFGhHKlLnNQrRsStuUvVwWXzZ]" /> + <RegExpr attribute="String Special Character" context="#stay" String="\\c[^\s\\]|\\g(\{(\w+|\-\d+)\}|\d+)|\\k(\{\w+\}|<\w+>|'\w+')|\\N\{[^\{\}]*\}|\\o\{[0-7]+\}|\\[pP](\{\w+\}|P)|\\x([0-9a-fA-F]{2}|\{[0-9a-fA-F]+\})|\\[0-7]{3}|\\[1aAbBdDeEfFGhHKlLnNQrRsStuUvVwWXzZ]" /> <RegExpr attribute="String (interpolated)" context="#stay" String="\\." /> <RegExpr attribute="Normal Text" context="find_variable_unsafe" String="(?:[\$@]\S|%([\w\{\-\+!]|\^H))" lookAhead="true" /> </context> @@ -464,7 +457,7 @@ <IncludeRules context="ipstring_internal" /> </context> <context name="ip_string_6" attribute="String (interpolated)" lineEndContext="#stay" dynamic="true"> - <RegExpr attribute="String (interpolated)" context="#stay" String="\%1" dynamic="true" /> + <StringDetect attribute="String (interpolated)" context="#stay" String="\%1" dynamic="true" /> <DetectChar attribute="Operator" context="#pop#pop#pop" char="1" dynamic="true" endRegion="String"/> <IncludeRules context="ipstring_internal" /> </context> @@ -507,7 +500,7 @@ <context name="string_6" attribute="String" lineEndContext="#stay" dynamic="true"> <DetectIdentifier /> <Detect2Chars attribute="String Special Character" context="#stay" char="\" char1="\" /> - <RegExpr attribute="String Special Character" context="#stay" String="\%1" dynamic="true"/> + <StringDetect attribute="String Special Character" context="#stay" String="\%1" dynamic="true"/> <DetectChar attribute="Operator" context="#pop#pop" char="1" dynamic="true" endRegion="String" /> </context> @@ -533,7 +526,7 @@ <DetectChar attribute="Pattern" context="subst_curlybrace_pattern_recursive" char="{" /> </context> <context name="subst_curlybrace_middle" attribute="Normal Text" lineEndContext="#stay" > - <RegExpr attribute="Comment" context="#stay" String="#.*$" /> + <DetectChar attribute="Comment" context="comment" char="#" /> <DetectChar attribute="Operator" context="subst_curlybrace_replace" char="{" beginRegion="Replacement" /> </context> <context name="subst_curlybrace_replace" attribute="String (interpolated)" lineEndContext="#stay"> @@ -551,8 +544,12 @@ <IncludeRules context="subst_curlybrace_pattern" /> </context> + <context name="subst_maybe_comment" attribute="Pattern" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> + <DetectChar attribute="Comment" context="#pop!comment" char="#" /> + </context> + <context name="subst_paren_pattern" attribute="Pattern" lineEndContext="#stay"> - <RegExpr attribute="Comment" context="#stay" String="\s+#.*$" /> + <DetectSpaces attribute="Pattern" context="subst_maybe_comment" /> <DetectChar attribute="Operator" context="subst_paren_replace" char=")" endRegion="Pattern" /> <!-- Round brackets of RegExp pattern inside --> <DetectChar attribute="Pattern Internal Operator" context="subst_paren_pattern_internal_recursive" char="(" /> @@ -569,7 +566,7 @@ </context> <context name="subst_bracket_pattern" attribute="Pattern" lineEndContext="#stay"> - <RegExpr attribute="Comment" context="#stay" String="\s+#.*$" /> + <DetectSpaces attribute="Pattern" context="subst_maybe_comment" /> <IncludeRules context="regex_pattern_internal_ip" /> <DetectChar attribute="Operator" context="subst_bracket_replace" char="]" endRegion="Pattern" /> </context> @@ -591,7 +588,7 @@ </context> <context name="subst_sq_pattern" attribute="Pattern" lineEndContext="#stay"> - <RegExpr attribute="Comment" context="#stay" String="\s+#.*$" /> + <DetectSpaces attribute="Pattern" context="subst_maybe_comment" /> <IncludeRules context="regex_pattern_internal" /> <DetectChar attribute="Operator" context="subst_sq_replace" char="'" endRegion="Pattern" beginRegion="Pattern" /> </context> @@ -600,10 +597,7 @@ </context> <context name="tr" attribute="Pattern" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop" > - <RegExpr attribute="Pattern" context="#pop" String="\([^)]*\)\s*\(?:[^)]*\)" /> - <RegExpr attribute="Pattern" context="#pop" String="\{[^}]*\}\s*\{[^}]*\}" /> - <RegExpr attribute="Pattern" context="#pop" String="\[[^]]*\]\s*\[[^\]]*\]" /> - <RegExpr attribute="Pattern" context="#pop" String="([^a-zA-Z0-9_\s[\]{}()]).*\1.*\1" minimal="true"/> + <RegExpr attribute="Pattern" context="#pop" String="\([^)]*\)\s*\(?:[^)]*\)|\{[^}]*\}\s*\{[^}]*\}|\[[^]]*\]\s*\[[^\]]*\]|([^a-zA-Z0-9_\s[\]{}()]).*?\1.*?\1"/> </context> <!-- ====== PATTERNs ====== --> @@ -624,7 +618,6 @@ <RegExpr attribute="Pattern Internal Operator" context="#stay" String="\$(?=%1)" dynamic="true" /> <RegExpr attribute="Operator" context="#pop#pop" String="%1[cgimosx]*" dynamic="true" endRegion="Pattern" /> <IncludeRules context="regex_pattern_internal_ip" /> - <RegExpr attribute="Pattern Internal Operator" context="#stay" String="\$(?=\%1)" dynamic="true" /> </context> <context name="pattern_brace" attribute="Pattern" lineEndContext="#stay"> <RegExpr attribute="Operator" context="#pop#pop" String="\}[cgimosx]*" endRegion="Pattern" /> @@ -657,14 +650,8 @@ <!-- rules internal stuff wrt regex patterns --> <context name="regex_pattern_internal_rules_1" attribute="Pattern" lineEndContext="#stay"> - <RegExpr attribute="Comment" context="#stay" String="#.*$" firstNonSpace="true" /> - <RegExpr attribute="Special Variable" context="#stay" String="\\c[^\s\\]" /> - <RegExpr attribute="Special Variable" context="#stay" String="\\g(\{(\w+|\-\d+)\}|\d+)" /> - <RegExpr attribute="Special Variable" context="#stay" String="\\k(\{\w+\}|<\w+>|'\w+')" /> - <RegExpr attribute="Special Variable" context="#stay" String="\\N\{[^\{\}]*\}" /> - <RegExpr attribute="Special Variable" context="#stay" String="\\o\{[0-7]+\}" /> - <RegExpr attribute="Special Variable" context="#stay" String="\\[pP](\{\w+\}|P)" /> - <RegExpr attribute="Special Variable" context="#stay" String="\\x([0-9a-fA-F]{2}|\{[0-9a-fA-F]+\})" /> + <DetectChar attribute="Comment" context="comment" char="#" firstNonSpace="true" /> + <RegExpr attribute="Special Variable" context="#stay" String="\\c[^\s\\]|\\g(\{(\w+|\-\d+)\}|\d+)|\\k(\{\w+\}|<\w+>|'\w+')|\\N\{[^\{\}]*\}|\\o\{[0-7]+\}|\\[pP](\{\w+\}|P)|\\x([0-9a-fA-F]{2}|\{[0-9a-fA-F]+\})" /> <RegExpr attribute="Pattern Character Class" context="#stay" String="\\[anDdSsWw]" /> <RegExpr attribute="Pattern Internal Operator" context="#stay" String="\\[ABbEGLlNUuQdQZz]" /> <!-- Also?: efFhHKrRtvVX --> <RegExpr attribute="Special Variable" context="#stay" String="\\[\d]+" /> @@ -673,7 +660,7 @@ <context name="regex_pattern_internal_rules_2" attribute="Pattern" lineEndContext="#stay"> <Detect2Chars attribute="Pattern Internal Operator" context="pat_ext" char="(" char1="?" /> <DetectChar attribute="Pattern Internal Operator" context="pat_char_class" char="[" /> - <RegExpr attribute="Pattern Internal Operator" context="#stay" String="[()?^*+|]" /> + <AnyChar attribute="Pattern Internal Operator" context="#stay" String="()?^*+|" /> <RegExpr attribute="Pattern Internal Operator" context="#stay" String="\{[\d, ]+\}" /> <DetectChar attribute="Pattern Internal Operator" context="#stay" char="$" /> <RegExpr attribute="Comment" context="#stay" String="\s{3,}#.*$" /> @@ -693,8 +680,8 @@ <IncludeRules context="regex_pattern_internal_rules_2" /> </context> <context name="pat_ext" attribute="Pattern Internal Operator" lineEndContext="#stay"> + <AnyChar attribute="Pattern Internal Operator" context="#pop" String=":=!><" /> <RegExpr attribute="Comment" context="#pop" String="\#[^)]*" /> - <RegExpr attribute="Pattern Internal Operator" context="#pop" String="[:=!><]+" /> <DetectChar attribute="Pattern Internal Operator" context="#pop" char=")" /> </context> <context name="pat_char_class" attribute="Pattern Character Class" lineEndContext="#stay"> @@ -708,17 +695,10 @@ <!-- ====== Variables ====== --> <context name="find_variable" attribute="Data Type" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop" > <RegExpr attribute="Data Type" context="var_detect" String="\$[#_][\w_]" /> - <RegExpr attribute="Special Variable" context="var_detect" String="\$[0-9]+" /> - <RegExpr attribute="Special Variable" context="var_detect" String="[@\$](?:[\+\-_]\B|ARGV\b|INC\b)" /> - <RegExpr attribute="Special Variable" context="var_detect" String="[%\$](?:INC\b|ENV\b|SIG\b)" /> - <RegExpr attribute="Special Variable" context="var_detect" String="\$\^[A-Z_\]\[\^\?\\]" /> - <RegExpr attribute="Special Variable" context="var_detect" String="%([\-\+!]|\^H)" /> - <RegExpr attribute="Data Type" context="var_detect" String="\$\$[\$\w_]" /> - <RegExpr attribute="Data Type" context="var_detect" String="\$+::" /> + <RegExpr attribute="Special Variable" context="var_detect" String="\$[0-9]+|[@\$](?:[\+\-_]\B|ARGV\b|INC\b)|[%\$](?:INC\b|ENV\b|SIG\b)|\$\^[A-Z_\]\[\^\?\\]|%([\-\+!]|\^H)" /> + <RegExpr attribute="Data Type" context="var_detect" String="\$\$[\$\w_]|\$+::" /> <RegExpr attribute="Special Variable" context="var_detect" String="\$[^a-zA-Z0-9\s{][A-Z]?" /> - <RegExpr attribute="Data Type" context="var_detect" String="[\$@%]\{\^?[\w_]+\}" /> - <AnyChar attribute="Data Type" context="var_detect" String="$@%" /> - <RegExpr attribute="Data Type" context="var_detect" String="\*[a-zA-Z_]+" /> + <RegExpr attribute="Data Type" context="var_detect" String="[\$@%]\{\^?[\w_]+\}|[$@%]|\*[a-zA-Z_]+" /> <!-- Do not highlight brackets after *, Ex: (... @*) (see bug #391577) --> <RegExpr attribute="Special Variable" context="#stay" String="\*[^a-zA-Z0-9\s\{\(\)\[\]\}][A-Z]?" /> <!-- this should be a rare case! --> @@ -727,17 +707,11 @@ <!-- This does not check fo a trailing slash, for usage in strings. --> <context name="find_variable_unsafe" attribute="Data Type" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop" > <RegExpr attribute="Data Type" context="var_detect_unsafe" String="\$[#_][\w_]" /> - <RegExpr attribute="Special Variable" context="var_detect_unsafe" String="\$[0-9]+" /> - <RegExpr attribute="Special Variable" context="var_detect_unsafe" String="[@\$](?:[\+\-_]\B|ARGV\b|INC\b)" /> - <RegExpr attribute="Special Variable" context="var_detect_unsafe" String="[%\$](?:INC\b|ENV\b|SIG\b)" /> - <RegExpr attribute="Special Variable" context="var_detect" String="\$\^[A-Z_\]\[\^\?\\]" /> - <RegExpr attribute="Special Variable" context="var_detect" String="%([\-\+!]|\^H)" /> - <RegExpr attribute="Data Type" context="var_detect_unsafe" String="\$\$[\$\w_]" /> - <RegExpr attribute="Data Type" context="var_detect_unsafe" String="\$+::" /> + <RegExpr attribute="Special Variable" context="var_detect_unsafe" String="\$[0-9]+|[@\$](?:[\+\-_]\B|ARGV\b|INC\b)|[%\$](?:INC\b|ENV\b|SIG\b)" /> + <RegExpr attribute="Special Variable" context="var_detect" String="\$\^[A-Z_\]\[\^\?\\]|%([\-\+!]|\^H)" /> + <RegExpr attribute="Data Type" context="var_detect_unsafe" String="\$\$[\$\w_]|\$+::" /> <RegExpr attribute="Special Variable" context="#stay" String="\$[^a-zA-Z0-9\s{][A-Z]?" /> - <RegExpr attribute="Data Type" context="var_detect_unsafe" String="[\$@%]\{\^?[\w_]+\}" /> - <AnyChar attribute="Data Type" context="var_detect_unsafe" String="$@%" /> - <RegExpr attribute="Data Type" context="var_detect_unsafe" String="\*\w+" /> + <RegExpr attribute="Data Type" context="var_detect_unsafe" String="[\$@%]\{\^?[\w_]+\}|[$@%]|\*\w+" /> <AnyChar attribute="Operator" context="#pop" String="$@%*" /> </context> <context name="var_detect" attribute="Data Type" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop"> @@ -762,7 +736,7 @@ <context name="quote_word" attribute="Normal Text" lineEndContext="#stay" dynamic="true"> <DetectSpaces /> <DetectIdentifier /> - <RegExpr attribute="Normal Text" context="#stay" String="\\%1" dynamic="true" /> + <StringDetect attribute="Normal Text" context="#stay" String="\%1" dynamic="true" /> <DetectChar attribute="Operator" context="#pop#pop#pop" char="1" dynamic="true" endRegion="Wordlist" /> </context> <context name="quote_word_paren" attribute="Normal Text" lineEndContext="#stay"> @@ -783,29 +757,33 @@ <Detect2Chars attribute="Normal Text" context="#stay" char="\" char1="]" /> <DetectChar attribute="Operator" context="#pop#pop#pop" char="]" endRegion="Wordlist" /> </context> + <context name="quote_word_angular" attribute="Normal Text" lineEndContext="#stay"> + <DetectSpaces /> + <DetectIdentifier /> + <Detect2Chars attribute="Normal Text" context="#stay" char="\" char1=">" /> + <DetectChar attribute="Operator" context="#pop#pop#pop" char=">" endRegion="Wordlist" /> + </context> <!-- ====== Here Documents ====== --> <context name="find_here_document" attribute="Normal Text" lineEndContext="#pop" > - <RegExpr attribute="Keyword" context="here_document" String="(\w+)\s*;?" /> - <RegExpr attribute="Keyword" context="here_document" String="\s*"([^"]+)"\s*;?" /> - <RegExpr attribute="Keyword" context="here_document" String="\s*`([^`]+)`\s*;?" /> + <RegExpr attribute="Keyword" context="here_document" String="(?|(\w+)\s*;?|\s*"([^"]+)"\s*;?|\s*`([^`]+)`\s*;?)" /> <RegExpr attribute="Keyword" context="here_document_dumb" String="\s*'([^']+)'\s*;?" /> </context> <context name="here_document" attribute="String (interpolated)" lineEndContext="#stay" dynamic="true"> - <RegExpr attribute="Keyword" context="#pop#pop" String="%1\b" column="0" dynamic="true" endRegion="HereDocument"/> + <RegExpr attribute="Keyword" context="#pop#pop" String="^%1\b" column="0" dynamic="true" endRegion="HereDocument"/> <RegExpr attribute="Keyword" context="here_document" String="\=\s*<<\s*["']?([A-Z0-9_\-]+)["']?" beginRegion="HEREDoc" /> <IncludeRules context="ipstring_internal" /> <DetectSpaces /> </context> <context name="here_document_dumb" attribute="Normal Text" lineEndContext="#stay" dynamic="true"> - <RegExpr attribute="Keyword" context="#pop#pop" String="%1" column="0" dynamic="true" endRegion="HereDocument"/> + <StringDetect attribute="Keyword" context="#pop#pop" String="%1" column="0" dynamic="true" endRegion="HereDocument"/> <DetectSpaces /> <DetectIdentifier /> </context> <!-- ====== Misc ====== --> <context name="data_handle" attribute="Data" lineEndContext="#stay"> - <RegExpr attribute="Pod" context="pod" String="\=(?:head[1-6]|over|back|item|for|begin|end|pod)\s+.*" column="0" beginRegion="POD"/> + <RegExpr attribute="Pod" context="pod" String="^\=(?:head[1-6]|over|back|item|for|begin|end|pod)\s+.*" column="0" beginRegion="POD"/> <StringDetect attribute="Keyword" context="normal" String="__END__" firstNonSpace="true" /> </context> @@ -836,36 +814,38 @@ <context name="pod" attribute="Pod" lineEndContext="#stay"> <DetectSpaces /> <DetectIdentifier /> - <RegExpr attribute="Pod" context="#stay" String="\=(?:head[1-6]|over|back|item|for|begin|end|pod)\s*.*" column="0" beginRegion="POD" endRegion="POD"/> - <RegExpr attribute="Pod" context="#pop" String="\=cut.*$" column="0" endRegion="POD"/> + <RegExpr attribute="Pod" context="#stay" String="^\=(?:head[1-6]|over|back|item|for|begin|end|pod)\s*.*" column="0" beginRegion="POD" endRegion="POD"/> + <StringDetect attribute="Pod" context="Pod" String="=cut" column="0" endRegion="POD"/> </context> <context name="comment" attribute="Comment" lineEndContext="#pop"> <DetectSpaces /> - <IncludeRules context="##Alerts" /> + <IncludeRules context="##Comments" /> <DetectIdentifier /> </context> + <context name="Pod" attribute="Pod" lineEndContext="#pop#pop"/> + </contexts> <itemDatas> <itemData name="Normal Text" defStyleNum="dsNormal" /> - <itemData name="Keyword" defStyleNum="dsKeyword" /> - <itemData name="Pragma" defStyleNum="dsKeyword" /> - <itemData name="Function" defStyleNum="dsFunction" /> - <itemData name="Operator" defStyleNum="dsKeyword" color="#008000"/> - <itemData name="Data Type" defStyleNum="dsDataType" /> - <itemData name="Special Variable" defStyleNum="dsDataType" color="#C00000" selColor="#C00000" bold="0" italic="0" /> - <itemData name="Decimal" defStyleNum="dsDecVal" /> - <itemData name="Octal" defStyleNum="dsBaseN" /> - <itemData name="Hex" defStyleNum="dsBaseN" /> - <itemData name="Bin" defStyleNum="dsBaseN" /> - <itemData name="Float" defStyleNum="dsFloat" /> - <itemData name="String" defStyleNum="dsString" color="#FF6C6C" selColor="#FF6C6C" bold="0" italic="0" /> + <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> + <itemData name="Pragma" defStyleNum="dsKeyword" spellChecking="false"/> + <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/> + <itemData name="Operator" defStyleNum="dsOthers" bold="1" spellChecking="false"/> <!-- #008000 --> + <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/> + <itemData name="Special Variable" defStyleNum="dsWarning" bold="0" italic="0" /> <!-- #C00000 --> + <itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false"/> + <itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false"/> + <itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/> + <itemData name="Bin" defStyleNum="dsBaseN" spellChecking="false"/> + <itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/> + <itemData name="String" defStyleNum="dsSpecialString" /> <!-- #FF6C6C --> <itemData name="String (interpolated)" defStyleNum="dsString" /> <itemData name="String Special Character" defStyleNum="dsChar" /> - <itemData name="Pattern" defStyleNum="dsOthers" /> - <itemData name="Pattern Internal Operator" defStyleNum="dsChar" /> - <itemData name="Pattern Character Class" defStyleNum="dsBaseN" /> + <itemData name="Pattern" defStyleNum="dsOthers" spellChecking="false"/> + <itemData name="Pattern Internal Operator" defStyleNum="dsChar" spellChecking="false"/> + <itemData name="Pattern Character Class" defStyleNum="dsBaseN" spellChecking="false"/> <itemData name="Data" defStyleNum="dsNormal" /> <itemData name="Comment" defStyleNum="dsComment" /> <itemData name="Pod" defStyleNum="dsComment" /> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/powershell.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/powershell.xml index 8208fd7aae..06c6dac079 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/powershell.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/powershell.xml @@ -1,48 +1,54 @@ -<!DOCTYPE language SYSTEM "language.dtd"> +<!DOCTYPE language [ + <!ENTITY varscope "(?:global|local|private|script|using|workflow|alias|env|function|variable)"> + <!ENTITY varname "(?:[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)"> +]> <language name="PowerShell" - version="4" - kateversion="5.0" - extensions="*.ps1;*.ps1m;*.ps1d" + version="14" + kateversion="5.79" + extensions="*.ps1;*.psm1;*.psd1" section="Scripts" author="Motoki Kashihara (motoki8791@gmail.com); Michael Lombardi (Michael.T.Lombardi@outlook.com)" casesensitive="0" license="MIT"> <highlighting> - <list name="keywords"> - <item>Begin</item> + <list name="control-flow"> <item>Exit</item> <item>Process</item> <item>Break</item> - <item>Filter</item> <item>Return</item> <item>Catch</item> <item>Finally</item> - <item>Sequence</item> <item>Class</item> <item>For</item> <item>Switch</item> <item>Continue</item> <item>ForEach</item> <item>Throw</item> + <item>Try</item> + <item>Do</item> + <item>If</item> + <item>Until</item> + <item>Else</item> + <item>ElseIf</item> + <item>While</item> + </list> + + <list name="keywords"> + <item>Begin</item> + <item>Filter</item> + <item>Sequence</item> <item>Data</item> <item>From</item> <item>Trap</item> <item>Define</item> <item>Function</item> - <item>Try</item> - <item>Do</item> - <item>If</item> - <item>Until</item> <item>DynamicParam</item> <item>In</item> <item>Using</item> - <item>Else</item> <item>InlineScript</item> <item>Var</item> - <item>ElseIf</item> <item>Parallel</item> - <item>While</item> <item>End</item> <item>Param</item> <item>Workflow</item> @@ -75,69 +81,6 @@ <item>ulong</item> <item>ushort</item> </list> -<!-- TODO: Seems unused?! - <list name="operators"> - <item>-split</item> - <item>-isplit</item> - <item>-csplit</item> - <item>-join</item> - <item>-is</item> - <item>-isnot</item> - <item>-as</item> - <item>-eq</item> - <item>-ieq</item> - <item>-ceq</item> - <item>-ne</item> - <item>-ine</item> - <item>-cne</item> - <item>-gt</item> - <item>-igt</item> - <item>-cgt</item> - <item>-ge</item> - <item>-ige</item> - <item>-cge</item> - <item>-lt</item> - <item>-ilt</item> - <item>-clt</item> - <item>-le</item> - <item>-ile</item> - <item>-cle</item> - <item>-like</item> - <item>-ilike</item> - <item>-clike</item> - <item>-notlike</item> - <item>-inotlike</item> - <item>-cnotlike</item> - <item>-match</item> - <item>-imatch</item> - <item>-cmatch</item> - <item>-notmatch</item> - <item>-inotmatch</item> - <item>-cnotmatch</item> - <item>-contains</item> - <item>-icontains</item> - <item>-ccontains</item> - <item>-notcontains</item> - <item>-inotcontains</item> - <item>-cnotcontains</item> - <item>-replace</item> - <item>-ireplace</item> - <item>-creplace</item> - <item>-band</item> - <item>-bor</item> - <item>-bxor</item> - <item>-and</item> - <item>-or</item> - <item>-xor</item> - <item>.</item> - <item>&</item> - <item>=</item> - <item>+=</item> - <item>-=</item> - <item>*=</item> - <item>/=</item> - <item>%=</item> - </list>--> <list name="cmdlets"> <item>Add-Content</item> <item>Add-ADComputerServiceAccount</item> @@ -847,11 +790,23 @@ <item>\%</item> <item>\?</item> </list> + <list name="special-variables"> + <!-- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_scopes?view=powershell-7.3#scope-modifiers --> + <item>$Global:</item> + <item>$Local:</item> + <item>$Private:</item> + <item>$Script:</item> + <item>$Using:</item> + <item>$Workflow:</item> + <item>$Alias:</item> + <item>$Env:</item> + <item>$Function:</item> + <item>$Variable:</item> + <item>$_</item> <item>$True</item> <item>$False</item> - <item>$Env</item> <item>$Null</item> <item>$^</item> <item>$$</item> @@ -873,55 +828,176 @@ <item>$Host</item> <item>$OFS</item> </list> + + <!-- https://learn.microsoft.com/en-us/powershell/scripting/developer/help/comment-based-help-keywords?view=powershell-7.3 --> + <list name="comment-based-help"> + <item>.SYNOPSIS</item> + <item>.DESCRIPTION</item> + <item>.PARAMETER</item> + <item>.EXAMPLE</item> + <item>.INPUTS</item> + <item>.OUTPUTS</item> + <item>.NOTES</item> + <item>.LINK</item> + <item>.COMPONENT</item> + <item>.ROLE</item> + <item>.FUNCTIONALITY</item> + <item>.FORWARDHELPTARGETNAME</item> + <item>.FORWARDHELPCATEGORY</item> + <item>.REMOTEHELPRUNSPACE</item> + <item>.EXTERNALHELP</item> + </list> + <contexts> <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> + <DetectSpaces attribute="Normal Text"/> + <IncludeRules context="FindSpecialSymbol"/> + <DetectChar attribute="Symbol" context="Attribute" char="["/> + <IncludeRules context="FindSpecialOtherSymbol"/> <keyword attribute="Keyword" context="#stay" String="keywords"/> - <keyword attribute="Data Type" context="#stay" String="types" /> - <IncludeRules context="Cmdlet" /> - <DetectChar attribute="String" context="String" char="""/> - <Detect2Chars attribute="HereString" context="HereStringer" char="@" char1=""" beginRegion="StringRegion"/> - <IncludeRules context="##Doxygen" /> + <keyword attribute="Control Flow" context="#stay" String="control-flow"/> + <keyword attribute="Function" context="#stay" String="cmdlets"/> + <IncludeRules context="FindIdentifiant"/> + <IncludeRules context="FindEscape"/> + </context> + + <context attribute="Attribute" name="Attribute"> + <DetectSpaces attribute="Normal Text"/> + <keyword attribute="Data Type" context="#stay" String="types"/> + <IncludeRules context="FindIdentifiant"/> + <DetectChar attribute="Symbol" context="#pop" char="]"/> + <IncludeRules context="FindSpecialSymbol"/> + <IncludeRules context="FindSpecialOtherSymbol"/> + <IncludeRules context="FindEscape"/> + </context> + + <context attribute="Normal Text" name="FindSpecialSymbol"> + <DetectChar attribute="String" context="StringDQ" char="""/> + <DetectChar attribute="String" context="StringSQ" char="'"/> + <StringDetect attribute="HereString" context="HereStringDQ" String="@"" beginRegion="StringRegion"/> + <StringDetect attribute="HereString" context="HereStringSQ" String="@'" beginRegion="StringRegion"/> + <StringDetect attribute="Symbol" String="@("/> <DetectChar attribute="Comment" context="Commentar 1" char="#"/> - <Detect2Chars attribute="Comment" context="Commentar 2" char="<" char1="#" beginRegion="CommentRegion"/> + <StringDetect attribute="Comment" context="Commentar 2" String="<#" beginRegion="CommentRegion"/> <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="block1"/> <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="block1"/> - <RegExpr attribute="Keyword" context="#stay" String="\b\$global(?=\s+(:))"/> - <RegExpr attribute="Keyword" context="#stay" String="\b\$script(?=\s+(:))"/> - <RegExpr attribute="Variable" context="#stay" String="\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*" /> - <keyword attribute="Special Variable" context="#stay" String="special-variables"/> - <RegExpr attribute="Symbol" context="Member" String="[.]{1,1}" /> - <AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/.*<=>?[]|~^;"/> + <DetectChar attribute="Symbol" context="Member" char="."/> + </context> + + <context attribute="Normal Text" name="FindSpecialOtherSymbol"> + <RegExpr attribute="Operator" String="(?<=^|[\s(){}])-([ic]?(split|eq|ne|gt|ge|lt|le|like|notlike|match|notmatch|contains|notcontains|replace)|b?(and|or|xor)|join|not|isnot|is|as)(?=[\s(){}$]|$)"/> + <AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/*<=>?[]|~^;"/> + <IncludeRules context="FindVariable"/> + </context> + + <context attribute="Normal Text" name="FindEscape"> + <RegExpr attribute="String Char" String="`u\{[0-9A-Fa-f]+\}|`."/> + <RegExpr attribute="Escape" String="(?<=\s)`"/> + </context> + + <context attribute="Normal Text" name="FindVariable"> + <StringDetect attribute="Variable Substitution" context="VarSubst" String="${" /> + <StringDetect attribute="Symbol" context="VarCmd" String="$(" /> + <RegExpr attribute="Variable" context="VariableScopeModifier" String="\$(?=&varscope;:)" insensitive="1"/> + <RegExpr attribute="Variable" String="\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|[?^$])"/> + </context> + + <context attribute="Normal Text" name="FindIdentifiant"> + <RegExpr attribute="Number" context="NumericSuffix" String="\b(0b[01]+|0x[0-9a-fA-F]+|([0-9]+(\.[0-9]*)?|\.[0-9]+)(e([-+][0-9]+|[0-9]*))?)(?=(u?[ysl]|[und])?([kmgtp]b)?\b)" insensitive="1"/> + <RegExpr String="[-\w]+"/> </context> - <context attribute="String" lineEndContext="#pop" name="String"> - <LineContinue attribute="String" context="#pop"/> + <context attribute="Numeric Suffix" name="NumericSuffix" fallthroughContext="#pop"> + <DetectIdentifier attribute="Numeric Suffix" context="#pop"/> + </context> + + <!-- $( --> + <context attribute="Normal Text" name="VarCmd"> + <DetectChar attribute="Symbol" context="#pop" char=")"/> + <IncludeRules context="Normal"/> + </context> + + <!-- ${ --> + <context attribute="Variable" name="VarSubst" fallthroughContext="VarNameSubst"> + <DetectChar attribute="Variable Substitution" context="#pop" char="}"/> + <RegExpr attribute="Scope Modifier" context="VariableName" String="&varscope;:" insensitive="1"/> + </context> + <context attribute="Variable" name="VarNameSubst"> + <DetectChar attribute="Variable Substitution" context="#pop#pop" char="}"/> + </context> + + <!-- $xxx:varname --> + <context attribute="Normal Text" name="VariableScopeModifier" lineEndContext="#pop"> + <DetectChar attribute="Symbol" context="#pop!VariableName" char=":"/> + <DetectIdentifier attribute="Scope Modifier"/> + </context> + <context attribute="Normal Text" name="VariableName" lineEndContext="#pop"> + <RegExpr attribute="Variable" context="#pop" String="&varname;(:&varname;)*"/> + </context> + + <context attribute="String" name="StringDQ"> + <IncludeRules context="FindVariable"/> + <RegExpr attribute="String Char" String="`u\{[0-9A-Fa-f]+\}|`.|`$|"""/> <DetectChar attribute="String" context="#pop" char="""/> </context> - <context attribute="HereString" lineEndContext="#stay" name="HereStringer"> - <Detect2Chars attribute="HereString" context="#pop" char=""" char1="@" endRegion="StringRegion"/> + <context attribute="String" name="StringSQ"> + <StringDetect attribute="String Char" String="''"/> + <DetectChar attribute="String" context="#pop" char="'"/> </context> - <context attribute="Normal Text" lineEndContext="#pop" name="Member" fallthrough="true" fallthroughContext="#pop"> - <RegExpr attribute="Function" context="#pop" String="\b[_\w][_\w\d]*(?=[\s]*)" /> + + <context attribute="HereString" lineEndContext="#stay" name="HereStringDQ"> + <IncludeRules context="FindVariable"/> + <StringDetect attribute="HereString" context="#pop" String=""@" endRegion="StringRegion" column="0"/> </context> - <context attribute="Comment" lineEndContext="#pop" name="Commentar 1"/> + <context attribute="HereString" lineEndContext="#stay" name="HereStringSQ"> + <StringDetect attribute="HereString" context="#pop" String="'@" endRegion="StringRegion" column="0"/> + </context> + + <context attribute="Normal Text" lineEndContext="#pop" name="Member" fallthroughContext="#pop"> + <RegExpr attribute="Function" context="#pop" String="[_[:alpha:]]\w*" /> + </context> + + <context attribute="Comment" lineEndContext="#pop" name="Commentar 1"> + <DetectSpaces /> + <IncludeRules context="##Comments"/> + </context> + <context attribute="Comment" lineEndContext="#stay" name="Commentar 2"> + <DetectSpaces /> <Detect2Chars attribute="Comment" context="#pop" char="#" char1=">" endRegion="CommentRegion"/> + <!-- no delimiter except spaces --> + <keyword context="CommentHelp" String="comment-based-help" weakDeliminator="!%&()*+,-./:;$lt;=>?[\]^{|}~" firstNonSpace="1" lookAhead="1" insensitive="0"/> + <IncludeRules context="##Comments"/> </context> - <context attribute="Cmdlets" lineEndContext="#stay" name="Cmdlet"> - <keyword attribute="Function" context="#stay" String="cmdlets"/> + <context attribute="Comment-Based Help Keyword" lineEndContext="#pop" name="CommentHelp"> + <DetectChar attribute="Symbol" char="."/> + <DetectIdentifier attribute="Comment-Based Help Keyword" context="CommentHelpParam"/> + </context> + <context attribute="Comment-Based Help Paramater" lineEndContext="#pop#pop" name="CommentHelpParam"> </context> + </contexts> + <itemDatas> - <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/> - <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> - <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/> - <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/> - <itemData name="String" defStyleNum="dsString"/> - <itemData name="HereString" defStyleNum="dsVerbatimString"/> - <itemData name="Comment" defStyleNum="dsComment"/> - <itemData name="Cmdlets" defStyleNum="dsBuiltIn" spellChecking="false"/> - <itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/> - <itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/> - <itemData name="Special Variable" defStyleNum="dsVariable" bold="1" spellChecking="false"/> + <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/> + <itemData name="Attribute" defStyleNum="dsAttribute" spellChecking="false"/> + <itemData name="Escape" defStyleNum="dsChar" spellChecking="false"/> + <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> + <itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="false"/> + <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/> + <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/> + <itemData name="String" defStyleNum="dsString"/> + <itemData name="String Char" defStyleNum="dsChar" spellChecking="false"/> + <itemData name="HereString" defStyleNum="dsVerbatimString"/> + <itemData name="Number" defStyleNum="dsDecVal" spellChecking="false"/> + <itemData name="Numeric Suffix" defStyleNum="dsDataType" spellChecking="false"/> + <itemData name="Comment" defStyleNum="dsComment"/> + <itemData name="Comment-Based Help Keyword" defStyleNum="dsDocumentation" spellChecking="false"/> + <itemData name="Comment-Based Help Paramater" defStyleNum="dsSpecialString" spellChecking="false"/> + <itemData name="Symbol" defStyleNum="dsOperator" spellChecking="false"/> + <itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/> + <itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/> + <itemData name="Scope Modifier" defStyleNum="dsVariable" spellChecking="false" bold="1"/> + <itemData name="Variable Substitution" defStyleNum="dsPreprocessor" spellChecking="false"/> </itemDatas> </highlighting> <general> @@ -932,3 +1008,4 @@ <keywords casesensitive="0" weakDeliminator=":-"/> </general> </language> +<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/python.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/python.xml deleted file mode 100644 index 33a313a694..0000000000 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/python.xml +++ /dev/null @@ -1,688 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language> -<!-- Python syntax highlightning v0.9 by Per Wigren --> -<!-- Python syntax highlighting v1.9 by Michael Bueker (improved keyword differentiation) --> -<!-- Python syntax highlighting v1.97 by Paul Giannaros --> -<!-- Python syntax highlighting v1.99 by Primoz Anzur --> -<!-- Python syntax highlighting v2.01 by Paul Giannaros: - * full format character support - * unicode string modifier supported --> -<!-- v2.02 remove RegExpr for nums and make indent consistent --> -<!-- v2.03 highlight decorators, remove operator regex, don't highlight parens as operators --> -<!-- v2.04 make alerts visible even if they are directly after ''' or # without a space --> -<!-- v2.06 decorator names can (and often do) contain periods --> -<!-- v2.07 add support for %prog and co, see bug 142832 --> -<!-- v2.08 add missing overloaders, new Python 3 statements, builtins, and keywords --> -<!-- v2.29 recognize escape sequenzes correctly --> -<language name="Python" version="9" style="python" indenter="python" kateversion="5.0" section="Scripts" extensions="*.py;*.pyw;SConstruct;SConscript" mimetype="application/x-python;text/x-python;text/x-python3" casesensitive="1" author="Michael Bueker" license=""> - <highlighting> - <list name="import"> - <item>import</item> - <item>from</item> - <item>as</item> - </list> - <list name="defs"> - <item>class</item> - <item>def</item> - <item>del</item> - <item>global</item> - <item>lambda</item> - <item>nonlocal</item> - </list> - <list name="operators"> - <item>and</item> - <item>in</item> - <item>is</item> - <item>not</item> - <item>or</item> - </list> - <list name="flow"> - <item>assert</item> - <item>break</item> - <item>continue</item> - <item>elif</item> - <item>else</item> - <item>except</item> - <item>finally</item> - <item>for</item> - <item>if</item> - <item>pass</item> - <item>raise</item> - <item>return</item> - <item>try</item> - <item>while</item> - <item>with</item> - <item>yield</item> - <item>async</item> - <item>await</item> - </list> - <list name="builtinfuncs"> - <item>__import__</item> - <item>abs</item> - <item>all</item> - <item>any</item> - <item>apply</item> - <item>ascii</item> - <item>basestring</item> - <item>bin</item> - <item>bool</item> - <item>buffer</item> - <item>bytearray</item> - <item>bytes</item> - <item>callable</item> - <item>chr</item> - <item>classmethod</item> - <item>cmp</item> - <item>coerce</item> - <item>compile</item> - <item>complex</item> - <item>delattr</item> - <item>dict</item> - <item>dir</item> - <item>divmod</item> - <item>enumerate</item> - <item>eval</item> - <item>exec</item> - <item>execfile</item> - <item>file</item> - <item>filter</item> - <item>float</item> - <item>format</item> - <item>frozenset</item> - <item>getattr</item> - <item>globals</item> - <item>hasattr</item> - <item>hash</item> - <item>help</item> - <item>hex</item> - <item>id</item> - <item>input</item> - <item>int</item> - <item>intern</item> - <item>isinstance</item> - <item>issubclass</item> - <item>iter</item> - <item>len</item> - <item>list</item> - <item>locals</item> - <item>long</item> - <item>map</item> - <item>max</item> - <item>memoryview</item> - <item>min</item> - <item>next</item> - <item>object</item> - <item>oct</item> - <item>open</item> - <item>ord</item> - <item>pow</item> - <item>print</item> - <item>property</item> - <item>range</item> - <item>raw_input</item> - <item>reduce</item> - <item>reload</item> - <item>repr</item> - <item>reversed</item> - <item>round</item> - <item>set</item> - <item>setattr</item> - <item>slice</item> - <item>sorted</item> - <item>staticmethod</item> - <item>str</item> - <item>sum</item> - <item>super</item> - <item>tuple</item> - <item>type</item> - <item>unichr</item> - <item>unicode</item> - <item>vars</item> - <item>xrange</item> - <item>zip</item> - </list> - <list name="specialvars"> - <item>None</item> - <item>self</item> - <item>True</item> - <item>False</item> - <item>NotImplemented</item> - <item>Ellipsis</item> - <item>__debug__</item> - <item>__file__</item> - <item>__name__</item> - </list> - <list name="bindings"> - <item>SIGNAL</item> - <item>SLOT</item> - <item>connect</item> - </list> - <list name="overloaders"> - <item>__new__</item> - <item>__init__</item> - <item>__del__</item> - <item>__repr__</item> - <item>__str__</item> - <item>__lt__</item> - <item>__le__</item> - <item>__eq__</item> - <item>__ne__</item> - <item>__gt__</item> - <item>__ge__</item> - <item>__cmp__</item> - <item>__rcmp__</item> - <item>__hash__</item> - <item>__nonzero__</item> - <item>__unicode__</item> - <item>__getattr__</item> - <item>__setattr__</item> - <item>__delattr__</item> - <item>__getattribute__</item> - <item>__get__</item> - <item>__set__</item> - <item>__delete__</item> - <item>__call__</item> - <item>__len__</item> - <item>__getitem__</item> - <item>__setitem__</item> - <item>__delitem__</item> - <item>__iter__</item> - <item>__reversed__</item> - <item>__contains__</item> - <item>__getslice__</item> - <item>__setslice__</item> - <item>__delslice__</item> - <item>__add__</item> - <item>__sub__</item> - <item>__mul__</item> - <item>__floordiv__</item> - <item>__mod__</item> - <item>__divmod__</item> - <item>__pow__</item> - <item>__lshift__</item> - <item>__rshift__</item> - <item>__and__</item> - <item>__xor__</item> - <item>__or__</item> - <item>__div__</item> - <item>__truediv__</item> - <item>__radd__</item> - <item>__rsub__</item> - <item>__rmul__</item> - <item>__rdiv__</item> - <item>__rtruediv__</item> - <item>__rfloordiv__</item> - <item>__rmod__</item> - <item>__rdivmod__</item> - <item>__rpow__</item> - <item>__rlshift__</item> - <item>__rrshift__</item> - <item>__rand__</item> - <item>__rxor__</item> - <item>__ror__</item> - <item>__iadd__</item> - <item>__isub__</item> - <item>__imul__</item> - <item>__idiv__</item> - <item>__itruediv__</item> - <item>__ifloordiv__</item> - <item>__imod__</item> - <item>__ipow__</item> - <item>__ilshift__</item> - <item>__irshift__</item> - <item>__iand__</item> - <item>__ixor__</item> - <item>__ior__</item> - <item>__neg__</item> - <item>__pos__</item> - <item>__abs__</item> - <item>__invert__</item> - <item>__complex__</item> - <item>__int__</item> - <item>__long__</item> - <item>__float__</item> - <item>__oct__</item> - <item>__hex__</item> - <item>__index__</item> - <item>__coerce__</item> - <item>__enter__</item> - <item>__exit__</item> - <item>__bytes__</item> - <item>__format__</item> - <item>__next__</item> - <item>__dir__</item> - <item>__await__</item> - <item>__aiter__</item> - <item>__anext__</item> - <item>__aenter__</item> - <item>__aexit__</item> - </list> - <list name="exceptions"> - <!-- - Exceptions list resources used: - - http://docs.python.org/2.7/library/exceptions.html#exception-hierarchy - - http://docs.python.org/3.4/library/exceptions.html#exception-hierarchy - --> - <item>ArithmeticError</item> - <item>AssertionError</item> - <item>AttributeError</item> - <item>BaseException</item> - <item>BlockingIOError</item> - <item>BrokenPipeError</item> - <item>BufferError</item> - <item>BytesWarning</item> - <item>ChildProcessError</item> - <item>ConnectionAbortedError</item> - <item>ConnectionError</item> - <item>ConnectionRefusedError</item> - <item>ConnectionResetError</item> - <item>DeprecationWarning</item> - <item>EnvironmentError</item> - <item>EOFError</item> - <item>Exception</item> - <item>FileExistsError</item> - <item>FileNotFoundError</item> - <item>FloatingPointError</item> - <item>FutureWarning</item> - <item>GeneratorExit</item> - <item>ImportError</item> - <item>ImportWarning</item> - <item>IndentationError</item> - <item>IndexError</item> - <item>InterruptedError</item> - <item>IOError</item> - <item>IsADirectoryError</item> - <item>KeyboardInterrupt</item> - <item>KeyError</item> - <item>LookupError</item> - <item>MemoryError</item> - <item>NameError</item> - <item>NotADirectoryError</item> - <item>NotImplementedError</item> - <item>OSError</item> - <item>OverflowError</item> - <item>PendingDeprecationWarning</item> - <item>PermissionError</item> - <item>ProcessLookupError</item> - <item>ReferenceError</item> - <item>ResourceWarning</item> - <item>RuntimeError</item> - <item>RuntimeWarning</item> - <item>StandardError</item> - <item>StopIteration</item> - <item>SyntaxError</item> - <item>SyntaxWarning</item> - <item>SystemError</item> - <item>SystemExit</item> - <item>TabError</item> - <item>TimeoutError</item> - <item>TypeError</item> - <item>UnboundLocalError</item> - <item>UnicodeDecodeError</item> - <item>UnicodeEncodeError</item> - <item>UnicodeError</item> - <item>UnicodeTranslateError</item> - <item>UnicodeWarning</item> - <item>UserWarning</item> - <item>ValueError</item> - <item>Warning</item> - <item>WindowsError</item> - <item>ZeroDivisionError</item> - </list> - <contexts> - <context name="Normal" attribute="Normal Text" lineEndContext="#stay"> - <keyword attribute="Import" String="import" context="#stay"/> - <keyword attribute="Definition Keyword" String="defs" context="#stay"/> - <keyword attribute="Operator Keyword" String="operators" context="#stay"/> - <keyword attribute="Flow Control Keyword" String="flow" context="#stay"/> - <keyword attribute="Builtin Function" String="builtinfuncs" context="#stay"/> - <keyword attribute="Special Variable" String="specialvars" context="#stay"/> - <keyword attribute="Extensions" String="bindings" context="#stay"/> - <keyword attribute="Exceptions" String="exceptions" context="#stay"/> - <keyword attribute="Overloaders" String="overloaders" context="#stay"/> - <RegExpr attribute="Normal Text" String="[a-zA-Z_][a-zA-Z_0-9]{2,}" context="#stay"/> - - <RegExpr attribute="Complex" String=" ((([0-9]*\.[0-9]+|[0-9]+\.)|([0-9]+|([0-9]*\.[0-9]+|[0-9]+\.))[eE](\+|-)?[0-9]+)|[0-9]+)[jJ]" context="#stay"/> - <Float attribute="Float" context="#stay" /> - <HlCHex attribute="Hex" context="#stay"/> - <HlCOct attribute="Octal" context="#stay"/> - <Int attribute="Int" context="Int Suffixes"/> - - <RegExpr attribute="Int" String=" ([0-9]+_)+[0-9]+" context="#stay"/> - <RegExpr attribute="Float" String=" ([0-9]+_)+[0-9]+\.[0-9]+" context="#stay"/> - <RegExpr attribute="Hex" String=" [0-9]x([A-F0-9]+_)+[A-F0-9]+" context="#stay"/> - - <DetectChar attribute="Normal Text" char="{" context="Dictionary" beginRegion="Dictionary"/> - <DetectChar attribute="Normal Text" char="[" context="List" beginRegion="List"/> - <DetectChar attribute="Normal Text" char="(" context="Tuple" beginRegion="Tuple"/> - - <IncludeRules context="CommentVariants" /> - - <DetectChar attribute="Comment" char="#" context="Hash comment"/> - - <IncludeRules context="StringVariants" /> - - <RegExpr attribute="Decorator" String="@[_a-zA-Z][\._a-zA-Z0-9]*" firstNonSpace="true"/> - <AnyChar attribute="Operator" String="+*/%\|=;\!<>!^&~-@" context="#stay"/> - </context> - - <context name="Int Suffixes" attribute="Int" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> - <StringDetect attribute="Int" context="#pop" String="L" insensitive="true"/> - </context> - - <context name="#CheckForString" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> - <DetectSpaces/> - <LineContinue attribute="Normal Text" context="CheckForStringNext"/> - </context> - - <context name="CheckForStringNext" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> - <DetectSpaces/> - <LineContinue attribute="Normal Text" context="CheckForStringNext"/> - <IncludeRules context="StringVariants"/> - </context> - - <context name="StringVariants" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces/> - - <RegExpr attribute="String" String="u?'''" insensitive="true" context="Triple A-string" beginRegion="Triple A-region"/> - <RegExpr attribute="String" String="u?"""" insensitive="true" context="Triple Q-string" beginRegion="Triple Q-region"/> - <RegExpr attribute="String" String="u?'" insensitive="true" context="Single A-string"/> - <RegExpr attribute="String" String="u?"" insensitive="true" context="Single Q-string"/> - - <RegExpr attribute="Raw String" String="(u?r|ru)'''" insensitive="true" context="Raw Triple A-string" beginRegion="Triple A-region"/> - <RegExpr attribute="Raw String" String="(u?r|ru)"""" insensitive="true" context="Raw Triple Q-string" beginRegion="Triple Q-region"/> - <RegExpr attribute="Raw String" String="(u?r|ru)'" insensitive="true" context="Raw A-string"/> - <RegExpr attribute="Raw String" String="(u?r|ru)"" insensitive="true" context="Raw Q-string"/> - - <StringDetect attribute="F-String" String="f'''" insensitive="true" context="Triple A-F-String" beginRegion="Triple A-region"/> - <StringDetect attribute="F-String" String="f"""" insensitive="true" context="Triple Q-F-String" beginRegion="Triple Q-region"/> - <StringDetect attribute="F-String" String="f'" insensitive="true" context="Single A-F-String"/> - <StringDetect attribute="F-String" String="f"" insensitive="true" context="Single Q-F-String"/> - - <RegExpr attribute="Raw F-String" String="(fr|rf)'''" insensitive="true" context="Raw Triple A-F-String" beginRegion="Triple A-region"/> - <RegExpr attribute="Raw F-String" String="(fr|rf)"""" insensitive="true" context="Raw Triple Q-F-String" beginRegion="Triple Q-region"/> - <RegExpr attribute="Raw F-String" String="(fr|rf)'" insensitive="true" context="Raw A-F-String"/> - <RegExpr attribute="Raw F-String" String="(fr|rf)"" insensitive="true" context="Raw Q-F-String"/> - </context> - - <context name="CommentVariants" attribute="Normal Text" lineEndContext="#stay"> - <DetectSpaces/> - - <RegExpr attribute="Comment" String="u?'''" insensitive="true" firstNonSpace="true" context="Triple A-comment" beginRegion="Triple A-region"/> - <RegExpr attribute="Comment" String="u?"""" insensitive="true" firstNonSpace="true" context="Triple Q-comment" beginRegion="Triple Q-region"/> - <RegExpr attribute="Comment" String="u?'" insensitive="true" firstNonSpace="true" context="Single A-comment"/> - <RegExpr attribute="Comment" String="u?"" insensitive="true" firstNonSpace="true" context="Single Q-comment"/> - - <RegExpr attribute="Comment" String="(u?r|ru)'''" insensitive="true" firstNonSpace="true" context="Triple A-comment" beginRegion="Triple A-region"/> - <RegExpr attribute="Comment" String="(u?r|ru)"""" insensitive="true" firstNonSpace="true" context="Triple Q-comment" beginRegion="Triple Q-region"/> - <RegExpr attribute="Comment" String="(u?r|ru)'" insensitive="true" firstNonSpace="true" context="Single A-comment"/> - <RegExpr attribute="Comment" String="(u?r|ru)"" insensitive="true" firstNonSpace="true" context="Single Q-comment"/> - </context> - - <context name="Dictionary" attribute="Normal Text" lineEndContext="#stay" noIndentationBasedFolding="true"> - <DetectSpaces/> - <DetectChar attribute="Normal Text" char="}" context="#pop" endRegion="Dictionary"/> - <IncludeRules context="StringVariants" /> - <IncludeRules context="Normal" /> - </context> - - <context name="List" attribute="Normal Text" lineEndContext="#stay" noIndentationBasedFolding="true"> - <DetectSpaces/> - <DetectChar attribute="Normal Text" char="]" context="#pop" endRegion="List"/> - <IncludeRules context="StringVariants" /> - <IncludeRules context="Normal" /> - </context> - - <context name="Tuple" attribute="Normal Text" lineEndContext="#stay" noIndentationBasedFolding="true"> - <DetectSpaces/> - <DetectChar attribute="Normal Text" char=")" context="#pop" endRegion="Tuple"/> - <IncludeRules context="StringVariants" /> - <IncludeRules context="Normal" /> - </context> - - <!-- Comments --> - - <context name="Hash comment" attribute="Comment" lineEndContext="#pop"> - <IncludeRules context="##Alerts" /> - <IncludeRules context="##Modelines" /> - </context> - - <context name="Triple A-comment" attribute="Comment" lineEndContext="#stay" noIndentationBasedFolding="true"> - <IncludeRules context="stringescape"/> - <StringDetect attribute="Comment" String="'''" context="#pop" endRegion="Triple A-region"/> - <IncludeRules context="##Alerts" /> - </context> - - <context name="Triple Q-comment" attribute="Comment" lineEndContext="#stay" noIndentationBasedFolding="true"> - <IncludeRules context="stringescape"/> - <StringDetect attribute="Comment" String=""""" context="#pop" endRegion="Triple Q-region"/> - <IncludeRules context="##Alerts" /> - </context> - - <context name="Single A-comment" attribute="Comment" lineEndContext="#stay"> - <IncludeRules context="stringescape"/> - <DetectChar attribute="Comment" char="'" context="#pop"/> - <IncludeRules context="##Alerts" /> - </context> - - <context name="Single Q-comment" attribute="Comment" lineEndContext="#stay"> - <IncludeRules context="stringescape"/> - <DetectChar attribute="Comment" char=""" context="#pop"/> - <IncludeRules context="##Alerts" /> - </context> - - <!-- Strings --> - - <!-- format characters --> - <context name="stringformat" attribute="String Substitution" lineEndContext="#stay"> - <!-- Python 2 style. Syntax: - 1. start character '%' - 2. [optional] Mapping key, e.g. '(foo)' - 3. [optional] Conversion flags, one of '#0- +' - 4. [optional] Minimum width, integer or '*' - 5. [optional] Precision, '.' followed by integer or '*' - 6. [optional] Length modifier, one of 'hlL' - 7. conversion type, one of 'crsdiouxXeEfFgG%' - [Special cases: %prog and %default - see http://docs.python.org/library/optparse.html] - --> - <RegExpr attribute="String Substitution" String="%((\([a-zA-Z0-9_]+\))?[#0\- +]?([1-9][0-9]*|\*)?(\.([1-9][0-9]*|\*))?[hlL]?[crsdiouxXeEfFgG%]|prog|default)" context="#stay"/> - <!-- http://docs.python.org/2/library/string.html#format-string-syntax: - replacement_field ::= "{" [field_name] ["!" conversion] [":" format_spec] "}" - field_name ::= arg_name ("." attribute_name | "[" element_index "]")* - arg_name ::= [identifier | integer] - attribute_name ::= identifier - element_index ::= integer | index_string - index_string ::= <any source character except "]"> + - conversion ::= "r" | "s" - format_spec ::= [[fill]align][sign][#][0][width][,][.precision][type] - fill ::= <any character> - align ::= "<" | ">" | "=" | "^" - sign ::= "+" | "-" | " " - width ::= integer - precision ::= integer - type ::= "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "n" | "o" | "s" | "x" | "X" | "%" - --> - <RegExpr attribute="String Substitution" String="\{(([a-zA-Z0-9_]+|[0-9]+)(\.[a-zA-Z0-9_]+|\[[^ \]]+\])*)?(![rs])?(:([^}]?[<>=^])?[ +-]?#?0?[0-9]*(\.[0-9]+)?[bcdeEfFgGnosxX%]?)?\}" context="#stay"/> - <Detect2Chars attribute="String Substitution" char="{" char1="{" context="#stay" /> - <Detect2Chars attribute="String Substitution" char="}" char1="}" context="#stay" /> - </context> - - <!-- escape characters --> - <context name="stringescape" attribute="String Char" lineEndContext="#stay"> - <!-- As this highlighting style is for both, Python 2 and 3, - we do not know if a normal string is “unicode” or not. So we - --> - <RegExpr attribute="String Char" String="\\[\\'"abfnrtv]" context="#stay"/> - <RegExpr attribute="String Char" String="\\[0-7]{1,3}" context="#stay"/> - <RegExpr attribute="String Char" String="\\x[0-9A-Fa-f]{2}" context="#stay"/> - <RegExpr attribute="String Char" String="\\u[0-9A-Fa-f]{4}" context="#stay"/> - <RegExpr attribute="String Char" String="\\U[0-9A-Fa-f]{8}" context="#stay"/> - <RegExpr attribute="String Char" String="\\N\{[a-zA-Z0-9\- ]+\}" context="#stay"/> - </context> - - <!-- f-literals --> - <context name="stringinterpolation" attribute="F-String" lineEndContext="#stay"> - <Detect2Chars attribute="String Char" char="{" char1="{" context="#stay"/> - <DetectChar attribute="String Substitution" char="{" context="String Interpolation"/> - </context> - <context name="String Interpolation" attribute="String Substitution" lineEndContext="#stay"> - <DetectChar attribute="Error" char="\" context="#pop"/> - <RegExpr attribute="String Substitution" String="(![rs])?(:([^}]?[<>=^])?[ +-]?#?0?[0-9]*(\.[0-9]+)?[bcdeEfFgGnosxX%]?)?\}" context="#pop"/> - <IncludeRules context="Normal"/> <!-- TODO: create expression context instead --> - </context> - - - <!-- - It follows a Binary tree of string kinds (not even touching byte literals). - The levels are: - 1. triple- vs. single-quoted - 2. apostrophe vs. quotation mark - 3. static vs. interpolated (f-literal) - 4. escaped vs. raw - Adding byte literals wouldn’t make the current 2⁴ into 2⁵ contexts, as there are no byte f-literals - --> - - - <!-- Triple-quoted A-strings --> - <context name="Triple A-string" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="true"> - <IncludeRules context="stringescape"/> - <IncludeRules context="stringformat"/> - <StringDetect attribute="String" String="'''" context="#pop#CheckForString" endRegion="Triple A-region"/> - </context> - - <context name="Raw Triple A-string" attribute="Raw String" lineEndContext="#stay" noIndentationBasedFolding="true"> - <HlCStringChar attribute="Raw String" context="#stay"/> - <IncludeRules context="stringformat"/> - <StringDetect attribute="Raw String" String="'''" context="#pop#CheckForString" endRegion="Triple A-region"/> - </context> - - <context name="Triple A-F-String" attribute="F-String" lineEndContext="#stay" noIndentationBasedFolding="true"> - <IncludeRules context="stringescape"/> - <IncludeRules context="stringinterpolation"/> - <StringDetect attribute="F-String" String="'''" context="#pop#CheckForString" endRegion="Triple A-region"/> - </context> - - <context name="Raw Triple A-F-String" attribute="Raw F-String" lineEndContext="#stay" noIndentationBasedFolding="true"> - <HlCStringChar attribute="Raw F-String" context="#stay"/> - <IncludeRules context="stringinterpolation"/> - <StringDetect attribute="Raw F-String" String="'''" context="#pop#CheckForString" endRegion="Triple A-region"/> - </context> - - <!-- Triple-quoted Q-strings --> - <context name="Triple Q-string" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="true"> - <IncludeRules context="stringescape"/> - <IncludeRules context="stringformat"/> - <StringDetect attribute="String" String=""""" context="#pop#CheckForString" endRegion="Triple Q-region"/> - </context> - - <context name="Raw Triple Q-string" attribute="Raw String" lineEndContext="#stay" noIndentationBasedFolding="true"> - <HlCStringChar attribute="Raw String" context="#stay"/> - <IncludeRules context="stringformat"/> - <StringDetect attribute="Raw String" String=""""" context="#pop#CheckForString" endRegion="Triple Q-region"/> - </context> - - <context name="Triple Q-F-String" attribute="F-String" lineEndContext="#stay" noIndentationBasedFolding="true"> - <IncludeRules context="stringescape"/> - <IncludeRules context="stringinterpolation"/> - <StringDetect attribute="F-String" String=""""" context="#pop#CheckForString" endRegion="Triple Q-region"/> - </context> - - <context name="Raw Triple Q-F-String" attribute="Raw F-String" lineEndContext="#stay" noIndentationBasedFolding="true"> - <HlCStringChar attribute="Raw F-String" context="#stay"/> - <IncludeRules context="stringinterpolation"/> - <StringDetect attribute="Raw F-String" String=""""" context="#pop#CheckForString" endRegion="Triple Q-region"/> - </context> - - - <!-- Single-quoted A-strings --> - <context name="Single A-string" attribute="String" lineEndContext="#stay"> - <IncludeRules context="stringescape"/> - <IncludeRules context="stringformat"/> - <DetectChar attribute="String" char="'" context="#pop#CheckForString"/> - </context> - - <context name="Raw A-string" attribute="Raw String" lineEndContext="#stay"> - <HlCStringChar attribute="Raw String" context="#stay"/> - <IncludeRules context="stringformat"/> - <DetectChar attribute="Raw String" char="'" context="#pop#CheckForString"/> - </context> - - <context name="Single A-F-String" attribute="F-String" lineEndContext="#stay"> - <IncludeRules context="stringescape"/> - <IncludeRules context="stringinterpolation"/> - <DetectChar attribute="F-String" char="'" context="#pop#CheckForString"/> - </context> - - <context name="Raw A-F-String" attribute="Raw F-String" lineEndContext="#stay"> - <HlCStringChar attribute="Raw F-String" context="#stay"/> - <IncludeRules context="stringinterpolation"/> - <DetectChar attribute="Raw F-String" char="'" context="#pop#CheckForString"/> - </context> - - <!-- Single-quoted Q-strings --> - <context name="Single Q-string" attribute="String" lineEndContext="#stay"> - <IncludeRules context="stringescape"/> - <IncludeRules context="stringformat"/> - <DetectChar attribute="String" char=""" context="#pop#CheckForString"/> - </context> - - <context name="Raw Q-string" attribute="Raw String" lineEndContext="#stay"> - <HlCStringChar attribute="Raw String" context="#stay"/> - <IncludeRules context="stringformat"/> - <DetectChar attribute="Raw String" char=""" context="#pop#CheckForString"/> - </context> - - <context name="Single Q-F-String" attribute="F-String" lineEndContext="#stay"> - <IncludeRules context="stringescape"/> - <IncludeRules context="stringinterpolation"/> - <DetectChar attribute="F-String" char=""" context="#pop#CheckForString"/> - </context> - - <context name="Raw Q-F-String" attribute="Raw F-String" lineEndContext="#stay"> - <HlCStringChar attribute="Raw F-String" context="#stay"/> - <IncludeRules context="stringinterpolation"/> - <DetectChar attribute="Raw F-String" char=""" context="#pop#CheckForString"/> - </context> - </contexts> - - <itemDatas> - <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/> - <itemData name="Definition Keyword" defStyleNum="dsKeyword" spellChecking="false"/> - <itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/> - <itemData name="Operator Keyword" defStyleNum="dsKeyword" spellChecking="false"/> - <itemData name="Flow Control Keyword" defStyleNum="dsControlFlow" spellChecking="false"/> - <itemData name="Builtin Function" defStyleNum="dsBuiltIn" spellChecking="false"/> - <itemData name="Special Variable" defStyleNum="dsVariable" spellChecking="false"/> - <itemData name="Extensions" defStyleNum="dsExtension" spellChecking="false"/> - <itemData name="Exceptions" defStyleNum="dsPreprocessor" spellChecking="false"/> - <itemData name="Overloaders" defStyleNum="dsFunction" spellChecking="false"/> - <itemData name="Import" defStyleNum="dsImport" spellChecking="false"/> - <itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/> - <itemData name="Int" defStyleNum="dsDecVal" spellChecking="false"/> - <itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/> - <itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false"/> - <itemData name="Complex" defStyleNum="dsOthers" spellChecking="false"/> - <itemData name="Comment" defStyleNum="dsComment"/> - <itemData name="String" defStyleNum="dsString"/> - <itemData name="Raw String" defStyleNum="dsVerbatimString"/> - <itemData name="F-String" defStyleNum="dsSpecialString"/> - <itemData name="Raw F-String" defStyleNum="dsVerbatimString"/> - <itemData name="String Char" defStyleNum="dsChar" spellChecking="false"/> - <itemData name="String Substitution" defStyleNum="dsSpecialChar" spellChecking="false"/> - <itemData name="Decorator" defStyleNum="dsAttribute" spellChecking="false"/> - <itemData name="Error" defStyleNum="dsError"/> - </itemDatas> - </highlighting> - <general> - <folding indentationsensitive="1" /> - <emptyLines> - <emptyLine regexpr="(?:\s+|\s*#.*)"/> - </emptyLines> - <comments> - <comment name="singleLine" start="#" position="afterwhitespace"/> - </comments> - <keywords casesensitive="1" additionalDeliminator="#'"/> - </general> -</language> - -<!-- kate: space-indent off; indent-width 4; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/qdocconf.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/qdocconf.xml index 0efd6edc3f..dfd8008d98 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/qdocconf.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/qdocconf.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd"> +<!DOCTYPE language> <language name="QDoc Configuration" - version="1" + version="3" kateversion="5.0" section="Configuration" extensions="*.qdocconf" @@ -84,7 +84,7 @@ <contexts> <context name="key-context" attribute="Normal Text" lineEndContext="#stay"> - <DetectChar char="#" context="comment-context" column="0"/> + <DetectChar char="#" attribute="Comment" context="comment-context" column="0"/> <keyword attribute="Keyword" String="key-names"/> <keyword attribute="Function" String="function-names"/> <DetectChar char="=" context="value-context"/> @@ -112,7 +112,8 @@ </context> <context name="comment-context" attribute="Comment" lineEndContext="#pop"> - <IncludeRules context="##Alerts"/> + <DetectSpaces /> + <IncludeRules context="##Comments"/> </context> </contexts> @@ -134,3 +135,4 @@ <keywords casesensitive="1" weakDeliminator="-/"/> </general> </language> +<!-- kate: replace-tabs on; tab-width 4; indent-width 4; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/ruby.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/ruby.xml index a451e1442f..7c1163910f 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/ruby.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/ruby.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd"> +<!DOCTYPE language> <!-- Ruby syntax highlighting definition for Kate. @@ -31,7 +31,7 @@ <!-- Hold the "language" opening tag on a single line, as mentioned in "language.dtd". --> <language name="Ruby" section="Scripts" - version="10" kateversion="3.3" + version="18" kateversion="5.0" extensions="*.rb;*.rjs;*.rxml;*.xml.erb;*.js.erb;*.rake;Rakefile;Gemfile;*.gemspec;Vagrantfile" mimetype="application/x-ruby" style="ruby" indenter="ruby" @@ -183,6 +183,8 @@ <item>extend</item> <item>include</item> <item>prepend</item> + <item>refine</item> + <item>using</item> </list> <contexts> @@ -191,19 +193,17 @@ <LineContinue attribute="Normal Text" context="Line Continue"/> <!-- __END__ token on own line. --> - <RegExpr attribute="Keyword" String="__END__$" context="DATA" column="0"/> + <RegExpr attribute="Keyword" String="^__END__$" context="DATA" column="0"/> <!-- "shebang" line --> - <RegExpr attribute="Keyword" String="#!\/.*" context="#stay" column="0"/> + <RegExpr attribute="Keyword" String="^#!\/.*" context="#stay" column="0"/> <!-- "def" - "end" blocks --> <!-- check for statement modifiers with regexes --> <DetectChar attribute="Operator" char="{" context="Find closing block brace" beginRegion="def block"/> - <RegExpr attribute="Keyword" String="(\=|\(|\[|\{)\s*(if|unless|while|until)\b" context="#stay" beginRegion="def block"/> - <RegExpr attribute="Keyword" String="(while|until)\b(?!.*\bdo\b)" context="#stay" beginRegion="def block" /> - <RegExpr attribute="Keyword" String="\;\s*(while|until)\b(?!.*\bdo\b)" context="#stay" beginRegion="def block"/> + <DetectChar attribute="Delimiter" char="}" context="check_div_1" endRegion="def block"/> + <RegExpr attribute="Keyword" String="[=([]\s*(if|unless|while|until)\b|(while|until)\b(?!.*\bdo\b)|\;\s*(while|until)\b(?!.*\bdo\b)|\;\s*(if|unless)\b" context="#stay" beginRegion="def block"/> <RegExpr attribute="Keyword" String="(if|unless)\b" context="#stay" beginRegion="def block" firstNonSpace="true"/> - <RegExpr attribute="Keyword" String="\;\s*(if|unless)\b" context="#stay" beginRegion="def block"/> <WordDetect attribute="Keyword" String="class" context="no_heredoc" beginRegion="def block"/> <WordDetect attribute="Keyword" String="module" context="#stay" beginRegion="def block"/> <WordDetect attribute="Keyword" String="begin" context="#stay" beginRegion="def block"/> @@ -236,8 +236,7 @@ <!-- (global) vars starting with $ Match them before $_. --> - <RegExpr attribute="Global Variable" String="\$[a-zA-Z_0-9]+" context="check_div_1"/> - <RegExpr attribute="Global Variable" String="\$\-[a-zA-Z_]\b" context="check_div_1"/> + <RegExpr attribute="Global Variable" String="\$[a-zA-Z_0-9]+|\$\-[a-zA-Z_]\b" context="check_div_1"/> <!-- special-character globals --> <RegExpr attribute="Default globals" String="\$[\d_*`+@;,.~=\!\$:?'/\\\-\&"><]" context="check_div_1"/> <RegExpr attribute="Global Constant" String="\b[_A-Z]+[A-Z_0-9]+\b" context="check_div_2"/> @@ -269,21 +268,16 @@ <DetectChar attribute="Operator" char="." context="#stay"/> <Detect2Chars attribute="Operator" char="&" char1="&" context="#stay"/> <Detect2Chars attribute="Operator" char="|" char1="|" context="#stay"/> - <RegExpr attribute="Operator" String="\s[\?\:\%]\s" context="#stay"/> - <RegExpr attribute="Operator" String="[|&<>\^\+*~\-=]+" context="#stay"/> - <!-- regexp hack --> - <RegExpr attribute="Operator" String="\s!" context="#stay"/> - <RegExpr attribute="Operator" String="/=\s" context="#stay" insensitive="0"/> + <!-- \s! is regexp hack --> + <RegExpr attribute="Operator" String="\s[\?\:\%]\s|[|&<>\^\+*~\-=]+|\s!|/=\s" context="#stay"/> <Detect2Chars attribute="Operator" char="%" char1="=" context="#stay"/> <Detect2Chars attribute="Operator" char=":" char1=":" context="Member Access"/> - <RegExpr attribute="Symbol" String=":(@{1,2}|\$)?[a-zA-Z_][a-zA-Z0-9_]*[=?!]?" context="check_div_1"/> - <RegExpr attribute="Symbol" String=":\[\]=?" context="check_div_1"/> + <RegExpr attribute="Symbol" String=":(@{1,2}|\$)?[a-zA-Z_][a-zA-Z0-9_]*[=?!]?|:\[\]=?" context="check_div_1"/> <!-- Do not send to "check_div_1" context!: after detecting these rules (": ") there can be a regular expression (see bug: #361875) --> - <RegExpr attribute="Symbol" String="(@{1,2}|\$)?[a-zA-Z_][a-zA-Z0-9_]*[=?!]?: " context="#stay"/> - <RegExpr attribute="Symbol" String="\[\]=?: " context="#stay"/> + <RegExpr attribute="Symbol" String="(@{1,2}|\$)?[a-zA-Z_][a-zA-Z0-9_]*[=?!]?: |\[\]=?: " context="#stay"/> <DetectChar attribute="String" char=""" context="Quoted String"/> <DetectChar attribute="Raw String" char="'" context="Apostrophed String"/> @@ -291,14 +285,12 @@ <Detect2Chars attribute="Normal Text" char="?" char1="#" context="#stay"/> - <RegExpr attribute="Comment" String="#\s*BEGIN.*$" context="#stay" beginRegion="marker" column="0"/> - <RegExpr attribute="Comment" String="#\s*END.*$" context="#stay" endRegion="marker" column="0"/> + <RegExpr attribute="Comment" String="^#\s*BEGIN.*$" context="#stay" beginRegion="marker" column="0"/> + <RegExpr attribute="Comment" String="^#\s*END.*$" context="#stay" endRegion="marker" column="0"/> <DetectChar attribute="Comment" char="#" context="General Comment"/> <DetectChar attribute="Delimiter" char="[" context="#stay"/> <DetectChar attribute="Delimiter" char="]" context="check_div_1"/> - <DetectChar attribute="Delimiter" char="{" context="#stay" beginRegion="def block"/> - <DetectChar attribute="Delimiter" char="}" context="check_div_1" endRegion="def block"/> <RegExpr attribute="Instance Variable" String="@[a-zA-Z_0-9]+" context="check_div_1"/> <RegExpr attribute="Class Variable" String="@@[a-zA-Z_0-9]+" context="check_div_1"/> @@ -320,20 +312,20 @@ <!-- A slash is always a division operator, even if preceeded by whitespace --> <context name="check_div_1" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop" lineEndContext="#pop"> - <RegExpr attribute="Normal Text" String="\s*" context="#stay"/> + <DetectSpaces attribute="Normal Text" context="#stay"/> <AnyChar attribute="Operator" String="/%" context="#pop"/> </context> <!-- Same as check_div_1, but with double pop to exit the surrounding context --> <context name="check_div_1_pop" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop#pop" lineEndContext="#pop#pop"> - <RegExpr attribute="Normal Text" String="\s*" context="#stay"/> + <DetectSpaces attribute="Normal Text" context="#stay"/> <AnyChar attribute="Operator" String="/%" context="#pop#pop"/> </context> <!-- A slash is division operator if it's the first character, or if preceeded and followed by whitespace --> <context name="check_div_2" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop" lineEndContext="#pop"> <AnyChar attribute="Operator" String="/%" context="#pop"/> - <RegExpr attribute="Normal Text" String="\s+" context="check_div_2_internal"/> + <DetectSpaces attribute="Normal Text" context="check_div_2_internal"/> </context> <!-- Internal context used by check_div_2 --> @@ -345,7 +337,7 @@ <!-- Same as check_div_2, but with double pop to exit the surrounding context --> <context name="check_div_2_pop" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop#pop" lineEndContext="#pop#pop"> <AnyChar attribute="Operator" String="/%" context="#pop#pop"/> - <RegExpr attribute="Normal Text" String="\s+" context="check_div_2_pop_internal"/> + <DetectSpaces attribute="Normal Text" context="check_div_2_pop_internal"/> </context> <!-- Internal context used by check_div_2_pop --> @@ -355,8 +347,7 @@ </context> <context name="Line Continue" attribute="Normal Text" lineEndContext="#pop"> - <RegExpr attribute="Keyword" String="(while|until)\b(?!.*\bdo\b)" context="#stay" firstNonSpace="true"/> - <RegExpr attribute="Keyword" String="(if|unless)\b" context="#stay" firstNonSpace="true"/> + <RegExpr attribute="Keyword" String="(while|until)\b(?!.*\bdo\b)|(if|unless)\b" context="#stay" firstNonSpace="true"/> <IncludeRules context="Normal"/> </context> @@ -369,6 +360,7 @@ <Detect2Chars attribute="String" char="\" char1="\" context="#stay"/> <Detect2Chars attribute="String" char="\" char1=""" context="#stay"/> <RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/> + <Detect2Chars attribute="Substitution" char="#" char1="$" context="Short Subst"/> <Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/> <DetectChar char=""" attribute="String" context="check_div_1_pop"/> </context> @@ -383,18 +375,21 @@ <Detect2Chars attribute="String" char="\" char1="\" context="#stay"/> <Detect2Chars attribute="String" char="\" char1="`" context="#stay"/> <RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/> + <Detect2Chars attribute="Substitution" char="#" char1="$" context="Short Subst"/> <Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/> <DetectChar char="`" attribute="Command" context="check_div_1_pop"/> </context> <context name="Embedded documentation" attribute="Blockcomment" lineEndContext="#stay"> <RegExpr attribute="Comment" String="^=end(?:\s.*|$)" context="#pop" endRegion="comment block" column="0"/> - <IncludeRules context="##Alerts" /> + <DetectSpaces /> + <IncludeRules context="##Comments" /> </context> <context name="RegEx 1" attribute="Regular Expression" lineEndContext="#stay"> <Detect2Chars attribute="Regular Expression" char="\" char1="/" context="#stay"/> <RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/> + <Detect2Chars attribute="Substitution" char="#" char1="$" context="Short Subst"/> <Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/> <RegExpr attribute="Regular Expression" String="/[uiomxn]*" context="check_div_1_pop"/> </context> @@ -409,6 +404,7 @@ <context name="Short Subst" attribute="Substitution" lineEndContext="#pop"> <!-- Check for e.g.: "#@var#@@xy" --> <RegExpr attribute="Substitution" String="#@{1,2}" context="#stay"/> + <Detect2Chars attribute="Substitution" char="#" char1="$" context="#stay"/> <RegExpr attribute="Substitution" String="\w(?!\w)" context="#pop"/> </context> @@ -431,7 +427,8 @@ </context> <context name="General Comment" attribute="Comment" lineEndContext="#pop"> - <IncludeRules context="##Alerts" /> + <DetectSpaces /> + <IncludeRules context="##Comments" /> </context> <!-- HEREDOC support @@ -440,15 +437,11 @@ <!-- here we markup the heredoc markers --> <context name="find_heredoc" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> <RegExpr attribute="Keyword" context="apostrophed_normal_heredoc" String="'(\w+)'" /> - <RegExpr attribute="Keyword" context="normal_heredoc" String="(\w+)" /> - <RegExpr attribute="Keyword" context="normal_heredoc" String=""(\w+)"" /> - <RegExpr attribute="Keyword" context="normal_heredoc" String="`(\w+)`" /> + <RegExpr attribute="Keyword" context="normal_heredoc" String="(?|(\w+)|"(\w+)"|`(\w+)`)" /> </context> <context name="find_indented_heredoc" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> <RegExpr attribute="Keyword" context="apostrophed_indented_heredoc" String="'(\w+)'" /> - <RegExpr attribute="Keyword" context="indented_heredoc" String="(\w+)" /> - <RegExpr attribute="Keyword" context="indented_heredoc" String=""(\w+)"" /> - <RegExpr attribute="Keyword" context="indented_heredoc" String="`(\w+)`" /> + <RegExpr attribute="Keyword" context="indented_heredoc" String="(?|(\w+)|"(\w+)"|`(\w+)`)" /> </context> <!-- these are the real heredoc contexts --> <context name="indented_heredoc" attribute="Here Document" lineEndContext="#stay" dynamic="true"> @@ -460,16 +453,17 @@ </context> <context name="normal_heredoc" attribute="Here Document" lineEndContext="#stay" dynamic="true"> - <RegExpr attribute="Keyword" context="#pop#pop" String="%1$" dynamic="true" endRegion="HereDocument" column="0"/> + <RegExpr attribute="Keyword" context="#pop#pop" String="^%1$" dynamic="true" endRegion="HereDocument" column="0"/> <IncludeRules context="heredoc_rules" /> </context> <context name="apostrophed_normal_heredoc" attribute="Here Document" lineEndContext="#stay" dynamic="true"> - <RegExpr attribute="Keyword" context="#pop#pop" String="%1$" dynamic="true" endRegion="HereDocument" column="0"/> + <RegExpr attribute="Keyword" context="#pop#pop" String="^%1$" dynamic="true" endRegion="HereDocument" column="0"/> </context> <!-- rules for heredoc types --> <context name="heredoc_rules" attribute="Normal Text" lineEndContext="#stay"> <RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/> + <Detect2Chars attribute="Substitution" char="#" char1="$" context="Short Subst"/> <Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/> </context> @@ -478,8 +472,8 @@ <DetectSpaces /> <Detect2Chars attribute="Operator" char="<" char1="<" context="#pop"/> <!-- comments --> - <RegExpr attribute="Comment" String="#\s*BEGIN.*$" context="#stay" beginRegion="marker" column="0"/> - <RegExpr attribute="Comment" String="#\s*END.*$" context="#stay" endRegion="marker" column="0"/> + <RegExpr attribute="Comment" String="^#\s*BEGIN.*$" context="#stay" beginRegion="marker" column="0"/> + <RegExpr attribute="Comment" String="^#\s*END.*$" context="#stay" endRegion="marker" column="0"/> <DetectChar attribute="Comment" char="#" context="General Comment"/> </context> @@ -599,13 +593,14 @@ --> <context name="gdl_dq_string_5" attribute="String" lineEndContext="#stay" dynamic="true"> <IncludeRules context="dq_string_rules" /> - <RegExpr attribute="String" String="\\%1" context="#stay" dynamic="true" /> + <StringDetect attribute="String" String="\%1" context="#stay" dynamic="true" /> <RegExpr attribute="GDL input" context="#pop#pop" String="\s*%1" dynamic="true" endRegion="GdlInput" /> </context> <!-- rules to be included in all dq_string contexts --> <context name="dq_string_rules" attribute="String" lineEndContext="#stay" > <Detect2Chars attribute="String" char="\" char1="\" context="#stay"/> <RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/> + <Detect2Chars attribute="Substitution" char="#" char1="$" context="Short Subst"/> <Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/> </context> @@ -664,7 +659,7 @@ --> <context name="gdl_token_array_5" attribute="String" lineEndContext="#stay" dynamic="true"> <IncludeRules context="token_array_rules" /> - <RegExpr attribute="String" String="\\%1" context="#stay" dynamic="true"/> + <StringDetect attribute="String" String="\%1" context="#stay" dynamic="true"/> <RegExpr attribute="GDL input" context="#pop#pop" String="\s*%1" dynamic="true" endRegion="GdlInput" /> </context> @@ -728,7 +723,7 @@ --> <context name="gdl_apostrophed_5" attribute="Raw String" lineEndContext="#stay" dynamic="true"> <IncludeRules context="apostrophed_rules" /> - <RegExpr attribute="Raw String" String="\\%1" context="#stay" dynamic="true"/> + <StringDetect attribute="Raw String" String="\%1" context="#stay" dynamic="true"/> <RegExpr attribute="GDL input" context="#pop#pop" String="\s*%1" dynamic="true" endRegion="GdlInput" /> </context> @@ -792,7 +787,7 @@ --> <context name="gdl_shell_command_5" attribute="Command" lineEndContext="#stay" dynamic="true"> <IncludeRules context="shell_command_rules" /> - <RegExpr attribute="Command" String="\\%1" context="#stay" dynamic="true" /> + <StringDetect attribute="Command" String="\%1" context="#stay" dynamic="true" /> <RegExpr attribute="GDL input" context="#pop#pop" String="\s*%1" dynamic="true" endRegion="GdlInput" /> </context> @@ -800,6 +795,7 @@ <context name="shell_command_rules" attribute="Command" lineEndContext="#stay" > <Detect2Chars attribute="Command" char="\" char1="\" context="#stay"/> <RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/> + <Detect2Chars attribute="Substitution" char="#" char1="$" context="Short Subst"/> <Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/> </context> @@ -858,7 +854,7 @@ --> <context name="gdl_regexpr_5" attribute="Regular Expression" lineEndContext="#stay" dynamic="true"> <IncludeRules context="regexpr_rules" /> - <RegExpr attribute="Regular Expression" String="\\%1" context="#stay" dynamic="true" /> + <StringDetect attribute="Regular Expression" String="\%1" context="#stay" dynamic="true" /> <RegExpr attribute="GDL input" context="#pop#pop" String="\s*%1[uiomxn]*" dynamic="true" endRegion="GdlInput" /> </context> @@ -866,6 +862,7 @@ <context name="regexpr_rules" attribute="Regular Expression" lineEndContext="#stay" > <Detect2Chars attribute="Regular Expression" char="\" char1="\" context="#stay"/> <RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/> + <Detect2Chars attribute="Substitution" char="#" char1="$" context="Short Subst"/> <Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/> </context> @@ -878,9 +875,9 @@ <itemDatas> <itemData name="Normal Text" defStyleNum="dsNormal"/> - <itemData name="Keyword" defStyleNum="dsKeyword"/> + <itemData name="Keyword" defStyleNum="dsControlFlow"/> <itemData name="Attribute Definition" defStyleNum="dsOthers"/> - <itemData name="Access Control" defStyleNum="dsKeyword" color="#0000FF"/> + <itemData name="Access Control" defStyleNum="dsAttribute" bold="1"/> <!-- #0000FF --> <itemData name="Definition" defStyleNum="dsKeyword"/> <itemData name="Pseudo variable" defStyleNum="dsDecVal"/> @@ -891,24 +888,24 @@ <itemData name="Hex" defStyleNum="dsBaseN"/> <itemData name="Bin" defStyleNum="dsBaseN"/> - <itemData name="Symbol" defStyleNum="dsString" color="#D40000"/> + <itemData name="Symbol" defStyleNum="dsWarning" bold="0" underline="0"/> <!-- #D40000 --> <itemData name="String" defStyleNum="dsString"/> - <itemData name="Raw String" defStyleNum="dsString" color="#DD4A4A" selColor="#DD4A4A"/> - <itemData name="Command" defStyleNum="dsString" color="#AA3000"/> - <itemData name="Message" defStyleNum="dsNormal" color="#4000A7"/> <!-- #4A00C0 --> - <itemData name="Regular Expression" defStyleNum="dsOthers" color="#4A5704"/> - <itemData name="Substitution" defStyleNum="dsOthers"/> + <itemData name="Raw String" defStyleNum="dsVerbatimString" /> <!-- #DD4A4A --> + <itemData name="Command" defStyleNum="dsInformation"/> <!-- #AA3000 --> + <itemData name="Message" defStyleNum="dsAttribute" bold="0"/> <!-- #4000A7 --> + <itemData name="Regular Expression" defStyleNum="dsSpecialString"/> <!-- #4A5704 --> + <itemData name="Substitution" defStyleNum="dsSpecialChar"/> <itemData name="Data" defStyleNum="dsNormal"/> <!-- short for 'general delimited input' --> <itemData name="GDL input" defStyleNum="dsOthers" /> - <itemData name="Default globals" defStyleNum="dsDataType" color="#C00000" bold="1"/> - <itemData name="Global Variable" defStyleNum="dsDataType" color="#C00000"/> - <itemData name="Global Constant" defStyleNum="dsDataType" color="#bb1188" bold="1"/> + <itemData name="Default globals" defStyleNum="dsVariable" bold="1"/> <!-- #C00000 --> + <itemData name="Global Variable" defStyleNum="dsVariable"/> <!-- #C00000 --> + <itemData name="Global Constant" defStyleNum="dsConstant" bold="1"/> <!-- #bb1188 --> <itemData name="Constant" defStyleNum="dsDataType"/> - <itemData name="Constant Value" defStyleNum="dsDataType" color="#bb1188"/> - <itemData name="Kernel methods" defStyleNum="dsNormal" color="#000080" selColor="#ffffff"/> <!-- #CC0E86 --> - <itemData name="Module mixin methods" defStyleNum="dsNormal" color="#000080" selColor="#ffffff"/> <!-- #CC0E86 --> + <itemData name="Constant Value" defStyleNum="dsConstant" bold="0"/> <!-- #bb1188 --> + <itemData name="Kernel methods" defStyleNum="dsFunction" bold="1"/> <!-- #CC0E86 --> + <itemData name="Module mixin methods" defStyleNum="dsFunction" bold="1"/> <!-- #CC0E86 --> <itemData name="Member" defStyleNum="dsNormal"/> <itemData name="Instance Variable" defStyleNum="dsOthers"/> <itemData name="Class Variable" defStyleNum="dsOthers"/> @@ -916,15 +913,15 @@ <itemData name="Comment" defStyleNum="dsComment"/> <itemData name="Blockcomment" defStyleNum="dsComment"/> - <itemData name="Here Document" defStyleNum="dsOthers"/> + <itemData name="Here Document" defStyleNum="dsDocumentation"/> - <itemData name="Delimiter" defStyleNum="dsNormal" color="#FF9FEC"/> - <itemData name="Operator" defStyleNum="dsNormal" color="#FF9FEC"/> + <itemData name="Delimiter" defStyleNum="dsKeyword"/> <!-- #FF9FEC --> + <itemData name="Operator" defStyleNum="dsKeyword"/> <!-- #FF9FEC --> </itemDatas> </highlighting> <general> <comments> - <comment name="singleLine" start="#"/> + <comment name="singleLine" start="#" position="afterwhitespace"/> </comments> <keywords casesensitive="1" weakDeliminator="!?"/> </general> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/spdx-comments.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/spdx-comments.xml new file mode 100644 index 0000000000..2b89fc5ac7 --- /dev/null +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/spdx-comments.xml @@ -0,0 +1,591 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language> +<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT ***** + cd data/generators + # increase version of spdx-comments.xml.tpl then + ./generate-spdx-syntax.py > ../syntax/spdx-comments.xml +--> +<language + version="6" + kateversion="3.1" + name="SPDX-Comments" + section="Other" + extensions="" + mimetype="" + author="Alex Turbov (i.zaufi@gmail.com)" + license="MIT" + hidden="true" + > + <highlighting> + <list name="tags"> + <item>SPDX-License-Identifier:</item> + <item>SPDX-FileContributor:</item> + <item>SPDX-FileCopyrightText:</item> + <item>SPDX-LicenseInfoInFile:</item> + </list> + + <list name="operators"> + <item>AND</item> + <item>OR</item> + <item>WITH</item> + </list> + + <list name="licenses"> + <item>bzip2-1.0.6</item> + <item>Intel-ACPI</item> + <item>XSkat</item> + <item>CC-BY-NC-SA-2.0</item> + <item>Plexus</item> + <item>Giftware</item> + <item>BitTorrent-1.0</item> + <item>APSL-1.1</item> + <item>UPL-1.0</item> + <item>Caldera</item> + <item>Zend-2.0</item> + <item>CUA-OPL-1.0</item> + <item>JPNIC</item> + <item>SAX-PD</item> + <item>CC-BY-ND-2.5</item> + <item>eGenix</item> + <item>LGPLLR</item> + <item>OLDAP-2.2.2</item> + <item>CC-BY-ND-3.0-DE</item> + <item>IPA</item> + <item>NCSA</item> + <item>W3C</item> + <item>Adobe-2006</item> + <item>Net-SNMP</item> + <item>CC-BY-SA-4.0</item> + <item>YPL-1.0</item> + <item>MITNFA</item> + <item>PHP-3.01</item> + <item>BSD-Source-Code</item> + <item>CC-BY-SA-2.5</item> + <item>Motosoto</item> + <item>OSL-1.1</item> + <item>NGPL</item> + <item>CC-BY-2.5-AU</item> + <item>Unicode-TOU</item> + <item>BSD-3-Clause-No-Nuclear-License</item> + <item>OPUBL-1.0</item> + <item>CC-BY-NC-SA-2.0-UK</item> + <item>NLOD-2.0</item> + <item>gnuplot</item> + <item>EPICS</item> + <item>Info-ZIP</item> + <item>OLDAP-2.0</item> + <item>CERN-OHL-P-2.0</item> + <item>BSD-3-Clause-No-Nuclear-Warranty</item> + <item>AML</item> + <item>MulanPSL-1.0</item> + <item>Multics</item> + <item>VSL-1.0</item> + <item>RSA-MD</item> + <item>CC-PDDC</item> + <item>CC-BY-SA-2.1-JP</item> + <item>LPPL-1.2</item> + <item>Spencer-94</item> + <item>OLDAP-1.2</item> + <item>O-UDA-1.0</item> + <item>OLDAP-2.7</item> + <item>Glulxe</item> + <item>iMatix</item> + <item>TAPR-OHL-1.0</item> + <item>NBPL-1.0</item> + <item>LiLiQ-R-1.1</item> + <item>Noweb</item> + <item>CC0-1.0</item> + <item>BSD-Protection</item> + <item>CC-BY-NC-2.5</item> + <item>Zlib</item> + <item>GFDL-1.3-invariants-or-later</item> + <item>CC-BY-3.0-AT</item> + <item>LPPL-1.3c</item> + <item>EPL-1.0</item> + <item>GFDL-1.1-invariants-or-later</item> + <item>ANTLR-PD-fallback</item> + <item>OLDAP-2.4</item> + <item>OLDAP-2.3</item> + <item>ZPL-2.1</item> + <item>Apache-2.0</item> + <item>SGI-B-2.0</item> + <item>Hippocratic-2.1</item> + <item>CC-BY-SA-3.0-DE</item> + <item>CC-BY-NC-SA-1.0</item> + <item>LGPL-2.1-or-later</item> + <item>CC-BY-3.0-US</item> + <item>TCP-wrappers</item> + <item>GFDL-1.2-invariants-or-later</item> + <item>Eurosym</item> + <item>LPPL-1.0</item> + <item>SGI-B-1.0</item> + <item>APL-1.0</item> + <item>libtiff</item> + <item>AFL-2.1</item> + <item>CC-BY-NC-1.0</item> + <item>GD</item> + <item>AFL-1.1</item> + <item>CC-BY-NC-ND-3.0-IGO</item> + <item>Unicode-DFS-2015</item> + <item>GFDL-1.2-only</item> + <item>MPL-1.1</item> + <item>GPL-2.0-only</item> + <item>CC-BY-NC-4.0</item> + <item>FreeImage</item> + <item>SHL-0.51</item> + <item>CNRI-Jython</item> + <item>ZPL-1.1</item> + <item>Afmparse</item> + <item>OLDAP-2.1</item> + <item>Rdisc</item> + <item>Imlib2</item> + <item>BSD-4-Clause-Shortened</item> + <item>Sendmail</item> + <item>CC-BY-2.5</item> + <item>AAL</item> + <item>MPL-2.0-no-copyleft-exception</item> + <item>CC-BY-NC-ND-2.5</item> + <item>CC-BY-3.0-NL</item> + <item>LPL-1.02</item> + <item>ECL-1.0</item> + <item>OFL-1.0-no-RFN</item> + <item>CC-BY-NC-SA-3.0-DE</item> + <item>CC-BY-SA-3.0</item> + <item>NTP</item> + <item>MPL-2.0</item> + <item>APSL-1.2</item> + <item>GFDL-1.2-no-invariants-only</item> + <item>Artistic-2.0</item> + <item>RSCPL</item> + <item>Sleepycat</item> + <item>xpp</item> + <item>CDLA-Sharing-1.0</item> + <item>ClArtistic</item> + <item>AGPL-1.0-only</item> + <item>CC-BY-3.0-DE</item> + <item>AFL-2.0</item> + <item>Intel</item> + <item>GFDL-1.1-no-invariants-or-later</item> + <item>APAFML</item> + <item>SISSL</item> + <item>Naumen</item> + <item>HTMLTIDY</item> + <item>OLDAP-2.8</item> + <item>blessing</item> + <item>CC-BY-ND-2.0</item> + <item>OGTSL</item> + <item>LGPL-2.0-or-later</item> + <item>Parity-7.0.0</item> + <item>CC-BY-ND-1.0</item> + <item>dvipdfm</item> + <item>CNRI-Python</item> + <item>BSD-4-Clause-UC</item> + <item>NLOD-1.0</item> + <item>MS-RL</item> + <item>CC-BY-NC-SA-4.0</item> + <item>HaskellReport</item> + <item>CC-BY-1.0</item> + <item>UCL-1.0</item> + <item>Mup</item> + <item>SMPPL</item> + <item>PHP-3.0</item> + <item>GL2PS</item> + <item>CrystalStacker</item> + <item>W3C-20150513</item> + <item>NIST-PD-fallback</item> + <item>OGL-UK-1.0</item> + <item>CPL-1.0</item> + <item>LGPL-2.1-only</item> + <item>ZPL-2.0</item> + <item>Frameworx-1.0</item> + <item>AGPL-3.0-only</item> + <item>DRL-1.0</item> + <item>EFL-2.0</item> + <item>Spencer-99</item> + <item>CAL-1.0-Combined-Work-Exception</item> + <item>GFDL-1.1-invariants-only</item> + <item>TCL</item> + <item>SHL-0.5</item> + <item>OFL-1.0-RFN</item> + <item>CERN-OHL-W-2.0</item> + <item>Glide</item> + <item>mpich2</item> + <item>psutils</item> + <item>SPL-1.0</item> + <item>Apache-1.1</item> + <item>CC-BY-ND-4.0</item> + <item>FreeBSD-DOC</item> + <item>SCEA</item> + <item>Latex2e</item> + <item>Artistic-1.0-cl8</item> + <item>SGI-B-1.1</item> + <item>NRL</item> + <item>SWL</item> + <item>Zed</item> + <item>CERN-OHL-1.1</item> + <item>RHeCos-1.1</item> + <item>JasPer-2.0</item> + <item>SSPL-1.0</item> + <item>OLDAP-1.4</item> + <item>libpng-2.0</item> + <item>CNRI-Python-GPL-Compatible</item> + <item>Aladdin</item> + <item>CECILL-1.0</item> + <item>Ruby</item> + <item>NPL-1.1</item> + <item>ImageMagick</item> + <item>Cube</item> + <item>GFDL-1.1-only</item> + <item>CC-BY-2.0</item> + <item>AFL-1.2</item> + <item>CC-BY-SA-2.0</item> + <item>CECILL-2.0</item> + <item>MIT-advertising</item> + <item>CC-BY-NC-SA-2.5</item> + <item>Artistic-1.0</item> + <item>OSL-3.0</item> + <item>X11</item> + <item>Bahyph</item> + <item>OLDAP-2.0.1</item> + <item>EUDatagrid</item> + <item>MTLL</item> + <item>GFDL-1.2-invariants-only</item> + <item>GFDL-1.3-no-invariants-or-later</item> + <item>curl</item> + <item>LAL-1.3</item> + <item>DSDP</item> + <item>CERN-OHL-1.2</item> + <item>TOSL</item> + <item>CC-BY-3.0</item> + <item>Qhull</item> + <item>GFDL-1.3-no-invariants-only</item> + <item>TORQUE-1.1</item> + <item>MS-PL</item> + <item>Apache-1.0</item> + <item>copyleft-next-0.3.1</item> + <item>GFDL-1.2-or-later</item> + <item>MulanPSL-2.0</item> + <item>FSFAP</item> + <item>Xerox</item> + <item>CDDL-1.0</item> + <item>GFDL-1.3-invariants-only</item> + <item>etalab-2.0</item> + <item>XFree86-1.1</item> + <item>SNIA</item> + <item>LPPL-1.1</item> + <item>CATOSL-1.1</item> + <item>TU-Berlin-2.0</item> + <item>GFDL-1.3-or-later</item> + <item>LAL-1.2</item> + <item>ICU</item> + <item>FTL</item> + <item>MirOS</item> + <item>CC-BY-NC-ND-3.0</item> + <item>OSET-PL-2.1</item> + <item>CC-BY-NC-ND-2.0</item> + <item>SISSL-1.2</item> + <item>Wsuipa</item> + <item>Zimbra-1.4</item> + <item>Linux-OpenIB</item> + <item>OLDAP-2.5</item> + <item>AMPAS</item> + <item>GPL-1.0-or-later</item> + <item>BUSL-1.1</item> + <item>Adobe-Glyph</item> + <item>0BSD</item> + <item>W3C-19980720</item> + <item>FSFUL</item> + <item>CC-BY-NC-SA-3.0</item> + <item>DOC</item> + <item>TMate</item> + <item>MIT-open-group</item> + <item>AMDPLPA</item> + <item>Condor-1.1</item> + <item>PolyForm-Noncommercial-1.0.0</item> + <item>BSD-3-Clause-No-Military-License</item> + <item>CC-BY-4.0</item> + <item>OGL-Canada-2.0</item> + <item>CC-BY-NC-SA-3.0-IGO</item> + <item>EFL-1.0</item> + <item>Newsletr</item> + <item>copyleft-next-0.3.0</item> + <item>GPL-3.0-or-later</item> + <item>CDLA-Permissive-2.0</item> + <item>CC-BY-ND-3.0</item> + <item>C-UDA-1.0</item> + <item>Barr</item> + <item>Vim</item> + <item>BitTorrent-1.1</item> + <item>CDL-1.0</item> + <item>CC-BY-SA-1.0</item> + <item>ADSL</item> + <item>PostgreSQL</item> + <item>OFL-1.1</item> + <item>NPL-1.0</item> + <item>xinetd</item> + <item>LGPL-2.0-only</item> + <item>zlib-acknowledgement</item> + <item>OLDAP-2.2.1</item> + <item>APSL-1.0</item> + <item>BSD-3-Clause-LBNL</item> + <item>GLWTPL</item> + <item>LGPL-3.0-only</item> + <item>OGC-1.0</item> + <item>Dotseqn</item> + <item>MakeIndex</item> + <item>GPL-3.0-only</item> + <item>BSD-3-Clause-No-Nuclear-License-2014</item> + <item>GPL-1.0-only</item> + <item>IJG</item> + <item>AGPL-1.0-or-later</item> + <item>OFL-1.1-no-RFN</item> + <item>BSL-1.0</item> + <item>Libpng</item> + <item>CC-BY-NC-3.0</item> + <item>CC-BY-NC-2.0</item> + <item>Unlicense</item> + <item>LPL-1.0</item> + <item>bzip2-1.0.5</item> + <item>Entessa</item> + <item>BSD-2-Clause-Patent</item> + <item>ECL-2.0</item> + <item>Crossword</item> + <item>CC-BY-NC-ND-1.0</item> + <item>OCLC-2.0</item> + <item>CECILL-1.1</item> + <item>CECILL-2.1</item> + <item>OGDL-Taiwan-1.0</item> + <item>Abstyles</item> + <item>libselinux-1.0</item> + <item>ANTLR-PD</item> + <item>GPL-2.0-or-later</item> + <item>IPL-1.0</item> + <item>MIT-enna</item> + <item>CPOL-1.02</item> + <item>CC-BY-SA-3.0-AT</item> + <item>BSD-1-Clause</item> + <item>NTP-0</item> + <item>SugarCRM-1.1.3</item> + <item>MIT</item> + <item>OFL-1.1-RFN</item> + <item>Watcom-1.0</item> + <item>CC-BY-NC-SA-2.0-FR</item> + <item>ODbL-1.0</item> + <item>FSFULLR</item> + <item>OLDAP-1.3</item> + <item>SSH-OpenSSH</item> + <item>BSD-2-Clause</item> + <item>HPND</item> + <item>Zimbra-1.3</item> + <item>Borceux</item> + <item>OLDAP-1.1</item> + <item>OFL-1.0</item> + <item>NASA-1.3</item> + <item>VOSTROM</item> + <item>MIT-0</item> + <item>ISC</item> + <item>Unicode-DFS-2016</item> + <item>BlueOak-1.0.0</item> + <item>LiLiQ-Rplus-1.1</item> + <item>NOSL</item> + <item>SMLNJ</item> + <item>CPAL-1.0</item> + <item>PSF-2.0</item> + <item>RPL-1.5</item> + <item>MIT-Modern-Variant</item> + <item>Nokia</item> + <item>GFDL-1.1-no-invariants-only</item> + <item>PDDL-1.0</item> + <item>EUPL-1.0</item> + <item>CDDL-1.1</item> + <item>GFDL-1.3-only</item> + <item>OLDAP-2.6</item> + <item>JSON</item> + <item>LGPL-3.0-or-later</item> + <item>Fair</item> + <item>OSL-2.1</item> + <item>LPPL-1.3a</item> + <item>NAIST-2003</item> + <item>CC-BY-NC-ND-4.0</item> + <item>CC-BY-NC-3.0-DE</item> + <item>OPL-1.0</item> + <item>HPND-sell-variant</item> + <item>QPL-1.0</item> + <item>EUPL-1.2</item> + <item>GFDL-1.2-no-invariants-or-later</item> + <item>NCGL-UK-2.0</item> + <item>Beerware</item> + <item>BSD-3-Clause-Open-MPI</item> + <item>CECILL-B</item> + <item>EPL-2.0</item> + <item>MIT-feh</item> + <item>RPL-1.1</item> + <item>CDLA-Permissive-1.0</item> + <item>Python-2.0</item> + <item>MPL-1.0</item> + <item>GFDL-1.1-or-later</item> + <item>diffmark</item> + <item>OpenSSL</item> + <item>OSL-1.0</item> + <item>Parity-6.0.0</item> + <item>YPL-1.1</item> + <item>SSH-short</item> + <item>IBM-pibs</item> + <item>Xnet</item> + <item>TU-Berlin-1.0</item> + <item>CAL-1.0</item> + <item>AFL-3.0</item> + <item>CECILL-C</item> + <item>OGL-UK-3.0</item> + <item>BSD-3-Clause-Clear</item> + <item>BSD-3-Clause-Modification</item> + <item>CC-BY-SA-2.0-UK</item> + <item>Saxpath</item> + <item>NLPL</item> + <item>SimPL-2.0</item> + <item>psfrag</item> + <item>Spencer-86</item> + <item>OCCT-PL</item> + <item>CERN-OHL-S-2.0</item> + <item>ErlPL-1.1</item> + <item>MIT-CMU</item> + <item>NIST-PD</item> + <item>OSL-2.0</item> + <item>APSL-2.0</item> + <item>Leptonica</item> + <item>PolyForm-Small-Business-1.0.0</item> + <item>LiLiQ-P-1.1</item> + <item>NetCDF</item> + <item>OML</item> + <item>AGPL-3.0-or-later</item> + <item>OLDAP-2.2</item> + <item>BSD-3-Clause</item> + <item>WTFPL</item> + <item>OGL-UK-2.0</item> + <item>BSD-3-Clause-Attribution</item> + <item>RPSL-1.0</item> + <item>CC-BY-NC-ND-3.0-DE</item> + <item>EUPL-1.1</item> + <item>Sendmail-8.23</item> + <item>ODC-By-1.0</item> + <item>D-FSL-1.0</item> + <item>BSD-4-Clause</item> + <item>BSD-2-Clause-Views</item> + <item>Artistic-1.0-Perl</item> + <item>NPOSL-3.0</item> + <item>gSOAP-1.3b</item> + <item>Interbase-1.0</item> + </list> + + <list name="deprecated-licenses"> + <item>GPL-1.0</item> + <item>GPL-2.0-with-GCC-exception</item> + <item>wxWindows</item> + <item>Nunit</item> + <item>GFDL-1.1</item> + <item>GPL-2.0</item> + <item>GFDL-1.2</item> + <item>LGPL-2.0</item> + <item>GPL-3.0-with-autoconf-exception</item> + <item>GFDL-1.3</item> + <item>BSD-2-Clause-NetBSD</item> + <item>LGPL-3.0</item> + <item>GPL-2.0-with-classpath-exception</item> + <item>GPL-3.0-with-GCC-exception</item> + <item>BSD-2-Clause-FreeBSD</item> + <item>GPL-3.0</item> + <item>GPL-2.0-with-font-exception</item> + <item>eCos-2.0</item> + <item>GPL-2.0-with-bison-exception</item> + <item>GPL-2.0-with-autoconf-exception</item> + <item>AGPL-1.0</item> + <item>AGPL-3.0</item> + <item>LGPL-2.1</item> + <item>StandardML-NJ</item> + </list> + + <list name="exceptions"> + <item>GPL-CC-1.0</item> + <item>openvpn-openssl-exception</item> + <item>WxWindows-exception-3.1</item> + <item>GPL-3.0-linking-exception</item> + <item>i2p-gpl-java-exception</item> + <item>OpenJDK-assembly-exception-1.0</item> + <item>mif-exception</item> + <item>CLISP-exception-2.0</item> + <item>freertos-exception-2.0</item> + <item>Bison-exception-2.2</item> + <item>OCCT-exception-1.0</item> + <item>Autoconf-exception-2.0</item> + <item>LLVM-exception</item> + <item>GCC-exception-3.1</item> + <item>Font-exception-2.0</item> + <item>Libtool-exception</item> + <item>u-boot-exception-2.0</item> + <item>Swift-exception</item> + <item>eCos-exception-2.0</item> + <item>OCaml-LGPL-linking-exception</item> + <item>Qt-GPL-exception-1.0</item> + <item>Linux-syscall-note</item> + <item>Bootloader-exception</item> + <item>PS-or-PDF-font-exception-20170817</item> + <item>Universal-FOSS-exception-1.0</item> + <item>Classpath-exception-2.0</item> + <item>Qwt-exception-1.0</item> + <item>LZMA-exception</item> + <item>Autoconf-exception-3.0</item> + <item>DigiRule-FOSS-exception</item> + <item>389-exception</item> + <item>SHL-2.0</item> + <item>GCC-exception-2.0</item> + <item>GPL-3.0-linking-source-exception</item> + <item>Qt-LGPL-exception-1.1</item> + <item>Fawkes-Runtime-exception</item> + <item>gnu-javamail-exception</item> + <item>FLTK-exception</item> + <item>LGPL-3.0-linking-exception</item> + <item>SHL-2.1</item> + </list> + + <list name="deprecated-exceptions"> + <item>Nokia-Qt-exception-1.1</item> + </list> + + <contexts> + + <context name="Normal" attribute="SPDX Tag" lineEndContext="#pop"> + <WordDetect String="SPDX-License-Identifier:" attribute="SPDX Tag" context="license-expression" /> + <keyword String="tags" attribute="SPDX Tag" /> + </context> + + <context name="license-expression" attribute="SPDX Value" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> + <DetectSpaces/> + <AnyChar String="()+" context="#stay" attribute="SPDX License Expression Operator" /> + <keyword String="licenses" context="#stay" attribute="SPDX License" /> + <keyword String="deprecated-licenses" context="#stay" attribute="SPDX Deprecated License" /> + <keyword String="exceptions" context="#stay" attribute="SPDX License Exception" /> + <keyword String="deprecated-exceptions" context="#stay" attribute="SPDX Deprecated License Exception" /> + <keyword String="operators" context="#stay" attribute="SPDX License Expression Operator" /> + <RegExpr attribute="SPDX License" context="#stay" String="\bLicenseRef-[^\s]+" /> + </context> + + </contexts> + + <itemDatas> + <itemData name="SPDX Tag" defStyleNum="dsAnnotation" italic="true" spellChecking="false" /> + <itemData name="SPDX Value" defStyleNum="dsAnnotation" italic="true" spellChecking="false" /> + <itemData name="SPDX License" defStyleNum="dsAnnotation" italic="true" spellChecking="false" /> + <itemData name="SPDX License Exception" defStyleNum="dsAnnotation" italic="true" spellChecking="false" /> + <itemData name="SPDX Deprecated License" defStyleNum="dsAnnotation" italic="true" spellChecking="false" /> + <itemData name="SPDX Deprecated License Exception" defStyleNum="dsAnnotation" italic="true" spellChecking="false" /> + <itemData name="SPDX License Expression Operator" defStyleNum="dsOperator" italic="true" spellChecking="false" /> + </itemDatas> + + </highlighting> + + <general> + <keywords casesensitive="1" weakDeliminator=":-." /> + </general> + +</language> +<!-- kate: indent-width 2; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/toml.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/toml.xml new file mode 100644 index 0000000000..d643069bf8 --- /dev/null +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/toml.xml @@ -0,0 +1,183 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language +[ + <!ENTITY more "(_[0-9]++)*+"> + <!ENTITY int "(0|[1-9][0-9]*+&more;)"> + <!ENTITY frac "\.[0-9]+&more;"> + <!ENTITY exp "[eE][+-]?[0-9]+&more;"> + + <!ENTITY offset "[+-][0-9][0-9]:[0-9][0-9]"> + <!ENTITY time "[0-9][0-9]:[0-9][0-9]:[0-9][0-9](\.[0-9]+)?"> + <!ENTITY datetime "[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]([T ]&time;(&offset;|Z)?)?|&time;"> +]> +<!-- https://github.com/toml-lang/toml --> +<!-- https://toml.io/en/v1.0.0 --> +<language + name="TOML" + section="Configuration" + extensions="Cargo.lock;*.toml;*.rc;*.conf;*.cfg;*.cf;*.cnf;*.ini;mirrorlist" + mimetype="text/x-toml;application/toml" + version="13" + kateversion="5.0" + author="flying-sheep@web.de" + license="LGPLv2+" + priority="-1" + > +<highlighting> + <list name="bools"> + <item>true</item> + <item>false</item> + </list> + + <contexts> + <context attribute="Error" lineEndContext="#stay" name="Toml"> + <DetectSpaces attribute="Whitespace"/> + <Detect2Chars attribute="TableHeader" context="NestedTableHeader" char="[" char1="[" endRegion="Table"/> + <DetectChar attribute="TableHeader" context="TableHeader" char="[" endRegion="Table"/> + <DetectChar attribute="Assignment" context="Value" char="="/> + <DetectChar char="#" attribute="Comment" context="Comment"/> + <IncludeRules context="FindKey"/> + </context> + + + <context attribute="Key" lineEndContext="#stay" name="FindKey"> + <DetectChar attribute="Key" char="."/> + <RegExpr attribute="Key" context="#stay" String="[A-Za-z0-9_-]+"/> + <DetectChar attribute="Key" context="QuotedKey" char="""/> + <DetectChar attribute="Key" context="LitQuotedKey" char="'"/> + </context> + + + <!-- table headers --> + <context attribute="TableHeader" fallthrough="true" fallthroughContext="#pop" lineEndContext="#pop" name="TableHeader"> + <DetectChar attribute="TableHeader" context="#pop" char="]" beginRegion="Table"/> + <IncludeRules context="TableHeaderCommon"/> + </context> + + <context attribute="TableHeader" fallthrough="true" fallthroughContext="#pop" lineEndContext="#pop" name="NestedTableHeader"> + <Detect2Chars attribute="TableHeader" context="#pop" char="]" char1="]" beginRegion="Table"/> + <IncludeRules context="TableHeaderCommon"/> + </context> + + <context attribute="TableHeader" lineEndContext="#pop" name="TableHeaderCommon"> + <DetectSpaces attribute="Whitespace"/> + <DetectChar attribute="TableHeader" char="."/> + <RegExpr attribute="TableHeader" context="#stay" String="[A-Za-z0-9_-]+"/> + <DetectChar attribute="TableHeader" context="QuotedKey" char="""/> + <DetectChar attribute="TableHeader" context="LitQuotedKey" char="'"/> + </context> + + + <!-- values --> + <context attribute="Error" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop" name="Value"> + <DetectSpaces attribute="Whitespace"/> + <WordDetect attribute="Boolean true" context="#pop" String="true"/> + <WordDetect attribute="Boolean false" context="#pop" String="false"/> + <StringDetect attribute="String" context="#pop!MultilineString" String="""""/> + <DetectChar attribute="String" context="#pop!String" char="""/> + <StringDetect attribute="String" context="#pop!LitMultilineString" String="'''"/> + <DetectChar attribute="String" context="#pop!LitString" char="'"/> + <DetectChar attribute="Array" context="#pop!Array" char="["/> + <DetectChar attribute="InlineTable" context="#pop!InlineTable" char="{"/> + <RegExpr attribute="Date" context="#pop" String="&datetime;"/> + <RegExpr attribute="Int" context="#pop" String="[+-]?(0x[0-9a-fA-F]+(_[0-9a-fA-F]+)*|0o[0-7]+(_[0-7]+)*|0b[01]+(_[01]+)*|∫(?!(\.|[eE][+-]?)[0-9]))"/> + <RegExpr attribute="Float" context="#pop" String="[+-]?(∫(&frac;(&exp;)?|&exp;)|inf|nan)"/> + </context> + + <context attribute="Comment" lineEndContext="#pop" name="Comment"> + <DetectSpaces/> + <IncludeRules context="##Comments"/> + <DetectIdentifier/> + </context> + + + <!-- Quoted keys and Strings--> + <context attribute="Key" lineEndContext="#pop" name="QuotedKey"> + <DetectChar attribute="Key" context="#pop" char="""/> + <IncludeRules context="FindEscapedChar"/> + </context> + + <context attribute="String" lineEndContext="#pop" name="String"> + <DetectChar attribute="String" context="#pop" char="""/> + <IncludeRules context="FindEscapedChar"/> + </context> + + <context attribute="String" lineEndContext="#stay" name="MultilineString"> + <StringDetect attribute="String" context="#pop" String="""""""/> + <StringDetect attribute="String" context="#pop" String=""""""/> + <StringDetect attribute="String" context="#pop" String="""""/> + <LineContinue attribute="Escape" context="#stay"/> + <IncludeRules context="FindEscapedChar"/> + </context> + + <context attribute="String" lineEndContext="#pop" name="FindEscapedChar"> + <RegExpr attribute="Escape" String="\\[btnfr"\\]|\\u[0-9a-fA-F]{4}|\\U[0-9a-fA-F]{8}" context="#stay"/> + <RegExpr attribute="Error" String="\\[uU][0-9a-fA-F]*|\\." context="#stay"/> + </context> + + <context attribute="Key" lineEndContext="#pop" name="LitQuotedKey"> + <DetectChar attribute="Key" context="#pop" char="'"/> + </context> + + <context attribute="LitString" lineEndContext="#pop" name="LitString"> + <DetectChar attribute="String" context="#pop" char="'"/> + </context> + + <context attribute="LitString" lineEndContext="#stay" name="LitMultilineString"> + <StringDetect attribute="String" context="#pop" String="'''''"/> + <StringDetect attribute="String" context="#pop" String="''''"/> + <StringDetect attribute="String" context="#pop" String="'''"/> + </context> + + + <!-- Arrays --> + <context attribute="Array" lineEndContext="#stay" name="Array" fallthrough="true" fallthroughContext="InArray"> + <DetectSpaces attribute="Whitespace"/> + <DetectChar context="#pop" attribute="Array" char="]"/> + <DetectChar attribute="Comment" context="Comment" char="#"/> + <DetectChar context="InArray" attribute="NextEntry" char=","/> + </context> + <context attribute="Error" lineEndContext="#stay" name="InArray"> + <DetectChar context="#pop#pop" attribute="Array" char="]"/> + <DetectChar context="#stay" attribute="Error" char=","/> + <DetectChar attribute="Comment" context="Comment" char="#"/> + <IncludeRules context="Value"/> + </context> + + <context attribute="InlineTable" lineEndContext="#stay" name="InlineTable"> + <DetectChar attribute="Assignment" context="Value" char="="/> + <DetectChar char="#" attribute="Comment" context="Comment"/> + <DetectChar context="#pop" attribute="InlineTable" char="}"/> + <DetectChar context="#stay" attribute="NextEntry" char=","/> + <IncludeRules context="FindKey"/> + </context> + + </contexts> + <itemDatas> + <itemData name="Whitespace" defStyleNum="dsNormal"/> + <itemData name="Key" defStyleNum="dsDataType"/> + <itemData name="TableHeader" defStyleNum="dsKeyword"/> + <itemData name="Assignment" defStyleNum="dsOperator"/> + <itemData name="Comment" defStyleNum="dsComment"/> + + <itemData name="Date" defStyleNum="dsBaseN"/> + <itemData name="Float" defStyleNum="dsFloat"/> + <itemData name="Int" defStyleNum="dsDecVal"/> + <itemData name="Boolean true" defStyleNum="dsConstant"/> + <itemData name="Boolean false" defStyleNum="dsConstant"/> + <itemData name="String" defStyleNum="dsString"/> + <itemData name="LitString" defStyleNum="dsVerbatimString"/> + <itemData name="Escape" defStyleNum="dsSpecialChar"/> + <itemData name="Array" defStyleNum="dsOperator"/> + <itemData name="InlineTable" defStyleNum="dsOperator"/> + <itemData name="NextEntry" defStyleNum="dsOperator"/> + + <itemData name="Error" defStyleNum="dsError"/> + </itemDatas> +</highlighting> +<general> + <comments> + <comment name="singleLine" start="#" position="afterwhitespace"/> + </comments> +</general> +</language> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/valgrind-suppression.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/valgrind-suppression.xml index 7fe3dd474e..e795aca79f 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/valgrind-suppression.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/valgrind-suppression.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd"> -<language name="Valgrind Suppression" section="Other" extensions="*.supp;" mimetype="" version="2" kateversion="2.4" author="Milian Wolff (mail@milianw.de)" license="LGPL"> +<!DOCTYPE language> +<language name="Valgrind Suppression" section="Other" extensions="*.supp;" mimetype="" version="4" kateversion="5.0" author="Milian Wolff (mail@milianw.de)" license="LGPL"> <highlighting> <contexts> <context name="File" attribute="Normal Text" lineEndContext="#stay"> @@ -9,7 +9,7 @@ </context> <context name="Rule" attribute="Normal Text" lineEndContext="#stay" > - <RegExpr attribute="RuleName" String="^[^\}]+$" context="Rule2" /> + <RegExpr attribute="RuleName" String="^[^\}]+$" context="Rule2" column="0" /> <DetectChar char="}" attribute="Normal Text" context="#pop" firstNonSpace="true" /> </context> @@ -25,7 +25,7 @@ <context name="Comment" attribute="Comment" lineEndContext="#pop"> <DetectSpaces /> - <IncludeRules context="##Alerts" /> + <IncludeRules context="##Comments" /> <DetectIdentifier /> </context> </contexts> @@ -49,3 +49,4 @@ </general> </language> +<!-- kate: replace-tabs on; indent-width 2; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/xml.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/xml.xml index ad34a450b6..da1910e26c 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/xml.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/xml.xml @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd" +<!DOCTYPE language [ <!-- names must start with a letter, ideogram or underscore. \w matches any word character *or* a number, hence the lookahead --> <!ENTITY name "(?![0-9])[\w_:][\w.:_-]*"> - <!ENTITY entref "&(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);"> + <!ENTITY entref "&(?:#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);"> ]> -<language name="XML" version="9" kateversion="3.4" section="Markup" extensions="*.docbook;*.xml;*.rc;*.daml;*.rdf;*.rss;*.xspf;*.xsd;*.svg;*.ui;*.kcfg;*.qrc;*.wsdl;*.scxml;*.xbel;*.dae;*.sch;*.brd" mimetype="text/xml;text/book;text/daml;text/rdf;application/rss+xml;application/xspf+xml;image/svg+xml;application/x-designer;application/x-xbel;application/xml;application/scxml+xml" casesensitive="1" indenter="xml" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL"> +<language name="XML" version="20" kateversion="5.0" section="Markup" extensions="*.page;*.docbook;*.xml;*ui.rc;*.daml;*.rdf;*.rss;*.xspf;*.xsd;*.svg;*.ui;*.kcfg;*.qrc;*.wsdl;*.scxml;*.xbel;*.dae;*.sch;*.brd" mimetype="text/xml;text/book;text/daml;text/rdf;application/rss+xml;application/xspf+xml;image/svg+xml;application/x-designer;application/x-xbel;application/xml;application/scxml+xml;application/vnd.oasis.opendocument.text-flat-xml;application/vnd.oasis.opendocument.graphics-flat-xml;application/vnd.oasis.opendocument.presentation-flat-xml;application/vnd.oasis.opendocument.spreadsheet-flat-xml;application/gpx+xml" casesensitive="1" indenter="xml" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL"> <highlighting> <contexts> @@ -16,13 +16,13 @@ <context name="FindXML" attribute="Normal Text" lineEndContext="#stay"> <DetectSpaces /> + <DetectIdentifier /> + <RegExpr attribute="Element Symbols" context="ElementTagName" String="<(?=(&name;))" beginRegion="element" /> <StringDetect attribute="Comment" context="Comment" String="<!--" beginRegion="comment" /> - <StringDetect attribute="CDATA" context="CDATA" String="<![CDATA[" beginRegion="cdata" /> - <RegExpr attribute="Doctype" context="Doctype" String="<!DOCTYPE\s+" beginRegion="doctype" /> - <RegExpr attribute="Processing Instruction" context="PI" String="<\?[\w:_-]*" beginRegion="pi" /> - <RegExpr attribute="Element" context="Element" String="<&name;" beginRegion="element" /> + <StringDetect attribute="CDATA" context="CDATAStart" String="<![CDATA[" lookAhead="true" /> + <RegExpr attribute="Doctype Symbols" context="DoctypeTagName" String="<!(?=DOCTYPE(\s|$))" beginRegion="doctype" /> + <IncludeRules context="FindProcessingInstruction" /> <IncludeRules context="FindEntityRefs" /> - <DetectIdentifier /> </context> <context name="FindEntityRefs" attribute="Other Text" lineEndContext="#stay"> @@ -33,44 +33,76 @@ <context name="FindPEntityRefs" attribute="Other Text" lineEndContext="#stay"> <RegExpr attribute="EntityRef" context="#stay" String="&entref;" /> <RegExpr attribute="PEntityRef" context="#stay" String="%&name;;" /> - <AnyChar attribute="Error" context="#stay" String="&%" /> + <AnyChar attribute="Error" context="#stay" String="&%<" /> </context> <context name="Comment" attribute="Comment" lineEndContext="#stay"> <DetectSpaces /> <StringDetect attribute="Comment" context="#pop" String="-->" endRegion="comment" /> - <RegExpr attribute="Error" context="#stay" String="-(-(?!->))+" /> - <IncludeRules context="##Alerts" /> + <RegExpr attribute="Error" context="#stay" String="-(?:\-(?!->))+" /> + <IncludeRules context="##Comments" /> <DetectIdentifier /> </context> + <context name="CDATAStart" attribute="Other Text" lineEndContext="#pop"> + <StringDetect attribute="CDATA Symbols" context="#stay" String="<![" beginRegion="cdata" /> + <StringDetect attribute="CDATA" context="#stay" String="CDATA" /> + <DetectChar attribute="CDATA Symbols" context="#pop!CDATA" char="[" /> + </context> <context name="CDATA" attribute="Other Text" lineEndContext="#stay"> <DetectSpaces /> <DetectIdentifier /> - <StringDetect attribute="CDATA" context="#pop" String="]]>" endRegion="cdata" /> + <StringDetect attribute="CDATA Symbols" context="#pop" String="]]>" endRegion="cdata" /> <StringDetect attribute="EntityRef" context="#stay" String="]]&gt;" /> </context> + <context name="FindProcessingInstruction" attribute="Other Text" lineEndContext="#stay"> + <RegExpr attribute="PI Symbols" context="PI TagName" String="<\?(?=([\w:_-]*))" beginRegion="pi" /> + </context> + <context name="PI TagName" attribute="Other Text" lineEndContext="#pop!PI" fallthrough="true" fallthroughContext="#pop!PI"> + <RegExpr attribute="Processing Instruction" context="#pop!PI-XML" String="xml(?=\s|$)" insensitive="true" /> + <StringDetect attribute="Processing Instruction" context="#pop!PI" String="%1" dynamic="true" /> + </context> <context name="PI" attribute="Other Text" lineEndContext="#stay"> - <Detect2Chars attribute="Processing Instruction" context="#pop" char="?" char1=">" endRegion="pi" /> + <Detect2Chars attribute="PI Symbols" context="#pop" char="?" char1=">" endRegion="pi" /> + </context> + <context name="PI-XML" attribute="Other Text" lineEndContext="#stay"> + <IncludeRules context="PI" /> + <RegExpr attribute="Attribute" context="#stay" String="(?:^|\s+)&name;" /> + <DetectChar attribute="Attribute Separator" context="Value" char="=" /> </context> + <context name="DoctypeTagName" attribute="Other Text" lineEndContext="#pop"> + <StringDetect attribute="Doctype" context="#pop!DoctypeVariableName" String="DOCTYPE" /> + </context> + <context name="DoctypeVariableName" attribute="Other Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop!Doctype"> + <DetectSpaces /> + <RegExpr attribute="Doctype Name" context="#pop!Doctype" String="&name;" /> + </context> <context name="Doctype" attribute="Other Text" lineEndContext="#stay"> - <DetectChar attribute="Doctype" context="#pop" char=">" endRegion="doctype" /> - <DetectChar attribute="Doctype" context="Doctype Internal Subset" char="[" beginRegion="int_subset" /> + <DetectChar attribute="Doctype Symbols" context="#pop" char=">" endRegion="doctype" /> + <DetectChar attribute="Doctype Symbols" context="Doctype Internal Subset" char="[" beginRegion="int_subset" /> </context> <context name="Doctype Internal Subset" attribute="Other Text" lineEndContext="#stay"> - <DetectChar attribute="Doctype" context="#pop" char="]" endRegion="int_subset" /> - <RegExpr attribute="Doctype" context="Doctype Markupdecl" String="<!(ELEMENT|ENTITY|ATTLIST|NOTATION)\b" /> + <DetectSpaces /> + <DetectChar attribute="Doctype Symbols" context="#pop" char="]" endRegion="int_subset" /> + <RegExpr attribute="Doctype Symbols" context="Doctype Markupdecl TagName" String="<!(?=(ELEMENT|ENTITY|ATTLIST|NOTATION)\b)" /> <StringDetect attribute="Comment" context="Comment" String="<!--" beginRegion="comment" /> - <RegExpr attribute="Processing Instruction" context="PI" String="<\?[\w:_-]*" beginRegion="pi" /> + <IncludeRules context="FindProcessingInstruction" /> <IncludeRules context="FindPEntityRefs" /> </context> + <context name="Doctype Markupdecl TagName" attribute="Other Text" lineEndContext="#pop"> + <DetectIdentifier attribute="Doctype" context="#pop!Doctype Markupdecl VariableName" /> + </context> + <context name="Doctype Markupdecl VariableName" attribute="Other Text" lineEndContext="#pop!Doctype Markupdecl" fallthrough="true" fallthroughContext="#pop!Doctype Markupdecl"> + <DetectSpaces /> + <RegExpr attribute="Doctype Name" context="#pop!Doctype Markupdecl" String="&name;" /> + </context> <context name="Doctype Markupdecl" attribute="Other Text" lineEndContext="#stay"> - <DetectChar attribute="Doctype" context="#pop" char=">" /> + <DetectChar attribute="Doctype Symbols" context="#pop" char=">" /> <DetectChar attribute="Value" context="Doctype Markupdecl DQ" char=""" /> <DetectChar attribute="Value" context="Doctype Markupdecl SQ" char="'" /> </context> @@ -85,26 +117,31 @@ <IncludeRules context="FindPEntityRefs" /> </context> + <context name="ElementTagName" attribute="Other Text" lineEndContext="#pop!Element"> + <StringDetect attribute="Element" context="#pop!Element" String="%1" dynamic="true" /> + </context> <context name="Element" attribute="Other Text" lineEndContext="#stay"> - <Detect2Chars attribute="Element" context="#pop" char="/" char1=">" endRegion="element" /> - <DetectChar attribute="Element" context="El Content" char=">" /> - <RegExpr attribute="Attribute" context="Attribute" String="^&name;" /> - <RegExpr attribute="Attribute" context="Attribute" String="\s+&name;" /> + <Detect2Chars attribute="Element Symbols" context="#pop" char="/" char1=">" endRegion="element" /> + <DetectChar attribute="Element Symbols" context="El Content" char=">" /> + <RegExpr attribute="Attribute" context="Attribute" String="(?:^|\s+)&name;" /> <RegExpr attribute="Error" context="#stay" String="\S" /> </context> <context name="El Content" attribute="Other Text" lineEndContext="#stay"> - <RegExpr attribute="Element" context="El End" String="</&name;" /> + <RegExpr attribute="Element Symbols" context="El End TagName" String="</(?=(&name;))" /> <IncludeRules context="FindXML" /> </context> + <context name="El End TagName" attribute="Other Text" lineEndContext="#pop!El End"> + <StringDetect attribute="Element" context="#pop!El End" String="%1" dynamic="true" /> + </context> <context name="El End" attribute="Other Text" lineEndContext="#stay"> - <DetectChar attribute="Element" context="#pop#pop#pop" char=">" endRegion="element" /> + <DetectChar attribute="Element Symbols" context="#pop#pop#pop" char=">" endRegion="element" /> <RegExpr attribute="Error" context="#stay" String="\S" /> </context> <context name="Attribute" attribute="Other Text" lineEndContext="#stay"> - <DetectChar attribute="Attribute" context="Value" char="=" /> + <DetectChar attribute="Attribute Separator" context="#pop!Value" char="=" /> <RegExpr attribute="Error" context="#stay" String="\S" /> </context> @@ -115,35 +152,42 @@ </context> <context name="Value DQ" attribute="Value" lineEndContext="#stay"> - <DetectChar attribute="Value" context="#pop#pop#pop" char=""" /> + <DetectChar attribute="Value" context="#pop#pop" char=""" /> <IncludeRules context="FindEntityRefs" /> </context> <context name="Value SQ" attribute="Value" lineEndContext="#stay"> - <DetectChar attribute="Value" context="#pop#pop#pop" char="'" /> + <DetectChar attribute="Value" context="#pop#pop" char="'" /> <IncludeRules context="FindEntityRefs" /> </context> </contexts> <itemDatas> - <itemData name="Normal Text" defStyleNum="dsNormal" /> - <itemData name="Other Text" defStyleNum="dsNormal" /> - <itemData name="Comment" defStyleNum="dsComment" spellChecking="false" /> - <itemData name="CDATA" defStyleNum="dsBaseN" bold="1" spellChecking="false" /> - <itemData name="Processing Instruction" defStyleNum="dsKeyword" spellChecking="false" /> - <itemData name="Doctype" defStyleNum="dsDataType" bold="1" spellChecking="false" /> - <itemData name="Element" defStyleNum="dsKeyword" spellChecking="false" /> - <itemData name="Attribute" defStyleNum="dsOthers" spellChecking="false" /> - <itemData name="Value" defStyleNum="dsString" spellChecking="false" /> - <itemData name="EntityRef" defStyleNum="dsDecVal" spellChecking="false" /> - <itemData name="PEntityRef" defStyleNum="dsDecVal" spellChecking="false" /> - <itemData name="Error" defStyleNum="dsError" spellChecking="false" /> + <itemData name="Normal Text" defStyleNum="dsNormal" /> + <itemData name="Other Text" defStyleNum="dsNormal" /> + <itemData name="Comment" defStyleNum="dsComment" spellChecking="true" /> + <itemData name="CDATA" defStyleNum="dsBaseN" bold="1" italic="0" spellChecking="false" /> + <itemData name="CDATA Symbols" defStyleNum="dsBaseN" bold="0" italic="0" spellChecking="false" /> + <itemData name="Processing Instruction" defStyleNum="dsFunction" bold="1" italic="0" spellChecking="false" /> + <itemData name="PI Symbols" defStyleNum="dsFunction" bold="0" italic="0" spellChecking="false" /> + <itemData name="Doctype" defStyleNum="dsDataType" bold="1" italic="0" spellChecking="false" /> + <itemData name="Doctype Name" defStyleNum="dsDataType" bold="0" italic="0" spellChecking="false" /> + <itemData name="Doctype Symbols" defStyleNum="dsDataType" bold="0" italic="0" spellChecking="false" /> + <itemData name="Element" defStyleNum="dsKeyword" spellChecking="false" /> + <itemData name="Element Symbols" defStyleNum="dsNormal" spellChecking="false" /> + <itemData name="Attribute" defStyleNum="dsOthers" spellChecking="false" /> + <itemData name="Attribute Separator" defStyleNum="dsOthers" spellChecking="false" /> + <itemData name="Value" defStyleNum="dsString" spellChecking="false" /> + <itemData name="EntityRef" defStyleNum="dsDecVal" spellChecking="false" /> + <itemData name="PEntityRef" defStyleNum="dsDecVal" spellChecking="false" /> + <itemData name="Error" defStyleNum="dsError" spellChecking="false" /> </itemDatas> </highlighting> <general> <comments> - <comment name="multiLine" start="<!--" end="-->" /> + <comment name="multiLine" start="<!--" end="-->" region="comment" /> </comments> </general> </language> +<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/yacc.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/yacc.xml index 06d6492ff1..4129a09bd7 100644 --- a/src/libs/3rdparty/syntax-highlighting/data/syntax/yacc.xml +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/yacc.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd"> +<!DOCTYPE language> <!-- ======================================================================== YACC.XML supports syntax highlighting for Yacc/Bison source under Kate. @@ -12,12 +12,12 @@ This code is released under the LGPL as part of kdelibs/kate. == UPDATE HISTORY == 2018-02-20 // Nibaldo González <nibgonz@gmail.com> - Fix '$' symbol, highlighted as 'dsError' by C++ (isocpp.xml). + Fix '$' symbol, highlighted as 'dsError' by C++ (isocpp.xml). Update syntax for Bison (3.0.4): - Add declarations, directives in rules and the '@' variable. - - Allow a tag in '%union', declarations in multiple lines and + - Allow a tag in '%union', declarations in multiple lines and grammar declarations in the grammar rules section. - - The ';' char is not necessary to finish a rule. Allow '; |' + - The ';' char is not necessary to finish a rule. Allow '; |' within rules. Add mimetypes and extensions '*.ypp' & '*.y++'. @@ -32,7 +32,7 @@ This code is released under the LGPL as part of kdelibs/kate. ======================================================================== --> -<language name="Yacc/Bison" version="5" kateversion="5.0" section="Sources" extensions="*.y;*.yy;*.ypp;*.y++" mimetype="text/x-yacc;text/x-bison" priority="5" author="Jan Villat (jan.villat@net2000.ch)" license="LGPL"> +<language name="Yacc/Bison" version="9" kateversion="5.79" section="Sources" extensions="*.y;*.yy;*.ypp;*.y++" mimetype="text/x-yacc;text/x-bison" priority="5" author="Jan Villat (jan.villat@net2000.ch)" license="LGPL"> <highlighting> <contexts> @@ -62,7 +62,7 @@ This code is released under the LGPL as part of kdelibs/kate. <WordDetect attribute="Directive" context="Percent Command In" String="%<flag>" /> <!-- Any word followed by '%' (End with ';' or '%') --> <DetectChar attribute="Directive" context="Percent Command" char="%" /> - </context> + </context> <context name="Grammar Declarations" attribute="Normal Text" lineEndContext="#stay"> <WordDetect attribute="Directive" context="Union Start" String="%union" /> <WordDetect attribute="Directive" context="Union Start" String="%code" /> @@ -74,7 +74,7 @@ This code is released under the LGPL as part of kdelibs/kate. <IncludeRules context="Comment" /> <DetectSpaces /> <DetectChar attribute="Normal Text" context="Union In" char="{" beginRegion="union" /> - <RegExpr attribute="Normal Text" context="#pop!Union Tag" String="[^\s\{](?=(\s|$|//))" /> + <RegExpr attribute="Normal Text" context="#pop!Union Tag" String="[^\s\{](?=\s|$|//)" /> </context> <context name="Union Tag" attribute="Normal Text" lineEndContext="#stay"> <IncludeRules context="Comment" /> @@ -112,7 +112,7 @@ This code is released under the LGPL as part of kdelibs/kate. <IncludeRules context="Symbol-Variable" /> <IncludeRules context="##C++" /> </context> - <context name="Code-Symbols End" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop!Percent Command In"> + <context name="Code-Symbols End" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!Percent Command In"> <IncludeRules context="Comment" /> <DetectSpaces /> <DetectChar attribute="Normal Text" context="#pop" char=";" lookAhead="true" /> @@ -139,13 +139,13 @@ This code is released under the LGPL as part of kdelibs/kate. <WordDetect attribute="Directive" context="#stay" String="%merge" /> <!-- Finish rule without the ';' character (see the 'rhses.1' rule in the 'src/parse-gram.y' file, from the Bison source) --> - <RegExpr attribute="Open Rule" context="#pop" String="[\w\-\.](?=[\w\-\.]*:)" column="0" endRegion="rule" /> + <RegExpr attribute="Open Rule" context="#pop" String="^[\w\-\.](?=[\w\-\.]*:)" column="0" endRegion="rule" /> <Detect2Chars attribute="Content-Type Delimiter" context="#pop" char="%" char1="%" lookAhead="true" firstNonSpace="true" endRegion="rule" /> - <RegExpr attribute="Directive" context="#pop" String="%(union|code|destructor|printer|start|(no\-)?default\-prec|nterm|token|type|left|right|nonassoc|precedence)\b" lookAhead="true" column="0" endRegion="rule" /> + <RegExpr attribute="Directive" context="#pop" String="^%(?:union|code|destructor|printer|start|(?:no\-)?default\-prec|nterm|token|type|left|right|nonassoc|precedence)\b" lookAhead="true" column="0" endRegion="rule" /> </context> - <!-- The Bison parser allows to have ';' followed by '|', without the rule ending. + <!-- The Bison parser allows to have ';' followed by '|', without the rule ending. The problem here is that the ';' char has endRegion="rule" (although it is not very relevant). --> - <context name="Rule End" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop#pop"> + <context name="Rule End" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop#pop"> <DetectSpaces /> <DetectChar attribute="Normal Text" context="#stay" char=";" /> <DetectChar attribute="Normal Text" context="#pop" char="|" /> @@ -164,7 +164,7 @@ This code is released under the LGPL as part of kdelibs/kate. <WordDetect attribute="Directive" context="Percent Command In" String="%left" /> <WordDetect attribute="Directive" context="Percent Command In" String="%right" /> <WordDetect attribute="Directive" context="Percent Command In" String="%nonassoc" /> - <WordDetect attribute="Directive" context="Percent Command In" String="%precedence" /> + <WordDetect attribute="Directive" context="Percent Command In" String="%precedence" /> <DetectChar attribute="Rule" context="#pop" char="%" /> <!-- End when there is an invalid declaration --> <DetectChar attribute="Normal Text" context="#pop" char=";" /> @@ -195,17 +195,17 @@ This code is released under the LGPL as part of kdelibs/kate. </context> <context name="Comment" attribute="Comment" lineEndContext="#stay"> - <Detect2Chars attribute="Comment" context="CommentStar" char="/" char1="*" /> + <Detect2Chars attribute="Comment" context="CommentStar" char="/" char1="*" beginRegion="comment" /> <Detect2Chars attribute="Comment" context="CommentSlash" char="/" char1="/" /> </context> <context name="CommentStar" attribute="Comment" lineEndContext="#stay"> - <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" /> - <IncludeRules context="##Alerts" /> - <IncludeRules context="##Modelines" /> + <DetectSpaces /> + <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="comment" /> + <IncludeRules context="##Comments" /> </context> <context name="CommentSlash" attribute="Comment" lineEndContext="#pop"> - <IncludeRules context="##Alerts" /> - <IncludeRules context="##Modelines" /> + <DetectSpaces /> + <IncludeRules context="##Comments" /> </context> <context name="StringOrChar" attribute="Normal Text" lineEndContext="#stay"> @@ -229,12 +229,12 @@ This code is released under the LGPL as part of kdelibs/kate. </context> <context name="Symbol-Variable" attribute="Normal Text" lineEndContext="#stay"> <DetectChar attribute="Directive" context="Dol" char="$" /> - <RegExpr attribute="Directive" context="#stay" String="@(\$?)(\d+|[A-Za-z_]\w*)?" /> + <RegExpr attribute="Directive" context="#stay" String="@\$?(?:\d+|[A-Za-z_]\w*)?" /> </context> - <context name="Dol" attribute="Normal Text" fallthrough="true" fallthroughContext="DolEnd" lineEndContext="#stay"> + <context name="Dol" attribute="Normal Text" fallthroughContext="DolEnd" lineEndContext="#stay"> <RegExpr attribute="Data Type" context="DolEnd" String="<[^>]+>" /> </context> - <context name="DolEnd" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop#pop"> + <context name="DolEnd" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop#pop"> <RegExpr attribute="Directive" context="#pop#pop" String="@?\d+" /> <DetectChar attribute="Directive" context="#pop#pop" char="$" /> <DetectIdentifier attribute="Directive" context="#pop#pop" /> @@ -259,7 +259,7 @@ This code is released under the LGPL as part of kdelibs/kate. </highlighting> <general> <comments> - <comment name="multiLine" start="/*" end="*/" /> + <comment name="multiLine" start="/*" end="*/" region="comment" /> <comment name="singleLine" start="//" /> </comments> </general> diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/yaml.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/yaml.xml new file mode 100644 index 0000000000..120dbd55f7 --- /dev/null +++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/yaml.xml @@ -0,0 +1,642 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language +[ + <!ENTITY null "(?:null|Null|NULL|~)"> + <!ENTITY bool "(?:y|Y|yes|Yes|YES|n|N|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)"> + + <!ENTITY int "(?:0|[\-\+]?[1-9][0-9_]*)"> + <!ENTITY intOther "[\-\+]?0(?:x_*[0-9a-fA-F][0-9a-fA-F_]*|o?_*[0-7][0-7_]*|b_*[01][01_]*)"> <!-- Hex, Octal, Binary --> + <!ENTITY intBase60 "[\-\+]?[1-9][0-9_]*(?:\:[0-5]?[0-9])+"> + <!ENTITY allInt "(?:&intBase60;|&intOther;|∫)"> + + <!ENTITY float "[\-\+]?(?:[0-9][0-9_]*\.[0-9\._]*|\._*[0-9][0-9\._]*)(?:[eE][\-\+]?[0-9]+)?"> + <!ENTITY floatExp "[\-\+]?[0-9][0-9_]*[eE][\-\+]?[0-9]+"> + <!ENTITY floatBase60 "[\-\+]?[0-9][0-9_]*(?:\:[0-5]?[0-9])+\.[0-9_]*"> + <!ENTITY inf "[\-\+]?\.(?:inf|Inf|INF)\b"> + <!ENTITY nan "\.(?:nan|NaN|NAN)\b"> + <!ENTITY allFloat "(?:&float;|&floatExp;|&floatBase60;|&inf;|&nan;)"> + + <!ENTITY endValue "(?:\s*$|\s+#)"> + <!ENTITY endValueInline "\s*[:,\[\]\{\}]"> + <!ENTITY space "[ ]"> + + <!-- Key quoted --> + <!ENTITY keyDQ ""(?:\\.|[^"])+"\s*"> + <!ENTITY keySQ "'(?:[^']|'')+'\s*"> + <!-- Literal/folded operator --> + <!ENTITY literalOp "[\|>][\-\+]?"> + <!-- Key after "?" or "-", used to detect literal/folded operator --> + <!ENTITY keyAfterOp "(?:[^"'#\-\?\s][^:#]*|\-(?:[^\s:#][^:#]*)?|&keyDQ;|&keySQ;)"> + + <!ENTITY dataTypes "!!\S+"> + <!ENTITY alias "&\S+"> + <!ENTITY reference "\*\S+"> + + <!ENTITY dpointsHashAttrPreInline1 "[^\s"'#\-,\}\s][^:#,\}]*(?=\:(?:\s|$))"> + <!ENTITY dpointsHashAttrPreInline2 "\-(?:[^\s:#,\}][^:#,\}]*)?(?=\:(?:\s|$))"> + <!ENTITY dpointsHashAttrPreInline3 "&keyDQ;(?=\:(?:\s|$))"> + <!ENTITY dpointsHashAttrPreInline4 "&keySQ;(?=\:(?:\s|$))"> + + <!ENTITY dpointsListAttrPreInline1 "[^"'#\-,\]\s][^:#,\]]*(?=\:(?:\s|$))"> + <!ENTITY dpointsListAttrPreInline2 "\-(?:[^\s:#,\]][^:#,\]]*)?(?=\:(?:\s|$))"> + <!ENTITY dpointsListAttrPreInline3 "&keyDQ;(?=\:(?:\s|$))"> + <!ENTITY dpointsListAttrPreInline4 "&keySQ;(?=\:(?:\s|$))"> + + <!ENTITY dpointsAttrPre1 "[^"'#\-\s][^:#]*(?=\:(?:\s|$))"> + <!ENTITY dpointsAttrPre2 "\-(?:[^\s:#][^:#]*)?(?=\:(?:\s|$))"> + <!ENTITY dpointsAttrPre3 "&keyDQ;(?=\:(?:\s|$))"> + <!ENTITY dpointsAttrPre4 "&keySQ;(?=\:(?:\s|$))"> + +]> + +<!-- Author: Dr Orlovsky MA <maxim@orlovsky.info> //--> +<!-- Modifications (YAML 1.2), values & support for literal/folded style: + Nibaldo González S. <nibgonz@gmail.com> + These modifications are under the MIT license. //--> +<language name="YAML" version="11" kateversion="5.0" section="Markup" + extensions="*.yaml;*.yml" mimetype="text/yaml" priority="9" + author="Dr Orlovsky MA (dr.orlovsky@gmail.com), Nibaldo González (nibgonz@gmail.com)" license="LGPL"> + <highlighting> + <contexts> + <context attribute="Attribute" lineEndContext="#stay" name="normal" > + <StringDetect attribute="Document Header" context="header" String="---" column="0"/> + <RegExpr attribute="End of Document" context="EOD" String="^\.\.\.$" column="0"/> + <DetectChar attribute="Directive" context="directive" char="%" column="0"/> + + <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" /> + + <!-- Literal/Folded Style --> + <IncludeRules context="find-literal-block" /> + + <RegExpr attribute="Operator" firstNonSpace="true" context="dash" String="\-(?=\s|$)" /> + <DetectChar attribute="Operator" firstNonSpace="true" context="mapping-key" char="?" /> + + <DetectChar attribute="Operator" firstNonSpace="true" context="list" char="[" beginRegion="List" /> + <DetectChar attribute="Operator" firstNonSpace="true" context="hash" char="{" beginRegion="Hash" /> + + <RegExpr attribute="Data Types" firstNonSpace="true" context="after-data" String="&dataTypes;" /> + <RegExpr attribute="Alias" firstNonSpace="true" context="after-data" String="&alias;" /> + <RegExpr attribute="Reference" firstNonSpace="true" context="after-data" String="&reference;" /> + + <RegExpr attribute="Key" context="dpoints-attribute-pre" String="&dpointsAttrPre1;|&dpointsAttrPre2;|&dpointsAttrPre3;|&dpointsAttrPre4;"/> + <RegExpr attribute="Key Points Operator" context="attribute-pre" String=":(?=\s|$)"/> + + <DetectChar attribute="String" firstNonSpace="true" context="string" char="'" beginRegion="String" /> + <DetectChar attribute="String" firstNonSpace="true" context="stringx" char=""" beginRegion="String" /> + <IncludeRules context="values-firstnonspace" /> + <DetectSpaces/> + </context> + + <context attribute="Normal Text" lineEndContext="#pop" name="mapping-key" fallthrough="true" fallthroughContext="#pop"> + <RegExpr attribute="Comment" context="#pop!comment" String="(?:^|\s+)#" /> + <DetectSpaces /> + <RegExpr attribute="Operator" context="#pop!dash" String="\-(?=\s|$)" /> + <RegExpr attribute="Data Types" context="#pop!after-data" String="&dataTypes;" /> + <RegExpr attribute="Alias" context="#pop!after-data" String="&alias;" /> + <RegExpr attribute="Reference" context="#pop!after-data" String="&reference;" /> + + <DetectChar attribute="Operator" context="#pop!list" char="[" beginRegion="List" /> + <DetectChar attribute="Operator" context="#pop!hash" char="{" beginRegion="Hash" /> + <DetectChar attribute="String" context="#pop!string" char="'" beginRegion="String" /> + <DetectChar attribute="String" context="#pop!stringx" char=""" beginRegion="String" /> + </context> + + <context attribute="Normal Text" lineEndContext="#pop" name="dash" fallthrough="true" fallthroughContext="#pop"> + <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" /> + <DetectSpaces/> + <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" /> + <RegExpr attribute="Alias" context="#stay" String="&alias;" /> + <RegExpr attribute="Reference" context="#stay" String="&reference;" /> + <IncludeRules context="values" /> + <DetectChar attribute="Operator" context="#pop!mapping-key" char="?" /> + <RegExpr attribute="Operator" context="#stay" String="\-(?=\s|$)" /> + + <DetectChar attribute="Operator" context="#pop!list" char="[" beginRegion="List" /> + <DetectChar attribute="Operator" context="#pop!hash" char="{" beginRegion="Hash" /> + <DetectChar attribute="String" context="#pop!string" char="'" beginRegion="String" /> + <DetectChar attribute="String" context="#pop!stringx" char=""" beginRegion="String" /> + </context> + + <!-- Highlight lists, hashes and strings after a data type, reference or alias --> + <context attribute="Normal Text" lineEndContext="#pop" name="after-data" fallthrough="true" fallthroughContext="#pop"> + <RegExpr attribute="Comment" context="#pop!comment" String="(?:^|\s+)#" /> + <DetectSpaces /> + <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" /> + <RegExpr attribute="Alias" context="#stay" String="&alias;" /> + <RegExpr attribute="Reference" context="#stay" String="&reference;" /> + + <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" /> + <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" /> + <DetectChar attribute="String" context="string" char="'" beginRegion="String" /> + <DetectChar attribute="String" context="stringx" char=""" beginRegion="String" /> + </context> + + <context attribute="Document Header" lineEndContext="#pop" name="header"> + <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" /> + <RegExpr attribute="Literal/Folded Operator" context="header-literal-operator" String="\s&literalOp;(?=&endValue;)" lookAhead="true" /> + </context> + <context attribute="Document Header" lineEndContext="#pop#pop" name="header-literal-operator" fallthrough="true" fallthroughContext="#pop"> + <DetectSpaces /> + <RegExpr attribute="Literal/Folded Operator" context="#pop#pop!literal-block-simple" String="&literalOp;" beginRegion="Literal" /> + </context> + + <context attribute="End of Document" lineEndContext="#stay" name="EOD"> + </context> + + <context attribute="Directive" lineEndContext="#pop" name="directive"> + </context> + + <context attribute="Attribute" lineEndContext="#pop#pop" name="attribute"> + <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" /> + </context> + + <context attribute="Attribute" lineEndContext="#stay" name="list-attribute-inline"> + <AnyChar attribute="Operator" context="#pop#pop" lookAhead="true" String=",]" /> + <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" /> + </context> + <context attribute="Attribute" lineEndContext="#stay" name="hash-attribute-inline"> + <AnyChar attribute="Operator" context="#pop#pop" lookAhead="true" String=",}" /> + <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" /> + </context> + + <!-- Attribute --> + <context attribute="Attribute" lineEndContext="#pop" name="dpoints-attribute-pre" fallthrough="true" fallthroughContext="#pop!attribute-pre"> + <DetectChar attribute="Key Points Operator" context="#pop!attribute-pre" char=":" /> <!-- Highlight two points after Key --> + </context> + <context attribute="Attribute" lineEndContext="#pop" name="attribute-pre" fallthrough="true" fallthroughContext="attribute"> + <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" /> + <DetectSpaces/> + <DetectChar attribute="Operator" context="#stay" char="?" /> + <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" /> + <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" /> + <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" /> + <DetectChar attribute="String" context="attribute-string" char="'" beginRegion="String" /> + <DetectChar attribute="String" context="attribute-stringx" char=""" beginRegion="String" /> + <RegExpr attribute="Alias" context="#stay" String="&alias;(?=\s+[\[\{])" /> + <RegExpr attribute="Reference" context="#stay" String="&reference;(?=\s+[\[\{])" /> + <RegExpr attribute="Alias" context="attribute" String="&alias;" /> + <RegExpr attribute="Reference" context="attribute" String="&reference;" /> + <IncludeRules context="values" /> + <RegExpr attribute="Literal/Folded Operator" context="#stay" String="&literalOp;(?=&endValue;)" /> + </context> + + <context attribute="Attribute" lineEndContext="#pop" name="default-attribute-pre-inline"> + <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" /> + <DetectSpaces/> + + <DetectChar attribute="Operator" context="#stay" char="?" /> + <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" /> + <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" /> + <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" /> + <DetectChar attribute="String" context="attribute-string-inline" char="'" beginRegion="String" /> + <DetectChar attribute="String" context="attribute-stringx-inline" char=""" beginRegion="String" /> + <RegExpr attribute="Alias" context="#stay" String="&alias;(?=\s+[\[\{])" /> + <RegExpr attribute="Reference" context="#stay" String="&reference;(?=\s+[\[\{])" /> + </context> + + <!-- Attribute Inline, Within List --> + <context attribute="Attribute" lineEndContext="#pop" name="dpoints-list-attribute-pre-inline" fallthrough="true" fallthroughContext="#pop!list-attribute-pre-inline"> + <DetectChar attribute="Key Points Operator" context="#pop!list-attribute-pre-inline" char=":" /> <!-- Highlight two points after Key --> + </context> + <context attribute="Attribute" lineEndContext="#pop" name="list-attribute-pre-inline" fallthrough="true" fallthroughContext="list-attribute-inline"> + <IncludeRules context="default-attribute-pre-inline" /> + <RegExpr attribute="Alias" context="list-attribute-inline" String="&alias;" /> + <RegExpr attribute="Reference" context="list-attribute-inline" String="&reference;" /> + + <AnyChar attribute="Operator" context="#pop" lookAhead="true" String=",]" /> + <IncludeRules context="values-inline" /> + </context> + + <!-- Attribute Inline, Within Hash --> + <context attribute="Attribute" lineEndContext="#pop" name="dpoints-hash-attribute-pre-inline" fallthrough="true" fallthroughContext="#pop!hash-attribute-pre-inline"> + <DetectChar attribute="Key Points Operator" context="#pop!hash-attribute-pre-inline" char=":" /> <!-- Highlight two points after Key --> + </context> + <context attribute="Attribute" lineEndContext="#pop" name="hash-attribute-pre-inline" fallthrough="true" fallthroughContext="hash-attribute-inline"> + <IncludeRules context="default-attribute-pre-inline" /> + <RegExpr attribute="Alias" context="hash-attribute-inline" String="&alias;" /> + <RegExpr attribute="Reference" context="hash-attribute-inline" String="&reference;" /> + + <AnyChar attribute="Operator" context="#pop" lookAhead="true" String=",}" /> + <IncludeRules context="values-inline" /> + </context> + + <!-- List --> + <!-- Context "find-values-list" highlights values and then sends to "list-element" --> + <context attribute="List" lineEndContext="#stay" name="list" fallthrough="true" fallthroughContext="#pop!find-values-list" noIndentationBasedFolding="true"> + <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" /> + <DetectSpaces /> + <DetectChar attribute="Operator" context="#pop!find-values-list" char="?" /> + </context> + <context attribute="List" lineEndContext="#stay" name="list-element" noIndentationBasedFolding="true"> + <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" /> + + <DetectChar attribute="Operator" context="#pop" char="]" endRegion="List" /> + <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" /> + <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" /> + + <RegExpr attribute="Key" context="dpoints-list-attribute-pre-inline" String="&dpointsListAttrPreInline1;|&dpointsListAttrPreInline2;|&dpointsListAttrPreInline3;|&dpointsListAttrPreInline4;"/> + <RegExpr attribute="Key Points Operator" context="list-attribute-pre-inline" String=":(?=\s|$)" firstNonSpace="true" /> + + <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" /> + <RegExpr attribute="Alias" context="#stay" String="&alias;" /> + <RegExpr attribute="Reference" context="#stay" String="&reference;" /> + <DetectChar attribute="String" context="string" char="'" beginRegion="String" /> + <DetectChar attribute="String" context="stringx" char=""" beginRegion="String" /> + + <DetectChar attribute="Operator" context="#pop!list" char="," /> + <IncludeRules context="values-list" /> + </context> + + <!-- Hash --> + <context attribute="Hash" lineEndContext="#stay" name="hash" fallthrough="true" fallthroughContext="#pop!hash-element" noIndentationBasedFolding="true"> + <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" /> + <DetectSpaces /> + <DetectChar attribute="Operator" context="#pop!hash-element" char="?" /> + </context> + <context attribute="Hash" lineEndContext="#stay" name="hash-element" noIndentationBasedFolding="true"> + <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" /> + <DetectSpaces/> + + <RegExpr attribute="Key" context="dpoints-hash-attribute-pre-inline" String="&dpointsHashAttrPreInline1;|&dpointsHashAttrPreInline2;|&dpointsHashAttrPreInline3;|&dpointsHashAttrPreInline4;"/> + <RegExpr attribute="Key Points Operator" context="hash-attribute-pre-inline" String=":(?=\s|$)"/> + + <DetectChar attribute="Operator" context="#pop" char="}" endRegion="Hash" /> + <DetectChar attribute="Operator" context="#pop!hash" char="," /> + + <!-- This improves highlighting in keys with multiple lines --> + <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" /> + <RegExpr attribute="Alias" context="#stay" String="&alias;" /> + <RegExpr attribute="Reference" context="#stay" String="&reference;" /> + <DetectChar attribute="String" context="string" char="'" beginRegion="String" /> + <DetectChar attribute="String" context="stringx" char=""" beginRegion="String" /> + </context> + + <!-- Strings --> + <context attribute="String" lineEndContext="#stay" name="attribute-string" noIndentationBasedFolding="true"> + <DetectIdentifier /> + <IncludeRules context="escaped-char-singleq" /> + <DetectChar attribute="String" context="attribute-end" char="'" endRegion="String" /> + </context> + + <context attribute="String" lineEndContext="#stay" name="attribute-stringx" noIndentationBasedFolding="true"> + <DetectIdentifier /> + <IncludeRules context="escaped-char-doubleq" /> + <DetectChar attribute="String" context="attribute-end" char=""" endRegion="String" /> + </context> + + <context attribute="String" lineEndContext="#stay" name="attribute-string-inline" noIndentationBasedFolding="true"> + <DetectIdentifier /> + <IncludeRules context="escaped-char-singleq" /> + <DetectChar attribute="String" context="attribute-end-inline" char="'" endRegion="String" /> + </context> + + <context attribute="String" lineEndContext="#stay" name="attribute-stringx-inline" noIndentationBasedFolding="true"> + <DetectIdentifier /> + <IncludeRules context="escaped-char-doubleq" /> + <DetectChar attribute="String" context="attribute-end-inline" char=""" endRegion="String" /> + </context> + + <context attribute="Error" lineEndContext="#pop#pop#pop" name="attribute-end"> + <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" /> + <DetectSpaces attribute="Normal Text" context="#stay"/> + </context> + + <context attribute="Error" lineEndContext="#pop#pop#pop" name="attribute-end-inline"> + <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" /> + <DetectSpaces attribute="Normal Text" context="#stay"/> + <AnyChar context="#pop#pop#pop" lookAhead="true" String="}],"/> + </context> + + <context attribute="String" lineEndContext="#stay" name="string" noIndentationBasedFolding="true"> + <DetectIdentifier /> + <IncludeRules context="escaped-char-singleq" /> + <DetectChar attribute="String" context="#pop" char="'" endRegion="String" /> + </context> + + <context attribute="String" lineEndContext="#stay" name="stringx" noIndentationBasedFolding="true"> + <DetectIdentifier /> + <IncludeRules context="escaped-char-doubleq" /> + <DetectChar attribute="String" context="#pop" char=""" endRegion="String" /> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="escaped-char-doubleq"> + <RegExpr attribute="Escaped Character" context="#stay" String="\\(?:[\s0abtnvfre"/\\N_Lp]|x[a-fA-F0-9]{2}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8})"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="escaped-char-singleq"> + <Detect2Chars attribute="Escaped Character" context="#stay" char="'" char1="'" /> + </context> + + <context attribute="Comment" lineEndContext="#pop" name="comment"> + <DetectSpaces /> + <IncludeRules context="##Comments" /> + </context> + + <!-- Values --> + <context attribute="Normal Text" lineEndContext="#stay" name="values"> + <RegExpr attribute="Null" context="#stay" String="&null;(?=&endValue;)"/> + <RegExpr attribute="Boolean" context="#stay" String="&bool;(?=&endValue;)"/> + <RegExpr attribute="Float" context="#stay" String="&allFloat;(?=&endValue;)"/> + <RegExpr attribute="Integer" context="#stay" String="&allInt;(?=&endValue;)"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="values-firstnonspace"> + <RegExpr attribute="Null" firstNonSpace="true" context="#stay" String="&null;(?=&endValue;)"/> + <RegExpr attribute="Boolean" firstNonSpace="true" context="#stay" String="&bool;(?=&endValue;)"/> + <RegExpr attribute="Float" firstNonSpace="true" context="#stay" String="&allFloat;(?=&endValue;)"/> + <RegExpr attribute="Integer" firstNonSpace="true" context="#stay" String="&allInt;(?=&endValue;)"/> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="values-inline"> + <RegExpr attribute="Null" context="#stay" String="&null;(?=&endValueInline;|&endValue;)"/> + <RegExpr attribute="Boolean" context="#stay" String="&bool;(?=&endValueInline;|&endValue;)"/> + <RegExpr attribute="Float" context="#stay" String="&allFloat;(?=&endValueInline;|&endValue;)"/> + <RegExpr attribute="Integer" context="#stay" String="&allInt;(?=&endValueInline;|&endValue;)"/> + </context> + + <context attribute="Normal Text" lineEndContext="#stay" name="values-list"> + <RegExpr attribute="Null" context="#stay" String="(?:\s|^)&null;(?=&endValueInline;|&endValue;)"/> + <RegExpr attribute="Boolean" context="#stay" String="(?:\s|^)&bool;(?=&endValueInline;|&endValue;)"/> + <RegExpr attribute="Float" context="#stay" String="(?:\s|^)&allFloat;(?=&endValueInline;|&endValue;)"/> + <RegExpr attribute="Integer" context="#stay" String="(?:\s|^)&allInt;(?=&endValueInline;|&endValue;)"/> + </context> + <!-- If the value is found immediately at the beginning of the list item --> + <context attribute="Normal Text" lineEndContext="#pop!list-element" name="find-values-list" fallthrough="true" fallthroughContext="#pop!list-element"> + <RegExpr attribute="Null" context="#pop!list-element" String="&null;(?=&endValueInline;|&endValue;)"/> + <RegExpr attribute="Boolean" context="#pop!list-element" String="&bool;(?=&endValueInline;|&endValue;)"/> + <RegExpr attribute="Float" context="#pop!list-element" String="&allFloat;(?=&endValueInline;|&endValue;)"/> + <RegExpr attribute="Integer" context="#pop!list-element" String="&allInt;(?=&endValueInline;|&endValue;)"/> + </context> + + <!-- Literal/Folded Style: http://yaml.org/spec/1.2/spec.html#id2795688 --> + + <context attribute="Normal Text" lineEndContext="#stay" name="find-literal-block"> + <!-- Do not allow indentation with tabs: --> + <RegExpr attribute="Alert" context="#stay" column="0" + String="^&space;*\t+\s*(?=(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|<>"'])?&literalOp;&endValue;)" /> + + <!-- CASE 1: The literal/folded operator is the first character of a line. + The text after a space is considered literal. + Ex: + > | + > ^Start the literal text + --> + <RegExpr attribute="Literal/Folded Operator" context="literal-block-simple" column="0" + String="^&literalOp;(?=&endValue;)" beginRegion="Literal" /> + + <!-- CASE 2: Only the literal/folded operator is present in a line, after a space (the indentation + is captured). The text with the same indentation of the operator will be highlighted as literal. + Ex: + > key: + > | + > ^Start the literal text + + However, in this case, the correct way is to use the indentation of the block, not the + indentation of the the operator. The problem is that it is difficult to capture. + > key1: + > key2: + > key3: + > | + > ^Block indentation (correct literal text) + --> + <RegExpr attribute="Literal/Folded Operator" context="literal-block-only-operator" column="0" + String="^(&space;+)&literalOp;(?=&endValue;)" beginRegion="Literal" /> + + <!-- CASE 3: There is a Key before the literal/folded operator (Key indentation is captured). + The text with the Key's indentation plus a space is considered literal. + Ex: + > key: | + > ^Start the literal text + > key: !!type >- + > ^Start the folded text + --> + <RegExpr attribute="Key Points Operator" context="literal-block-key" column="0" + String="^(&space;*)\:(?=\s+(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|<>"'])?&literalOp;&endValue;)" /> + <RegExpr attribute="Key" context="literal-block-key" column="0" + String="^(&space;*)(?:[^"'#\-\?\s][^:#]*|\-(?:[^\s:#][^:#]*)?|&keyDQ;|&keySQ;)(?=\:\s+(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|<>"'])?&literalOp;&endValue;)" /> + + <!-- CASE 4: Is there an operator "?" or "-" at the beginning of the line. + NOTE: Nested characters "-" and "?" are considered as part of the indentation. + Therefore, the indentation of the Key or the last operator "?" or "-" is captured. + Ex: + > ? | + > ^Start the literal Text + > ? - - | + > ^Start the literal text + > - Key: | + > ^Start the literal text + > ? - - - - Key: | + > ^Start the literal text + --> + <RegExpr context="start-literal-block-withdash" lookAhead="true" column="0" + String="^&space;*(?:\?&space;*|\-&space;+){1,6}(?:(?:&keyDQ;|&keySQ;|[^#\-\?\s]|\-[^\s#])(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|<>"'])?)?&literalOp;&endValue;" /> + + <!-- CASE 5: Literal/folded operator after a data type or other content. + Ex: + > !!type | + > ^Start the literal text + > key1: + > key2: + > !!type | + > ^Start the literal text + --> + <RegExpr context="start-literal-block-other" lookAhead="true" column="0" + String="^&space;*(?:(?:[&\*]|!!)\S+\s+)+&literalOp;&endValue;" /> + </context> + + <!-- If the line with the literal operator starts with the "-" or "?" operator. + NOTE: The indentation capture is limited to 6 nested operators. --> + <context attribute="Normal Text" lineEndContext="#pop" name="start-literal-block-withdash" noIndentationBasedFolding="true"> + <!-- With Key: Capture the Key indentation --> + <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s2" String="^(&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> + <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s3" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> + <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s4" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> + <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s5" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> + <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s6" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> + <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s7" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/> + <!-- Without Key: Capture the indentation of the last operator "?" or "-" --> + <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s1" String="^(&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> + <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s2" String="^(&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> + <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s3" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> + <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s4" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> + <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s5" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> + <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s6" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/> + </context> + <!-- Capture the indentation of data type, reference or alias --> + <context attribute="Normal Text" lineEndContext="#pop" name="start-literal-block-other" noIndentationBasedFolding="true"> + <!-- The text with the same indentation will be considered literal --> + <RegExpr attribute="Data Types" context="#pop!literal-block-after-data" String="^(&space;+)&dataTypes;" column="0" /> + <RegExpr attribute="Alias" context="#pop!literal-block-after-data" String="^(&space;+)&alias;" column="0" /> + <RegExpr attribute="Reference" context="#pop!literal-block-after-data" String="^(&space;+)&reference;" column="0" /> + <!-- The text after a space will be considered literal (empty text is captured) --> + <RegExpr attribute="Data Types" context="#pop!literal-block-withdash-s1" String="^()&dataTypes;" column="0" /> + <RegExpr attribute="Alias" context="#pop!literal-block-withdash-s1" String="^()&alias;" column="0" /> + <RegExpr attribute="Reference" context="#pop!literal-block-withdash-s1" String="^()&reference;" column="0" /> + </context> + + <!-- Highlight data/attribute before the literal operator (Note that if there is a line + break within a string or bracket, the literal line will not be highlighted). --> + <context attribute="Attribute" lineEndContext="#pop#pop" name="before-literal-operator" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Operator" context="#pop!end-literal-operator" String="&literalOp;(?=&endValue;)" beginRegion="Literal" /> + + <RegExpr attribute="Error" context="#pop#pop" String="(?:[&\*]|!!)\S*&literalOp;(?=&endValue;)" /> + <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" /> + <RegExpr attribute="Alias" context="#stay" String="&alias;" /> + <RegExpr attribute="Reference" context="#stay" String="&reference;" /> + + <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" /> + <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" /> + <DetectChar attribute="String" context="string" char="'" beginRegion="String" /> + <DetectChar attribute="String" context="stringx" char=""" beginRegion="String" /> + </context> + + <context attribute="Normal Text" lineEndContext="#pop#pop" name="dpoints-key-before-literal-operator" fallthrough="true" fallthroughContext="#pop#pop" noIndentationBasedFolding="true"> + <DetectChar attribute="Key Points Operator" context="#pop!key-before-literal-operator" char=":" /> + </context> + <context attribute="Attribute" lineEndContext="#pop#pop" name="key-before-literal-operator" noIndentationBasedFolding="true"> + <IncludeRules context="before-literal-operator" /> + <DetectChar attribute="Operator" context="#stay" char="?" /> + </context> + <context attribute="Attribute" lineEndContext="#pop" name="end-literal-operator" noIndentationBasedFolding="true"> + <RegExpr attribute="Comment" context="#pop!comment" String="(?:^|\s+)#" /> + </context> + + <!-- Common rules for the content of the literal blocks --> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-default" noIndentationBasedFolding="true"> + <!-- End literal/folded block --> + <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> + <!-- Find literal/folded operator --> + <RegExpr context="before-literal-operator" String="\S" lookAhead="true" /> + </context> + <context attribute="Normal Text" lineEndContext="#pop" name="literal-block-key-default" noIndentationBasedFolding="true"> + <!-- End literal/folded block --> + <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> + <!-- Detect Key before the literal/folded operator --> + <RegExpr attribute="Key" context="dpoints-key-before-literal-operator" String="&keyAfterOp;(?=:\s)" /> + <RegExpr attribute="Normal Text" context="#pop" String="\S" lookAhead="true" endRegion="Literal" /> + </context> + + <!-- Content of the literal block: --> + + <!-- If the literal operator is starting the line (after a space, use block indentation) --> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-only-operator" dynamic="true" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1.*$" dynamic="true" column="0" /> + + <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> + <RegExpr attribute="Comment" context="comment" String="(?:^|\s)#" /> + <RegExpr context="#pop" String="\S" lookAhead="true" endRegion="Literal" /> + </context> + <!-- If the literal operator is the first character of a line (or after header) --> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-simple" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^\s.*$" column="0" /> + + <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> + <RegExpr attribute="Comment" context="comment" String="(?:^|\s)#" /> + </context> + <!-- If there is a data type or other content before the liretal operator (use block indentation) --> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-after-data" dynamic="true" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1.*$" dynamic="true" column="0" /> + + <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> + <RegExpr context="before-literal-operator" String="\S" lookAhead="true" /> + </context> + <!-- If there is a key before the literal operator --> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key" dynamic="true" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1\s.*$" dynamic="true" column="0" /> + + <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" /> + <!-- Attribute of the Key (the Key was previously highlighted) --> + <RegExpr attribute="Key Points Operator" context="key-before-literal-operator" String=":\s" /> + <RegExpr context="key-before-literal-operator" String="\S" lookAhead="true" /> + </context> + + <!-- If there are dashes/"?" before the literal operator --> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s1" dynamic="true" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1\s.*$" dynamic="true" column="0" /> + <IncludeRules context="literal-block-default" /> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s2" dynamic="true" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2&space;\s.*$" dynamic="true" column="0" /> + <IncludeRules context="literal-block-default" /> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s3" dynamic="true" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3&space;{2}\s.*$" dynamic="true" column="0" /> + <IncludeRules context="literal-block-default" /> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s4" dynamic="true" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4&space;{3}\s.*$" dynamic="true" column="0" /> + <IncludeRules context="literal-block-default" /> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s5" dynamic="true" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5&space;{4}\s.*$" dynamic="true" column="0" /> + <IncludeRules context="literal-block-default" /> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s6" dynamic="true" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5%6&space;{5}\s.*$" dynamic="true" column="0" /> + <IncludeRules context="literal-block-default" /> + </context> + <!-- If there are dashes/"?" and a Key before the literal operator --> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s2" dynamic="true" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2&space;\s.*$" dynamic="true" column="0" /> + <IncludeRules context="literal-block-key-default" /> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s3" dynamic="true" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3&space;{2}\s.*$" dynamic="true" column="0" /> + <IncludeRules context="literal-block-key-default" /> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s4" dynamic="true" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4&space;{3}\s.*$" dynamic="true" column="0" /> + <IncludeRules context="literal-block-key-default" /> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s5" dynamic="true" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5&space;{4}\s.*$" dynamic="true" column="0" /> + <IncludeRules context="literal-block-key-default" /> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s6" dynamic="true" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5%6&space;{5}\s.*$" dynamic="true" column="0" /> + <IncludeRules context="literal-block-key-default" /> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s7" dynamic="true" noIndentationBasedFolding="true"> + <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5%6%7&space;{6}\s.*$" dynamic="true" column="0" /> + <IncludeRules context="literal-block-key-default" /> + </context> + </contexts> + + <itemDatas> + <itemData name="Normal Text" defStyleNum="dsAttribute" /> + <itemData name="Attribute" defStyleNum="dsAttribute" /> + <itemData name="List" defStyleNum="dsAttribute" /> + <itemData name="Hash" defStyleNum="dsAttribute" /> + <itemData name="Comment" defStyleNum="dsComment" /> + <itemData name="End of Document" defStyleNum="dsComment" /> + <itemData name="Document Header" defStyleNum="dsPreprocessor" /> + <itemData name="Data Types" defStyleNum="dsOthers" /> + <itemData name="Alias" defStyleNum="dsOthers" /> + <itemData name="Reference" defStyleNum="dsOthers" /> + <itemData name="Key" defStyleNum="dsFunction" bold="1" /> + <itemData name="Directive" defStyleNum="dsPreprocessor" /> + <itemData name="Key Points Operator" defStyleNum="dsKeyword" /> + <itemData name="Operator" defStyleNum="dsKeyword" /> + <itemData name="String" defStyleNum="dsString" /> + <itemData name="Escaped Character" defStyleNum="dsSpecialChar" /> + <itemData name="Literal/Folded Operator" defStyleNum="dsChar" bold="1" /> + <itemData name="Literal/Folded Block" defStyleNum="dsNormal" /> + <itemData name="Null" defStyleNum="dsChar" /> + <itemData name="Boolean" defStyleNum="dsChar" /> + <itemData name="Integer" defStyleNum="dsDecVal" /> + <itemData name="Float" defStyleNum="dsFloat" /> + <itemData name="Error" defStyleNum="dsError" /> + <itemData name="Alert" defStyleNum="dsAlert" backgroundColor="#EF9A9A" /> + </itemDatas> + </highlighting> + + <general> + <folding indentationsensitive="1" /> + <emptyLines> + <emptyLine regexpr="(?:\s+|\s*#.*)"/> + </emptyLines> + <comments> + <comment name="singleLine" start="#" position="afterwhitespace" /> + </comments> + <keywords casesensitive="1"/> + </general> +</language> +<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> |