packages feed

skylighting-core 0.13.4.1 → 0.14

raw patch · 13 files changed

+246/−102 lines, 13 files

Files

changelog.md view
@@ -1,5 +1,14 @@ # Revision history for skylighting and skylighting-core +## 0.14++  * Add rWeakDeliminators field to Rule. [API change]++  * Make WordDetect sensitive to weakDeliminator. This fixes+    parsing of floats beginning with '0.' in C (#174).++  * Add debiancontrol syntax (#173).+ ## 0.13.4.1    * Update syntax definitions: ada, bash, cmake, css, html, isocpp, java,
skylighting-core.cabal view
@@ -1,5 +1,5 @@ name:                skylighting-core-version:             0.13.4.1+version:             0.14 synopsis:            syntax highlighting library description:         Skylighting is a syntax highlighting library.                      It derives its tokenizers from XML syntax
src/Skylighting/Parser.hs view
@@ -227,6 +227,7 @@   let str' = getAttrValue "String" el   let insensitive = vBool (not casesensitive) $ getAttrValue "insensitive" el   let includeAttrib = vBool False $ getAttrValue "includeAttrib" el+  let weakDelim = Set.fromList $ T.unpack $ getAttrValue "weakDeliminator" el   let lookahead = vBool False $ getAttrValue "lookAhead" el   let firstNonSpace = vBool False $ getAttrValue "firstNonSpace" el   let column' = getAttrValue "column" el@@ -277,6 +278,7 @@                        then M.lookup cattr itemdatas                        else M.lookup attribute itemdatas                , rIncludeAttribute = includeAttrib+               , rWeakDeliminators = weakDelim                , rDynamic = dynamic                , rCaseSensitive = not insensitive                , rChildren = children
src/Skylighting/Tokenizer.hs view
@@ -334,7 +334,8 @@                                     stringDetect (rDynamic rule) (rCaseSensitive rule)                                                  s inp                 WordDetect s -> withAttr attr $-                                    wordDetect (rCaseSensitive rule) s inp+                                    wordDetect (rCaseSensitive rule)+                                      (rWeakDeliminators rule) s inp                 LineContinue -> withAttr attr $ lineContinue inp                 DetectSpaces -> withAttr attr $ detectSpaces inp                 DetectIdentifier -> withAttr attr $ detectIdentifier inp@@ -380,9 +381,9 @@      then return Nothing      else return $ Just (tt, res) -wordDetect :: Bool -> Text -> ByteString -> TokenizerM Text-wordDetect caseSensitive s inp = do-  wordBoundary inp+wordDetect :: Bool -> Set.Set Char -> Text -> ByteString -> TokenizerM Text+wordDetect caseSensitive weakDelims s inp = do+  wordBoundary weakDelims inp   t <- decodeBS $ UTF8.take (Text.length s) inp   -- we assume here that the case fold will not change length,   -- which is safe for ASCII keywords and the like...@@ -395,7 +396,7 @@   let d = case UTF8.uncons rest of                Nothing    -> '\n'                Just (x,_) -> x-  guard $ isWordBoundary c d+  guard $ isWordBoundary weakDelims c d   takeChars (Text.length t)  stringDetect :: Bool -> Bool -> Text -> ByteString -> TokenizerM Text@@ -549,7 +550,7 @@ regExpr dynamic re inp = do   -- return $! traceShowId $! (reStr, inp)   let reStr = reString re-  when (BS.take 2 reStr == "\\b") $ wordBoundary inp+  when (BS.take 2 reStr == "\\b") $ wordBoundary mempty inp   regex <- case compileRE re of             Right r  -> return r             Left e   -> throwError $@@ -569,16 +570,18 @@ toSlice :: ByteString -> (Int, Int) -> ByteString toSlice bs (off, len) = BS.take len $ BS.drop off bs -wordBoundary :: ByteString -> TokenizerM ()-wordBoundary inp = do+wordBoundary :: Set.Set Char -> ByteString -> TokenizerM ()+wordBoundary weakDelims inp = do   case UTF8.uncons inp of        Nothing -> return ()        Just (d, _) -> do          c <- gets prevChar-         guard $ isWordBoundary c d+         guard $ isWordBoundary weakDelims c d -isWordBoundary :: Char -> Char -> Bool-isWordBoundary c d = isWordChar c /= isWordChar d+isWordBoundary :: Set.Set Char -> Char -> Char -> Bool+isWordBoundary weakDelims c d =+  (isWordChar c || c `Set.member` weakDelims) /=+  (isWordChar d || d `Set.member` weakDelims)  decodeBS :: ByteString -> TokenizerM Text decodeBS bs = case decodeUtf8' bs of@@ -658,7 +661,7 @@  parseInt :: ByteString -> TokenizerM Text parseInt inp = do-  wordBoundary inp+  wordBoundary mempty inp   case A.parseOnly (A.match (pHex <|> pOct <|> pDec)) inp of        Left _      -> mzero        Right (r,_) -> takeChars (BS.length r) -- assumes ascii@@ -670,7 +673,7 @@  parseOct :: ByteString -> TokenizerM Text parseOct inp = do-  wordBoundary inp+  wordBoundary mempty inp   case A.parseOnly (A.match pHex) inp of        Left _      -> mzero        Right (r,_) -> takeChars (BS.length r) -- assumes ascii@@ -685,7 +688,7 @@  parseHex :: ByteString -> TokenizerM Text parseHex inp = do-  wordBoundary inp+  wordBoundary mempty inp   case A.parseOnly (A.match pHex) inp of        Left _      -> mzero        Right (r,_) -> takeChars (BS.length r) -- assumes ascii@@ -706,7 +709,7 @@  parseFloat :: ByteString -> TokenizerM Text parseFloat inp = do-  wordBoundary inp+  wordBoundary mempty inp   case A.parseOnly (A.match pFloat) inp of        Left _      -> mzero        Right (r,_) -> takeChars (BS.length r)  -- assumes all ascii
src/Skylighting/Types.hs view
@@ -130,6 +130,7 @@     rMatcher          :: !Matcher   , rAttribute        :: !TokenType   , rIncludeAttribute :: !Bool+  , rWeakDeliminators :: Set.Set Char   , rDynamic          :: !Bool   , rCaseSensitive    :: !Bool   , rChildren         :: ![Rule]
test/test-skylighting.hs view
@@ -195,6 +195,16 @@              @=? tokenize defConfig bash                      "f() {\n    echo > f\n}\n" +      , testCase "C floating-point literal (#174)" $ Right+          [ [ ( DataTypeTok , "double")+            , ( NormalTok , " x " )+            , ( OperatorTok , "=" )+            , ( NormalTok , " " )+            , ( FloatTok , "0.5")+            , ( OperatorTok , ";" ) ] ]+             @=? tokenize defConfig c+                     "double x = 0.5;\n"+       ]     ] 
xml/bash.xml view
@@ -66,7 +66,7 @@  <language     name="Bash"-    version="49"+    version="50"     kateversion="5.79"     section="Scripts"     extensions="*.sh;*.bash;*.ebuild;*.eclass;*.exlib;*.exheres-0;.bashrc;.bash_profile;.bash_login;.profile;PKGBUILD;APKBUILD"@@ -1268,6 +1268,7 @@        <!-- 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>@@ -1277,6 +1278,7 @@         <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="}"/>
xml/cmake.xml view
@@ -12,7 +12,7 @@     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-2020 Alex Turbov <i.zaufi@gmail.com>+    SPDX-FileCopyrightText: 2013-2015, 2017-2023 Alex Turbov <i.zaufi@gmail.com>      SPDX-License-Identifier: LGPL-2.0-or-later  -->@@ -25,7 +25,7 @@  <language     name="CMake"-    version="47"+    version="49"     kateversion="5.62"     section="Other"     extensions="CMakeLists.txt;*.cmake;*.cmake.in"@@ -1057,7 +1057,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>@@ -1124,6 +1124,7 @@       <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>@@ -4131,6 +4132,12 @@       <item>TARGET_FILE_SUFFIX</item>       <item>TARGET_FILE_NAME</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_BASE_NAME</item>       <item>TARGET_LINKER_FILE_PREFIX</item>@@ -4148,6 +4155,7 @@       <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>@@ -4600,7 +4608,7 @@         <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_compile_definitions_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"/>@@ -5529,7 +5537,7 @@       <context attribute="Normal Text" lineEndContext="#stay" name="link_libraries_ctx_op">         <DetectSpaces/>         <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>-        <keyword attribute="Named Args" context="#stay" String="link_libraries_nargs"/>+        <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">@@ -5679,6 +5687,24 @@         <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_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">+        <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_precompile_headers_ctx">         <DetectChar attribute="Normal Text" context="target_precompile_headers_ctx_op_tgt_first" char="("/>         <DetectChar attribute="Normal Text" context="#pop" char=")"/>@@ -6529,11 +6555,11 @@       </context>        <context attribute="Normal Text" lineEndContext="#stay" name="Detect More directory-properties">-        <RegExpr attribute="Property" context="#stay" String="\b(?:VS_GLOBAL_SECTION_PRE_&var_ref_re;|VS_GLOBAL_SECTION_POST_&var_ref_re;|INTERPROCEDURAL_OPTIMIZATION_&var_ref_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="\b(?:XCODE_EMBED_&var_ref_re;_REMOVE_HEADERS_ON_COPY|XCODE_EMBED_&var_ref_re;_PATH|XCODE_EMBED_&var_ref_re;_CODE_SIGN_ON_COPY|XCODE_EMBED_&var_ref_re;|XCODE_ATTRIBUTE_&var_ref_re;|VS_SOURCE_SETTINGS_&var_ref_re;|VS_GLOBAL_&var_ref_re;|VS_DOTNET_REFERENCE_&var_ref_re;|VS_DOTNET_REFERENCEPROP_&var_ref_re;_TAG_&var_ref_re;|STATIC_LIBRARY_FLAGS_&var_ref_re;|RUNTIME_OUTPUT_NAME_&var_ref_re;|RUNTIME_OUTPUT_DIRECTORY_&var_ref_re;|PDB_OUTPUT_DIRECTORY_&var_ref_re;|PDB_NAME_&var_ref_re;|OUTPUT_NAME_&var_ref_re;|OSX_ARCHITECTURES_&var_ref_re;|MAP_IMPORTED_CONFIG_&var_ref_re;|LOCATION_&var_ref_re;|LINK_INTERFACE_MULTIPLICITY_&var_ref_re;|LINK_INTERFACE_LIBRARIES_&var_ref_re;|LINK_FLAGS_&var_ref_re;|LIBRARY_OUTPUT_NAME_&var_ref_re;|LIBRARY_OUTPUT_DIRECTORY_&var_ref_re;|INTERPROCEDURAL_OPTIMIZATION_&var_ref_re;|IMPORTED_SONAME_&var_ref_re;|IMPORTED_OBJECTS_&var_ref_re;|IMPORTED_NO_SONAME_&var_ref_re;|IMPORTED_LOCATION_&var_ref_re;|IMPORTED_LINK_INTERFACE_MULTIPLICITY_&var_ref_re;|IMPORTED_LINK_INTERFACE_LIBRARIES_&var_ref_re;|IMPORTED_LINK_INTERFACE_LANGUAGES_&var_ref_re;|IMPORTED_LINK_DEPENDENT_LIBRARIES_&var_ref_re;|IMPORTED_LIBNAME_&var_ref_re;|IMPORTED_IMPLIB_&var_ref_re;|HEADER_SET_&var_ref_re;|HEADER_DIRS_&var_ref_re;|FRAMEWORK_MULTI_CONFIG_POSTFIX_&var_ref_re;|EXCLUDE_FROM_DEFAULT_BUILD_&var_ref_re;|COMPILE_PDB_OUTPUT_DIRECTORY_&var_ref_re;|COMPILE_PDB_NAME_&var_ref_re;|ARCHIVE_OUTPUT_NAME_&var_ref_re;|ARCHIVE_OUTPUT_DIRECTORY_&var_ref_re;|&var_ref_re;_VISIBILITY_PRESET|&var_ref_re;_POSTFIX|&var_ref_re;_OUTPUT_NAME|&var_ref_re;_LINKER_LAUNCHER|&var_ref_re;_INCLUDE_WHAT_YOU_USE|&var_ref_re;_CPPLINT|&var_ref_re;_CPPCHECK|&var_ref_re;_COMPILER_LAUNCHER|&var_ref_re;_CLANG_TIDY_EXPORT_FIXES_DIR|&var_ref_re;_CLANG_TIDY)\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)|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">@@ -6558,8 +6584,8 @@       </context>        <context attribute="Normal Text" lineEndContext="#stay" name="Detect More Builtin Variables">-        <RegExpr attribute="CMake Internal Variable" context="#stay" String="\b(?:CMAKE_&var_ref_re;_PLATFORM_ID|CMAKE_&var_ref_re;_COMPILER_VERSION_INTERNAL|CMAKE_&var_ref_re;_COMPILER_ARCHITECTURE_ID|CMAKE_&var_ref_re;_COMPILER_ABI)\b"/>-        <RegExpr attribute="Builtin Variable" context="#stay" String="\b(?:SWIG_MODULE_&var_ref_re;_EXTRA_DEPS|OpenMP_&var_ref_re;_SPEC_DATE|OpenMP_&var_ref_re;_LIB_NAMES|OpenMP_&var_ref_re;_LIBRARY|OpenMP_&var_ref_re;_FLAGS|OpenACC_&var_ref_re;_SPEC_DATE|OpenACC_&var_ref_re;_OPTIONS|OpenACC_&var_ref_re;_FLAGS|MPI_&var_ref_re;_LIB_NAMES|MPI_&var_ref_re;_LIBRARY|MPI_&var_ref_re;_COMPILE_OPTIONS|MPI_&var_ref_re;_COMPILE_DEFINITIONS|MPI_&var_ref_re;_COMPILER|MPI_&var_ref_re;_ADDITIONAL_INCLUDE_VARS|ICU_&var_ref_re;_LIBRARY|ICU_&var_ref_re;_EXECUTABLE|FETCHCONTENT_UPDATES_DISCONNECTED_&var_ref_re;|FETCHCONTENT_SOURCE_DIR_&var_ref_re;|ExternalData_URL_ALGO_&var_ref_re;_&var_ref_re;|ExternalData_CUSTOM_SCRIPT_&var_ref_re;|DOXYGEN_&var_ref_re;|CPACK_WIX_PROPERTY_&var_ref_re;|CPACK_WIX_&var_ref_re;_EXTRA_FLAGS|CPACK_WIX_&var_ref_re;_EXTENSIONS|CPACK_RPM_NO_&var_ref_re;_INSTALL_PREFIX_RELOCATION|CPACK_RPM_&var_ref_re;_USER_FILELIST|CPACK_RPM_&var_ref_re;_USER_BINARY_SPECFILE|CPACK_RPM_&var_ref_re;_PACKAGE_URL|CPACK_RPM_&var_ref_re;_PACKAGE_SUMMARY|CPACK_RPM_&var_ref_re;_PACKAGE_SUGGESTS|CPACK_RPM_&var_ref_re;_PACKAGE_REQUIRES_PREUN|CPACK_RPM_&var_ref_re;_PACKAGE_REQUIRES_PRE|CPACK_RPM_&var_ref_re;_PACKAGE_REQUIRES_POSTUN|CPACK_RPM_&var_ref_re;_PACKAGE_REQUIRES_POST|CPACK_RPM_&var_ref_re;_PACKAGE_REQUIRES|CPACK_RPM_&var_ref_re;_PACKAGE_PROVIDES|CPACK_RPM_&var_ref_re;_PACKAGE_PREFIX|CPACK_RPM_&var_ref_re;_PACKAGE_OBSOLETES|CPACK_RPM_&var_ref_re;_PACKAGE_NAME|CPACK_RPM_&var_ref_re;_PACKAGE_GROUP|CPACK_RPM_&var_ref_re;_PACKAGE_DESCRIPTION|CPACK_RPM_&var_ref_re;_PACKAGE_CONFLICTS|CPACK_RPM_&var_ref_re;_PACKAGE_AUTOREQPROV|CPACK_RPM_&var_ref_re;_PACKAGE_AUTOREQ|CPACK_RPM_&var_ref_re;_PACKAGE_AUTOPROV|CPACK_RPM_&var_ref_re;_PACKAGE_ARCHITECTURE|CPACK_RPM_&var_ref_re;_FILE_NAME|CPACK_RPM_&var_ref_re;_DEFAULT_USER|CPACK_RPM_&var_ref_re;_DEFAULT_GROUP|CPACK_RPM_&var_ref_re;_DEFAULT_FILE_PERMISSIONS|CPACK_RPM_&var_ref_re;_DEFAULT_DIR_PERMISSIONS|CPACK_RPM_&var_ref_re;_DEBUGINFO_PACKAGE|CPACK_RPM_&var_ref_re;_DEBUGINFO_FILE_NAME|CPACK_RPM_&var_ref_re;_BUILD_SOURCE_DIRS_PREFIX|CPACK_PREFLIGHT_&var_ref_re;_SCRIPT|CPACK_POSTFLIGHT_&var_ref_re;_SCRIPT|CPACK_NUGET_PACKAGE_DEPENDENCIES_&var_ref_re;_VERSION|CPACK_NUGET_&var_ref_re;_PACKAGE_VERSION|CPACK_NUGET_&var_ref_re;_PACKAGE_TITLE|CPACK_NUGET_&var_ref_re;_PACKAGE_TAGS|CPACK_NUGET_&var_ref_re;_PACKAGE_RELEASE_NOTES|CPACK_NUGET_&var_ref_re;_PACKAGE_OWNERS|CPACK_NUGET_&var_ref_re;_PACKAGE_NAME|CPACK_NUGET_&var_ref_re;_PACKAGE_LICENSE_FILE_NAME|CPACK_NUGET_&var_ref_re;_PACKAGE_LICENSE_EXPRESSION|CPACK_NUGET_&var_ref_re;_PACKAGE_LICENSEURL|CPACK_NUGET_&var_ref_re;_PACKAGE_LANGUAGE|CPACK_NUGET_&var_ref_re;_PACKAGE_ICONURL|CPACK_NUGET_&var_ref_re;_PACKAGE_ICON|CPACK_NUGET_&var_ref_re;_PACKAGE_HOMEPAGE_URL|CPACK_NUGET_&var_ref_re;_PACKAGE_DESCRIPTION_SUMMARY|CPACK_NUGET_&var_ref_re;_PACKAGE_DESCRIPTION|CPACK_NUGET_&var_ref_re;_PACKAGE_DEPENDENCIES_&var_ref_re;_VERSION|CPACK_NUGET_&var_ref_re;_PACKAGE_DEPENDENCIES|CPACK_NUGET_&var_ref_re;_PACKAGE_COPYRIGHT|CPACK_NUGET_&var_ref_re;_PACKAGE_AUTHORS|CPACK_NSIS_&var_ref_re;_INSTALL_DIRECTORY|CPACK_INNOSETUP_SETUP_&var_ref_re;|CPACK_INNOSETUP_DEFINE_&var_ref_re;|CPACK_INNOSETUP_&var_ref_re;_INSTALL_DIRECTORY|CPACK_DMG_&var_ref_re;_FILE_NAME|CPACK_DEBIAN_&var_ref_re;_PACKAGE_SUGGESTS|CPACK_DEBIAN_&var_ref_re;_PACKAGE_SOURCE|CPACK_DEBIAN_&var_ref_re;_PACKAGE_SHLIBDEPS|CPACK_DEBIAN_&var_ref_re;_PACKAGE_SECTION|CPACK_DEBIAN_&var_ref_re;_PACKAGE_REPLACES|CPACK_DEBIAN_&var_ref_re;_PACKAGE_RECOMMENDS|CPACK_DEBIAN_&var_ref_re;_PACKAGE_PROVIDES|CPACK_DEBIAN_&var_ref_re;_PACKAGE_PRIORITY|CPACK_DEBIAN_&var_ref_re;_PACKAGE_PREDEPENDS|CPACK_DEBIAN_&var_ref_re;_PACKAGE_NAME|CPACK_DEBIAN_&var_ref_re;_PACKAGE_ENHANCES|CPACK_DEBIAN_&var_ref_re;_PACKAGE_DEPENDS|CPACK_DEBIAN_&var_ref_re;_PACKAGE_CONTROL_STRICT_PERMISSION|CPACK_DEBIAN_&var_ref_re;_PACKAGE_CONTROL_EXTRA|CPACK_DEBIAN_&var_ref_re;_PACKAGE_CONFLICTS|CPACK_DEBIAN_&var_ref_re;_PACKAGE_BREAKS|CPACK_DEBIAN_&var_ref_re;_PACKAGE_ARCHITECTURE|CPACK_DEBIAN_&var_ref_re;_FILE_NAME|CPACK_DEBIAN_&var_ref_re;_DESCRIPTION|CPACK_DEBIAN_&var_ref_re;_DEBUGINFO_PACKAGE|CPACK_COMPONENT_&var_ref_re;_REQUIRED|CPACK_COMPONENT_&var_ref_re;_HIDDEN|CPACK_COMPONENT_&var_ref_re;_GROUP|CPACK_COMPONENT_&var_ref_re;_DISPLAY_NAME|CPACK_COMPONENT_&var_ref_re;_DISABLED|CPACK_COMPONENT_&var_ref_re;_DESCRIPTION|CPACK_COMPONENT_&var_ref_re;_DEPENDS|CPACK_BINARY_&var_ref_re;|CPACK_ARCHIVE_&var_ref_re;_FILE_NAME|CPACK_&var_ref_re;_COMPONENT_INSTALL|CMAKE_XCODE_ATTRIBUTE_&var_ref_re;|CMAKE_USER_MAKE_RULES_OVERRIDE_&var_ref_re;|CMAKE_STATIC_LINKER_FLAGS_&var_ref_re;_INIT|CMAKE_STATIC_LINKER_FLAGS_&var_ref_re;|CMAKE_SHARED_LINKER_FLAGS_&var_ref_re;_INIT|CMAKE_SHARED_LINKER_FLAGS_&var_ref_re;|CMAKE_RUNTIME_OUTPUT_DIRECTORY_&var_ref_re;|CMAKE_REQUIRE_FIND_PACKAGE_&var_ref_re;|CMAKE_PROJECT_&var_ref_re;_INCLUDE_BEFORE|CMAKE_PROJECT_&var_ref_re;_INCLUDE|CMAKE_POLICY_WARNING_CMP[0-9]{4}|CMAKE_POLICY_DEFAULT_CMP[0-9]{4}|CMAKE_PDB_OUTPUT_DIRECTORY_&var_ref_re;|CMAKE_MODULE_LINKER_FLAGS_&var_ref_re;_INIT|CMAKE_MODULE_LINKER_FLAGS_&var_ref_re;|CMAKE_MATCH_[0-9]+|CMAKE_MAP_IMPORTED_CONFIG_&var_ref_re;|CMAKE_LINK_LIBRARY_USING_&var_ref_re;_SUPPORTED|CMAKE_LINK_LIBRARY_USING_&var_ref_re;|CMAKE_LINK_GROUP_USING_&var_ref_re;_SUPPORTED|CMAKE_LINK_GROUP_USING_&var_ref_re;|CMAKE_LIBRARY_OUTPUT_DIRECTORY_&var_ref_re;|CMAKE_INTERPROCEDURAL_OPTIMIZATION_&var_ref_re;|CMAKE_GET_OS_RELEASE_FALLBACK_RESULT_&var_ref_re;|CMAKE_FRAMEWORK_MULTI_CONFIG_POSTFIX_&var_ref_re;|CMAKE_EXE_LINKER_FLAGS_&var_ref_re;_INIT|CMAKE_EXE_LINKER_FLAGS_&var_ref_re;|CMAKE_DISABLE_FIND_PACKAGE_&var_ref_re;|CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_&var_ref_re;|CMAKE_ARGV[0-9]+|CMAKE_ARCHIVE_OUTPUT_DIRECTORY_&var_ref_re;|CMAKE_&var_ref_re;_VISIBILITY_PRESET|CMAKE_&var_ref_re;_STANDARD_LIBRARIES|CMAKE_&var_ref_re;_STANDARD_INCLUDE_DIRECTORIES|CMAKE_&var_ref_re;_SOURCE_FILE_EXTENSIONS|CMAKE_&var_ref_re;_SIZEOF_DATA_PTR|CMAKE_&var_ref_re;_SIMULATE_VERSION|CMAKE_&var_ref_re;_SIMULATE_ID|CMAKE_&var_ref_re;_POSTFIX|CMAKE_&var_ref_re;_OUTPUT_EXTENSION|CMAKE_&var_ref_re;_LINK_WHAT_YOU_USE_FLAG|CMAKE_&var_ref_re;_LINK_LIBRARY_USING_&var_ref_re;_SUPPORTED|CMAKE_&var_ref_re;_LINK_LIBRARY_USING_&var_ref_re;|CMAKE_&var_ref_re;_LINK_LIBRARY_FLAG|CMAKE_&var_ref_re;_LINK_LIBRARY_FILE_FLAG|CMAKE_&var_ref_re;_LINK_GROUP_USING_&var_ref_re;_SUPPORTED|CMAKE_&var_ref_re;_LINK_GROUP_USING_&var_ref_re;|CMAKE_&var_ref_re;_LINK_EXECUTABLE|CMAKE_&var_ref_re;_LINKER_WRAPPER_FLAG_SEP|CMAKE_&var_ref_re;_LINKER_WRAPPER_FLAG|CMAKE_&var_ref_re;_LINKER_PREFERENCE_PROPAGATES|CMAKE_&var_ref_re;_LINKER_PREFERENCE|CMAKE_&var_ref_re;_LINKER_LAUNCHER|CMAKE_&var_ref_re;_LIBRARY_ARCHITECTURE|CMAKE_&var_ref_re;_INCLUDE_WHAT_YOU_USE|CMAKE_&var_ref_re;_IMPLICIT_LINK_LIBRARIES|CMAKE_&var_ref_re;_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES|CMAKE_&var_ref_re;_IMPLICIT_LINK_DIRECTORIES|CMAKE_&var_ref_re;_IMPLICIT_INCLUDE_DIRECTORIES|CMAKE_&var_ref_re;_IGNORE_EXTENSIONS|CMAKE_&var_ref_re;_GHS_KERNEL_FLAGS_RELWITHDEBINFO|CMAKE_&var_ref_re;_GHS_KERNEL_FLAGS_RELEASE|CMAKE_&var_ref_re;_GHS_KERNEL_FLAGS_MINSIZEREL|CMAKE_&var_ref_re;_GHS_KERNEL_FLAGS_DEBUG|CMAKE_&var_ref_re;_FLAGS_RELWITHDEBINFO_INIT|CMAKE_&var_ref_re;_FLAGS_RELWITHDEBINFO|CMAKE_&var_ref_re;_FLAGS_RELEASE_INIT|CMAKE_&var_ref_re;_FLAGS_RELEASE|CMAKE_&var_ref_re;_FLAGS_MINSIZEREL_INIT|CMAKE_&var_ref_re;_FLAGS_MINSIZEREL|CMAKE_&var_ref_re;_FLAGS_INIT|CMAKE_&var_ref_re;_FLAGS_DEBUG_INIT|CMAKE_&var_ref_re;_FLAGS_DEBUG|CMAKE_&var_ref_re;_FLAGS_&var_ref_re;_INIT|CMAKE_&var_ref_re;_FLAGS_&var_ref_re;|CMAKE_&var_ref_re;_FLAGS|CMAKE_&var_ref_re;_EXTENSIONS_DEFAULT|CMAKE_&var_ref_re;_EXTENSIONS|CMAKE_&var_ref_re;_CREATE_STATIC_LIBRARY|CMAKE_&var_ref_re;_CREATE_SHARED_MODULE|CMAKE_&var_ref_re;_CREATE_SHARED_LIBRARY|CMAKE_&var_ref_re;_CPPLINT|CMAKE_&var_ref_re;_CPPCHECK|CMAKE_&var_ref_re;_COMPILE_OBJECT|CMAKE_&var_ref_re;_COMPILER_VERSION|CMAKE_&var_ref_re;_COMPILER_TARGET|CMAKE_&var_ref_re;_COMPILER_RANLIB|CMAKE_&var_ref_re;_COMPILER_LOADED|CMAKE_&var_ref_re;_COMPILER_LAUNCHER|CMAKE_&var_ref_re;_COMPILER_ID|CMAKE_&var_ref_re;_COMPILER_FRONTEND_VARIANT|CMAKE_&var_ref_re;_COMPILER_EXTERNAL_TOOLCHAIN|CMAKE_&var_ref_re;_COMPILER_AR|CMAKE_&var_ref_re;_COMPILER|CMAKE_&var_ref_re;_CLANG_TIDY_EXPORT_FIXES_DIR|CMAKE_&var_ref_re;_CLANG_TIDY|CMAKE_&var_ref_re;_BYTE_ORDER|CMAKE_&var_ref_re;_ARCHIVE_FINISH|CMAKE_&var_ref_re;_ARCHIVE_CREATE|CMAKE_&var_ref_re;_ARCHIVE_APPEND|CMAKE_&var_ref_re;_ANDROID_TOOLCHAIN_SUFFIX|CMAKE_&var_ref_re;_ANDROID_TOOLCHAIN_PREFIX|CMAKE_&var_ref_re;_ANDROID_TOOLCHAIN_MACHINE|Boost_&var_ref_re;_LIBRARY_RELEASE|Boost_&var_ref_re;_LIBRARY_DEBUG|Boost_&var_ref_re;_LIBRARY|BISON_&var_ref_re;_OUTPUT_SOURCE|BISON_&var_ref_re;_OUTPUT_HEADER|BISON_&var_ref_re;_OUTPUTS|BISON_&var_ref_re;_INPUT|BISON_&var_ref_re;_DEFINED|BISON_&var_ref_re;_COMPILE_FLAGS|ARGV[0-9]+|&var_ref_re;__TRYRUN_OUTPUT|&var_ref_re;_VERSION_TWEAK|&var_ref_re;_VERSION_STRING|&var_ref_re;_VERSION_PATCH|&var_ref_re;_VERSION_MINOR|&var_ref_re;_VERSION_MAJOR|&var_ref_re;_VERSION_COUNT|&var_ref_re;_VERSION|&var_ref_re;_UNPARSED_ARGUMENTS|&var_ref_re;_STATIC_LINK_LIBRARIES|&var_ref_re;_SOURCE_DIR|&var_ref_re;_ROOT|&var_ref_re;_MODULE_NAME|&var_ref_re;_LINK_LIBRARIES|&var_ref_re;_LIBRARY_DIRS|&var_ref_re;_LIBRARIES|&var_ref_re;_LDFLAGS_OTHER|&var_ref_re;_LDFLAGS|&var_ref_re;_KEYWORDS_MISSING_VALUES|&var_ref_re;_IS_TOP_LEVEL|&var_ref_re;_INCLUDE_DIRS|&var_ref_re;_HOMEPAGE_URL|&var_ref_re;_FOUND|&var_ref_re;_FIND_VERSION_RANGE_MIN|&var_ref_re;_FIND_VERSION_RANGE_MAX|&var_ref_re;_FIND_VERSION_RANGE|&var_ref_re;_FIND_VERSION_MIN_TWEAK|&var_ref_re;_FIND_VERSION_MIN_PATCH|&var_ref_re;_FIND_VERSION_MIN_MINOR|&var_ref_re;_FIND_VERSION_MIN_MAJOR|&var_ref_re;_FIND_VERSION_MIN_COUNT|&var_ref_re;_FIND_VERSION_MIN|&var_ref_re;_FIND_VERSION_MAX_TWEAK|&var_ref_re;_FIND_VERSION_MAX_PATCH|&var_ref_re;_FIND_VERSION_MAX_MINOR|&var_ref_re;_FIND_VERSION_MAX_MAJOR|&var_ref_re;_FIND_VERSION_MAX_COUNT|&var_ref_re;_FIND_VERSION_MAX|&var_ref_re;_FIND_VERSION_EXACT|&var_ref_re;_FIND_VERSION_COUNT|&var_ref_re;_FIND_VERSION_COMPLETE|&var_ref_re;_FIND_REQUIRED_&var_ref_re;|&var_ref_re;_FIND_REQUIRED|&var_ref_re;_FIND_QUIETLY|&var_ref_re;_FIND_COMPONENTS|&var_ref_re;_DESCRIPTION|&var_ref_re;_CONSIDERED_VERSIONS|&var_ref_re;_CONSIDERED_CONFIGS|&var_ref_re;_CONFIG|&var_ref_re;_CFLAGS_OTHER|&var_ref_re;_CFLAGS|&var_ref_re;_BINARY_DIR)\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">@@ -6572,7 +6598,7 @@       <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(?:CMAKE_&var_ref_re;_LINKER_LAUNCHER|CMAKE_&var_ref_re;_COMPILER_LAUNCHER|ASM&var_ref_re;FLAGS|ASM&var_ref_re;|&var_ref_re;_ROOT|&var_ref_re;_DIR)\b"/>+        <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>
xml/dart.xml view
@@ -1,16 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE language>--<language name="Dart"-          section="Sources"-          version="3"-          kateversion="5.0"-          indenter="cstyle"-          extensions="*.dart"-          mimetype="text/x-dart"-          priority="1"-          author="Waqar Ahmed (waqar.17a@gmail.com)"-          license="MIT">+<language name="Dart" section="Sources" version="4" kateversion="5.0" indenter="cstyle" extensions="*.dart" mimetype="text/x-dart" priority="1" author="Waqar Ahmed (waqar.17a@gmail.com)" license="MIT">     <highlighting>         <list name="keywords">             <item>Function</item>@@ -67,6 +57,7 @@             <item>switch</item>             <item>throw</item>             <item>try</item>+            <item>when</item>             <item>while</item>         </list>         <list name="modifiers">@@ -74,8 +65,9 @@             <item>await</item>             <item>const</item>             <item>dynamic</item>-            <item>late</item>             <item>final</item>+            <item>late</item>+            <item>sealed</item>             <item>static</item>         </list>         <list name="types">@@ -127,11 +119,9 @@         <list name="thiskeyword">             <item>this</item>         </list>-         <contexts>             <context attribute="Normal Text" lineEndContext="#stay" name="Normal">-                <DetectSpaces />-+                <DetectSpaces/>                 <keyword attribute="Control Flow" context="#stay" String="controlflow"/>                 <keyword attribute="Keyword" context="#stay" String="keywords"/>                 <keyword attribute="Data Type" context="#stay" String="types"/>@@ -139,21 +129,20 @@                 <keyword attribute="Constant" context="#stay" String="literals"/>                 <keyword attribute="Exceptions" context="#stay" String="exceptions"/>                 <WordDetect attribute="This Keyword" context="#stay" String="this"/>-                <DetectIdentifier />-+                <DetectIdentifier/>                 <Float attribute="Float" context="#stay"/>                 <Int attribute="Decimal" context="#stay"/>                 <HlCHex attribute="Hex" context="#stay"/>                 <HlCOct attribute="Octal" context="#stay"/>-+                <StringDetect attribute="String" String="'''" context="SMultilineString" beginRegion="MultilineStringRegion"/>+                <StringDetect attribute="String" String="&quot;&quot;&quot;" context="SMultilineString" beginRegion="MultilineStringRegion"/>                 <DetectChar attribute="String" context="DoubleQuoteString" char="&quot;"/>                 <DetectChar attribute="String" context="SingleQuoteString" char="'"/>--                <IncludeRules context="FindComments" />-+                <IncludeRules context="FindComments"/>+                <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1"/>+                <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1"/>                 <AnyChar attribute="Symbol" context="#stay" String=":!%&amp;+,-/.*&lt;=&gt;?|~^"/>             </context>-             <!-- Strings -->             <context attribute="String" lineEndContext="#pop" name="DoubleQuoteString">                 <DetectSpaces attribute="String"/>@@ -162,71 +151,71 @@                 <HlCStringChar attribute="String Char" context="#stay"/>                 <DetectChar attribute="String" context="#pop" char="&quot;"/>             </context>--            <context attribute="String" lineEndContext="#pop" name="SingleQuoteString" >+            <context attribute="String" lineEndContext="#pop" name="SingleQuoteString">                 <DetectSpaces attribute="String"/>                 <DetectIdentifier attribute="String"/>                 <HlCStringChar attribute="String Char" context="#stay"/>-                <DetectChar attribute="String" context="#pop" char="'" />+                <DetectChar attribute="String" context="#pop" char="'"/>             </context>-             <!-- Comments -->             <context name="FindComments" attribute="Normal Text" lineEndContext="#pop">-                <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="/" lookAhead="true" />-                <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="*" lookAhead="true" />+                <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="/" lookAhead="true"/>+                <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="*" lookAhead="true"/>             </context>-             <context name="MatchComment" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">-                <StringDetect attribute="Region Marker" context="#pop!Region Marker" String="//BEGIN" beginRegion="Region1" firstNonSpace="true" />-                <StringDetect attribute="Region Marker" context="#pop!Region Marker" String="//END" endRegion="Region1" firstNonSpace="true" />-                <IncludeRules context="##Doxygen" />-                <Detect2Chars attribute="Comment" context="#pop!Commentar 1" char="/" char1="/" />-                <Detect2Chars attribute="Comment" context="#pop!Commentar 2" char="/" char1="*" beginRegion="Comment" />+                <StringDetect attribute="Region Marker" context="#pop!Region Marker" String="//BEGIN" beginRegion="Region1" firstNonSpace="true"/>+                <StringDetect attribute="Region Marker" context="#pop!Region Marker" String="//END" endRegion="Region1" firstNonSpace="true"/>+                <IncludeRules context="##Doxygen"/>+                <Detect2Chars attribute="Comment" context="#pop!Commentar 1" char="/" char1="/"/>+                <Detect2Chars attribute="Comment" context="#pop!Commentar 2" char="/" char1="*" beginRegion="Comment"/>             </context>-             <context attribute="Region Marker" lineEndContext="#pop" name="Region Marker">             </context>-             <context attribute="Comment" lineEndContext="#pop" name="Commentar 1">                 <DetectSpaces attribute="Comment"/>                 <LineContinue attribute="Comment" context="#stay"/>-                <IncludeRules context="##Comments" />+                <IncludeRules context="##Comments"/>                 <DetectIdentifier attribute="Comment"/>             </context>-             <context attribute="Comment" lineEndContext="#stay" name="Commentar 2">                 <DetectSpaces attribute="Comment"/>                 <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>-                <IncludeRules context="##Comments" />+                <IncludeRules context="##Comments"/>                 <DetectIdentifier attribute="Comment"/>             </context>+            <!-- multiline string -->+            <context attribute="String" lineEndContext="#stay" name="SMultilineString">+                <DetectSpaces attribute="String"/>+                <HlCStringChar attribute="String Char" context="#stay"/>+                <StringDetect attribute="String" String="'''" context="#pop" endRegion="MultilineStringRegion"/>+                <StringDetect attribute="String" String="&quot;&quot;&quot;" context="#pop" endRegion="MultilineStringRegion"/>+            </context>         </contexts>-         <itemDatas>-            <itemData name="Normal Text"  defStyleNum="dsNormal" spellChecking="false"/>+            <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>             <itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="false"/>-            <itemData name="Keyword"      defStyleNum="dsKeyword" spellChecking="false"/>-            <itemData name="Data Type"    defStyleNum="dsDataType" spellChecking="false"/>-            <itemData name="Decimal"      defStyleNum="dsDecVal" spellChecking="false"/>-            <itemData name="Exceptions"   defStyleNum="dsKeyword" spellChecking="false"/>-            <itemData name="Octal"        defStyleNum="dsBaseN" spellChecking="false"/>-            <itemData name="Hex"          defStyleNum="dsBaseN" spellChecking="false"/>-            <itemData name="Constant"     defStyleNum="dsConstant" spellChecking="false" />-            <itemData name="Float"        defStyleNum="dsFloat" spellChecking="false"/>-            <itemData name="Modifiers"    defStyleNum="dsAttribute" spellChecking="false"/>-            <itemData name="String"       defStyleNum="dsString"/>-            <itemData name="String Char"  defStyleNum="dsSpecialChar"/>-            <itemData name="Comment"      defStyleNum="dsComment"/>-            <itemData name="Symbol"       defStyleNum="dsOperator" spellChecking="false"/>+            <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>+            <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/>+            <itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false"/>+            <itemData name="Exceptions" defStyleNum="dsKeyword" spellChecking="false"/>+            <itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false"/>+            <itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/>+            <itemData name="Constant" defStyleNum="dsConstant" spellChecking="false"/>+            <itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/>+            <itemData name="Modifiers" defStyleNum="dsAttribute" spellChecking="false"/>+            <itemData name="String" defStyleNum="dsString"/>+            <itemData name="String Char" defStyleNum="dsSpecialChar"/>+            <itemData name="Comment" defStyleNum="dsComment"/>+            <itemData name="Symbol" defStyleNum="dsOperator" spellChecking="false"/>             <itemData name="This Keyword" defStyleNum="dsKeyword" spellChecking="false"/>             <itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/>         </itemDatas>     </highlighting>     <general>         <comments>-            <comment name="singleLine" start="//" position="afterwhitespace" />+            <comment name="singleLine" start="//" position="afterwhitespace"/>             <comment name="multiLine" start="/*" end="*/" region="Comment"/>         </comments>-        <keywords casesensitive="true" />+        <keywords casesensitive="true"/>     </general> </language>
+ xml/debiancontrol.xml view
@@ -0,0 +1,61 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE language>+<language name="Debian Control" version="4" kateversion="5.0" section="Other" extensions="control" mimetype="">+    <highlighting>+        <contexts>+            <context attribute="Normal Text" lineEndContext="#stay" name="INIT">+                <StringDetect attribute="Keyword" context="DependencyField" String="Depends:"/>+                <StringDetect attribute="Keyword" context="DependencyField" String="Recommends:"/>+                <StringDetect attribute="Keyword" context="DependencyField" String="Suggests:"/>+                <StringDetect attribute="Keyword" context="DependencyField" String="Conflicts:"/>+                <StringDetect attribute="Keyword" context="DependencyField" String="Provides:"/>+                <StringDetect attribute="Keyword" context="DependencyField" String="Replaces:"/>+                <StringDetect attribute="Keyword" context="DependencyField" String="Enhances:"/>+                <StringDetect attribute="Keyword" context="DependencyField" String="Pre-Depends:"/>+                <StringDetect attribute="Keyword" context="DependencyField" String="Build-Depends:"/>+                <StringDetect attribute="Keyword" context="DependencyField" String="Build-Depends-Indep:"/>+                <StringDetect attribute="Keyword" context="DependencyField" String="Build-Conflicts:"/>+                <StringDetect attribute="Keyword" context="DependencyField" String="Build-Conflicts-Indep:"/>+                <StringDetect attribute="Keyword" context="DependencyField" String="Breaks:"/>+                <RegExpr attribute="Keyword" context="Field" minimal="true" String="^[^ ]*:" column="0"/>+                <DetectChar attribute="Value" context="Field" char=" " column="0"/>+            </context>++            <context attribute="Value" lineEndContext="#pop" name="Field">+                <RegExpr attribute="Email" context="#stay" String="&lt;.*@.*&gt;" minimal="true"/>+                <Detect2Chars attribute="Keyword" context="Variable" char="$" char1="{"/>+            </context>++            <context attribute="Variable" lineEndContext="#pop" name="Variable">+                <DetectChar attribute="Keyword" context="#pop" char="}"/>+            </context>++            <context attribute="Value" lineEndContext="#pop" name="DependencyField">+                <RegExpr attribute="Email" context="#stay" String="&lt;.*@.*&gt;" minimal="true"/>+                <Detect2Chars attribute="Keyword" context="Variable" char="$" char1="{"/>+                <AnyChar attribute="Keyword" context="#stay" String=",|"/>+                <AnyChar attribute="Keyword" context="Constrain" String="(["/>+            </context>++            <context attribute="Version" lineEndContext="#stay" name="Constrain">+                <Detect2Chars attribute="Keyword" context="Variable" char="$" char1="{"/>+                <AnyChar attribute="Keyword" context="#stay" String="!&lt;=&gt;"/>+                <AnyChar attribute="Keyword" context="#pop" String=")]"/>+            </context>+        </contexts>++        <itemDatas>+            <itemData name="Normal Text" defStyleNum="dsNormal"/>+            <itemData name="Keyword"  defStyleNum="dsKeyword"/>+            <itemData name="Version"  defStyleNum="dsDecVal"/>+            <itemData name="Value"  defStyleNum="dsDataType"/>+            <itemData name="Variable" defStyleNum="dsVariable"/>+            <itemData name="Email" defStyleNum="dsOthers"/>+        </itemDatas>+    </highlighting>++    <general>+        <keywords casesensitive="1" />+    </general>+</language>+<!-- kate: replace-tabs on; tab-width 4; indent-width 4; -->
xml/html.xml view
@@ -5,7 +5,7 @@ 	<!ENTITY attributeName "[A-Za-z_:*#\(\[][\)\]\w.:_-]*"> 	<!ENTITY entref        "&amp;(?:#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);"> ]>-<language name="HTML" version="16" kateversion="5.53" section="Markup" extensions="*.htm;*.html;*.shtml;*.shtm;*.aspx" mimetype="text/html"  author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10">+<language name="HTML" version="17" kateversion="5.53" section="Markup" extensions="*.htm;*.html;*.shtml;*.shtm;*.aspx" mimetype="text/html"  author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10">  <highlighting> <contexts>@@ -96,8 +96,8 @@   </context>    <context name="FindAttributes" attribute="Other Text" lineEndContext="#stay">-    <RegExpr attribute="Attribute" context="#stay" String="^&attributeName;|\s+&attributeName;" />     <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">@@ -153,11 +153,10 @@     <IncludeRules context="FindPEntityRefs" />   </context> -  <context name="El Open" attribute="Other Text" lineEndContext="#stay">+  <context name="El Open" attribute="Error" lineEndContext="#stay">     <Detect2Chars attribute="Element Symbols" context="#pop" char="/" char1="&gt;" />     <DetectChar attribute="Element Symbols" context="#pop" char="&gt;" />     <IncludeRules context="FindAttributes" />-    <RegExpr attribute="Error" context="#stay" String="\S" />   </context>    <context name="El Close" attribute="Other Text" lineEndContext="#stay">@@ -165,11 +164,10 @@     <RegExpr attribute="Error" context="#stay" String="\S" />   </context> -  <context name="CSS" attribute="Other Text" lineEndContext="#stay">+  <context name="CSS" attribute="Error" lineEndContext="#stay">     <Detect2Chars attribute="Element Symbols" context="#pop" char="/" char1="&gt;" endRegion="style" />     <DetectChar attribute="Element Symbols" context="CSS content" char="&gt;" />     <IncludeRules context="FindAttributes" />-    <RegExpr attribute="Error" context="#stay" String="\S" />   </context>    <context name="CSS content" attribute="Other Text" lineEndContext="#stay">@@ -180,15 +178,15 @@     <DetectIdentifier attribute="Element" context="#pop#pop#pop!El Close" endRegion="style" />   </context> -  <context name="JS" attribute="Other Text" lineEndContext="#stay">+  <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="&gt;" />     <IncludeRules context="DefaultJS" />   </context>   <context name="DefaultJS" attribute="Other Text" lineEndContext="#stay">     <Detect2Chars attribute="Element Symbols" context="#pop" char="/" char1="&gt;" endRegion="script" />-    <IncludeRules context="FindAttributes" />-    <RegExpr attribute="Error" context="#stay" String="\S" />+    <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">@@ -220,8 +218,11 @@   </context>    <context name="Value NQ" attribute="Other Text" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop">+    <!-- '{' and '}' are valid, but used with twig -->+    <RegExpr attribute="Value" String="[^&gt;&lt;&quot;&apos;&amp;\s=`{}]+" />     <IncludeRules context="FindEntityRefs" />-    <RegExpr attribute="Value" context="#stay" String="/(?!&gt;)|[^/&gt;&lt;&quot;&apos;\s]" />+    <AnyChar attribute="Error" String="&quot;&apos;`=" />+    <AnyChar attribute="Value" String="{}" />   </context>    <context name="Value DQ" attribute="Value" lineEndContext="#stay">@@ -267,7 +268,7 @@     <StringDetect attribute="Value" context="#pop#pop!Script HTML template" String="&apos;text/html&apos;"/>   </context> -  <context name="JSX" attribute="Other Text" lineEndContext="#stay">+  <context name="JSX" attribute="Error" lineEndContext="#stay">     <DetectChar attribute="Element Symbols" context="JSX content" char="&gt;" />     <IncludeRules context="DefaultJS" />   </context>@@ -276,7 +277,7 @@     <IncludeRules context="Normal##JavaScript React (JSX)" includeAttrib="true"/>   </context> -  <context name="TypeScript" attribute="Other Text" lineEndContext="#stay">+  <context name="TypeScript" attribute="Error" lineEndContext="#stay">     <DetectChar attribute="Element Symbols" context="TypeScript content" char="&gt;" />     <IncludeRules context="DefaultJS" />   </context>@@ -285,7 +286,7 @@     <IncludeRules context="Normal##TypeScript" includeAttrib="true"/>   </context> -  <context name="MustacheJS" attribute="Other Text" lineEndContext="#stay">+  <context name="MustacheJS" attribute="Error" lineEndContext="#stay">     <DetectChar attribute="Element Symbols" context="MustacheJS content" char="&gt;" />     <IncludeRules context="DefaultJS" />   </context>@@ -296,7 +297,7 @@     <IncludeRules context="Base##Mustache/Handlebars (HTML)" includeAttrib="true"/>   </context> -  <context name="Script HTML template" attribute="Other Text" lineEndContext="#stay">+  <context name="Script HTML template" attribute="Error" lineEndContext="#stay">     <DetectChar attribute="Element Symbols" context="Script HTML template content" char="&gt;" />     <IncludeRules context="DefaultJS" />   </context>@@ -318,7 +319,7 @@   <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="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" />
xml/markdown.xml view
@@ -72,6 +72,10 @@ <!ENTITY linebreakregex "  $"> <!-- 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 -->@@ -90,7 +94,7 @@ <!ENTITY checkbox "\[[ x]\](?=\s)"> ]> -<language name="Markdown" version="27" kateversion="5.79" section="Markup" extensions="*.md;*.mmd;*.markdown" mimetype="text/markdown" priority="15" author="Darrin Yeager, Claes Holmerson" license="GPL,BSD">+<language name="Markdown" version="29" kateversion="5.79" section="Markup" extensions="*.md;*.mmd;*.markdown" mimetype="text/markdown" priority="15" author="Darrin Yeager, Claes Holmerson" license="GPL,BSD">   <highlighting>     <contexts>       <!-- Start of the Markdown document: find metadata or code block -->@@ -137,9 +141,12 @@         <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">@@ -148,6 +155,16 @@         <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"/>@@ -207,6 +224,7 @@         <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">@@ -226,6 +244,7 @@         <!-- 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;"/>@@ -254,6 +273,8 @@         <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">@@ -284,13 +305,14 @@            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 horzontal rule (check indentation) -->+        <!-- Blockquote and horizontal rule (check indentation) -->         <RegExpr context="#pop" String="^\s*(?:&gt;|&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;"/>@@ -303,6 +325,12 @@         <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"/>@@ -455,6 +483,10 @@         <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"/>@@ -500,6 +532,8 @@         <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 -->@@ -518,6 +552,7 @@         <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="&lt;"/>         <Detect2Chars attribute="Backslash Escape" char="\" char1="&gt;"/>         <Detect2Chars attribute="Backslash Escape" char="\" char1="&amp;"/>@@ -600,6 +635,7 @@       <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"/>@@ -615,6 +651,7 @@       <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"/>@@ -623,11 +660,14 @@       <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"/>
xml/stan.xml view
@@ -2,7 +2,7 @@ <!DOCTYPE language> <language name="Stan"           section="Scientific"-          version="5"+          version="6"           kateversion="5.0"           indenter="cstyle"           extensions="*.stan;*.stanfunctions"@@ -72,7 +72,7 @@         <DetectChar attribute="String" context="String" char="&quot;" />         <RegExpr attribute="Assignment" context="#stay" String="([+-]?=|\.?[*/]=)" />         <RegExpr attribute="Operator" context="#stay" String="(:|\?|\|\||&amp;&amp;|==|!=|&lt;=?|&gt;=?|\+|-|\.?\*|\.?/|%|\\|'|^)" />-        <RegExpr attribute="Punctuation" context="#stay" String="[[\]()]" />+        <AnyChar attribute="Punctuation" context="#stay" String="[]()" />       </context>       <context attribute="String" lineEndContext="#stay" name="String">         <DetectChar attribute="String" context="#pop" char="&quot;"/>