forked from qt-creator/qt-creator
GenericHighlighter: Update from KSyntaxHighlighting
Change-Id: I0ec59359c7f8670a048dfc35264d6ab64bc62ceb Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
e6eb0bc032
commit
0f6fcd09de
27
src/share/3rdparty/generic-highlighter/bash.xml
vendored
27
src/share/3rdparty/generic-highlighter/bash.xml
vendored
@@ -8,7 +8,7 @@
|
||||
<!ENTITY noword "(?![\w$+-])"> <!-- no word, $, + or - following -->
|
||||
<!ENTITY pathpart "([\w_@.%*?+-]|\\ )"> <!-- valid character in a file name -->
|
||||
]>
|
||||
<language name="Bash" version="8" 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="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">
|
||||
|
||||
<!-- (c) 2004 by Wilbert Berendsen (wilbert@kde.nl)
|
||||
Changes by Matthew Woehlke (mw_triad@users.sourceforge.net)
|
||||
@@ -615,14 +615,27 @@
|
||||
|
||||
<!-- FindOthers contains various rules to mark different shell input -->
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="FindOthers">
|
||||
<RegExpr attribute="Escape" context="#stay" String="\\[][;\\$`{}()|&<>* ]" />
|
||||
<IncludeRules context="Escapes" />
|
||||
<RegExpr attribute="Keyword" context="#stay" String="\\$" />
|
||||
<RegExpr attribute="Escape" context="#stay" String="\{(?!(\s|$))\S*\}" />
|
||||
<!-- 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) -->
|
||||
</context>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Escapes">
|
||||
<RegExpr attribute="Escape" context="#stay" String="\\[][;\\$`{}()|&<>* ]" />
|
||||
</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">
|
||||
@@ -800,7 +813,7 @@
|
||||
<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="VarAlt" String="(:?[-=?+@]|##?|%%?|\^\^?|,,?)" />
|
||||
<RegExpr attribute="Variable" context="VarSubst" String="//?" />
|
||||
<DetectChar attribute="Variable" context="VarSub" char=":" />
|
||||
</context>
|
||||
@@ -827,16 +840,18 @@
|
||||
|
||||
<!-- 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="[0-9]+(?=[:}])" />
|
||||
<RegExpr attribute="Variable" context="#stay" String="([\-\+]\s*)?[0-9]+\s*(?=[:}])" />
|
||||
<IncludeRules context="FindSubstitutions" />
|
||||
</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="[0-9](?=[:}])" />
|
||||
<RegExpr attribute="Variable" context="#stay" String="([\-\+]\s*)?[0-9]+\s*(?=[:}])" />
|
||||
<IncludeRules context="FindSubstitutions" />
|
||||
</context>
|
||||
|
||||
|
||||
120
src/share/3rdparty/generic-highlighter/cmake.xml
vendored
120
src/share/3rdparty/generic-highlighter/cmake.xml
vendored
@@ -31,7 +31,7 @@
|
||||
|
||||
<language
|
||||
name="CMake"
|
||||
version="8"
|
||||
version="11"
|
||||
kateversion="2.4"
|
||||
section="Other"
|
||||
extensions="CMakeLists.txt;*.cmake;*.cmake.in"
|
||||
@@ -97,6 +97,7 @@
|
||||
<item>add_dependencies</item>
|
||||
<item>add_executable</item>
|
||||
<item>add_library</item>
|
||||
<item>add_link_options</item>
|
||||
<item>add_subdirectory</item>
|
||||
<item>add_test</item>
|
||||
<item>aux_source_directory</item>
|
||||
@@ -129,7 +130,9 @@
|
||||
<item>target_compile_features</item>
|
||||
<item>target_compile_options</item>
|
||||
<item>target_include_directories</item>
|
||||
<item>target_link_directories</item>
|
||||
<item>target_link_libraries</item>
|
||||
<item>target_link_options</item>
|
||||
<item>target_sources</item>
|
||||
<item>try_compile</item>
|
||||
<item>try_run</item>
|
||||
@@ -546,6 +549,8 @@
|
||||
<list name="list_nargs">
|
||||
<item>APPEND</item>
|
||||
<item>AT</item>
|
||||
<item>CASE</item>
|
||||
<item>COMPARE</item>
|
||||
<item>EXCLUDE</item>
|
||||
<item>FILTER</item>
|
||||
<item>FIND</item>
|
||||
@@ -556,6 +561,7 @@
|
||||
<item>INSERT</item>
|
||||
<item>JOIN</item>
|
||||
<item>LENGTH</item>
|
||||
<item>ORDER</item>
|
||||
<item>OUTPUT_VARIABLE</item>
|
||||
<item>PREPEND</item>
|
||||
<item>REGEX</item>
|
||||
@@ -570,12 +576,25 @@
|
||||
<item>TOLOWER</item>
|
||||
<item>TRANSFORM</item>
|
||||
</list>
|
||||
<list name="list_sargs">
|
||||
<item>ASCENDING</item>
|
||||
<item>DESCENDING</item>
|
||||
<item>FILE_BASENAME</item>
|
||||
<item>INSENSITIVE</item>
|
||||
<item>SENSITIVE</item>
|
||||
<item>STRING</item>
|
||||
</list>
|
||||
<list name="mark_as_advanced_nargs">
|
||||
<item>CLEAR</item>
|
||||
<item>FORCE</item>
|
||||
</list>
|
||||
<list name="math_nargs">
|
||||
<item>EXPR</item>
|
||||
<item>OUTPUT_FORMAT</item>
|
||||
</list>
|
||||
<list name="math_sargs">
|
||||
<item>DECIMAL</item>
|
||||
<item>HEXADECIMAL</item>
|
||||
</list>
|
||||
<list name="message_nargs">
|
||||
<item>AUTHOR_WARNING</item>
|
||||
@@ -870,6 +889,10 @@
|
||||
<item>WORLD_READ</item>
|
||||
<item>WORLD_WRITE</item>
|
||||
</list>
|
||||
<list name="link_directories_nargs">
|
||||
<item>AFTER</item>
|
||||
<item>BEFORE</item>
|
||||
</list>
|
||||
<list name="link_libraries_nargs">
|
||||
<item>debug</item>
|
||||
<item>general</item>
|
||||
@@ -1004,11 +1027,22 @@
|
||||
<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">
|
||||
<item>INTERFACE</item>
|
||||
<item>PRIVATE</item>
|
||||
<item>PUBLIC</item>
|
||||
</list>
|
||||
<list name="target_sources_nargs">
|
||||
<item>INTERFACE</item>
|
||||
<item>PRIVATE</item>
|
||||
@@ -1175,6 +1209,8 @@
|
||||
<item>CMAKE_ARCHIVE_OUTPUT_DIRECTORY</item>
|
||||
<item>CMAKE_ARGC</item>
|
||||
<item>CMAKE_ARGV0</item>
|
||||
<item>CMAKE_AUTOGEN_PARALLEL</item>
|
||||
<item>CMAKE_AUTOGEN_VERBOSE</item>
|
||||
<item>CMAKE_AUTOMOC</item>
|
||||
<item>CMAKE_AUTOMOC_DEPEND_FILTERS</item>
|
||||
<item>CMAKE_AUTOMOC_MOC_OPTIONS</item>
|
||||
@@ -1363,6 +1399,7 @@
|
||||
<item>CMAKE_LIBRARY_PATH_FLAG</item>
|
||||
<item>CMAKE_LINK_DEF_FILE_FLAG</item>
|
||||
<item>CMAKE_LINK_DEPENDS_NO_SHARED</item>
|
||||
<item>CMAKE_LINK_DIRECTORIES_BEFORE</item>
|
||||
<item>CMAKE_LINK_INTERFACE_LIBRARIES</item>
|
||||
<item>CMAKE_LINK_LIBRARY_FILE_FLAG</item>
|
||||
<item>CMAKE_LINK_LIBRARY_FLAG</item>
|
||||
@@ -1474,6 +1511,7 @@
|
||||
<item>CMAKE_VERSION</item>
|
||||
<item>CMAKE_VISIBILITY_INLINES_HIDDEN</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>
|
||||
@@ -1496,7 +1534,23 @@
|
||||
<item>CMAKE_WIN32_EXECUTABLE</item>
|
||||
<item>CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS</item>
|
||||
<item>CMAKE_XCODE_GENERATE_SCHEME</item>
|
||||
<item>CMAKE_XCODE_GENERATE_TOP_LEVEL_PROJECT_ONLY</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_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_GUARD_MALLOC</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>
|
||||
<item>CMAKE_XCODE_SCHEME_MALLOC_STACK</item>
|
||||
<item>CMAKE_XCODE_SCHEME_THREAD_SANITIZER</item>
|
||||
<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_ZOMBIE_OBJECTS</item>
|
||||
<item>CPACK_ABSOLUTE_DESTINATION_FILES</item>
|
||||
<item>CPACK_ARCHIVE_COMPONENT_INSTALL</item>
|
||||
<item>CPACK_ARCHIVE_FILE_NAME</item>
|
||||
@@ -1525,6 +1579,7 @@
|
||||
<item>CPACK_CYGWIN_PATCH_NUMBER</item>
|
||||
<item>CPACK_DEBIAN_ARCHIVE_TYPE</item>
|
||||
<item>CPACK_DEBIAN_COMPRESSION_TYPE</item>
|
||||
<item>CPACK_DEBIAN_DEBUGINFO_PACKAGE</item>
|
||||
<item>CPACK_DEBIAN_ENABLE_COMPONENT_DEPENDS</item>
|
||||
<item>CPACK_DEBIAN_FILE_NAME</item>
|
||||
<item>CPACK_DEBIAN_PACKAGE_ARCHITECTURE</item>
|
||||
@@ -1563,6 +1618,9 @@
|
||||
<item>CPACK_DMG_SLA_LANGUAGES</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_GENERATOR</item>
|
||||
<item>CPACK_IFW_ADMIN_TARGET_DIRECTORY</item>
|
||||
<item>CPACK_IFW_BINARYCREATOR_EXECUTABLE</item>
|
||||
@@ -1972,6 +2030,7 @@
|
||||
<item>INTERPROCEDURAL_OPTIMIZATION</item>
|
||||
<item>LABELS</item>
|
||||
<item>LINK_DIRECTORIES</item>
|
||||
<item>LINK_OPTIONS</item>
|
||||
<item>LISTFILE_STACK</item>
|
||||
<item>MACROS</item>
|
||||
<item>PARENT_DIRECTORY</item>
|
||||
@@ -2048,6 +2107,7 @@
|
||||
<item>C_STANDARD</item>
|
||||
<item>C_STANDARD_REQUIRED</item>
|
||||
<item>DEFINE_SYMBOL</item>
|
||||
<item>DEPLOYMENT_ADDITIONAL_FILES</item>
|
||||
<item>DEPLOYMENT_REMOTE_DIRECTORY</item>
|
||||
<item>DOTNET_TARGET_FRAMEWORK_VERSION</item>
|
||||
<item>ENABLE_EXPORTS</item>
|
||||
@@ -2090,7 +2150,10 @@
|
||||
<item>INTERFACE_COMPILE_FEATURES</item>
|
||||
<item>INTERFACE_COMPILE_OPTIONS</item>
|
||||
<item>INTERFACE_INCLUDE_DIRECTORIES</item>
|
||||
<item>INTERFACE_LINK_DEPENDS</item>
|
||||
<item>INTERFACE_LINK_DIRECTORIES</item>
|
||||
<item>INTERFACE_LINK_LIBRARIES</item>
|
||||
<item>INTERFACE_LINK_OPTIONS</item>
|
||||
<item>INTERFACE_POSITION_INDEPENDENT_CODE</item>
|
||||
<item>INTERFACE_SOURCES</item>
|
||||
<item>INTERFACE_SYSTEM_INCLUDE_DIRECTORIES</item>
|
||||
@@ -2104,10 +2167,12 @@
|
||||
<item>LINKER_LANGUAGE</item>
|
||||
<item>LINK_DEPENDS</item>
|
||||
<item>LINK_DEPENDS_NO_SHARED</item>
|
||||
<item>LINK_DIRECTORIES</item>
|
||||
<item>LINK_FLAGS</item>
|
||||
<item>LINK_INTERFACE_LIBRARIES</item>
|
||||
<item>LINK_INTERFACE_MULTIPLICITY</item>
|
||||
<item>LINK_LIBRARIES</item>
|
||||
<item>LINK_OPTIONS</item>
|
||||
<item>LINK_SEARCH_END_STATIC</item>
|
||||
<item>LINK_SEARCH_START_STATIC</item>
|
||||
<item>LINK_WHAT_YOU_USE</item>
|
||||
@@ -2140,12 +2205,15 @@
|
||||
<item>SOURCE_DIR</item>
|
||||
<item>SOVERSION</item>
|
||||
<item>STATIC_LIBRARY_FLAGS</item>
|
||||
<item>STATIC_LIBRARY_OPTIONS</item>
|
||||
<item>SUFFIX</item>
|
||||
<item>TYPE</item>
|
||||
<item>VERSION</item>
|
||||
<item>VISIBILITY_INLINES_HIDDEN</item>
|
||||
<item>VS_CONFIGURATION_TYPE</item>
|
||||
<item>VS_DEBUGGER_COMMAND</item>
|
||||
<item>VS_DEBUGGER_COMMAND_ARGUMENTS</item>
|
||||
<item>VS_DEBUGGER_ENVIRONMENT</item>
|
||||
<item>VS_DEBUGGER_WORKING_DIRECTORY</item>
|
||||
<item>VS_DESKTOP_EXTENSIONS_VERSION</item>
|
||||
<item>VS_DOTNET_REFERENCES</item>
|
||||
@@ -2172,6 +2240,24 @@
|
||||
<item>WINDOWS_EXPORT_ALL_SYMBOLS</item>
|
||||
<item>XCODE_EXPLICIT_FILE_TYPE</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_DISABLE_MAIN_THREAD_CHECKER</item>
|
||||
<item>XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS</item>
|
||||
<item>XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE</item>
|
||||
<item>XCODE_SCHEME_ENVIRONMENT</item>
|
||||
<item>XCODE_SCHEME_EXECUTABLE</item>
|
||||
<item>XCODE_SCHEME_GUARD_MALLOC</item>
|
||||
<item>XCODE_SCHEME_MAIN_THREAD_CHECKER_STOP</item>
|
||||
<item>XCODE_SCHEME_MALLOC_GUARD_EDGES</item>
|
||||
<item>XCODE_SCHEME_MALLOC_SCRIBBLE</item>
|
||||
<item>XCODE_SCHEME_MALLOC_STACK</item>
|
||||
<item>XCODE_SCHEME_THREAD_SANITIZER</item>
|
||||
<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_ZOMBIE_OBJECTS</item>
|
||||
<item>XCTEST</item>
|
||||
</list>
|
||||
<list name="source-properties">
|
||||
@@ -2379,6 +2465,7 @@
|
||||
<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" />
|
||||
@@ -2411,7 +2498,9 @@
|
||||
<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" />
|
||||
@@ -2699,6 +2788,7 @@
|
||||
<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">
|
||||
@@ -2722,6 +2812,7 @@
|
||||
<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" />
|
||||
</context>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="message_ctx">
|
||||
@@ -2904,6 +2995,13 @@
|
||||
<keyword attribute="Named Args" context="#stay" String="add_library_nargs" />
|
||||
<IncludeRules context="User Function Args" />
|
||||
</context>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="add_link_options_ctx">
|
||||
<DetectChar attribute="Normal Text" context="add_link_options_ctx_op" char="(" />
|
||||
</context>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="add_link_options_ctx_op">
|
||||
<IncludeRules context="EndCmdPop2" />
|
||||
<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="(" />
|
||||
</context>
|
||||
@@ -3056,6 +3154,7 @@
|
||||
</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" />
|
||||
</context>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="link_libraries_ctx">
|
||||
@@ -3174,6 +3273,14 @@
|
||||
<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>
|
||||
<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>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="target_link_libraries_ctx">
|
||||
<DetectChar attribute="Normal Text" context="target_link_libraries_ctx_op" char="(" />
|
||||
</context>
|
||||
@@ -3182,6 +3289,14 @@
|
||||
<keyword attribute="Named Args" context="#stay" String="target_link_libraries_nargs" />
|
||||
<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>
|
||||
<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>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="target_sources_ctx">
|
||||
<DetectChar attribute="Normal Text" context="target_sources_ctx_op" char="(" />
|
||||
</context>
|
||||
@@ -3466,6 +3581,8 @@
|
||||
<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" />
|
||||
@@ -3527,6 +3644,7 @@
|
||||
<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" />
|
||||
|
||||
1185
src/share/3rdparty/generic-highlighter/css.xml
vendored
1185
src/share/3rdparty/generic-highlighter/css.xml
vendored
File diff suppressed because it is too large
Load Diff
@@ -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="3" kateversion="2.4" author="Jan Janssen (medhefgo@web.de)" license="LGPL">
|
||||
<language name="INI Files" section="Configuration" extensions="*.ini;*.pls;*.kcfgc;*.conf" mimetype="" version="4" kateversion="2.4" author="Jan Janssen (medhefgo@web.de)" license="LGPL">
|
||||
|
||||
<highlighting>
|
||||
<list name="keywords">
|
||||
|
||||
29
src/share/3rdparty/generic-highlighter/java.xml
vendored
29
src/share/3rdparty/generic-highlighter/java.xml
vendored
@@ -1,6 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="Java" version="3" kateversion="5.0" section="Sources" extensions="*.java" mimetype="text/x-java" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)">
|
||||
<!DOCTYPE language SYSTEM "language.dtd"
|
||||
[
|
||||
<!ENTITY int "[0-9]([0-9_]*[0-9])?">
|
||||
<!ENTITY hex "[0-9a-fA-F]([0-9a-fA-F_]*[0-9a-fA-F])?">
|
||||
]>
|
||||
<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)">
|
||||
<highlighting>
|
||||
<list name="java15">
|
||||
<item>ACTIVE</item>
|
||||
@@ -3760,14 +3764,13 @@
|
||||
<keyword attribute="Keyword" context="#stay" String="keywords"/>
|
||||
<keyword attribute="Data Type" context="#stay" String="types"/>
|
||||
<keyword attribute="Java15" context="#stay" String="java15"/>
|
||||
<Float attribute="Float" context="#stay">
|
||||
<AnyChar String="fF" attribute="Float" context="#stay"/>
|
||||
</Float>
|
||||
<HlCOct attribute="Octal" context="#stay"/>
|
||||
<HlCHex attribute="Hex" context="#stay"/>
|
||||
<Int attribute="Decimal" context="#stay">
|
||||
<StringDetect attribute="Decimal" context="#stay" String="L" insensitive="true"/>
|
||||
</Int>
|
||||
<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"/>
|
||||
@@ -3822,9 +3825,12 @@
|
||||
<context attribute="Normal Text" lineEndContext="#pop" name="Imports">
|
||||
<RegExpr attribute="Imports" context="#pop" String="\s*.*;" />
|
||||
</context>
|
||||
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1"/>
|
||||
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
|
||||
<IncludeRules context="##Alerts"/>
|
||||
</context>
|
||||
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
|
||||
<IncludeRules context="##Alerts"/>
|
||||
</context>
|
||||
</contexts>
|
||||
<itemDatas>
|
||||
@@ -3838,6 +3844,7 @@
|
||||
<itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false"/>
|
||||
<itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false"/>
|
||||
<itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/>
|
||||
<itemData name="Binary" defStyleNum="dsBaseN" spellChecking="false"/>
|
||||
<itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/>
|
||||
<itemData name="Char" defStyleNum="dsChar" spellChecking="false"/>
|
||||
<itemData name="String" defStyleNum="dsString"/>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="Javadoc" version="2" kateversion="2.4" section="Markup" extensions="" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)">
|
||||
<language name="Javadoc" version="3" kateversion="5.0" section="Markup" extensions="" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)">
|
||||
<highlighting>
|
||||
<contexts>
|
||||
<context name="Start" attribute="Normal Text" lineEndContext="#stay">
|
||||
@@ -29,6 +29,7 @@
|
||||
<StringDetect attribute="InlineTag" context="#stay" String="{@value}" />
|
||||
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@value " />
|
||||
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@value	" />
|
||||
<IncludeRules context="##Alerts"/>
|
||||
<IncludeRules context="##HTML"/>
|
||||
</context>
|
||||
<context attribute="Javadoc" lineEndContext="#stay" name="Javadocar">
|
||||
@@ -71,12 +72,14 @@
|
||||
<StringDetect attribute="InlineTag" context="#stay" String="{@value}" />
|
||||
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@value " />
|
||||
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@value	" />
|
||||
<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>
|
||||
<context attribute="InlineTag" name="InlineTagar" lineEndContext="#stay">
|
||||
<DetectChar attribute="InlineTag" context="#pop" char="}" />
|
||||
@@ -94,12 +97,12 @@
|
||||
</contexts>
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal"/>
|
||||
<itemData name="BlockTag" defStyleNum="dsKeyword" color="#808080" selColor="#FFFFFF" bold="1" italic="0"/>
|
||||
<itemData name="InlineTag" defStyleNum="dsKeyword" color="#808080" selColor="#FFFFFF" bold="0" italic="0"/>
|
||||
<itemData name="JavadocParam" defStyleNum="dsKeyword" color="#008080" selColor="#FFFFFF" bold="0" italic="1"/>
|
||||
<itemData name="SeeTag" defStyleNum="dsKeyword" color="#008080" selColor="#FFFFFF" bold="0" italic="1"/>
|
||||
<itemData name="JavadocFS" defStyleNum="dsComment" color="#008000" selColor="#FFFFFF" bold="1" italic="0"/>
|
||||
<itemData name="Javadoc" defStyleNum="dsComment" color="#008000" selColor="#FFFFFF"/>
|
||||
<itemData name="BlockTag" defStyleNum="dsAnnotation" bold="1" italic="0" spellChecking="false"/>
|
||||
<itemData name="InlineTag" defStyleNum="dsAnnotation" bold="0" italic="0" spellChecking="false"/>
|
||||
<itemData name="JavadocParam" defStyleNum="dsAnnotation" bold="0" italic="1" spellChecking="false"/>
|
||||
<itemData name="SeeTag" defStyleNum="dsAnnotation" bold="0" italic="1" spellChecking="false"/>
|
||||
<itemData name="JavadocFS" defStyleNum="dsComment" bold="1" italic="0" spellChecking="false"/>
|
||||
<itemData name="Javadoc" defStyleNum="dsComment"/>
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
<general>
|
||||
|
||||
71
src/share/3rdparty/generic-highlighter/perl.xml
vendored
71
src/share/3rdparty/generic-highlighter/perl.xml
vendored
@@ -39,7 +39,7 @@
|
||||
|
||||
Enhance tr/// and y/// support.
|
||||
-->
|
||||
<language name="Perl" version="6" 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="7" 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">
|
||||
<highlighting>
|
||||
<list name="keywords">
|
||||
<item>if</item>
|
||||
@@ -358,13 +358,14 @@
|
||||
<RegExpr attribute="Decimal" String="\b\-?[1-9]([0-9]|_[0-9])*\b" context="slash_safe_escape"/>
|
||||
<Int attribute="Decimal" context="slash_safe_escape" />
|
||||
|
||||
<RegExpr attribute="Normal Text" context="#stay" String="\\(["'])[^\1]" />
|
||||
<!-- Allow strings as scalar references (ex: \'string') (see bug #348765). -->
|
||||
<!-- <RegExpr attribute="Normal Text" context="#stay" String="\\(["'])[^\1]" /> -->
|
||||
<Detect2Chars attribute="Normal Text" context="#stay" char="&" char1="'" /><!-- ??? -->
|
||||
<DetectChar attribute="Operator" context="ip_string" char=""" beginRegion="String" />
|
||||
<DetectChar attribute="Operator" context="string" char="'" beginRegion="String"/>
|
||||
<DetectChar attribute="Operator" context="Backticked" char="`" />
|
||||
|
||||
<RegExpr attribute="Normal Text" context="find_variable" String="(?:[$@]\S|%[\w{]|\*[^\d\*{\$@%=(])" lookAhead="true" />
|
||||
<RegExpr attribute="Normal Text" context="find_variable" String="(?:[$@]\S|%([\w\{\+\-!]|\^H)|\*[^\d\*{\$@%=(])" lookAhead="true" />
|
||||
|
||||
<RegExpr attribute="Keyword" context="#stay" String="<[A-Z0-9_]+>" />
|
||||
|
||||
@@ -423,9 +424,17 @@
|
||||
<!-- ====== Contexts for strings ===== -->
|
||||
<context name="ipstring_internal" attribute="String (interpolated)" lineEndContext="#stay">
|
||||
<DetectIdentifier />
|
||||
<RegExpr attribute="String Special Character" context="#stay" String="\\[UuLlEtnaefr]" />
|
||||
<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 (interpolated)" context="#stay" String="\\." />
|
||||
<RegExpr attribute="Normal Text" context="find_variable_unsafe" String="(?:[\$@]\S|%[\w{])" lookAhead="true" />
|
||||
<RegExpr attribute="Normal Text" context="find_variable_unsafe" String="(?:[\$@]\S|%([\w\{\-\+!]|\^H))" lookAhead="true" />
|
||||
</context>
|
||||
<context name="ip_string" attribute="String (interpolated)" lineEndContext="#stay">
|
||||
<DetectChar attribute="Operator" context="#pop" char=""" endRegion="String"/>
|
||||
@@ -517,6 +526,8 @@
|
||||
<RegExpr attribute="Comment" context="#stay" String="\s+#.*$" />
|
||||
<IncludeRules context="regex_pattern_internal_ip" />
|
||||
<DetectChar attribute="Operator" context="subst_curlybrace_middle" char="}" endRegion="Pattern" />
|
||||
<!-- Recursive brackets. Avoid closing brackets incorrectly (bug #364866). -->
|
||||
<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="#.*$" />
|
||||
@@ -532,17 +543,27 @@
|
||||
<DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="Block" />
|
||||
<IncludeRules context="ipstring_internal" />
|
||||
</context>
|
||||
<context name="subst_curlybrace_pattern_recursive" attribute="Pattern" lineEndContext="#stay">
|
||||
<DetectChar attribute="Pattern" context="#pop" char="}" />
|
||||
<IncludeRules context="subst_curlybrace_pattern" />
|
||||
</context>
|
||||
|
||||
<context name="subst_paren_pattern" attribute="Pattern" lineEndContext="#stay">
|
||||
<RegExpr attribute="Comment" context="#stay" String="\s+#.*$" />
|
||||
<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="(" />
|
||||
<IncludeRules context="regex_pattern_internal_ip" />
|
||||
<DetectChar attribute="Operator" context="subst_paren_replace" char="}" endRegion="Pattern" />
|
||||
</context>
|
||||
<context name="subst_paren_replace" attribute="String (interpolated)" lineEndContext="#stay">
|
||||
<IncludeRules context="ipstring_internal" />
|
||||
<DetectChar attribute="Operator" context="#stay" char="(" beginRegion="Replacement" />
|
||||
<RegExpr attribute="Operator" context="#pop#pop#pop" String="\)[cegimosx]*" endRegion="Replacement" />
|
||||
</context>
|
||||
<context name="subst_paren_pattern_internal_recursive" attribute="Pattern" lineEndContext="#stay">
|
||||
<DetectChar attribute="Pattern Internal Operator" context="#pop" char=")" />
|
||||
<IncludeRules context="subst_paren_pattern" />
|
||||
</context>
|
||||
|
||||
<context name="subst_bracket_pattern" attribute="Pattern" lineEndContext="#stay">
|
||||
<RegExpr attribute="Comment" context="#stay" String="\s+#.*$" />
|
||||
@@ -605,6 +626,12 @@
|
||||
<context name="pattern_brace" attribute="Pattern" lineEndContext="#stay">
|
||||
<RegExpr attribute="Operator" context="#pop#pop" String="\}[cgimosx]*" endRegion="Pattern" />
|
||||
<IncludeRules context="regex_pattern_internal_ip" />
|
||||
<!-- Recursive brackets. Avoid closing brackets incorrectly. -->
|
||||
<DetectChar attribute="Pattern" context="pattern_brace_recursive" char="{" />
|
||||
</context>
|
||||
<context name="pattern_brace_recursive" attribute="Pattern" lineEndContext="#stay">
|
||||
<DetectChar attribute="Pattern" context="#pop" char="}" />
|
||||
<IncludeRules context="pattern_brace" />
|
||||
</context>
|
||||
<context name="pattern_bracket" attribute="Pattern" lineEndContext="#stay">
|
||||
<RegExpr attribute="Operator" context="#pop#pop" String="\][cgimosx]*" endRegion="Pattern" />
|
||||
@@ -612,8 +639,14 @@
|
||||
</context>
|
||||
<context name="pattern_paren" attribute="Pattern" lineEndContext="#stay">
|
||||
<RegExpr attribute="Operator" context="#pop#pop" String="\)[cgimosx]*" endRegion="Pattern" />
|
||||
<!-- Round brackets of RegExp pattern inside -->
|
||||
<DetectChar attribute="Pattern Internal Operator" context="pattern_paren_internal_recursive" char="(" />
|
||||
<IncludeRules context="regex_pattern_internal_ip" />
|
||||
</context>
|
||||
<context name="pattern_paren_internal_recursive" attribute="Pattern" lineEndContext="#stay">
|
||||
<DetectChar attribute="Pattern Internal Operator" context="#pop" char=")" />
|
||||
<IncludeRules context="pattern_paren" />
|
||||
</context>
|
||||
<context name="pattern_sq" attribute="Pattern" lineEndContext="#stay">
|
||||
<RegExpr attribute="Operator" context="#pop#pop" String="'[cgimosx]*" endRegion="Pattern" />
|
||||
<IncludeRules context="regex_pattern_internal" />
|
||||
@@ -622,8 +655,15 @@
|
||||
<!-- 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]+\})" />
|
||||
<RegExpr attribute="Pattern Character Class" context="#stay" String="\\[anDdSsWw]" />
|
||||
<RegExpr attribute="Pattern Internal Operator" context="#stay" String="\\[ABbEGLlNUuQdQZz]" />
|
||||
<RegExpr attribute="Pattern Internal Operator" context="#stay" String="\\[ABbEGLlNUuQdQZz]" /> <!-- Also?: efFhHKrRtvVX -->
|
||||
<RegExpr attribute="Special Variable" context="#stay" String="\\[\d]+" />
|
||||
<RegExpr attribute="Pattern" context="#stay" String="\\." />
|
||||
</context>
|
||||
@@ -664,31 +704,36 @@
|
||||
|
||||
<!-- ====== 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="\$[#_][\w_]" />
|
||||
<RegExpr attribute="Data Type" context="var_detect" String="\$+::" />
|
||||
<RegExpr attribute="Special Variable" context="var_detect" String="\$[^a-zA-Z0-9\s{][A-Z]?" />
|
||||
<RegExpr attribute="Data Type" context="var_detect" String="[\$@%]\{[\w_]+\}" />
|
||||
<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="Special Variable" context="#stay" String="\*[^a-zA-Z0-9\s{][A-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! -->
|
||||
<AnyChar attribute="Operator" context="#pop" String="$@%*" />
|
||||
</context>
|
||||
<!-- 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="\$[#_][\w_]" />
|
||||
<RegExpr attribute="Data Type" context="var_detect_unsafe" String="\$+::" />
|
||||
<RegExpr attribute="Special Variable" context="#stay" String="\$[^a-zA-Z0-9\s{][A-Z]?" />
|
||||
<RegExpr attribute="Data Type" context="var_detect_unsafe" String="[\$@%]\{[\w_]+\}" />
|
||||
<RegExpr attribute="Data Type" context="var_detect_unsafe" String="[\$@%]" /><!-- AnyChar! -->
|
||||
<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+" />
|
||||
<AnyChar attribute="Operator" context="#pop" String="$@%*" />
|
||||
</context>
|
||||
|
||||
74
src/share/3rdparty/generic-highlighter/ruby.xml
vendored
74
src/share/3rdparty/generic-highlighter/ruby.xml
vendored
@@ -31,7 +31,7 @@
|
||||
|
||||
<!-- Hold the "language" opening tag on a single line, as mentioned in "language.dtd". -->
|
||||
<language name="Ruby" section="Scripts"
|
||||
version="8" kateversion="3.3"
|
||||
version="9" kateversion="3.3"
|
||||
extensions="*.rb;*.rjs;*.rxml;*.xml.erb;*.js.erb;*.rake;Rakefile;Gemfile;*.gemspec;Vagrantfile"
|
||||
mimetype="application/x-ruby"
|
||||
style="ruby" indenter="ruby"
|
||||
@@ -274,7 +274,7 @@
|
||||
<!-- regexp hack -->
|
||||
<RegExpr attribute="Operator" String="\s!" context="#stay"/>
|
||||
<RegExpr attribute="Operator" String="/=\s" context="#stay" insensitive="0"/>
|
||||
<StringDetect attribute="Operator" String="%=" context="#stay" insensitive="0"/>
|
||||
<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"/>
|
||||
@@ -287,7 +287,7 @@
|
||||
<DetectChar attribute="Raw String" char="'" context="Apostrophed String"/>
|
||||
<DetectChar attribute="Command" char="`" context="Command String"/>
|
||||
|
||||
<StringDetect attribute="Normal Text" String="?#" context="#stay"/>
|
||||
<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"/>
|
||||
@@ -364,22 +364,22 @@
|
||||
</context>
|
||||
|
||||
<context name="Quoted String" attribute="String" lineEndContext="#stay">
|
||||
<StringDetect attribute="String" String="\\" context="#stay"/>
|
||||
<RegExpr attribute="String" String="\\\"" context="#stay"/>
|
||||
<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="Subst"/>
|
||||
<DetectChar char=""" attribute="String" context="check_div_1_pop"/>
|
||||
</context>
|
||||
|
||||
<context name="Apostrophed String" attribute="Raw String" lineEndContext="#stay">
|
||||
<StringDetect attribute="String" String="\\" context="#stay"/>
|
||||
<RegExpr attribute="String" String="\\\'" context="#stay"/>
|
||||
<Detect2Chars attribute="String" char="\" char1="\" context="#stay"/>
|
||||
<Detect2Chars attribute="String" char="\" char1="'" context="#stay"/>
|
||||
<DetectChar char="'" attribute="Raw String" context="check_div_1_pop"/>
|
||||
</context>
|
||||
|
||||
<context name="Command String" attribute="Command" lineEndContext="#stay">
|
||||
<StringDetect attribute="String" String="\\" context="#stay"/>
|
||||
<RegExpr attribute="String" String="\\\`" context="#stay"/>
|
||||
<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="Subst"/>
|
||||
<DetectChar char="`" attribute="Command" context="check_div_1_pop"/>
|
||||
@@ -391,7 +391,7 @@
|
||||
</context>
|
||||
|
||||
<context name="RegEx 1" attribute="Regular Expression" lineEndContext="#stay">
|
||||
<RegExpr attribute="Regular Expression" String="\\\/" context="#stay"/>
|
||||
<Detect2Chars attribute="Regular Expression" char="\" char1="/" context="#stay"/>
|
||||
<RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/>
|
||||
<Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/>
|
||||
<RegExpr attribute="Regular Expression" String="/[uiomxn]*" context="check_div_1_pop"/>
|
||||
@@ -473,42 +473,42 @@
|
||||
<context name="find_gdl_input" attribute="Normal Text" lineEndContext="#pop">
|
||||
|
||||
<!-- handle token arrays -->
|
||||
<RegExpr attribute="GDL input" context="gdl_token_array_1" String="w\(" />
|
||||
<RegExpr attribute="GDL input" context="gdl_token_array_2" String="w\{" />
|
||||
<RegExpr attribute="GDL input" context="gdl_token_array_3" String="w\[" />
|
||||
<RegExpr attribute="GDL input" context="gdl_token_array_4" String="w<" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_token_array_1" char="w" char1="(" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_token_array_2" char="w" char1="{" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_token_array_3" char="w" char1="[" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_token_array_4" char="w" char1="<" />
|
||||
<!-- then we handle the 'any char' format -->
|
||||
<RegExpr attribute="GDL input" context="gdl_token_array_5" String="w([^\s\w])" />
|
||||
|
||||
<!-- handle token arrays -->
|
||||
<RegExpr attribute="GDL input" context="gdl_token_array_1" String="W\(" />
|
||||
<RegExpr attribute="GDL input" context="gdl_token_array_2" String="W\{" />
|
||||
<RegExpr attribute="GDL input" context="gdl_token_array_3" String="W\[" />
|
||||
<RegExpr attribute="GDL input" context="gdl_token_array_4" String="W<" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_token_array_1" char="W" char1="(" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_token_array_2" char="W" char1="{" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_token_array_3" char="W" char1="[" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_token_array_4" char="W" char1="<" />
|
||||
<!-- then we handle the 'any char' format -->
|
||||
<RegExpr attribute="GDL input" context="gdl_token_array_5" String="W([^\s\w])" />
|
||||
|
||||
<!-- handle apostrophed strings -->
|
||||
<RegExpr attribute="GDL input" context="gdl_apostrophed_1" String="q\(" />
|
||||
<RegExpr attribute="GDL input" context="gdl_apostrophed_2" String="q\{" />
|
||||
<RegExpr attribute="GDL input" context="gdl_apostrophed_3" String="q\[" />
|
||||
<RegExpr attribute="GDL input" context="gdl_apostrophed_4" String="q<" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_apostrophed_1" char="q" char1="(" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_apostrophed_2" char="q" char1="{" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_apostrophed_3" char="q" char1="[" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_apostrophed_4" char="q" char1="<" />
|
||||
<!-- then we handle the 'any char' format -->
|
||||
<RegExpr attribute="GDL input" context="gdl_apostrophed_5" String="q([^\s\w])" />
|
||||
|
||||
<!-- handle shell commands -->
|
||||
<RegExpr attribute="GDL input" context="gdl_shell_command_1" String="x\(" />
|
||||
<RegExpr attribute="GDL input" context="gdl_shell_command_2" String="x\{" />
|
||||
<RegExpr attribute="GDL input" context="gdl_shell_command_3" String="x\[" />
|
||||
<RegExpr attribute="GDL input" context="gdl_shell_command_4" String="x<" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_shell_command_1" char="x" char1="(" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_shell_command_2" char="x" char1="{" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_shell_command_3" char="x" char1="[" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_shell_command_4" char="x" char1="<" />
|
||||
<!-- then we handle the 'any char' format -->
|
||||
<RegExpr attribute="GDL input" context="gdl_shell_command_5" String="x([^\s\w])" />
|
||||
|
||||
<!-- handle regular expressions -->
|
||||
<RegExpr attribute="GDL input" context="gdl_regexpr_1" String="r\(" />
|
||||
<RegExpr attribute="GDL input" context="gdl_regexpr_2" String="r\{" />
|
||||
<RegExpr attribute="GDL input" context="gdl_regexpr_3" String="r\[" />
|
||||
<RegExpr attribute="GDL input" context="gdl_regexpr_4" String="r<" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_regexpr_1" char="r" char1="(" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_regexpr_2" char="r" char1="{" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_regexpr_3" char="r" char1="[" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_regexpr_4" char="r" char1="<" />
|
||||
<!-- then we handle the 'any char' format -->
|
||||
<RegExpr attribute="GDL input" context="gdl_regexpr_5" String="r([^\s\w])" />
|
||||
|
||||
@@ -517,10 +517,14 @@
|
||||
be careful to make this the last GDL ruleset, because the rule for
|
||||
the short form %?foo? will otherwise catch any of the other formats
|
||||
-->
|
||||
<RegExpr attribute="GDL input" context="gdl_dq_string_1" String="Q?\(" />
|
||||
<RegExpr attribute="GDL input" context="gdl_dq_string_2" String="Q?\{" />
|
||||
<RegExpr attribute="GDL input" context="gdl_dq_string_3" String="Q?\[" />
|
||||
<RegExpr attribute="GDL input" context="gdl_dq_string_4" String="Q?<" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_dq_string_1" char="Q" char1="(" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_dq_string_2" char="Q" char1="{" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_dq_string_3" char="Q" char1="[" />
|
||||
<Detect2Chars attribute="GDL input" context="gdl_dq_string_4" char="Q" char1="<" />
|
||||
<DetectChar attribute="GDL input" context="gdl_dq_string_1" char="(" />
|
||||
<DetectChar attribute="GDL input" context="gdl_dq_string_2" char="{" />
|
||||
<DetectChar attribute="GDL input" context="gdl_dq_string_3" char="[" />
|
||||
<DetectChar attribute="GDL input" context="gdl_dq_string_4" char="<" />
|
||||
<!-- then we handle the 'any char' format -->
|
||||
<RegExpr attribute="GDL input" context="gdl_dq_string_5" String="Q?([^\s\w])" />
|
||||
|
||||
@@ -650,7 +654,7 @@
|
||||
|
||||
<!-- rules to be included in all token_array contexts -->
|
||||
<context name="token_array_rules" attribute="String" lineEndContext="#stay" >
|
||||
<StringDetect attribute="String" String="\\" context="#stay"/>
|
||||
<Detect2Chars attribute="String" char="\" char1="\" context="#stay"/>
|
||||
</context>
|
||||
|
||||
<!-- apostrophed string specific contexts -->
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<!ENTITY name "(?![0-9])[\w_:][\w.:_-]*">
|
||||
<!ENTITY entref "&(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
|
||||
]>
|
||||
<language name="XML" version="7" kateversion="3.4" section="Markup" extensions="*.docbook;*.xml;*.rc;*.daml;*.rdf;*.rss;*.xspf;*.xsd;*.svg;*.ui;*.kcfg;*.qrc;*.wsdl;*.scxml;*.xbel;*.dae" 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" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
|
||||
<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">
|
||||
|
||||
<highlighting>
|
||||
<contexts>
|
||||
@@ -145,6 +145,5 @@
|
||||
<comments>
|
||||
<comment name="multiLine" start="<!--" end="-->" />
|
||||
</comments>
|
||||
<indentation mode="xml" />
|
||||
</general>
|
||||
</language>
|
||||
|
||||
Reference in New Issue
Block a user