aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/syntax-highlighting
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/3rdparty/syntax-highlighting')
-rw-r--r--src/libs/3rdparty/syntax-highlighting/.git-blame-ignore-revs5
-rw-r--r--src/libs/3rdparty/syntax-highlighting/.gitignore9
-rw-r--r--src/libs/3rdparty/syntax-highlighting/.gitlab-ci.yml10
-rw-r--r--src/libs/3rdparty/syntax-highlighting/.kde-ci.yml12
-rw-r--r--src/libs/3rdparty/syntax-highlighting/CMakeLists.txt56
-rw-r--r--src/libs/3rdparty/syntax-highlighting/CMakeLists.txt.kde23
-rw-r--r--src/libs/3rdparty/syntax-highlighting/KF5SyntaxHighlightingConfig.cmake.in4
-rw-r--r--src/libs/3rdparty/syntax-highlighting/QC_README.txt0
-rw-r--r--src/libs/3rdparty/syntax-highlighting/README.md236
-rw-r--r--src/libs/3rdparty/syntax-highlighting/autogenerated/autogenerated.pri9
-rw-r--r--src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/AbstractHighlighter (renamed from src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/AbstractHighlighter)0
-rw-r--r--src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/Definition (renamed from src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/Definition)0
-rw-r--r--src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/DefinitionDownloader (renamed from src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/DefinitionDownloader)0
-rw-r--r--src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/FoldingRegion (renamed from src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/FoldingRegion)0
-rw-r--r--src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/Format (renamed from src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/Format)0
-rw-r--r--src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/Repository (renamed from src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/Repository)0
-rw-r--r--src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/State (renamed from src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/State)0
-rw-r--r--src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/SyntaxHighlighter (renamed from src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/SyntaxHighlighter)0
-rw-r--r--src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/Theme (renamed from src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/Theme)0
-rw-r--r--src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/WildcardMatcher1
-rw-r--r--src/libs/3rdparty/syntax-highlighting/autogenerated/ksyntaxhighlighting_version.h14
-rw-r--r--src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/ksyntaxhighlighting_export.h111
-rw-r--r--src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/ksyntaxhighlighting_logging.cpp6
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/CMakeLists.txt92
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/data.pro11
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/.gitignore1
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/Pipfile12
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/cmake.xml.tpl509
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/cmake.yaml3305
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/generate-cmake-syntax.py426
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/generate-doxygenlua.pl42
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/generate-html.pl143
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/generate-nginx-lists.rb55
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/generate-php.pl58
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/generate-spdx-syntax.py67
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/get-Qt-classes.sh2
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/get-Qt-macros.sh2
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/qmake-gen.py15
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/spdx-comments.xml.tpl94
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/update_css_and_scss.py498
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/generators/update_less.py45
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/schema/language.xsd204
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/schema/validatehl.sh3
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/alert.xml10
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/autoconf.xml396
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/bash.xml1832
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/cmake.xml5435
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/comments.xml27
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/css.xml2042
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/doxygen.xml406
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/dtd.xml13
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/gnuassembler.xml2352
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/html.xml219
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/ini.xml44
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/java.xml221
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/javadoc.xml104
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/json.xml41
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.GPLv2282
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.GPLv3674
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.LGPLv21504
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.LGPLv3163
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/makefile.xml498
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/markdown.xml767
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/modelines.xml24
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/perl.xml146
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/powershell.xml299
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/python.xml688
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/qdocconf.xml10
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/ruby.xml125
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/spdx-comments.xml591
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/toml.xml183
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/valgrind-suppression.xml9
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/xml.xml126
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/yacc.xml46
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/syntax/yaml.xml642
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/atom-one-dark.theme370
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/atom-one-light.theme377
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/ayu-dark.theme205
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/ayu-light.theme180
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/ayu-mirage.theme205
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/breeze-dark.theme67
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/breeze-light.theme (renamed from src/libs/3rdparty/syntax-highlighting/data/themes/default.theme)71
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/dracula.theme705
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/falcon.theme184
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/github-dark.theme216
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/github-light.theme216
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/gruvbox-dark.theme185
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/gruvbox-light.theme185
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/homunculus.theme177
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/monokai.theme394
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/nord.theme181
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/oblivion.theme179
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/printing.theme65
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/radical.theme182
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/solarized-dark.theme95
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/solarized-light.theme83
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/theme-data.qrc34
-rw-r--r--src/libs/3rdparty/syntax-highlighting/data/themes/vim-dark.theme180
-rw-r--r--src/libs/3rdparty/syntax-highlighting/examples/CMakeLists.txt4
-rw-r--r--src/libs/3rdparty/syntax-highlighting/examples/codeeditor.cpp358
-rw-r--r--src/libs/3rdparty/syntax-highlighting/examples/codeeditor.h69
-rw-r--r--src/libs/3rdparty/syntax-highlighting/examples/main.cpp46
-rw-r--r--src/libs/3rdparty/syntax-highlighting/metainfo.yaml2
-rw-r--r--src/libs/3rdparty/syntax-highlighting/patches/0001-Remove-highlight-definitions-with-incompatible-licen.patch1381
-rw-r--r--src/libs/3rdparty/syntax-highlighting/patches/0002-Remove-autotests.patch2901
-rw-r--r--src/libs/3rdparty/syntax-highlighting/patches/0003-Add-qmake-Qbs-files-and-files-generated-by-CMake.patch389
-rw-r--r--src/libs/3rdparty/syntax-highlighting/patches/0004-Compile-with-namespaced-Qt.patch281
-rw-r--r--src/libs/3rdparty/syntax-highlighting/patches/0005-Prevent-assertion-in-RegExpr-doLoad.patch29
-rw-r--r--src/libs/3rdparty/syntax-highlighting/patches/0006-Syntax-Highlighter-return-all-definitions-for-a-file.patch101
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/CMakeLists.txt11
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/Messages.sh2
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/cli/CMakeLists.txt8
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/cli/kate-syntax-highlighter.cpp164
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/cli/ksyntaxhighlighter.cpp236
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/indexer/CMakeLists.txt22
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/indexer/katehighlightingindexer.cpp3115
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/CMakeLists.txt106
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/abstracthighlighter.cpp221
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/abstracthighlighter.h46
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/abstracthighlighter_p.h34
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/ansihighlighter.cpp1422
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/ansihighlighter.h66
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/context.cpp217
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/context_p.h102
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/contextswitch.cpp95
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/contextswitch_p.h51
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/definition.cpp729
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/definition.h108
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/definition_p.h83
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/definitiondownloader.cpp91
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/definitiondownloader.h27
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/definitionref_p.h49
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/dynamicregexpcache_p.h39
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/foldingregion.cpp54
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/foldingregion.h46
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/format.cpp196
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/format.h106
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/format_p.h46
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/highlightingdata.cpp406
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/highlightingdata_p.hpp216
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/htmlhighlighter.cpp198
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/htmlhighlighter.h35
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/keywordlist.cpp106
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/keywordlist_p.h53
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/ksyntaxhighlighting_export.h34
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/matchresult_p.h32
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/repository.cpp322
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/repository.h96
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/repository_p.h60
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/rule.cpp787
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/rule_p.h281
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/state.cpp103
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/state.h40
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/state_p.h90
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/syntaxhighlighter.cpp223
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/syntaxhighlighter.h28
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/textstyledata_p.h50
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/theme.cpp77
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/theme.h39
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/themedata.cpp209
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/themedata_p.h51
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/wildcardmatcher.cpp43
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/wildcardmatcher.h33
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/wildcardmatcher_p.h51
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/worddelimiters.cpp54
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/worddelimiters_p.h63
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/xml_p.h32
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/quick/CMakeLists.txt16
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlighter.cpp114
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlighter.h64
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlightingplugin.cpp46
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlightingplugin.h22
-rw-r--r--src/libs/3rdparty/syntax-highlighting/syntax-highlighting.pro55
-rw-r--r--src/libs/3rdparty/syntax-highlighting/syntax-highlighting.qbs101
-rw-r--r--src/libs/3rdparty/syntax-highlighting/syntax-highlighting_dependencies.pri3
175 files changed, 32708 insertions, 14313 deletions
diff --git a/src/libs/3rdparty/syntax-highlighting/.git-blame-ignore-revs b/src/libs/3rdparty/syntax-highlighting/.git-blame-ignore-revs
new file mode 100644
index 0000000000..eba140cf12
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/.git-blame-ignore-revs
@@ -0,0 +1,5 @@
+# clang-format
+56ed6f3f5f505eb0dbffc630729d67c3fb510546
+ba947348217c468a0cea117289f3a3fc43bb66e6
+#clang-tidy
+0960472cc3f57831a97697a4ae0cd139e2cc5551
diff --git a/src/libs/3rdparty/syntax-highlighting/.gitignore b/src/libs/3rdparty/syntax-highlighting/.gitignore
index 52f10e28a5..a29428fe5e 100644
--- a/src/libs/3rdparty/syntax-highlighting/.gitignore
+++ b/src/libs/3rdparty/syntax-highlighting/.gitignore
@@ -9,4 +9,11 @@ callgrind.*
heaptrack.*
/build*/
*.unc-backup*
-
+/.clang-format
+/.cmake/
+/*.code-workspace
+/compile_commands.json
+.clangd
+.idea
+/cmake-build*
+.cache
diff --git a/src/libs/3rdparty/syntax-highlighting/.gitlab-ci.yml b/src/libs/3rdparty/syntax-highlighting/.gitlab-ci.yml
new file mode 100644
index 0000000000..a5df0fb27a
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/.gitlab-ci.yml
@@ -0,0 +1,10 @@
+# SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
+# SPDX-License-Identifier: CC0-1.0
+
+include:
+ - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux.yml
+ - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/android.yml
+ - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/freebsd.yml
+ - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/windows.yml
+ - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux-qt6.yml
+ - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/android-qt6.yml
diff --git a/src/libs/3rdparty/syntax-highlighting/.kde-ci.yml b/src/libs/3rdparty/syntax-highlighting/.kde-ci.yml
new file mode 100644
index 0000000000..51e4f4e72f
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/.kde-ci.yml
@@ -0,0 +1,12 @@
+Dependencies:
+- 'on': ['@all']
+ 'require':
+ 'frameworks/extra-cmake-modules': '@same'
+
+Options:
+ test-before-installing: True
+ require-passing-tests-on: [ 'Linux', 'FreeBSD', 'Windows' ]
+
+ # exclude stuff from cppcheck that takes too long
+ cppcheck-ignore-files:
+ - 'src/lib/abstracthighlighter.cpp'
diff --git a/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt b/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt
index d8d64bcdd7..ce22946d84 100644
--- a/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt
+++ b/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt
@@ -1,10 +1,21 @@
-add_qtc_library(KSyntaxHighlighting STATIC
- PUBLIC_INCLUDES autogenerated/ autogenerated/src/lib src/lib
- PUBLIC_DEFINES KSYNTAXHIGHLIGHTING_LIBRARY
- DEPENDS Qt5::Network Qt5::Widgets
+if(TARGET KF5::SyntaxHighlighting)
+ set(HIGHLIGHTING_BUILD_DEFAULT OFF)
+else()
+ set(HIGHLIGHTING_BUILD_DEFAULT ON)
+endif()
+
+add_qtc_library(KSyntaxHighlighting
+ BUILD_DEFAULT ${HIGHLIGHTING_BUILD_DEFAULT}
+ INCLUDES autogenerated/
+ PUBLIC_INCLUDES
+ src/lib
+ autogenerated/include
+ autogenerated/src/lib
+ DEPENDS Qt::Network Qt::Widgets
SOURCES
autogenerated/src/lib/ksyntaxhighlighting_logging.cpp autogenerated/src/lib/ksyntaxhighlighting_logging.h
autogenerated/ksyntaxhighlighting_version.h
+ autogenerated/src/lib/ksyntaxhighlighting_export.h
data/themes/theme-data.qrc
@@ -15,11 +26,12 @@ add_qtc_library(KSyntaxHighlighting STATIC
src/lib/definitiondownloader.cpp src/lib/definitiondownloader.h
src/lib/definitionref_p.h
src/lib/definition_p.h
+ src/lib/dynamicregexpcache_p.h
src/lib/foldingregion.cpp src/lib/foldingregion.h
src/lib/format.cpp src/lib/format.h src/lib/format_p.h
src/lib/htmlhighlighter.cpp src/lib/htmlhighlighter.h
+ src/lib/highlightingdata.cpp src/lib/highlightingdata_p.hpp
src/lib/keywordlist.cpp src/lib/keywordlist_p.h
- src/lib/ksyntaxhighlighting_export.h
src/lib/matchresult_p.h
src/lib/repository.cpp src/lib/repository.h src/lib/repository_p.h
src/lib/rule.cpp src/lib/rule_p.h
@@ -28,20 +40,28 @@ add_qtc_library(KSyntaxHighlighting STATIC
src/lib/textstyledata_p.h
src/lib/theme.cpp src/lib/theme.h
src/lib/themedata.cpp src/lib/themedata_p.h
- src/lib/wildcardmatcher.cpp src/lib/wildcardmatcher_p.h
+ src/lib/wildcardmatcher.cpp
+ src/lib/worddelimiters.cpp src/lib/worddelimiters_p.h
src/lib/xml_p.h
)
-install(
- DIRECTORY data/syntax
- DESTINATION "${IDE_DATA_PATH}/generic-highlighter/"
-)
+set(export_symbol_declaration DEFINES KF6SyntaxHighlighting_EXPORTS)
+if (QTC_STATIC_BUILD)
+ set(export_symbol_declaration PUBLIC_DEFINES KSYNTAXHIGHLIGHTING_STATIC_DEFINE)
+endif()
+extend_qtc_library(KSyntaxHighlighting ${export_symbol_declaration})
-add_custom_target(copy_generic_highligher_to_builddir ALL VERBATIM)
-add_custom_command(TARGET copy_generic_highligher_to_builddir POST_BUILD
- COMMAND "${CMAKE_COMMAND}" -E copy_directory data/syntax
- "${PROJECT_BINARY_DIR}/${IDE_DATA_PATH}/generic-highlighter/syntax"
- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
- COMMENT Copy files into build directory
- VERBATIM
-)
+qtc_add_public_header(autogenerated/include/KSyntaxHighlighting/State)
+
+if(TARGET KSyntaxHighlighting)
+ install(
+ DIRECTORY data/syntax
+ DESTINATION "${IDE_DATA_PATH}/generic-highlighter/"
+ )
+
+ # copy resource directories during build
+ qtc_copy_to_builddir(copy_generic_highligher_to_builddir
+ DIRECTORIES data/syntax
+ DESTINATION "${IDE_DATA_PATH}/generic-highlighter/syntax"
+ )
+endif()
diff --git a/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt.kde b/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt.kde
index 4f88fcf84a..cf21b3ac73 100644
--- a/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt.kde
+++ b/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt.kde
@@ -1,14 +1,19 @@
cmake_minimum_required(VERSION 3.5)
-set(KF5_VERSION "5.59.0")
+set(KF5_VERSION "5.73.0")
project(KSyntaxHighlighting VERSION ${KF5_VERSION})
-find_package(ECM 5.59.0 REQUIRED NO_MODULE)
-set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
+find_package(ECM 5.73.0 REQUIRED NO_MODULE)
+set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
if(POLICY CMP0063)
cmake_policy(SET CMP0063 NEW)
endif()
+include(KDEInstallDirs)
+include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
+include(KDECMakeSettings)
+include(KDEClangFormat)
+
include(FeatureSummary)
include(GenerateExportHeader)
include(ECMSetupVersion)
@@ -17,9 +22,6 @@ include(ECMGeneratePriFile)
include(CMakePackageConfigHelpers)
include(ECMPoQmTools)
include(ECMQtDeclareLoggingCategory)
-include(KDEInstallDirs)
-include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
-include(KDECMakeSettings)
include(ECMMarkNonGuiExecutable)
include(ECMAddQch)
include(ECMOptionalAddSubdirectory)
@@ -34,7 +36,7 @@ ecm_setup_version(PROJECT
#
# Dependencies
#
-set(REQUIRED_QT_VERSION 5.10.0)
+set(REQUIRED_QT_VERSION 5.12.0)
find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED COMPONENTS Core Network Test)
option(KSYNTAXHIGHLIGHTING_USE_GUI "Build components depending on Qt5Gui" ON)
if(KSYNTAXHIGHLIGHTING_USE_GUI)
@@ -84,6 +86,7 @@ if (NO_STANDARD_PATHS)
add_definitions(-DNO_STANDARD_PATHS)
endif()
add_definitions(-DQT_NO_FOREACH)
+add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00)
#
# Actually build the stuff
@@ -135,6 +138,10 @@ endif()
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ksyntaxhighlighting_version.h"
DESTINATION "${KDE_INSTALL_INCLUDEDIR_KF5}"
COMPONENT Devel)
-install(FILES org_kde_ksyntaxhighlighting.categories DESTINATION ${KDE_INSTALL_CONFDIR})
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
+
+# add clang-format target for all our real source files
+file(GLOB ALL_CLANG_FORMAT_TEST_FILES autotests/*.cpp autotests/*.h)
+file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES examples/*.cpp examples/*.h src/*.cpp src/*.h)
+kde_clang_format(${ALL_CLANG_FORMAT_TEST_FILES} ${ALL_CLANG_FORMAT_SOURCE_FILES})
diff --git a/src/libs/3rdparty/syntax-highlighting/KF5SyntaxHighlightingConfig.cmake.in b/src/libs/3rdparty/syntax-highlighting/KF5SyntaxHighlightingConfig.cmake.in
index 0fd1778fb8..b576ae1b48 100644
--- a/src/libs/3rdparty/syntax-highlighting/KF5SyntaxHighlightingConfig.cmake.in
+++ b/src/libs/3rdparty/syntax-highlighting/KF5SyntaxHighlightingConfig.cmake.in
@@ -1,6 +1,8 @@
@PACKAGE_INIT@
-find_package(Qt5 @Qt5Core_VERSION_MAJOR@.@Qt5Core_VERSION_MINOR@ NO_MODULE REQUIRED COMPONENTS Core Gui)
+include(CMakeFindDependencyMacro)
+find_dependency(Qt@QT_MAJOR_VERSION@Core @REQUIRED_QT_VERSION@)
+find_dependency(Qt@QT_MAJOR_VERSION@Gui @REQUIRED_QT_VERSION@)
include("${CMAKE_CURRENT_LIST_DIR}/KF5SyntaxHighlightingTargets.cmake")
@PACKAGE_INCLUDE_QCHTARGETS@
diff --git a/src/libs/3rdparty/syntax-highlighting/QC_README.txt b/src/libs/3rdparty/syntax-highlighting/QC_README.txt
deleted file mode 100644
index e69de29bb2..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/QC_README.txt
+++ /dev/null
diff --git a/src/libs/3rdparty/syntax-highlighting/README.md b/src/libs/3rdparty/syntax-highlighting/README.md
index c1b82c63d1..2e668dd3da 100644
--- a/src/libs/3rdparty/syntax-highlighting/README.md
+++ b/src/libs/3rdparty/syntax-highlighting/README.md
@@ -2,6 +2,20 @@
Syntax highlighting engine for Kate syntax definitions
+## Table of contents
+
+1. [Introduction](#introduction)
+2. [Out of scope](#out-of-scope)
+3. [Syntax definition files](#syntax-definition-files)
+4. [Color theme files](#color-theme-files)
+5. [Build it](#build-it)
+6. [How to contribute](#how-to-contribute)
+ * [Licensing](#licensing)
+ * [Tips for contributing to syntax definition files](#tips-for-contributing-to-syntax-definition-files)
+ * [Adding unit tests for a syntax definition](#adding-unit-tests-for-a-syntax-definition)
+7. [Report bug or help to fix them](#report-bug-or-help-to-fix-them)
+8. [Updating the syntax & themes pages of the kate-editor.org website](#updating-the-kate-editororgsyntax-website)
+
## Introduction
This is a stand-alone implementation of the Kate syntax highlighting engine.
@@ -9,14 +23,7 @@ It's meant as a building block for text editors as well as for simple highlighte
text rendering (e.g. as HTML), supporting both integration with a custom editor
as well as a ready-to-use QSyntaxHighlighter sub-class.
-## Syntax Definition Files
-
-This library uses Kate syntax definition files for the actual highlighting,
-the file format is documented [here](https://docs.kde.org/stable5/en/applications/katepart/highlight.html).
-
-More than 250 syntax definition files are included, additional ones are
-picked up from the file system if present, so you can easily extend this
-by application-specific syntax definitions for example.
+Besides a C++ API, a [QML API](@ref qml_api) is also provided.
## Out of scope
@@ -31,19 +38,214 @@ out of scope:
If you need any of this, check out [KTextEditor](https://api.kde.org/frameworks/ktexteditor/html/).
-## Adding unit tests for a syntax definition
+## Syntax definition files
+
+This library uses Kate syntax definition files for the actual highlighting,
+the file format is documented [here](https://docs.kde.org/?application=katepart&branch=trunk5&path=highlight.html).
+
+More than 300 syntax definition files are included, that are located
+in **data/syntax/** and have the **.xml** extension. Additional ones are
+picked up from the file system if present, so you can easily extend this
+by application-specific syntax definitions for example.
+
+To install or test a syntax definition file locally, place it in
+**org.kde.syntax-highlighting/syntax/**, which is located in your user directory.
+Usually it is:
+
+<table>
+ <tr>
+ <td>For local user</td>
+ <td>$HOME/.local/share/org.kde.syntax-highlighting/syntax/</td>
+ </tr>
+ <tr>
+ <td>For Flatpak packages</td>
+ <td>$HOME/.var/app/<em>package-name</em>/data/org.kde.syntax-highlighting/syntax/</td>
+ </tr>
+ <tr>
+ <td>For Snap packages</a></td>
+ <td>$HOME/snap/<em>package-name</em>/current/.local/share/org.kde.syntax-highlighting/syntax/</td>
+ </tr>
+ <tr>
+ <td>On Windows®</td>
+ <td>&#37;USERPROFILE&#37;&#92;AppData&#92;Local&#92;org.kde.syntax-highlighting&#92;syntax&#92;</td>
+ </tr>
+ <tr>
+ <td>On macOS®</td>
+ <td>$HOME/Library/Application Support/org.kde.syntax-highlighting/syntax/</td>
+ </tr>
+</table>
+
+For more details, see ["The Highlight Definition XML Format" (Working with Syntax Highlighting, KDE Documentation)](https://docs.kde.org/?application=katepart&branch=trunk5&path=highlight.html#katehighlight-xml-format).
+
+Also, in **data/schema/** there is a script to validate the syntax definition XML
+files. Use the command `validatehl.sh mySyntax.xml`.
+
+## Color theme files
+
+This library includes the color themes, which are documented
+[here](https://docs.kde.org/?application=katepart&branch=trunk5&path=color-themes.html).
+
+The color theme files use the JSON format and are located in **data/themes/**
+with the **.theme** extension.
+Additional ones are also picked up from the file system if present,
+in the **org.kde.syntax-highlighting/themes/** folder of your user directory,
+allowing you to easily add custom color theme files. This location is the same
+as shown in the table of the [previous section](#syntax-definition-files),
+replacing the **syntax** folder with **themes**.
+For more details, see ["The Color Themes JSON Format" (Working with Color Themes, KDE Documentation)](https://docs.kde.org/?application=katepart&branch=trunk5&path=color-themes.html#color-themes-json).
+
+The [KTextEditor](https://api.kde.org/frameworks/ktexteditor/html/) library
+(used by Kate, Kile and KDevelop, for example) provides a
+[user interface](https://docs.kde.org/?application=katepart&branch=trunk5&path=color-themes.html#color-themes-gui)
+for editing and creating KSyntaxHighlighting color themes, including
+a tool for exporting and importing the JSON theme files.
+
+Note that in KDE text editors, the KSyntaxHighlighting color themes are used
+[since KDE Frameworks 5.75](https://kate-editor.org/post/2020/2020-09-13-kate-color-themes-5.75/),
+released on October 10, 2020. Previously, Kate's color schemes
+(KConfig based schema config) were used and are now deprecated.
+The tool **utils/schema-converter/** and the script **utils/kateschema_to_theme_converter.py**
+convert the old Kate schemas to KSyntaxHighlighting themes.
+
+Also see ["Submit a KSyntaxHighlighting Color Theme" (Kate Editor Website)](https://kate-editor.org/post/2020/2020-09-18-submit-a-ksyntaxhighlighting-color-theme/).
+
+## Build it
+
+1. Create and change into a build directory. Usually, a folder called **build**
+ is created inside the **syntax-highlighting** source directory.
+
+ ```bash
+ mkdir <build-directory>
+ cd <build-directory>
+ ```
+
+2. Run the configure process with *cmake* and compile:
+
+ ```bash
+ cmake <source-directory>
+ make
+ ```
+
+ For example:
+
+ ```bash
+ git clone git@invent.kde.org:frameworks/syntax-highlighting.git
+ mkdir ./syntax-highlighting/build
+ cd ./syntax-highlighting/build
+ cmake ../
+ make
+ ```
+
+ For more details see ["Building Kate from Sources on Linux" (Kate Editor Website)](https://kate-editor.org/build-it/).
+
+ **NOTE:** If running *cmake* shows an error related to your version of KDE
+ Frameworks, you edit the **CMakeLists.txt** file in the line
+ `find_package(ECM 5.XX.X ...)`.
+
+3. To run tests:
+
+ ```bash
+ make test
+ ```
+
+ The tests are located in the **autotests** directory.
+ This command can be used to check changes to units test after modifying some
+ syntax definition file. To add a unit test or update the references, see the
+ section ["Adding unit tests for a syntax definition"](#adding-unit-tests-for-a-syntax-definition).
+
+## How to contribute
+
+KDE uses a GitLab instance at **invent.kde.org** for code review. The official
+repository of the KSyntaxHighlighting framework is [here](https://invent.kde.org/frameworks/syntax-highlighting).
+
+All the necessary information to send contributions is [here](https://community.kde.org/Infrastructure/GitLab).
+
+### Licensing
+
+Contributions to KSyntaxHighlighting shall be licensed under [MIT](LICENSES/MIT.txt).
+
+All files shall contain a proper "SPDX-License-Identifier: MIT" identifier inside a header like:
+
+```cpp
+/*
+ SPDX-FileCopyrightText: 2020 Christoph Cullmann <cullmann@kde.org>
+
+ SPDX-License-Identifier: MIT
+*/
+```
+
+### Tips for contributing to syntax definition files
+
+* If you are modifying an existing syntax definition XML file, you must increase
+ the version number of the language.
+
+* Do not use hard-coded colors, as they may not look good or be illegible in some color
+ themes. Prefer to use the default color styles.
+
+ For more information, see:
+
+ * [Available Default Styles (Working with Syntax Highlighting, KDE Documentation)](https://docs.kde.org/?application=katepart&branch=trunk5&path=highlight.html#kate-highlight-default-styles)
+ * [Kate Part (KF5): New Default Styles for better Color Schemes (Kate Editor Website)](https://kate-editor.org/2014/03/07/kate-part-kf5-new-default-styles-for-better-color-schemes/)
+
+* Add test files, these are found in **autotests/input/**.
+ If you are going to add a new syntax XML file, create a new test file; if you
+ are going to modify a XML file, adds examples to existing test files.
+
+ Then, it is necessary to generate and update the files in **autotests/folding/**,
+ **autotests/html/** and **autotests/reference/**, which must be included in the
+ patches. Instructions are [below](#adding-unit-tests-for-a-syntax-definition).
+
+### Adding unit tests for a syntax definition
+
+1. Add an input file into the **autotests/input/** folder, lets call it
+ **test.&lt;language-extension&gt;**.
+
+2. If the file extension is not sufficient to trigger the right syntax definition, you can add an
+ second file **testname.&lt;language-extension&gt;.syntax** that contains the syntax definition name
+ to enforce the use of the right extension.
+
+3. Do `make && make test`.
+
+ Note that after adding or modifying something in
+ **&lt;source-directory&gt;/autotests/input/**, an error will be showed when
+ running `make test`, because the references in the source directory do not
+ match the ones now generated.
+
+4. Inspect the outputs found in your binary directory **autotests/folding.out/**,
+ **autotests/html.output/** and **autotests/output/**.
+
+5. If OK, run in the binary folder `./autotests/update-reference-data.sh`
+ to copy the results to the right location.
+ That script updates the references in the source directory in
+ **autotest/folding/**, **autotest/html/** and **autotest/reference/**.
+
+6. Add the result references after the copying to the git.
+
+## Report bug or help to fix them
+
+KDE uses Bugzilla to management of bugs at **bugs.kde.org**. You can see the bugs
+reported of **frameworks-syntax-highlighting** [here](https://bugs.kde.org/describecomponents.cgi?product=frameworks-syntax-highlighting).
+
+Also, you can report a bug [here](https://bugs.kde.org/enter_bug.cgi?product=frameworks-syntax-highlighting).
-* add an input file into the autotests/input/ folder, lets call it test.<language-extension>
+However, some users often report bugs related to syntax highlighting in
+[kate/syntax](https://bugs.kde.org/buglist.cgi?component=syntax&product=kate&resolution=---)
+and [kile/editor](https://bugs.kde.org/buglist.cgi?component=editor&product=kile&resolution=---).
-* if the file extension is not sufficient to trigger the right syntax definition, you can add an
- second file testname.<language-extension>.syntax that contains the syntax definition name
- to enforce the use of the right extension
+## Updating the syntax & themes pages of the kate-editor.org website
-* do "make && make test"
+To update the [kate-editor.org/syntax](https://kate-editor.org/syntax/) and
+[kate-editor.org/themes](https://kate-editor.org/themes/) websites
+including the update site & all linked examples/files,
+please run after successful **build** & **test** the following make target:
-* inspect the outputs found in your binary directory autotests/folding.out, autotests/html.output and autotests/output
+```bash
+make update_kate_editor_org
+```
-* if ok, run in the binary folder "./autotests/update-reference-data.sh" to copy the results to the right location
+This will clone the [kate-editor.org git](https://invent.kde.org/websites/kate-editor-org)
+from *invent.kde.org* into **kate-editor-org** inside the build directory and update the needed things.
-* add the result references after the copying to the git
+You can afterwards step into **kate-editor-org** and commit & push the change after review.
+The [kate-editor.org](https://kate-editor.org) webserver will update itself periodically from the repository on *invent.kde.org*.
diff --git a/src/libs/3rdparty/syntax-highlighting/autogenerated/autogenerated.pri b/src/libs/3rdparty/syntax-highlighting/autogenerated/autogenerated.pri
deleted file mode 100644
index aee620add9..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/autogenerated/autogenerated.pri
+++ /dev/null
@@ -1,9 +0,0 @@
-INCLUDEPATH *= $$PWD/src/lib
-INCLUDEPATH *= $$PWD
-
-SOURCES += \
- $$PWD/src/lib/ksyntaxhighlighting_logging.cpp
-
-HEADERS += \
- $$PWD/ksyntaxhighlighting_version.h \
- $$PWD/src/lib/ksyntaxhighlighting_logging.h
diff --git a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/AbstractHighlighter b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/AbstractHighlighter
index b787873771..b787873771 100644
--- a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/AbstractHighlighter
+++ b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/AbstractHighlighter
diff --git a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/Definition b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/Definition
index 2c3241f841..2c3241f841 100644
--- a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/Definition
+++ b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/Definition
diff --git a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/DefinitionDownloader b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/DefinitionDownloader
index 2a82740d19..2a82740d19 100644
--- a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/DefinitionDownloader
+++ b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/DefinitionDownloader
diff --git a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/FoldingRegion b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/FoldingRegion
index 005b829d53..005b829d53 100644
--- a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/FoldingRegion
+++ b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/FoldingRegion
diff --git a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/Format b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/Format
index b0d6a10246..b0d6a10246 100644
--- a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/Format
+++ b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/Format
diff --git a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/Repository b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/Repository
index 189dbc2f69..189dbc2f69 100644
--- a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/Repository
+++ b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/Repository
diff --git a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/State b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/State
index e148d70391..e148d70391 100644
--- a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/State
+++ b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/State
diff --git a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/SyntaxHighlighter b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/SyntaxHighlighter
index b42982473b..b42982473b 100644
--- a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/SyntaxHighlighter
+++ b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/SyntaxHighlighter
diff --git a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/Theme b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/Theme
index 34a3e98e60..34a3e98e60 100644
--- a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/Theme
+++ b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/Theme
diff --git a/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/WildcardMatcher b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/WildcardMatcher
new file mode 100644
index 0000000000..ecea1b09bd
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting/WildcardMatcher
@@ -0,0 +1 @@
+#include "wildcardmatcher.h"
diff --git a/src/libs/3rdparty/syntax-highlighting/autogenerated/ksyntaxhighlighting_version.h b/src/libs/3rdparty/syntax-highlighting/autogenerated/ksyntaxhighlighting_version.h
index 70795908d6..d568d1813d 100644
--- a/src/libs/3rdparty/syntax-highlighting/autogenerated/ksyntaxhighlighting_version.h
+++ b/src/libs/3rdparty/syntax-highlighting/autogenerated/ksyntaxhighlighting_version.h
@@ -1,12 +1,12 @@
// This file was generated by ecm_setup_version(): DO NOT EDIT!
-#ifndef SyntaxHighlighting_VERSION_H
-#define SyntaxHighlighting_VERSION_H
+#ifndef KSYNTAXHIGHLIGHTING_VERSION_H
+#define KSYNTAXHIGHLIGHTING_VERSION_H
-#define SyntaxHighlighting_VERSION_STRING "5.59.0"
-#define SyntaxHighlighting_VERSION_MAJOR 5
-#define SyntaxHighlighting_VERSION_MINOR 59
-#define SyntaxHighlighting_VERSION_PATCH 0
-#define SyntaxHighlighting_VERSION ((5<<16)|(59<<8)|(0))
+#define KSYNTAXHIGHLIGHTING_VERSION_STRING "5.249.0"
+#define KSYNTAXHIGHLIGHTING_VERSION_MAJOR 5
+#define KSYNTAXHIGHLIGHTING_VERSION_MINOR 249
+#define KSYNTAXHIGHLIGHTING_VERSION_PATCH 0
+#define KSYNTAXHIGHLIGHTING_VERSION ((5<<16)|(249<<8)|(0))
#endif
diff --git a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/ksyntaxhighlighting_export.h b/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/ksyntaxhighlighting_export.h
new file mode 100644
index 0000000000..a7b9e09afa
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/ksyntaxhighlighting_export.h
@@ -0,0 +1,111 @@
+
+#ifndef KSYNTAXHIGHLIGHTING_EXPORT_H
+#define KSYNTAXHIGHLIGHTING_EXPORT_H
+
+#ifdef KSYNTAXHIGHLIGHTING_STATIC_DEFINE
+# define KSYNTAXHIGHLIGHTING_EXPORT
+# define KSYNTAXHIGHLIGHTING_NO_EXPORT
+#else
+# ifndef KSYNTAXHIGHLIGHTING_EXPORT
+# ifdef KF6SyntaxHighlighting_EXPORTS
+ /* We are building this library */
+# define KSYNTAXHIGHLIGHTING_EXPORT Q_DECL_EXPORT
+# else
+ /* We are using this library */
+# define KSYNTAXHIGHLIGHTING_EXPORT Q_DECL_IMPORT
+# endif
+# endif
+
+# ifndef KSYNTAXHIGHLIGHTING_NO_EXPORT
+# define KSYNTAXHIGHLIGHTING_NO_EXPORT
+# endif
+#endif
+
+#ifndef KSYNTAXHIGHLIGHTING_DECL_DEPRECATED
+# define KSYNTAXHIGHLIGHTING_DECL_DEPRECATED __declspec(deprecated)
+#endif
+
+#ifndef KSYNTAXHIGHLIGHTING_DECL_DEPRECATED_EXPORT
+# define KSYNTAXHIGHLIGHTING_DECL_DEPRECATED_EXPORT KSYNTAXHIGHLIGHTING_EXPORT KSYNTAXHIGHLIGHTING_DECL_DEPRECATED
+#endif
+
+#ifndef KSYNTAXHIGHLIGHTING_DECL_DEPRECATED_NO_EXPORT
+# define KSYNTAXHIGHLIGHTING_DECL_DEPRECATED_NO_EXPORT KSYNTAXHIGHLIGHTING_NO_EXPORT KSYNTAXHIGHLIGHTING_DECL_DEPRECATED
+#endif
+
+#if 0 /* DEFINE_NO_DEPRECATED */
+# ifndef KSYNTAXHIGHLIGHTING_NO_DEPRECATED
+# define KSYNTAXHIGHLIGHTING_NO_DEPRECATED
+# endif
+#endif
+
+#define KSYNTAXHIGHLIGHTING_DECL_DEPRECATED_TEXT(text) __declspec(deprecated(text))
+
+/* Take any defaults from group settings */
+#if !defined(KSYNTAXHIGHLIGHTING_NO_DEPRECATED) && !defined(KSYNTAXHIGHLIGHTING_DISABLE_DEPRECATED_BEFORE_AND_AT)
+# ifdef KF_NO_DEPRECATED
+# define KSYNTAXHIGHLIGHTING_NO_DEPRECATED
+# elif defined(KF_DISABLE_DEPRECATED_BEFORE_AND_AT)
+# define KSYNTAXHIGHLIGHTING_DISABLE_DEPRECATED_BEFORE_AND_AT KF_DISABLE_DEPRECATED_BEFORE_AND_AT
+# endif
+#endif
+#if !defined(KSYNTAXHIGHLIGHTING_DISABLE_DEPRECATED_BEFORE_AND_AT) && defined(KF_DISABLE_DEPRECATED_BEFORE_AND_AT)
+# define KSYNTAXHIGHLIGHTING_DISABLE_DEPRECATED_BEFORE_AND_AT KF_DISABLE_DEPRECATED_BEFORE_AND_AT
+#endif
+
+#if !defined(KSYNTAXHIGHLIGHTING_NO_DEPRECATED_WARNINGS) && !defined(KSYNTAXHIGHLIGHTING_DEPRECATED_WARNINGS_SINCE)
+# ifdef KF_NO_DEPRECATED_WARNINGS
+# define KSYNTAXHIGHLIGHTING_NO_DEPRECATED_WARNINGS
+# elif defined(KF_DEPRECATED_WARNINGS_SINCE)
+# define KSYNTAXHIGHLIGHTING_DEPRECATED_WARNINGS_SINCE KF_DEPRECATED_WARNINGS_SINCE
+# endif
+#endif
+#if !defined(KSYNTAXHIGHLIGHTING_DEPRECATED_WARNINGS_SINCE) && defined(KF_DEPRECATED_WARNINGS_SINCE)
+# define KSYNTAXHIGHLIGHTING_DEPRECATED_WARNINGS_SINCE KF_DEPRECATED_WARNINGS_SINCE
+#endif
+
+#if defined(KSYNTAXHIGHLIGHTING_NO_DEPRECATED)
+# undef KSYNTAXHIGHLIGHTING_DEPRECATED
+# define KSYNTAXHIGHLIGHTING_DEPRECATED_EXPORT KSYNTAXHIGHLIGHTING_EXPORT
+# define KSYNTAXHIGHLIGHTING_DEPRECATED_NO_EXPORT KSYNTAXHIGHLIGHTING_NO_EXPORT
+#elif defined(KSYNTAXHIGHLIGHTING_NO_DEPRECATED_WARNINGS)
+# define KSYNTAXHIGHLIGHTING_DEPRECATED
+# define KSYNTAXHIGHLIGHTING_DEPRECATED_EXPORT KSYNTAXHIGHLIGHTING_EXPORT
+# define KSYNTAXHIGHLIGHTING_DEPRECATED_NO_EXPORT KSYNTAXHIGHLIGHTING_NO_EXPORT
+#else
+# define KSYNTAXHIGHLIGHTING_DEPRECATED KSYNTAXHIGHLIGHTING_DECL_DEPRECATED
+# define KSYNTAXHIGHLIGHTING_DEPRECATED_EXPORT KSYNTAXHIGHLIGHTING_DECL_DEPRECATED_EXPORT
+# define KSYNTAXHIGHLIGHTING_DEPRECATED_NO_EXPORT KSYNTAXHIGHLIGHTING_DECL_DEPRECATED_NO_EXPORT
+#endif
+
+/* No deprecated API had been removed from build */
+#define KSYNTAXHIGHLIGHTING_EXCLUDE_DEPRECATED_BEFORE_AND_AT 0
+
+#define KSYNTAXHIGHLIGHTING_BUILD_DEPRECATED_SINCE(major, minor) 1
+
+#ifdef KSYNTAXHIGHLIGHTING_NO_DEPRECATED
+# define KSYNTAXHIGHLIGHTING_DISABLE_DEPRECATED_BEFORE_AND_AT KSYNTAXHIGHLIGHTING_VERSION
+#endif
+#ifdef KSYNTAXHIGHLIGHTING_NO_DEPRECATED_WARNINGS
+# define KSYNTAXHIGHLIGHTING_DEPRECATED_WARNINGS_SINCE 0
+#endif
+
+#ifndef KSYNTAXHIGHLIGHTING_DEPRECATED_WARNINGS_SINCE
+# ifdef KSYNTAXHIGHLIGHTING_DISABLE_DEPRECATED_BEFORE_AND_AT
+# define KSYNTAXHIGHLIGHTING_DEPRECATED_WARNINGS_SINCE KSYNTAXHIGHLIGHTING_DISABLE_DEPRECATED_BEFORE_AND_AT
+# else
+# define KSYNTAXHIGHLIGHTING_DEPRECATED_WARNINGS_SINCE KSYNTAXHIGHLIGHTING_VERSION
+# endif
+#endif
+
+#ifndef KSYNTAXHIGHLIGHTING_DISABLE_DEPRECATED_BEFORE_AND_AT
+# define KSYNTAXHIGHLIGHTING_DISABLE_DEPRECATED_BEFORE_AND_AT 0
+#endif
+
+#ifdef KSYNTAXHIGHLIGHTING_DEPRECATED
+# define KSYNTAXHIGHLIGHTING_ENABLE_DEPRECATED_SINCE(major, minor) (((major<<16)|(minor<<8)) > KSYNTAXHIGHLIGHTING_DISABLE_DEPRECATED_BEFORE_AND_AT)
+#else
+# define KSYNTAXHIGHLIGHTING_ENABLE_DEPRECATED_SINCE(major, minor) 0
+#endif
+
+#endif /* KSYNTAXHIGHLIGHTING_EXPORT_H */
diff --git a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/ksyntaxhighlighting_logging.cpp b/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/ksyntaxhighlighting_logging.cpp
index 4082ac4aff..af482ef3db 100644
--- a/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/ksyntaxhighlighting_logging.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib/ksyntaxhighlighting_logging.cpp
@@ -3,9 +3,5 @@
#include "ksyntaxhighlighting_logging.h"
namespace KSyntaxHighlighting {
-#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
-Q_LOGGING_CATEGORY(Log, "org.kde.ksyntaxhighlighting", QtInfoMsg)
-#else
-Q_LOGGING_CATEGORY(Log, "org.kde.ksyntaxhighlighting")
-#endif
+Q_LOGGING_CATEGORY(Log, "kf.syntaxhighlighting", QtInfoMsg)
}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/CMakeLists.txt b/src/libs/3rdparty/syntax-highlighting/data/CMakeLists.txt
index 73adbe6d20..26a110d31b 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/CMakeLists.txt
+++ b/src/libs/3rdparty/syntax-highlighting/data/CMakeLists.txt
@@ -1,61 +1,85 @@
+# create a directory for generated definitions
+execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/generated/syntax)
+
+macro(generate_syntax_definition generator targetFile srcFile)
+ add_custom_target(
+ ${targetFile} ALL
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/generated/syntax/${targetFile}
+ )
+ add_custom_command(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/generated/syntax/${targetFile}
+ COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/generators/${generator}
+ ${CMAKE_CURRENT_SOURCE_DIR}/syntax/${srcFile}
+ ${CMAKE_CURRENT_BINARY_DIR}/generated/syntax/${targetFile}
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/generators/${generator}
+ ${CMAKE_CURRENT_SOURCE_DIR}/syntax/${srcFile}
+ ${ARGN}
+ VERBATIM
+ )
+ set(gen_defs ${gen_defs} ${CMAKE_CURRENT_BINARY_DIR}/generated/syntax/${targetFile})
+endmacro()
+
# generate PHP definitions
macro(generate_php_syntax_definition targetFile srcFile)
- execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/syntax)
- execute_process(COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/generators/generate-php.pl
- INPUT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/syntax/${srcFile}
- OUTPUT_FILE ${CMAKE_CURRENT_BINARY_DIR}/syntax/${targetFile})
+ generate_syntax_definition(generate-php.pl ${targetFile} ${srcFile} ${CMAKE_CURRENT_SOURCE_DIR}/syntax/php.xml)
endmacro()
generate_php_syntax_definition(javascript-php.xml javascript.xml)
generate_php_syntax_definition(css-php.xml css.xml)
generate_php_syntax_definition(html-php.xml html.xml)
+generate_php_syntax_definition(javascript-react-php.xml javascript-react.xml)
+generate_php_syntax_definition(typescript-php.xml typescript.xml)
+generate_php_syntax_definition(mustache-php.xml mustache.xml)
+
+# generate DoxygenLua definition
+generate_syntax_definition(generate-doxygenlua.pl doxygenlua.xml doxygen.xml)
# find all definitions
file(GLOB src_defs "${CMAKE_CURRENT_SOURCE_DIR}/syntax/*.xml")
-set(defs
- ${src_defs}
- ${CMAKE_CURRENT_BINARY_DIR}/syntax/html-php.xml
- ${CMAKE_CURRENT_BINARY_DIR}/syntax/css-php.xml
- ${CMAKE_CURRENT_BINARY_DIR}/syntax/javascript-php.xml
-)
+set(defs ${src_defs} ${gen_defs})
+
+# object library to make cross-folder dependencies work
+add_library(SyntaxHighlightingData OBJECT)
# theme data resource
-qt5_add_resources(themes_QRC ${CMAKE_CURRENT_SOURCE_DIR}/themes/theme-data.qrc)
+target_sources(SyntaxHighlightingData PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/themes/theme-data.qrc)
-# do we want syntax files bundled in the library?
-if (QRC_SYNTAX)
- # generate the resource file
- set(qrc_file ${CMAKE_CURRENT_BINARY_DIR}/syntax-data.qrc)
- set(qrc_body "")
- foreach(def ${defs})
- get_filename_component(def_name ${def} NAME)
- string(APPEND qrc_body "<file alias=\"${def_name}\">${def}</file>\n")
- endforeach()
- set(SYNTAX_DATA_QRC_FILES_STRING ${qrc_body})
- configure_file(syntax-data.qrc.in ${qrc_file} @ONLY)
-
- # generate the index file
- add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/index.katesyntax"
+# generate the resource file
+set(qrc_file ${CMAKE_CURRENT_BINARY_DIR}/syntax-data.qrc)
+set(qrc_body "")
+foreach(def ${defs})
+ get_filename_component(def_name ${def} NAME)
+ string(APPEND qrc_body "<file alias=\"${def_name}\">${def}</file>\n")
+endforeach()
+set(SYNTAX_DATA_QRC_FILES_STRING ${qrc_body})
+configure_file(syntax-data.qrc.in ${qrc_file} @ONLY)
+
+# generate the index file
+add_custom_target(katesyntax DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/index.katesyntax")
+add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/index.katesyntax"
COMMAND katehighlightingindexer "${CMAKE_CURRENT_BINARY_DIR}/index.katesyntax" "${CMAKE_CURRENT_SOURCE_DIR}/schema/language.xsd" "${CMAKE_CURRENT_BINARY_DIR}/syntax-data.qrc"
- DEPENDS ${defs} ${CMAKE_CURRENT_SOURCE_DIR}/schema/language.xsd ${CMAKE_CURRENT_BINARY_DIR}/syntax-data.qrc
- )
+ DEPENDS katehighlightingindexer ${defs} ${CMAKE_CURRENT_SOURCE_DIR}/schema/language.xsd ${CMAKE_CURRENT_BINARY_DIR}/syntax-data.qrc
+)
+# do we want syntax files bundled in the library?
+if (QRC_SYNTAX)
# generate the qrc file manually, to make dependencies on generated files work...
add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/qrc_syntax-data.cpp"
- COMMAND ${Qt5Core_RCC_EXECUTABLE} --name syntax_data -o "${CMAKE_CURRENT_BINARY_DIR}/qrc_syntax-data.cpp" "${CMAKE_CURRENT_BINARY_DIR}/syntax-data.qrc"
+ COMMAND Qt${QT_MAJOR_VERSION}::rcc --name syntax_data -o "${CMAKE_CURRENT_BINARY_DIR}/qrc_syntax-data.cpp" "${CMAKE_CURRENT_BINARY_DIR}/syntax-data.qrc"
DEPENDS ${defs} ${CMAKE_CURRENT_BINARY_DIR}/index.katesyntax
)
set_source_files_properties("${CMAKE_CURRENT_BINARY_DIR}/qrc_syntax-data.cpp" PROPERTIES SKIP_AUTOMOC ON)
- # object library to make cross-folder dependencies work, themes + syntax files
- add_library(SyntaxHighlightingData OBJECT ${themes_QRC} ${CMAKE_CURRENT_BINARY_DIR}/qrc_syntax-data.cpp)
+ target_sources(SyntaxHighlightingData PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/qrc_syntax-data.cpp)
else()
+ add_dependencies(SyntaxHighlightingData katesyntax)
# install the syntax files as normal files into the prefix
- install (FILES ${defs} DESTINATION share/org.kde.syntax-highlighting/syntax)
-
- # object library to make cross-folder dependencies work, only themes
- add_library(SyntaxHighlightingData OBJECT ${themes_QRC})
+ install (FILES "${CMAKE_CURRENT_BINARY_DIR}/index.katesyntax" ${defs} DESTINATION ${KDE_INSTALL_DATADIR}/org.kde.syntax-highlighting/syntax-bundled)
endif()
# set PIC to allow use in static and shared libs
+# this needs some more recent CMake than generally required
set_property(TARGET SyntaxHighlightingData PROPERTY POSITION_INDEPENDENT_CODE 1)
+if(NOT ${CMAKE_VERSION} VERSION_LESS "3.13.0")
+ target_link_libraries(SyntaxHighlightingData PRIVATE Qt${QT_MAJOR_VERSION}::Core)
+endif()
diff --git a/src/libs/3rdparty/syntax-highlighting/data/data.pro b/src/libs/3rdparty/syntax-highlighting/data/data.pro
deleted file mode 100644
index 1028ea1579..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/data/data.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = aux
-
-include(../../../../../qtcreator.pri)
-
-STATIC_BASE = $$PWD
-STATIC_OUTPUT_BASE = $$IDE_DATA_PATH/generic-highlighter
-STATIC_INSTALL_BASE = $$INSTALL_DATA_PATH/generic-highlighter
-
-STATIC_FILES += $$files($$PWD/syntax/*, true)
-
-include(../../../../../qtcreatordata.pri)
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/.gitignore b/src/libs/3rdparty/syntax-highlighting/data/generators/.gitignore
new file mode 100644
index 0000000000..8f4dc5cfcf
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/generators/.gitignore
@@ -0,0 +1 @@
+Pipfile.lock
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/Pipfile b/src/libs/3rdparty/syntax-highlighting/data/generators/Pipfile
new file mode 100644
index 0000000000..227d4cd2cc
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/generators/Pipfile
@@ -0,0 +1,12 @@
+# kate: hl toml;
+
+[[source]]
+url = "https://pypi.org/simple"
+verify_ssl = true
+name = "pypi"
+
+[packages]
+click = "~= 8.0"
+jinja2 = "~= 3.0"
+lxml = "*"
+PyYAML = "*"
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/cmake.xml.tpl b/src/libs/3rdparty/syntax-highlighting/data/generators/cmake.xml.tpl
index 33cc7511aa..48f56f7b60 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/generators/cmake.xml.tpl
+++ b/src/libs/3rdparty/syntax-highlighting/data/generators/cmake.xml.tpl
@@ -1,38 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd"
+<!DOCTYPE language
[
- <!ENTITY id_re "[_A-Za-z][\-_0-9A-Za-z]*">
+ <!-- NOTE See https://cmake.org/cmake/help/latest/manual/cmake-language.7.html#variable-references -->
+ <!ENTITY var_ref_re "[/\.\+\-_0-9A-Za-z]+">
+ <!-- NOTE See `cmGeneratorExpression::IsValidTargetName` -->
+ <!ENTITY tgt_name_re "[A-Za-z0-9_\.\+\-]+">
]>
<!--
- This file is part of KDE's kate project.
-
- Copyright 2004 Alexander Neundorf (neundorf@kde.org)
- Copyright 2005 Dominik Haumann (dhdev@gmx.de)
- Copyright 2007,2008,2013,2014 Matthew Woehlke (mw_triad@users.sourceforge.net)
- Copyright 2013-2015,2017-2018 Alex Turbov (i.zaufi@gmail.com)
-
- **********************************************************************
- * This library is free software; you can redistribute it and/or *
- * modify it under the terms of the GNU Lesser General Public *
- * License as published by the Free Software Foundation; either *
- * version 2 of the License, or (at your option) any later version. *
- * *
- * This library is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this library; if not, write to the *
- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
- * Boston, MA 02110-1301, USA. *
- **********************************************************************
+ This file is part of KDE's kate project.
+
+ SPDX-FileCopyrightText: 2004 Alexander Neundorf <neundorf@kde.org>
+ SPDX-FileCopyrightText: 2005 Dominik Haumann <dhdev@gmx.de>
+ SPDX-FileCopyrightText: 2007, 2008, 2013, 2014 Matthew Woehlke <mw_triad@users.sourceforge.net>
+ SPDX-FileCopyrightText: 2013-2015, 2017-2023 Alex Turbov <i.zaufi@gmail.com>
+
+ SPDX-License-Identifier: LGPL-2.0-or-later
-->
+<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT *****
+ cd data/generators
+ # increase version of cmake.xml.tpl then
+ ./generate-cmake-syntax.py cmake.yaml > ../syntax/cmake.xml
+-->
+
<language
name="CMake"
- version="11"
- kateversion="2.4"
+ version="<!--{version}-->"
+ kateversion="5.62"
section="Other"
extensions="CMakeLists.txt;*.cmake;*.cmake.in"
style="CMake"
@@ -43,169 +37,286 @@
<highlighting>
<list name="commands">
- {%- for command in commands %}
- <item>{{command.name}}</item>
- {%- endfor %}
+ <!--[- for command in commands ]-->
+ <item><!--{command.name}--></item>
+ <!--[- endfor ]-->
</list>
- {% for command in commands -%}
- {%- if command.named_args and command.named_args.kw %}
- <list name="{{command.name}}_nargs">
- {%- for arg in command.named_args.kw %}
- <item>{{arg}}</item>
- {%- endfor %}
+
+ <!--[- macro render_command_arg_lists(commands) ]-->
+ <!--[- for command in commands -]-->
+ <!--[- if command.named_args and command.named_args.kw ]-->
+ <list name="<!--{command.name}-->_nargs">
+ <!--[- for arg in command.named_args.kw ]-->
+ <item><!--{arg}--></item>
+ <!--[- endfor ]-->
</list>
- {%- endif %}
- {%- if command.special_args and command.special_args.kw %}
- <list name="{{command.name}}_sargs">
- {%- for arg in command.special_args.kw %}
- <item>{{arg}}</item>
- {%- endfor %}
+ <!--[- endif ]-->
+ <!--[- if command.special_args and command.special_args.kw ]-->
+ <list name="<!--{command.name}-->_sargs">
+ <!--[- for arg in command.special_args.kw ]-->
+ <item><!--{arg}--></item>
+ <!--[- endfor ]-->
</list>
- {%- endif %}
- {%- endfor %}
+ <!--[- endif ]-->
+ <!--[- endfor ]-->
+ <!--[- endmacro ]-->
+ <!--{- render_command_arg_lists(commands) }-->
+ <!--{- render_command_arg_lists(standard_module_commands) }-->
<list name="variables">
- {%- for var in variables.kw %}
- <item>{{var}}</item>
- {%- endfor %}
+ <!--[- for var in variables.kw ]-->
+ <item><!--{var}--></item>
+ <!--[- endfor ]-->
+ </list>
+
+ <list name="deprecated-or-internal-variables">
+ <!--[- for var in deprecated_or_internal_variables.kw ]-->
+ <item><!--{var}--></item>
+ <!--[- endfor ]-->
+ </list>
+
+ <list name="environment-variables">
+ <!--[- for var in environment_variables.kw ]-->
+ <item><!--{var}--></item>
+ <!--[- endfor ]-->
</list>
- {%- for kind in properties.kinds %}
- <list name="{{ kind|replace('_', '-') }}">
- {%- for prop in properties[kind].kw %}
- <item>{{prop}}</item>
- {%- endfor %}
+ <!--[- for kind in properties.kinds ]-->
+ <list name="<!--{ kind|replace('_', '-') }-->">
+ <!--[- for prop in properties[kind].kw ]-->
+ <item><!--{prop}--></item>
+ <!--[- endfor ]-->
</list>
- {%- endfor %}
+ <!--[- endfor ]-->
<list name="generator-expressions">
- {%- for expr in generator_expressions %}
- <item>{{ expr }}</item>
- {%- endfor %}
+ <!--[- for expr in generator_expressions ]-->
+ <item><!--{ expr }--></item>
+ <!--[- endfor ]-->
+ </list>
+ <!--[- for expr in complex_generator_expressions ]-->
+ <list name="genex-<!--{expr.name}-->-subcommands">
+ <!--[- for cmd in expr.subcommands ]-->
+ <item><!--{ cmd }--></item>
+ <!--[- endfor ]-->
+ </list>
+ <!--[- endfor ]-->
+
+ <list name="standard-modules">
+ <!--[- for module in modules.utility ]-->
+ <item><!--{ module }--></item>
+ <!--[- endfor ]-->
+ </list>
+
+ <list name="standard-finder-modules">
+ <!--[- for module in modules.finder ]-->
+ <item><!--{ module | replace('Find', '') }--></item>
+ <!--[- endfor ]-->
+ </list>
+
+ <list name="deprecated-modules">
+ <!--[- for module in modules.deprecated ]-->
+ <item><!--{ module }--></item>
+ <!--[- endfor ]-->
+ </list>
+
+ <!-- Source/cmStringAlgorithms.cxx: bool cmIsOff(cm::string_view val) -->
+ <list name="true_special_arg">
+ <item>TRUE</item>
+ <item>ON</item>
+ <item>YES</item>
+ <item>Y</item>
+ <item>0</item>
+ </list>
+
+ <!-- Source/cmStringAlgorithms.cxx: bool cmIsOff(cm::string_view val) -->
+ <list name="false_special_arg">
+ <item>FALSE</item>
+ <item>OFF</item>
+ <item>NO</item>
+ <item>IGNORE</item>
+ <item>N</item>
+ <item>0</item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal Text">
- <DetectSpaces/>
- {% for command in commands -%}
- <WordDetect String="{{command.name}}" insensitive="true" attribute="Command" context="{{command.name}}_ctx" />
- {% endfor -%}
- <RegExpr attribute="Region Marker" context="RST Documentation" String="^#\[(=*)\[\.rst:" column="0" />
- <RegExpr attribute="Comment" context="Bracketed Comment" String="#\[(=*)\[" />
- <DetectChar attribute="Comment" context="Comment" char="#" />
+ <DetectSpaces />
+ <!--[ for command in commands -]-->
+ <WordDetect String="<!--{command.name}-->" insensitive="true" attribute="<!--{command.attribute}-->" context="<!--{command.name}-->_ctx"<!--[ if command.start_region ]--> beginRegion="<!--{command.start_region}-->"<!--[ endif -]--> <!--[- if command.end_region ]--> endRegion="<!--{command.end_region}-->"<!--[ endif ]--> />
+ <!--[ endfor -]-->
+ <!--[ for command in standard_module_commands -]-->
+ <WordDetect String="<!--{command.name}-->" insensitive="true" attribute="CMake Provided Function/Macro" context="<!--{command.name}-->_ctx" />
+ <!--[ endfor -]-->
+ <DetectChar attribute="Comment" context="Match Comments and Docs" char="#" lookAhead="true" />
<DetectIdentifier attribute="User Function/Macro" context="User Function" />
- <RegExpr attribute="@Variable Substitution" context="@VarSubst" String="@&id_re;@" lookAhead="true" />
- <!-- Include keywords matching for language autocompleter work -->
- <keyword attribute="Command" context="#stay" String="commands" />
- </context>
-
- {% for command in commands -%}
- {#
- <!--
- {{ command|pprint }}
- -->
- -#}
- <context attribute="Normal Text" lineEndContext="#stay" name="{{command.name}}_ctx">
- <DetectChar attribute="Normal Text" context="{{command.name}}_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="{{command.name}}_ctx_op">
- {%- if command.nested_parentheses %}
- <DetectChar attribute="Normal Text" context="{{command.name}}_ctx_op_nested" char="(" />
- {%- endif %}
- <IncludeRules context="EndCmdPop2" />
- {%- if command.named_args and command.named_args.kw %}
- <keyword attribute="Named Args" context="#stay" String="{{command.name}}_nargs" />
- {%- endif %}
- {%- if command.special_args and command.special_args.kw %}
- <keyword attribute="Special Args" context="#stay" String="{{command.name}}_sargs" />
- {%- endif %}
- {%- if command.property_args and command.property_args.kw %}
- {%- for kind in command.property_args.kw %}
- <keyword attribute="Property" context="#stay" String="{{kind}}" />
- {%- if properties[kind|replace('-', '_')].re %}
- <IncludeRules context="Detect More {{kind}}" />
- {%- endif %}
- {%- endfor %}
- {%- endif %}
- {%- if command is not nulary %}
+ <RegExpr attribute="@Variable Substitution" context="@VarSubst" String="@&var_ref_re;@" lookAhead="true" />
+ <IncludeRules context="LineError" />
+ </context>
+ <!--[- macro render_command_parsers(commands) ]-->
+ <!--[ for command in commands -]-->
+ <context attribute="Normal Text" lineEndContext="#stay" name="<!--{command.name}-->_ctx">
+ <DetectChar attribute="Normal Text" context="<!--{command.name}-->_ctx_op<!--{'_tgt_first' if command.first_arg_is_target else '_tgts_first' if command.first_args_are_targets else ''}-->" char="(" />
+ <DetectChar attribute="Normal Text" context="#pop" char=")" />
+ </context>
+ <!--[- if command.first_arg_is_target ]-->
+ <context attribute="Normal Text" lineEndContext="#stay" name="<!--{command.name}-->_ctx_op_tgt_first">
+ <DetectSpaces />
+ <RegExpr attribute="Aliased Targets" context="<!--{command.name}-->_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*" />
+ <RegExpr attribute="Targets" context="<!--{command.name}-->_ctx_op" String="&tgt_name_re;" />
+ <IncludeRules context="User Function Opened" />
+ <IncludeRules context="LineError" />
+ </context>
+ <!--[- endif ]-->
+ <!--[- if command.first_args_are_targets ]-->
+ <context attribute="Normal Text" lineEndContext="#stay" name="<!--{command.name}-->_ctx_op_tgts_first">
+ <DetectSpaces />
+ <!--[- if command.named_args and command.named_args.kw ]-->
+ <!-- NOTE Handle the only case in CMake nowadays:
+ 1. `set_target_properties` have a named keyword (`PROPERTIES`) after targets list
+ -->
+ <keyword context="<!--{command.name}-->_ctx_op" String="<!--{command.name}-->_nargs" lookAhead="true" />
+ <!--[- endif ]-->
+ <IncludeRules context="Detect Aliased Targets" />
+ <IncludeRules context="Detect Targets" />
+ <IncludeRules context="User Function Opened" />
+ <IncludeRules context="LineError" />
+ </context>
+ <!--[- endif ]-->
+ <!--[- if not command.first_args_are_targets or (command.named_args and command.named_args.kw) ]-->
+ <context attribute="Normal Text" lineEndContext="#stay" name="<!--{command.name}-->_ctx_op">
+ <DetectSpaces />
+ <!--[- if command.nested_parentheses ]-->
+ <DetectChar attribute="Normal Text" context="<!--{command.name}-->_ctx_op_nested" char="(" />
+ <!--[- endif ]-->
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true" />
+ <!--[- if command.named_args and command.named_args.kw ]-->
+ <!--[- if command.has_target_name_after_kw ]-->
+ <WordDetect String="<!--{command.has_target_name_after_kw}-->" attribute="Named Args" context="Target Name" />
+ <!--[- endif ]-->
+ <!--[- if command.has_target_names_after_kw ]-->
+ <WordDetect String="<!--{command.has_target_names_after_kw}-->" attribute="Named Args" context="<!--{command.name}-->_tgts" />
+ <!--[- endif ]-->
+ <keyword attribute="Named Args" context="#stay" String="<!--{command.name}-->_nargs" />
+ <!--[- endif ]-->
+ <!--[- if command.name == 'include' ]-->
+ <keyword attribute="Standard Module" context="#stay" String="standard-modules" />
+ <keyword attribute="Deprecated Module" context="#stay" String="deprecated-modules" />
+ <!--[- endif ]-->
+ <!--[- if command.name == 'find_package' ]-->
+ <keyword attribute="Standard Module" context="#stay" String="standard-finder-modules" />
+ <!--[- endif ]-->
+ <!--[- if command.special_args and command.special_args.kw ]-->
+ <keyword attribute="Special Args" context="#stay" String="<!--{command.name}-->_sargs" />
+ <!--[- endif ]-->
+ <!--[- if command.property_args and command.property_args.kw ]-->
+ <!--[- for kind in command.property_args.kw ]-->
+ <keyword attribute="Property" context="#stay" String="<!--{kind}-->" />
+ <!--[- if properties[kind|replace('-', '_')].re ]-->
+ <IncludeRules context="Detect More <!--{kind}-->" />
+ <!--[- endif ]-->
+ <!--[- endfor ]-->
+ <!--[- endif ]-->
+ <!--[- if command is not nulary ]-->
<IncludeRules context="User Function Args" />
- {%- if command.name == 'cmake_policy' %}
+ <!--[- if command.name == 'cmake_policy' ]-->
<!-- NOTE Handle CMP<NNN> as a special arg of `cmake_policy` command -->
<RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9]+\b" />
- {%- endif %}
- {%- endif %}
- </context>
- {%- if command.nested_parentheses %}
- <context attribute="Normal Text" lineEndContext="#stay" name="{{command.name}}_ctx_op_nested">
- <IncludeRules context="EndCmdPop" />
- {%- if command.named_args and command.named_args.kw %}
- <keyword attribute="Named Args" context="#stay" String="{{command.name}}_nargs" />
- {%- endif %}
- {%- if command.special_args and command.special_args.kw %}
- <keyword attribute="Special Args" context="#stay" String="{{command.name}}_sargs" />
- {%- endif %}
- {%- if command.property_args and command.property_args.kw %}
- {%- for kind in command.property_args.kw %}
- <keyword attribute="Property" context="#stay" String="{{kind}}" />
- {%- if properties[kind|replace('-', '_')].re %}
- <IncludeRules context="Detect More {{kind}}" />
- {%- endif %}
- {%- endfor %}
- {%- endif %}
+ <!--[- endif ]-->
+ <!--[- endif ]-->
+ </context>
+ <!--[- endif ]-->
+ <!--[- if command.has_target_names_after_kw ]-->
+ <context attribute="Normal Text" lineEndContext="#stay" name="<!--{command.name}-->_tgts">
+ <DetectSpaces />
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true" />
+ <keyword attribute="Named Args" context="#pop" String="<!--{command.name}-->_nargs" />
+ <IncludeRules context="Detect Aliased Targets" />
+ <IncludeRules context="Detect Targets" />
<IncludeRules context="User Function Args" />
+ <IncludeRules context="LineError" />
</context>
- {%- endif %}
- {% endfor -%}
-
- {% for kind in properties.kinds if properties[kind].re -%}
- <context attribute="Normal Text" lineEndContext="#stay" name="Detect More {{ kind|replace('_', '-') }}">
- {%- for prop in properties[kind].re %}
- <RegExpr attribute="Property" context="#stay" String="{{prop}}" />
- {%- endfor %}
- </context>{{ '\n' }}
- {% endfor -%}
-
- <context attribute="Normal Text" lineEndContext="#stay" name="EndCmdPop">
+ <!--[- endif ]-->
+ <!--[- if command.nested_parentheses ]-->
+ <context attribute="Normal Text" lineEndContext="#stay" name="<!--{command.name}-->_ctx_op_nested">
+ <DetectSpaces />
<DetectChar attribute="Normal Text" context="#pop" char=")" />
+ <DetectChar attribute="Normal Text" context="<!--{command.name}-->_ctx_op_nested" char="(" />
+ <!--[- if command.named_args and command.named_args.kw ]-->
+ <keyword attribute="Named Args" context="#stay" String="<!--{command.name}-->_nargs" />
+ <!--[- endif ]-->
+ <!--[- if command.special_args and command.special_args.kw ]-->
+ <keyword attribute="Special Args" context="#stay" String="<!--{command.name}-->_sargs" />
+ <!--[- endif ]-->
+ <!--[- if command.property_args and command.property_args.kw ]-->
+ <!--[- for kind in command.property_args.kw ]-->
+ <keyword attribute="Property" context="#stay" String="<!--{kind}-->" />
+ <!--[- if properties[kind|replace('-', '_')].re ]-->
+ <IncludeRules context="Detect More <!--{kind}-->" />
+ <!--[- endif ]-->
+ <!--[- endfor ]-->
+ <!--[- endif ]-->
+ <IncludeRules context="User Function Args" />
</context>
-
- <context attribute="Normal Text" lineEndContext="#stay" name="EndCmdPop2">
- <DetectChar attribute="Normal Text" context="#pop#pop" char=")" />
- </context>
+ <!--[- endif ]-->
+ <!--[ endfor -]-->
+ <!--[- endmacro -]-->
+ <!--{- render_command_parsers(commands) -}-->
+ <!--{- render_command_parsers(standard_module_commands) -}-->
+ <!--[ for kind in properties.kinds if properties[kind].re -]-->
+ <context attribute="Normal Text" lineEndContext="#stay" name="Detect More <!--{ kind|replace('_', '-') }-->">
+ <RegExpr attribute="Property" context="#stay" String="<!--{properties[kind].re}-->" />
+ </context><!--{ '\n' }-->
+ <!--[ endfor -]-->
<context attribute="User Function/Macro" lineEndContext="#stay" name="User Function">
<DetectChar attribute="Normal Text" context="User Function Opened" char="(" />
- <IncludeRules context="EndCmdPop2" />
+ <DetectChar attribute="Normal Text" context="#pop" char=")" />
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="User Function Opened">
- <IncludeRules context="EndCmdPop2" />
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true" />
<IncludeRules context="User Function Args" />
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Builtin Variables">
+ <RegExpr attribute="Internal Name" context="#stay" String="\b_&var_ref_re;\b" />
+ <keyword attribute="CMake Internal Variable" context="#stay" String="deprecated-or-internal-variables" insensitive="false" />
<keyword attribute="Builtin Variable" context="#stay" String="variables" insensitive="false" />
<IncludeRules context="Detect More Builtin Variables" />
- <RegExpr attribute="Internal Name" context="#stay" String="\b_&id_re;\b" />
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect More Builtin Variables">
- {%- for var in variables.re %}
- <RegExpr attribute="Builtin Variable" context="#stay" String="{{var}}" />
- {%- endfor %}
+ <!--[- if deprecated_or_internal_variables.re ]-->
+ <RegExpr attribute="CMake Internal Variable" context="#stay" String="<!--{deprecated_or_internal_variables.re}-->" />
+ <!--[- endif ]-->
+ <!--[- if variables.re ]-->
+ <RegExpr attribute="Builtin Variable" context="#stay" String="<!--{variables.re}-->" />
+ <!--[- endif ]-->
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Variable Substitutions">
- <RegExpr attribute="Environment Variable Substitution" context="#stay" String="\$ENV\{\s*[\w-]+\s*\}" />
+ <RegExpr attribute="Cache Variable Substitution" context="#stay" String="\$CACHE\{\s*[\w-]+\s*\}" />
+ <RegExpr attribute="Environment Variable Substitution" context="EnvVarSubst" String="\$?ENV\{" />
<Detect2Chars attribute="Variable Substitution" context="VarSubst" char="$" char1="{" />
- <RegExpr attribute="@Variable Substitution" context="@VarSubst" String="@&id_re;@" lookAhead="true" />
+ <RegExpr attribute="@Variable Substitution" context="@VarSubst" String="@&var_ref_re;@" lookAhead="true" />
+ </context>
+
+ <context attribute="Environment Variable Substitution" lineEndContext="#pop" name="EnvVarSubst">
+ <DetectChar attribute="Environment Variable Substitution" context="#pop" char="}" />
+ <keyword attribute="Standard Environment Variable" context="#stay" String="environment-variables" insensitive="false" />
+ <!--[- if environment_variables.re ]-->
+ <RegExpr attribute="Standard Environment Variable" context="#stay" String="<!--{environment_variables.re}-->" />
+ <!--[- endif ]-->
+ <DetectIdentifier />
+ <IncludeRules context="Detect Variable Substitutions" />
</context>
<context attribute="Variable Substitution" lineEndContext="#pop" name="VarSubst">
+ <DetectChar attribute="Variable Substitution" context="#pop" char="}" />
<IncludeRules context="Detect Builtin Variables" />
<DetectIdentifier />
- <DetectChar attribute="Variable Substitution" context="#pop" char="}" />
<IncludeRules context="Detect Variable Substitutions" />
</context>
@@ -214,62 +325,104 @@
</context>
<context attribute="@Variable Substitution" lineEndContext="#pop#pop" name="VarSubst@">
+ <DetectChar attribute="@Variable Substitution" context="#pop#pop" char="@" />
<IncludeRules context="Detect Builtin Variables" />
<DetectIdentifier />
- <DetectChar attribute="@Variable Substitution" context="#pop#pop" char="@" />
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="Target Name">
+ <DetectSpaces />
+ <RegExpr attribute="Aliased Targets" context="#pop" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*" />
+ <IncludeRules context="Detect Targets" />
+ <IncludeRules context="User Function Opened" />
+ <IncludeRules context="LineError" />
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="Detect Targets">
+ <RegExpr attribute="Targets" context="#stay" String="&tgt_name_re;" />
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="LineError">
+ <RegExpr attribute="Error" context="#stay" String=".*" />
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="User Function Args">
<Detect2Chars attribute="Normal Text" context="#stay" char="\" char1="(" />
<Detect2Chars attribute="Normal Text" context="#stay" char="\" char1=")" />
- <RegExpr attribute="Escapes" context="#stay" String="\\[&quot;$n\\]" />
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="&quot;" />
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="$" />
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="n" />
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="\" />
<DetectChar attribute="Strings" context="String" char="&quot;" />
- <RegExpr attribute="Strings" context="Bracketed String" String="\[(=*)\[" />
- <RegExpr attribute="Comment" context="Bracketed Comment" String="#\[(=*)\[" />
- <DetectChar attribute="Comment" context="Comment" char="#" />
+ <RegExpr attribute="Strings" context="Bracketed String" String="\[(=*)\[" beginRegion="BracketedString" />
+ <DetectChar attribute="Comment" context="Match Comments" char="#" lookAhead="true" />
<IncludeRules context="Detect Builtin Variables" />
<IncludeRules context="Detect Variable Substitutions" />
<IncludeRules context="Detect Special Values" />
<IncludeRules context="Detect Aliased Targets" />
<IncludeRules context="Detect Generator Expressions" />
+ <DetectIdentifier />
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Special Values">
- <RegExpr attribute="True Special Arg" context="#stay" String="\b(TRUE|ON)\b" />
- <RegExpr attribute="False Special Arg" context="#stay" String="\b(FALSE|OFF|(&id_re;-)?NOTFOUND)\b" />
- <RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9][0-9][0-9]\b" />
+ <RegExpr attribute="Version Arg" context="#stay" String="\b[0-9]++(.[0-9]++)+\b" />
+ <keyword attribute="True Special Arg" context="#stay" String="true_special_arg" insensitive="true" />
+ <keyword attribute="False Special Arg" context="#stay" String="false_special_arg" insensitive="true" />
+ <RegExpr attribute="False Special Arg" context="#stay" String="\b(?:&var_ref_re;-)?NOTFOUND\b" />
+ <RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9][0-9][0-9][0-9]\b" />
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Aliased Targets">
- <RegExpr attribute="Aliased Targets" context="#stay" String="\b&id_re;::&id_re;(::&id_re;)*\b" />
+ <RegExpr attribute="Aliased Targets" context="#stay" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*" />
+ </context>
+
+ <context attribute="Comment" lineEndContext="#pop" name="Match Comments">
+ <DetectSpaces />
+ <RegExpr attribute="Comment" context="#pop!Bracketed Comment" String="#\[(=*)\[" beginRegion="BracketedComment" />
+ <DetectChar attribute="Comment" context="#pop!Comment" char="#" />
+ <DetectIdentifier />
+ </context>
+
+ <context attribute="Comment" lineEndContext="#pop" name="Match Comments and Docs">
+ <RegExpr attribute="Region Marker" context="#pop!RST Documentation" String="^#\[(=*)\[\.rst:" column="0" beginRegion="RSTDocumentation" />
+ <IncludeRules context="Match Comments" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="Comment">
+ <DetectSpaces />
<LineContinue attribute="Comment" context="#pop" />
- <IncludeRules context="##Alerts" />
- <IncludeRules context="##Modelines" />
+ <IncludeRules context="##Comments" />
+ <DetectIdentifier />
</context>
<context attribute="Comment" lineEndContext="#stay" name="RST Documentation" dynamic="true">
- <RegExpr attribute="Region Marker" context="#pop" String="^#?\]%1\]" dynamic="true" column="0" />
+ <RegExpr attribute="Region Marker" context="#pop" String="^#?\]%1\]" dynamic="true" column="0" endRegion="RSTDocumentation" />
<IncludeRules context="##reStructuredText" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="Bracketed Comment" dynamic="true">
- <RegExpr attribute="Comment" context="#pop" String=".*\]%1\]" dynamic="true" />
- <IncludeRules context="##Alerts" />
- <IncludeRules context="##Modelines" />
+ <LineContinue attribute="Comment" context="#stay" />
+ <DetectSpaces />
+ <StringDetect attribute="Comment" context="#pop" String="]%1]" dynamic="true" endRegion="BracketedComment" />
+ <IncludeRules context="##Comments" />
</context>
<context attribute="Strings" lineEndContext="#stay" name="String">
+ <DetectSpaces />
+ <DetectIdentifier />
<RegExpr attribute="Strings" context="#pop" String="&quot;(?=[ );]|$)" />
- <RegExpr attribute="Escapes" context="#stay" String="\\[&quot;$nrt\\]" />
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="&quot;" />
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="$" />
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="n" />
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="r" />
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="t" />
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="\" />
<IncludeRules context="Detect Variable Substitutions" />
<IncludeRules context="Detect Generator Expressions" />
</context>
<context attribute="Strings" lineEndContext="#stay" name="Bracketed String" dynamic="true">
- <RegExpr attribute="Strings" context="#pop" String="\]%1\]" dynamic="true" />
+ <StringDetect attribute="Strings" context="#pop" String="]%1]" dynamic="true" endRegion="BracketedString" />
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Generator Expressions">
@@ -281,43 +434,67 @@
<DetectChar attribute="Comment" context="Comment" char="#" />
<DetectChar attribute="Generator Expression" context="#pop" char="&gt;" />
<keyword attribute="Generator Expression Keyword" context="#stay" String="generator-expressions" insensitive="false" />
+ <!--[- for expr in complex_generator_expressions ]-->
+ <WordDetect String="<!--{expr.name}-->" attribute="Generator Expression Keyword" context="genex_<!--{expr.name}-->_ctx" />
+ <!--[- endfor ]-->
<IncludeRules context="Detect Aliased Targets" />
<IncludeRules context="Detect Variable Substitutions" />
+ <DetectIdentifier />
</context>
+ <!--[- for expr in complex_generator_expressions ]-->
+ <context attribute="Generator Expression" lineEndContext="#stay" name="genex_<!--{expr.name}-->_ctx" fallthroughContext="#pop">
+ <DetectChar char=":" context="#stay" />
+ <DetectSpaces />
+ <keyword attribute="Generator Expression Sub-Command" context="#pop" String="genex-<!--{expr.name}-->-subcommands" insensitive="false" />
+ </context>
+ <!--[- endfor ]-->
+
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false" />
+ <itemData name="Comment" defStyleNum="dsComment" spellChecking="true" />
<itemData name="Command" defStyleNum="dsKeyword" spellChecking="false" />
+ <itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="false" />
+ <itemData name="CMake Provided Function/Macro" defStyleNum="dsFunction" bold="true" spellChecking="false" />
<itemData name="User Function/Macro" defStyleNum="dsFunction" spellChecking="false" />
<itemData name="Property" defStyleNum="dsOthers" spellChecking="false" />
+ <itemData name="Targets" defStyleNum="dsBaseN" spellChecking="false" />
<itemData name="Aliased Targets" defStyleNum="dsBaseN" spellChecking="false" />
<itemData name="Named Args" defStyleNum="dsOthers" spellChecking="false" />
<itemData name="Special Args" defStyleNum="dsOthers" spellChecking="false" />
<itemData name="True Special Arg" defStyleNum="dsOthers" color="#30a030" selColor="#30a030" spellChecking="false" />
<itemData name="False Special Arg" defStyleNum="dsOthers" color="#e05050" selColor="#e05050" spellChecking="false" />
+ <itemData name="Version Arg" defStyleNum="dsDataType" spellChecking="false" />
<itemData name="Strings" defStyleNum="dsString" spellChecking="true" />
- <itemData name="Escapes" defStyleNum="dsChar" spellChecking="false" />
+ <itemData name="Escapes" defStyleNum="dsSpecialChar" spellChecking="false" />
<itemData name="Builtin Variable" defStyleNum="dsDecVal" color="#c09050" selColor="#c09050" spellChecking="false" />
+ <itemData name="CMake Internal Variable" defStyleNum="dsVariable" spellChecking="false" />
+ <itemData name="Internal Name" defStyleNum="dsVariable" spellChecking="false" />
<itemData name="Variable Substitution" defStyleNum="dsDecVal" spellChecking="false" />
<itemData name="@Variable Substitution" defStyleNum="dsBaseN" spellChecking="false" />
- <itemData name="Internal Name" defStyleNum="dsDecVal" color="#303030" selColor="#303030" spellChecking="false" />
+ <itemData name="Cache Variable Substitution" defStyleNum="dsFloat" spellChecking="false" />
<itemData name="Environment Variable Substitution" defStyleNum="dsFloat" spellChecking="false" />
+ <itemData name="Standard Environment Variable" defStyleNum="dsFloat" spellChecking="false" />
<itemData name="Generator Expression Keyword" defStyleNum="dsKeyword" color="#b84040" selColor="#b84040" spellChecking="false" />
+ <itemData name="Generator Expression Sub-Command" defStyleNum="dsKeyword" color="#c05050" selColor="#c05050" spellChecking="false" />
<itemData name="Generator Expression" defStyleNum="dsOthers" color="#b86050" selColor="#b86050" spellChecking="false" />
- <itemData name="Comment" defStyleNum="dsComment" spellChecking="true" />
+ <itemData name="Standard Module" defStyleNum="dsImport" spellChecking="false" />
+ <itemData name="Deprecated Module" defStyleNum="dsImport" spellChecking="false" />
<itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false" />
+ <itemData name="Error" defStyleNum="dsError" spellChecking="false" />
</itemDatas>
</highlighting>
<general>
<comments>
- <comment name="singleLine" start="#" />
+ <comment name="singleLine" start="#" position="afterwhitespace" />
+ <comment name="multiLine" start="#[[" end="]]" region="BracketedComment" />
</comments>
- <keywords casesensitive="1" />
+ <keywords casesensitive="1" weakDeliminator="." />
</general>
</language>
-<!-- kate: indent-width 2; tab-width 2; -->
+<!-- kate: replace-tabs on; indent-width 2; tab-width 2; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/cmake.yaml b/src/libs/3rdparty/syntax-highlighting/data/generators/cmake.yaml
index 1174c35215..e247237dda 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/generators/cmake.yaml
+++ b/src/libs/3rdparty/syntax-highlighting/data/generators/cmake.yaml
@@ -1,3 +1,5 @@
+version: 50
+
global-properties:
- ALLOW_DUPLICATE_CUSTOM_TARGETS
- AUTOGEN_SOURCE_GROUP
@@ -6,7 +8,9 @@ global-properties:
- AUTOMOC_TARGETS_FOLDER
- AUTORCC_SOURCE_GROUP
- CMAKE_C_KNOWN_FEATURES
+ - CMAKE_CUDA_KNOWN_FEATURES # Since 3.17
- CMAKE_CXX_KNOWN_FEATURES
+ - CMAKE_ROLE # Since 3.14
- DEBUG_CONFIGURATIONS
- DISABLED_FEATURES
- ENABLED_FEATURES
@@ -42,6 +46,7 @@ global-properties:
- FeatureSummary_<TYPE>_DESCRIPTION
directory-properties:
+ - ADDITIONAL_CLEAN_FILES # Since 3.15
- ADDITIONAL_MAKE_CLEAN_FILES
- BINARY_DIR
- BUILDSYSTEM_TARGETS
@@ -53,6 +58,7 @@ directory-properties:
- DEFINITIONS
- EXCLUDE_FROM_ALL
- IMPLICIT_DEPENDS_INCLUDE_TRANSFORM
+ - IMPORTED_TARGETS # Since 3.21
- INCLUDE_DIRECTORIES
- INCLUDE_REGULAR_EXPRESSION
- INTERPROCEDURAL_OPTIMIZATION_<CONFIG>
@@ -68,6 +74,7 @@ directory-properties:
- RULE_LAUNCH_LINK
- SOURCE_DIR
- SUBDIRECTORIES
+ - SYSTEM # Since 3.25
- TESTS # Since 3.12
- TEST_INCLUDE_FILE
- TEST_INCLUDE_FILES # Since 3.10
@@ -78,6 +85,8 @@ directory-properties:
# NOTE Copy-n-pasting this list from official docs may contain a redudant item `Example`! Check it!
target-properties:
+ - ADDITIONAL_CLEAN_FILES # Since 3.15
+ - AIX_EXPORT_ALL_SYMBOLS # Since 3.17
- ALIASED_TARGET
- ANDROID_ANT_ADDITIONAL_OPTIONS
- ANDROID_API
@@ -101,17 +110,26 @@ target-properties:
- ARCHIVE_OUTPUT_NAME_<CONFIG>
- ARCHIVE_OUTPUT_NAME
- AUTOGEN_BUILD_DIR
+ - AUTOGEN_ORIGIN_DEPENDS # Since 3.14
- AUTOGEN_TARGET_DEPENDS
+ - AUTOGEN_USE_SYSTEM_INCLUDE # Since 3.27
+ - AUTOMOC_COMPILER_PREDEFINES # Since 3.10
- AUTOMOC_DEPEND_FILTERS
+ - AUTOMOC_EXECUTABLE # Since 3.14
+ - AUTOMOC_MACRO_NAMES
- AUTOMOC_MOC_OPTIONS
+ - AUTOMOC_PATH_PREFIX # Since 3.16
- AUTOMOC
- AUTOUIC
+ - AUTOUIC_EXECUTABLE # Since 3.14
- AUTOUIC_OPTIONS
- AUTOUIC_SEARCH_PATHS
- AUTORCC
+ - AUTORCC_EXECUTABLE # Since 3.14
- AUTORCC_OPTIONS
- BINARY_DIR
- BUILD_RPATH
+ - BUILD_RPATH_USE_ORIGIN # Since 3.14
- BUILD_WITH_INSTALL_NAME_DIR
- BUILD_WITH_INSTALL_RPATH
- BUNDLE_EXTENSION
@@ -119,7 +137,7 @@ target-properties:
- C_EXTENSIONS
- C_STANDARD
- C_STANDARD_REQUIRED
- - COMMON_LANGUAGE_RUNTIME # Sine 3.12
+ - COMMON_LANGUAGE_RUNTIME # Since 3.12
- COMPATIBLE_INTERFACE_BOOL
- COMPATIBLE_INTERFACE_NUMBER_MAX
- COMPATIBLE_INTERFACE_NUMBER_MIN
@@ -132,38 +150,68 @@ target-properties:
- COMPILE_PDB_NAME_<CONFIG>
- COMPILE_PDB_OUTPUT_DIRECTORY
- COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG>
+ - COMPILE_WARNING_AS_ERROR # Since 3.24
- <CONFIG>_OUTPUT_NAME
- <CONFIG>_POSTFIX
- CROSSCOMPILING_EMULATOR
+ - CUDA_ARCHITECTURES # Since 3.18
+ - CUDA_CUBIN_COMPILATION # Since 3.27
+ - CUDA_EXTENSIONS
+ - CUDA_FATBIN_COMPILATION # Since 3.27
+ - CUDA_OPTIX_COMPILATION # Since 3.27
- CUDA_PTX_COMPILATION
- CUDA_SEPARABLE_COMPILATION
- CUDA_RESOLVE_DEVICE_SYMBOLS
- - CUDA_EXTENSIONS
+ - CUDA_RUNTIME_LIBRARY # Since 3.17
- CUDA_STANDARD
- CUDA_STANDARD_REQUIRED
- CXX_EXTENSIONS
+ - CXX_MODULE_DIRS # Since 3.28
+ - CXX_MODULE_DIRS_<NAME> # Since 3.28
+ - CXX_MODULE_SET # Since 3.28
+ - CXX_MODULE_SET_<NAME> # Since 3.28
+ - CXX_MODULE_SETS # Since 3.28
+ - CXX_SCAN_FOR_MODULES # Since 3.28
- CXX_STANDARD
- CXX_STANDARD_REQUIRED
# - DEBUG_POSTFIX # NOTE: Handled by `<CONFIG>_POSTFIX`
- DEFINE_SYMBOL
- DEPLOYMENT_ADDITIONAL_FILES # Since 3.13
- DEPLOYMENT_REMOTE_DIRECTORY
+ - DEPRECATION # Since 3.17
+ - DISABLE_PRECOMPILE_HEADERS # Since 3.16
+ - DLL_NAME_WITH_SOVERSION # Since 3.27
+ - DOTNET_SDK # Since 3.23
+ - DOTNET_TARGET_FRAMEWORK # Since 3.17
- DOTNET_TARGET_FRAMEWORK_VERSION # Since 3.12
- EchoString
- ENABLE_EXPORTS
- EXCLUDE_FROM_ALL
- EXCLUDE_FROM_DEFAULT_BUILD_<CONFIG>
- EXCLUDE_FROM_DEFAULT_BUILD
+ - EXPORT_COMPILE_COMMANDS # Since 3.20
- EXPORT_NAME
+ - EXPORT_NO_SYSTEM # Since 3.25
- EXPORT_PROPERTIES # Since 3.12
- FOLDER
- Fortran_FORMAT
- Fortran_MODULE_DIRECTORY
+ - Fortran_PREPROCESS # Since 3.18
- FRAMEWORK
+ - FRAMEWORK_MULTI_CONFIG_POSTFIX_<CONFIG> # Since 3.18
- FRAMEWORK_VERSION
- GENERATOR_FILE_NAME
- GNUtoMS
- HAS_CXX
+ - HEADER_DIRS # Since 3.23
+ - HEADER_DIRS_<NAME> # Since 3.23
+ - HEADER_SET # Since 3.23
+ - HEADER_SET_<NAME> # Since 3.23
+ - HEADER_SETS # Since 3.23
+ - HIP_ARCHITECTURES # Since 3.21
+ - HIP_EXTENSIONS # Since 3.21
+ - HIP_STANDARD # Since 3.21
+ - HIP_STANDARD_REQUIRED # Since 3.21
- IMPLICIT_DEPENDS_INCLUDE_TRANSFORM
- IMPORTED_COMMON_LANGUAGE_RUNTIME # Since 3.12
- IMPORTED_CONFIGURATIONS
@@ -184,6 +232,7 @@ target-properties:
- IMPORTED_LOCATION
- IMPORTED_NO_SONAME_<CONFIG>
- IMPORTED_NO_SONAME
+ - IMPORTED_NO_SYSTEM # Since 3.23
- IMPORTED_OBJECTS_<CONFIG>
- IMPORTED_OBJECTS
- IMPORTED
@@ -193,31 +242,44 @@ target-properties:
- IMPORT_SUFFIX
- INCLUDE_DIRECTORIES
- INSTALL_NAME_DIR
+ - INSTALL_REMOVE_ENVIRONMENT_RPATH # Since 3.16
- INSTALL_RPATH
- INSTALL_RPATH_USE_LINK_PATH
+ - INTERFACE_AUTOMOC_MACRO_NAMES # Since 3.27
- INTERFACE_AUTOUIC_OPTIONS
- INTERFACE_COMPILE_DEFINITIONS
- INTERFACE_COMPILE_FEATURES
- INTERFACE_COMPILE_OPTIONS
+ - INTERFACE_CXX_MODULE_SETS # Since 3.28
+ - INTERFACE_HEADER_SETS # Since 3.23
+ - INTERFACE_HEADER_SETS_TO_VERIFY # Since 3.24
- INTERFACE_INCLUDE_DIRECTORIES
- INTERFACE_LINK_DEPENDS # Since 3.13
- INTERFACE_LINK_DIRECTORIES # Since 3.13
- INTERFACE_LINK_LIBRARIES
+ - INTERFACE_LINK_LIBRARIES_DIRECT # Since 3.24
+ - INTERFACE_LINK_LIBRARIES_DIRECT_EXCLUDE # Since 3.24
- INTERFACE_LINK_OPTIONS # Since 3.13
+ - INTERFACE_PRECOMPILE_HEADERS # Since 3.16
- INTERFACE_POSITION_INDEPENDENT_CODE
- INTERFACE_SOURCES
- INTERFACE_SYSTEM_INCLUDE_DIRECTORIES
- INTERPROCEDURAL_OPTIMIZATION_<CONFIG>
- INTERPROCEDURAL_OPTIMIZATION
- IOS_INSTALL_COMBINED
+ - ISPC_HEADER_DIRECTORY # Since 3.19
+ - ISPC_HEADER_SUFFIX # Since 3.19.2
+ - ISPC_INSTRUCTION_SETS # Since 3.19
- JOB_POOL_COMPILE
- JOB_POOL_LINK
- LABELS
- <LANG>_CLANG_TIDY
+ - <LANG>_CLANG_TIDY_EXPORT_FIXES_DIR # Since 3.26
- <LANG>_COMPILER_LAUNCHER
- <LANG>_CPPCHECK # Since 3.10
- <LANG>_CPPLINT
- <LANG>_INCLUDE_WHAT_YOU_USE
+ - <LANG>_LINKER_LAUNCHER # Since 3.21
- <LANG>_VISIBILITY_PRESET
- LIBRARY_OUTPUT_DIRECTORY_<CONFIG>
- LIBRARY_OUTPUT_DIRECTORY
@@ -234,30 +296,48 @@ target-properties:
- LINK_INTERFACE_MULTIPLICITY_<CONFIG>
- LINK_INTERFACE_MULTIPLICITY
- LINK_LIBRARIES
+ - LINK_LIBRARIES_ONLY_TARGETS # Since 3.23
- LINK_OPTIONS # Since 3.13
- LINK_SEARCH_END_STATIC
- LINK_SEARCH_START_STATIC
- LINK_WHAT_YOU_USE
- LOCATION_<CONFIG>
- LOCATION
+ - MACHO_COMPATIBILITY_VERSION # Since 3.17
+ - MACHO_CURRENT_VERSION # Since 3.17
- MACOSX_BUNDLE_INFO_PLIST
- MACOSX_BUNDLE
- MACOSX_FRAMEWORK_INFO_PLIST
- MACOSX_RPATH
- MANUALLY_ADDED_DEPENDENCIES
- MAP_IMPORTED_CONFIG_<CONFIG>
+ - MSVC_DEBUG_INFORMATION_FORMAT # Since 3.25
+ - MSVC_RUNTIME_LIBRARY # Since 3.15
- NAME
- NO_SONAME
- NO_SYSTEM_FROM_IMPORTED
+ - OBJC_EXTENSIONS # Since 3.16
+ - OBJC_STANDARD # Since 3.16
+ - OBJC_STANDARD_REQUIRED # Since 3.16
+ - OBJCXX_EXTENSIONS # Since 3.16
+ - OBJCXX_STANDARD # Since 3.16
+ - OBJCXX_STANDARD_REQUIRED # Since 3.16
+ - OPTIMIZE_DEPENDENCIES # Since 3.19
- OSX_ARCHITECTURES_<CONFIG>
- OSX_ARCHITECTURES
+ - OSX_CURRENT_VERSION # Since 3.17
+ - OSX_COMPATIBILITY_VERSION # Since 3.17
- OUTPUT_NAME_<CONFIG>
- OUTPUT_NAME
+ - PCH_WARN_INVALID # Since 3.18
+ - PCH_INSTANTIATE_TEMPLATES # Since 3.19
- PDB_NAME_<CONFIG>
- PDB_NAME
- PDB_OUTPUT_DIRECTORY_<CONFIG>
- PDB_OUTPUT_DIRECTORY
- POSITION_INDEPENDENT_CODE
+ - PRECOMPILE_HEADERS # Since 3.16
+ - PRECOMPILE_HEADERS_REUSE_FROM # Since 3.16
- PREFIX
- PRIVATE_HEADER
- PROJECT_LABEL
@@ -278,7 +358,18 @@ target-properties:
- STATIC_LIBRARY_FLAGS
- STATIC_LIBRARY_OPTIONS # Since 3.13
- SUFFIX
+ - Swift_DEPENDENCIES_FILE # Since 3.15
+ - Swift_MODULE_DIRECTORY # Since 3.15
+ - Swift_MODULE_NAME # Since 3.15
+ - SYSTEM # Since 3.25
- TYPE
+ - UNITY_BUILD # Since 3.16
+ - UNITY_BUILD_BATCH_SIZE # Since 3.16
+ - UNITY_BUILD_CODE_AFTER_INCLUDE # Since 3.16
+ - UNITY_BUILD_CODE_BEFORE_INCLUDE # Since 3.16
+ - UNITY_BUILD_MODE # Since 3.18
+ - UNITY_BUILD_UNIQUE_ID # Since 3.20
+ - VERIFY_INTERFACE_HEADER_SETS # Since 3.24
- VERSION
- VISIBILITY_INLINES_HIDDEN
- VS_CONFIGURATION_TYPE
@@ -291,48 +382,75 @@ target-properties:
- VS_DOTNET_REFERENCEPROP_<refname>_TAG_<tagname> # Since 3.10
- VS_DOTNET_REFERENCES
- VS_DOTNET_REFERENCES_COPY_LOCAL
+ - VS_DOTNET_STARTUP_OBJECT # Since 3.24
- VS_DOTNET_TARGET_FRAMEWORK_VERSION
+ - VS_DOTNET_DOCUMENTATION_FILE # Since 3.17
+ - VS_DPI_AWARE # Since 3.16
- VS_GLOBAL_KEYWORD
- VS_GLOBAL_PROJECT_TYPES
- VS_GLOBAL_ROOTNAMESPACE
- VS_GLOBAL_<variable>
- VS_IOT_EXTENSIONS_VERSION
- VS_IOT_STARTUP_TASK
+ - VS_JUST_MY_CODE_DEBUGGING # Since 3.15
- VS_KEYWORD
- VS_MOBILE_EXTENSIONS_VERSION
+ - VS_NO_COMPILE_BATCHING
+ - VS_NO_SOLUTION_DEPLOY # Since 3.15
+ - VS_PACKAGE_REFERENCES # Since 3.15
+ - VS_PLATFORM_TOOLSET # Since 3.18
+ - VS_PROJECT_IMPORT # Since 3.15
- VS_SCC_AUXPATH
- VS_SCC_LOCALPATH
- VS_SCC_PROJECTNAME
- VS_SCC_PROVIDER
- VS_SDK_REFERENCES
+ - VS_SOLUTION_DEPLOY # Since 3.18
+ - VS_SOURCE_SETTINGS_<tool> # Since 3.18
- VS_USER_PROPS
- VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION
- VS_WINRT_COMPONENT
- VS_WINRT_EXTENSIONS
- VS_WINRT_REFERENCES
+ - WATCOM_RUNTIME_LIBRARY # Since 3.24
- WIN32_EXECUTABLE
- WINDOWS_EXPORT_ALL_SYMBOLS
- XCODE_ATTRIBUTE_<an-attribute>
+ - XCODE_EMBED_<type>_CODE_SIGN_ON_COPY # Since 3.20
+ - XCODE_EMBED_<type>_PATH # Since 3.20
+ - XCODE_EMBED_<type>_REMOVE_HEADERS_ON_COPY # Since 3.20
+ - XCODE_EMBED_<type> # Since 3.20
- XCODE_EXPLICIT_FILE_TYPE
+ - XCODE_GENERATE_SCHEME # Since 3.15
+ - XCODE_LINK_BUILD_PHASE_MODE # Since 3.19
- XCODE_PRODUCT_TYPE
- XCODE_SCHEME_ADDRESS_SANITIZER # Since 3.13
- XCODE_SCHEME_ADDRESS_SANITIZER_USE_AFTER_RETURN # Since 3.13
+ - XCODE_SCHEME_ARGUMENTS # Since 3.13
+ - XCODE_SCHEME_DEBUG_AS_ROOT # Since 3.15
+ - XCODE_SCHEME_DEBUG_DOCUMENT_VERSIONING # Since 3.16
+ - XCODE_SCHEME_DISABLE_MAIN_THREAD_CHECKER # Since 3.13
+ - XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS # Since 3.13
+ - XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE # Since 3.13
+ - XCODE_SCHEME_ENABLE_GPU_API_VALIDATION # Since 3.25
+ - XCODE_SCHEME_ENABLE_GPU_FRAME_CAPTURE_MODE # Since 3.23
+ - XCODE_SCHEME_ENABLE_GPU_SHADER_VALIDATION # Since 3.25
+ - XCODE_SCHEME_EXECUTABLE # Since 3.13
+ - XCODE_SCHEME_ENVIRONMENT # Since 3.13
+ - XCODE_SCHEME_GUARD_MALLOC # Since 3.13
+ - XCODE_SCHEME_LAUNCH_CONFIGURATION # Since 3.25
+ - XCODE_SCHEME_LAUNCH_MODE # Since 3.25
+ - XCODE_SCHEME_MAIN_THREAD_CHECKER_STOP # Since 3.13
+ - XCODE_SCHEME_MALLOC_GUARD_EDGES # Since 3.13
+ - XCODE_SCHEME_MALLOC_SCRIBBLE # Since 3.13
+ - XCODE_SCHEME_MALLOC_STACK # Since 3.13
- XCODE_SCHEME_THREAD_SANITIZER # Since 3.13
- XCODE_SCHEME_THREAD_SANITIZER_STOP # Since 3.13
- XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER # Since 3.13
- XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER_STOP # Since 3.13
- - XCODE_SCHEME_DISABLE_MAIN_THREAD_CHECKER # Since 3.13
- - XCODE_SCHEME_MAIN_THREAD_CHECKER_STOP # Since 3.13
- - XCODE_SCHEME_MALLOC_SCRIBBLE # Since 3.13
- - XCODE_SCHEME_MALLOC_GUARD_EDGES # Since 3.13
- - XCODE_SCHEME_GUARD_MALLOC # Since 3.13
+ - XCODE_SCHEME_WORKING_DIRECTORY # Since 3.1?
- XCODE_SCHEME_ZOMBIE_OBJECTS # Since 3.13
- - XCODE_SCHEME_MALLOC_STACK # Since 3.13
- - XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE # Since 3.13
- - XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS # Since 3.13
- - XCODE_SCHEME_EXECUTABLE # Since 3.13
- - XCODE_SCHEME_ARGUMENTS # Since 3.13
- - XCODE_SCHEME_ENVIRONMENT # Since 3.13
+ - XCODE_XCCONFIG # Since 3.24
- XCTEST
test-properties:
@@ -342,21 +460,27 @@ test-properties:
- DEPENDS
- DISABLED
- ENVIRONMENT
+ - ENVIRONMENT_MODIFICATION # Since 3.22
- FAIL_REGULAR_EXPRESSION
- FIXTURES_CLEANUP
- FIXTURES_REQUIRED
- FIXTURES_SETUP
+ - GENERATED_RESOURCE_SPEC_FILE # Since 3.28
- LABELS
- MEASUREMENT
- PASS_REGULAR_EXPRESSION
- PROCESSOR_AFFINITY # Since 3.12
- PROCESSORS
- REQUIRED_FILES
+ - RESOURCE_GROUPS # Since 3.16
- RESOURCE_LOCK
- RUN_SERIAL
+ - SKIP_REGULAR_EXPRESSION # Since 3.16
- SKIP_RETURN_CODE
- TIMEOUT
- TIMEOUT_AFTER_MATCH
+ - TIMEOUT_SIGNAL_GRACE_PERIOD # Since 3.27
+ - TIMEOUT_SIGNAL_NAME # Since 3.27
- WILL_FAIL
- WORKING_DIRECTORY
@@ -367,8 +491,10 @@ source-properties:
- COMPILE_DEFINITIONS
- COMPILE_FLAGS
- COMPILE_OPTIONS # Since 3.11
+ - CXX_SCAN_FOR_MODULES # Since 3.28
- EXTERNAL_OBJECT
- Fortran_FORMAT
+ - Fortran_PREPROCESS # Since 3.18
- GENERATED
- HEADER_FILE_ONLY
- INCLUDE_DIRECTORIES # Since 3.11
@@ -383,6 +509,11 @@ source-properties:
- SKIP_AUTOMOC
- SKIP_AUTORCC
- SKIP_AUTOUIC
+ - SKIP_LINTING # Since 3.27
+ - SKIP_PRECOMPILE_HEADERS # Since 3.16
+ - SKIP_UNITY_BUILD_INCLUSION # Since 3.16
+ - Swift_DEPENDENCIES_FILE # Since 3.15
+ - Swift_DIAGNOSTICS_FILE # Since 3.15
- SYMBOLIC
- VS_COPY_TO_OUT_DIR
- VS_CSHARP_<tagname>
@@ -390,6 +521,7 @@ source-properties:
- VS_DEPLOYMENT_LOCATION
- VS_INCLUDE_IN_VSIX
- VS_RESOURCE_GENERATOR
+ - VS_SETTINGS # Since 3.18
- VS_SHADER_DISABLE_OPTIMIZATIONS # Since 3.11
- VS_SHADER_ENABLE_DEBUG # Since 3.11
- VS_SHADER_ENTRYPOINT
@@ -423,69 +555,193 @@ install-properties:
- CPACK_WIX_ACL
generator-expressions:
+ # Conditional Expressions
+ - IF
- 0
- 1
- - AND
- - ANGLE-R
- BOOL
- - BUILD_INTERFACE
- - COMMA
- - COMPILE_FEATURES
- - COMPILE_LANGUAGE
- - CONFIG
- - CXX_COMPILER_ID
- - CXX_COMPILER_VERSION
- - C_COMPILER_ID
- - C_COMPILER_VERSION
+ # Logical Operators
+ - AND
+ - OR
+ - NOT
+ # String Comparisons
+ - STREQUAL
- EQUAL
- - GENEX_EVAL # Since 3.12
- - IF
- - INSTALL_INTERFACE
- - INSTALL_PREFIX
- - IN_LIST # Since 3.12
- - JOIN
- - LINK_ONLY
+ # Version Comparisons
+ - VERSION_LESS
+ - VERSION_GREATER
+ - VERSION_EQUAL
+ - VERSION_LESS_EQUAL
+ - VERSION_GREATER_EQUAL
+ # String Transformations
- LOWER_CASE
+ - UPPER_CASE
- MAKE_C_IDENTIFIER
- - NOT
- - OR
- - PLATFORM_ID
- - SEMICOLON
+ # List Expressions
+ # * List Comparisons
+ - IN_LIST # Since 3.12
+ - name: LIST # Since 3.27
+ subcommands:
+ # * List Queries
+ - LENGTH
+ - GET
+ - SUBLIST
+ - FIND
+ # * List Transformations
+ - JOIN
+ - APPEND
+ - PREPEND
+ - INSERT
+ - POP_BACK
+ - POP_FRONT
+ - REMOVE_ITEM
+ - REMOVE_AT
+ - REMOVE_DUPLICATES
+ - FILTER
+ - TRANSFORM
+ - FRANSFORM
+ # * List Ordering
+ - REVERSE
+ - SORT
+ - JOIN
+ - REMOVE_DUPLICATES # Since 3.15
+ - FILTER # Since 3.15
+ # Path Expressions
+ # * Path Comparisons
+ - PATH_EQUAL # Since 3.24
+ - name: PATH # Since 3.24
+ subcommands:
+ # * Path Queries
+ - HAS_ROOT_NAME
+ - HAS_ROOT_DIRECTORY
+ - HAS_ROOT_PATH
+ - HAS_FILENAME
+ - HAS_EXTENSION
+ - HAS_STEM
+ - HAS_RELATIVE_PART
+ - HAS_PARENT_PATH
+ - IS_ABSOLUTE
+ - IS_RELATIVE
+ - IS_PREFIX
+ # * Path Decomposition
+ - GET_ROOT_NAME
+ - GET_ROOT_DIRECTORY
+ - GET_ROOT_PATH
+ - GET_FILENAME
+ - GET_EXTENSION
+ - GET_STEM
+ - GET_RELATIVE_PART
+ - GET_PARENT_PATH
+ # * Path Transformations
+ - CMAKE_PATH
+ - APPEND
+ - REMOVE_FILENAME
+ - REPLACE_FILENAME
+ - REMOVE_EXTENSION
+ - REPLACE_EXTENSION
+ - NORMAL_PATH
+ - RELATIVE_PATH
+ - ABSOLUTE_PATH
+ # Shell Paths
- SHELL_PATH
- - STREQUAL
- - TARGET_BUNDLE_CONTENT_DIR
- - TARGET_BUNDLE_DIR
+ # Configuration Expressions
+ - CONFIG
+ - OUTPUT_CONFIG # Since 3.20
+ - COMMAND_CONFIG # Since 3.20
+ # Toolchain And Language Expressions
+ # * Platform
+ - PLATFORM_ID
+ # * Compiler Version
+ - C_COMPILER_VERSION
+ - CXX_COMPILER_VERSION
+ - CUDA_COMPILER_VERSION # Since 3.15
+ - OBJC_COMPILER_VERSION # Since 3.16
+ - OBJCXX_COMPILER_VERSION # Since 3.16
+ - Fortran_COMPILER_VERSION
+ - HIP_COMPILER_VERSION # Since 3.21
+ - ISPC_COMPILER_VERSION # Since 3.19
+ # * Compiler Language And ID
+ - C_COMPILER_ID
+ - CXX_COMPILER_ID
+ - CUDA_COMPILER_ID # Since 3.15
+ - OBJC_COMPILER_ID # Since 3.16
+ - OBJCXX_COMPILER_ID # Since 3.16
+ - Fortran_COMPILER_ID
+ - HIP_COMPILER_ID # Since 3.21
+ - ISPC_COMPILER_ID # Since 3.19
+ - COMPILE_LANGUAGE # Since 3.3
+ - COMPILE_LANG_AND_ID # Since 3.15
+ # * Compile Features
+ - COMPILE_FEATURES
+ # * Compile Context
+ - COMPILE_ONLY # Since 3.27
+ # * Linker Language And ID
+ - LINK_LANGUAGE # Since 3.18
+ - LINK_LANG_AND_ID # Since 3.18
+ # * Link Features
+ - LINK_LIBRARY # Since 3.24
+ - LINK_GROUP # Since 3.24
+ # * Link Context
+ - LINK_ONLY
+ - DEVICE_LINK # Since 3.18
+ - HOST_LINK # Since 3.18
+ # Target-Dependent Expressions
- TARGET_EXISTS # Since 3.12
+ - TARGET_NAME_IF_EXISTS # Since 3.12
+ - TARGET_NAME
+ - TARGET_PROPERTY
+ - TARGET_OBJECTS
+ - TARGET_POLICY
- TARGET_FILE
- - TARGET_FILE_DIR
+ - TARGET_FILE_BASE_NAME # Since 3.15
+ - TARGET_FILE_PREFIX # Since 3.15
+ - TARGET_FILE_SUFFIX # Since 3.15
- TARGET_FILE_NAME
- - TARGET_GENEX_EVAL # Since 3.12
+ - TARGET_FILE_DIR
+ - TARGET_IMPORT_FILE # Since 3.27
+ - TARGET_IMPORT_FILE_BASE_NAME # Since 3.27
+ - TARGET_IMPORT_FILE_PREFIX # Since 3.27
+ - TARGET_IMPORT_FILE_SUFFIX # Since 3.27
+ - TARGET_IMPORT_FILE_NAME # Since 3.27
+ - TARGET_IMPORT_FILE_DIR # Since 3.27
- TARGET_LINKER_FILE
- - TARGET_LINKER_FILE_DIR
+ - TARGET_LINKER_FILE_BASE_NAME # Since 3.15
+ - TARGET_LINKER_FILE_PREFIX # Since 3.15
+ - TARGET_LINKER_FILE_SUFFIX # Since 3.15
- TARGET_LINKER_FILE_NAME
- - TARGET_NAME
- - TARGET_NAME_IF_EXISTS # Since 3.12
- - TARGET_OBJECTS
- - TARGET_PDB_FILE
- - TARGET_PDB_FILE_DIR
- - TARGET_PDB_FILE_NAME
- - TARGET_POLICY
- - TARGET_PROPERTY
+ - TARGET_LINKER_FILE_DIR
- TARGET_SONAME_FILE
- - TARGET_SONAME_FILE_DIR
- TARGET_SONAME_FILE_NAME
- - UPPER_CASE
- - VERSION_EQUAL
- - VERSION_GREATER
- - VERSION_GREATER_EQUAL
- - VERSION_LESS
- - VERSION_LESS_EQUAL
+ - TARGET_SONAME_FILE_DIR
+ - TARGET_PDB_FILE
+ - TARGET_PDB_FILE_BASE_NAME # Since 3.15
+ - TARGET_PDB_FILE_NAME
+ - TARGET_PDB_FILE_DIR
+ - TARGET_BUNDLE_DIR_NAME # Since 3.24
+ - TARGET_BUNDLE_DIR
+ - TARGET_BUNDLE_CONTENT_DIR
+ - TARGET_RUNTIME_DLLS # Since 3.21
+ - TARGET_RUNTIME_DLL_DIRS # Since 3.27
+ # Export And Install Expressions
+ - INSTALL_INTERFACE
+ - BUILD_INTERFACE
+ - BUILD_LOCAL_INTERFACE # Since 3.26
+ - INSTALL_PREFIX
+ # Multi-level Expression Evaluation
+ - GENEX_EVAL # Since 3.12
+ - TARGET_GENEX_EVAL # Since 3.12
+ # Escaped Characters
+ - ANGLE-R
+ - COMMA
+ - SEMICOLON
+ # Deprecated Expressions
+ # - CONFIGURATION
variables:
- # Variables that Provide Information
+ # Variables that Provide Information
- CMAKE_AR
- CMAKE_ARGC
- - CMAKE_ARGV0
+ - CMAKE_ARGV<n>
- CMAKE_BINARY_DIR
- CMAKE_BUILD_TOOL
- CMAKE_CACHEFILE_DIR
@@ -498,31 +754,40 @@ variables:
- CMAKE_CROSSCOMPILING_EMULATOR
- CMAKE_CTEST_COMMAND
- CMAKE_CURRENT_BINARY_DIR
+ - CMAKE_CURRENT_FUNCTION # Since 3.17
+ - CMAKE_CURRENT_FUNCTION_LIST_DIR # Since 3.17
+ - CMAKE_CURRENT_FUNCTION_LIST_FILE # Since 3.17
+ - CMAKE_CURRENT_FUNCTION_LIST_LINE # Since 3.17
- CMAKE_CURRENT_LIST_DIR
- CMAKE_CURRENT_LIST_FILE
- CMAKE_CURRENT_LIST_LINE
- CMAKE_CURRENT_SOURCE_DIR
- CMAKE_DIRECTORY_LABELS # Since 3.10
- CMAKE_DL_LIBS
+ - CMAKE_DOTNET_SDK # Since 3.23
+ - CMAKE_DOTNET_TARGET_FRAMEWORK # Since 3.17
- CMAKE_DOTNET_TARGET_FRAMEWORK_VERSION # Since 3.12
- CMAKE_EDIT_COMMAND
- CMAKE_EXECUTABLE_SUFFIX
- CMAKE_EXTRA_GENERATOR
- CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES
+ - CMAKE_FIND_DEBUG_MODE # Since 3.17
- CMAKE_FIND_PACKAGE_NAME
+ - CMAKE_FIND_PACKAGE_REDIRECTS_DIR # Since 3.24
- CMAKE_FIND_PACKAGE_SORT_DIRECTION
- CMAKE_FIND_PACKAGE_SORT_ORDER
- CMAKE_GENERATOR
- CMAKE_GENERATOR_INSTANCE # Since 3.11
+ - CMAKE_GENERATOR_NO_COMPILER_ENV # "Professional CMake" §17.4
- CMAKE_GENERATOR_PLATFORM
- CMAKE_GENERATOR_TOOLSET
- - CMAKE_HOME_DIRECTORY
- CMAKE_IMPORT_LIBRARY_PREFIX
- CMAKE_IMPORT_LIBRARY_SUFFIX
- CMAKE_JOB_POOL_COMPILE
- CMAKE_JOB_POOL_LINK
- CMAKE_JOB_POOLS # Since 3.11
- CMAKE_<LANG>_COMPILER_AR
+ - CMAKE_<LANG>_COMPILER_FRONTEND_VARIANT # Since 3.14
- CMAKE_<LANG>_COMPILER_RANLIB
- CMAKE_LINK_LIBRARY_SUFFIX
- CMAKE_LINK_SEARCH_END_STATIC
@@ -531,6 +796,10 @@ variables:
- CMAKE_MAKE_PROGRAM
- CMAKE_MATCH_COUNT
- CMAKE_MATCH_<n>
+ - CMAKE_MESSAGE_CONTEXT # Since 3.17
+ - CMAKE_MESSAGE_CONTEXT_SHOW # Since 3.17
+ - CMAKE_MESSAGE_INDENT # Since 3.16
+ - CMAKE_MESSAGE_LOG_LEVEL # Since 3.17
- CMAKE_MINIMUM_REQUIRED_VERSION
- CMAKE_MINOR_VERSION
- CMAKE_NETRC # Since 3.11
@@ -558,22 +827,35 @@ variables:
- CMAKE_SOURCE_DIR
- CMAKE_STATIC_LIBRARY_PREFIX
- CMAKE_STATIC_LIBRARY_SUFFIX
+ - CMAKE_Swift_MODULE_DIRECTORY # Since 3.15
- CMAKE_TOOLCHAIN_FILE
- CMAKE_TWEAK_VERSION
- CMAKE_VERBOSE_MAKEFILE
- CMAKE_VERSION
- CMAKE_VS_DEVENV_COMMAND
- - CMAKE_VS_INTEL_Fortran_PROJECT_VERSION
- CMAKE_VS_MSBUILD_COMMAND
- CMAKE_VS_NsightTegra_VERSION
+ - CMAKE_VS_NUGET_PACKAGE_RESTORE # Since 3.23
- CMAKE_VS_PLATFORM_NAME
+ - CMAKE_VS_PLATFORM_NAME_DEFAULT # Since 3.14.3
- CMAKE_VS_PLATFORM_TOOLSET
- CMAKE_VS_PLATFORM_TOOLSET_CUDA
- - CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE
+ - CMAKE_VS_PLATFORM_TOOLSET_CUDA_CUSTOM_DIR # Since 3.16
+ - CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE # Since 3.8
+ - CMAKE_VS_PLATFORM_TOOLSET_VERSION # Since 3.12
+ - CMAKE_VS_TARGET_FRAMEWORK_IDENTIFIER # Since 3.22
+ - CMAKE_VS_TARGET_FRAMEWORK_TARGETS_VERSION # Since 3.22
+ - CMAKE_VS_TARGET_FRAMEWORK_VERSION # Since 3.22
+ - CMAKE_VS_VERSION_BUILD_NUMBER # Since 3.26
+ - CMAKE_VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION # Since 3.27
- CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION
- - CMAKE_XCODE_GENERATE_SCHEME
+ - CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION_MAXIMUM # Since 3.19
+ - CMAKE_XCODE_BUILD_SYSTEM # Since 3.19
- CMAKE_XCODE_PLATFORM_TOOLSET
- <PROJECT-NAME>_BINARY_DIR
+ - <PROJECT-NAME>_DESCRIPTION # Since 3.12
+ - <PROJECT-NAME>_IS_TOP_LEVEL # Since 3.21
+ - <PROJECT-NAME>_HOMEPAGE_URL # Since 3.12
- <PROJECT-NAME>_SOURCE_DIR
- <PROJECT-NAME>_VERSION
- <PROJECT-NAME>_VERSION_MAJOR
@@ -581,7 +863,8 @@ variables:
- <PROJECT-NAME>_VERSION_PATCH
- <PROJECT-NAME>_VERSION_TWEAK
- PROJECT_BINARY_DIR
- - PROJECT_DESCRIPTION
+ - PROJECT_DESCRIPTION # Since 3.9
+ - PROJECT_IS_TOP_LEVEL # Since 3.21
- PROJECT_HOMEPAGE_URL # Since 3.12
- PROJECT_NAME
- PROJECT_SOURCE_DIR
@@ -593,13 +876,16 @@ variables:
# Variables that Change Behavior
- BUILD_SHARED_LIBS
- CMAKE_ABSOLUTE_DESTINATION_FILES
+ - CMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY # Since 3.27
- CMAKE_APPBUNDLE_PATH
- CMAKE_AUTOMOC_RELAXED_MODE
- CMAKE_BACKWARDS_COMPATIBILITY
- CMAKE_BUILD_TYPE
+ - CMAKE_CLANG_VFS_OVERLAY # Since 3.19
- CMAKE_CODEBLOCKS_COMPILER_ID # Since 3.11
- CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES # Since 3.10
- CMAKE_CODELITE_USE_TARGETS
+ - CMAKE_COLOR_DIAGNOSTICS # Since 3.24
- CMAKE_COLOR_MAKEFILE
- CMAKE_CONFIGURATION_TYPES
- CMAKE_DEBUG_TARGET_PROPERTIES
@@ -608,10 +894,13 @@ variables:
- CMAKE_ECLIPSE_GENERATE_LINKED_RESOURCES
- CMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT
- CMAKE_ECLIPSE_MAKE_ARGUMENTS
+ - CMAKE_ECLIPSE_RESOURCE_ENCODING # Since 3.16
- CMAKE_ECLIPSE_VERSION
- CMAKE_ERROR_DEPRECATED
- CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION
+ - CMAKE_EXECUTE_PROCESS_COMMAND_ECHO # Since 3.15
- CMAKE_EXPORT_COMPILE_COMMANDS
+ - CMAKE_EXPORT_PACKAGE_REGISTRY # Since 3.15
- CMAKE_EXPORT_NO_PACKAGE_REGISTRY
- CMAKE_FIND_APPBUNDLE
- CMAKE_FIND_FRAMEWORK
@@ -619,16 +908,28 @@ variables:
- CMAKE_FIND_LIBRARY_PREFIXES
- CMAKE_FIND_LIBRARY_SUFFIXES
- CMAKE_FIND_NO_INSTALL_PREFIX
- - CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
+ - CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY # Deprecated since 3.16
- CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY
+ - CMAKE_FIND_PACKAGE_PREFER_CONFIG # Since 3.15
+ - CMAKE_FIND_PACKAGE_RESOLVE_SYMLINKS # Since 3.14
+ - CMAKE_FIND_PACKAGE_TARGETS_GLOBAL # Since 3.24
- CMAKE_FIND_PACKAGE_WARN_NO_MODULE
- CMAKE_FIND_ROOT_PATH
- CMAKE_FIND_ROOT_PATH_MODE_INCLUDE
- CMAKE_FIND_ROOT_PATH_MODE_LIBRARY
- CMAKE_FIND_ROOT_PATH_MODE_PACKAGE
- CMAKE_FIND_ROOT_PATH_MODE_PROGRAM
+ - CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH # Since 3.16
+ - CMAKE_FIND_USE_CMAKE_PATH # Since 3.16
+ - CMAKE_FIND_USE_CMAKE_SYSTEM_PATH # Since 3.16
+ - CMAKE_FIND_USE_INSTALL_PREFIX # Since 3.24
+ - CMAKE_FIND_USE_PACKAGE_ROOT_PATH # Since 3.16
+ - CMAKE_FIND_USE_PACKAGE_REGISTRY # Since 3.16
+ - CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH # Since 3.16
+ - CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY # Since 3.16
- CMAKE_FRAMEWORK_PATH
- CMAKE_IGNORE_PATH
+ - CMAKE_IGNORE_PREFIX_PATH # Since 3.23
- CMAKE_INCLUDE_DIRECTORIES_BEFORE
- CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE
- CMAKE_INCLUDE_PATH
@@ -639,14 +940,20 @@ variables:
- CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
- CMAKE_LIBRARY_PATH
- CMAKE_LINK_DIRECTORIES_BEFORE # Since 3.13
+ - CMAKE_LINK_LIBRARIES_ONLY_TARGETS # Since 3.23
+ - CMAKE_MAXIMUM_RECURSION_DEPTH # Since 3.14
- CMAKE_MFC_FLAG
- CMAKE_MODULE_PATH
- - CMAKE_NOT_USING_CONFIG_FLAGS
- CMAKE_POLICY_DEFAULT_CMP<NNNN>
- CMAKE_POLICY_WARNING_CMP<NNNN>
- CMAKE_PREFIX_PATH
- CMAKE_PROGRAM_PATH
+ - CMAKE_PROJECT_INCLUDE # Since 3.15
+ - CMAKE_PROJECT_INCLUDE_BEFORE # Since 3.15
- CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE
+ - CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE_BEFORE # Since 3.17
+ - CMAKE_PROJECT_TOP_LEVEL_INCLUDES # Since 3.24
+ - CMAKE_REQUIRE_FIND_PACKAGE_<PackageName> # Since 3.22
- CMAKE_SKIP_INSTALL_ALL_DEPENDENCY
- CMAKE_STAGING_PREFIX
- CMAKE_SUBLIME_TEXT_2_ENV_SETTINGS
@@ -658,6 +965,7 @@ variables:
- CMAKE_SYSTEM_APPBUNDLE_PATH
- CMAKE_SYSTEM_FRAMEWORK_PATH
- CMAKE_SYSTEM_IGNORE_PATH
+ - CMAKE_SYSTEM_IGNORE_PREFIX_PATH # Since 3.23
- CMAKE_SYSTEM_INCLUDE_PATH
- CMAKE_SYSTEM_LIBRARY_PATH
- CMAKE_SYSTEM_PREFIX_PATH
@@ -665,31 +973,44 @@ variables:
- CMAKE_USER_MAKE_RULES_OVERRIDE
- CMAKE_WARN_DEPRECATED
- CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION
+ - CMAKE_XCODE_GENERATE_SCHEME
- CMAKE_XCODE_GENERATE_TOP_LEVEL_PROJECT_ONLY # Since 3.13
+ - CMAKE_XCODE_LINK_BUILD_PHASE_MODE # Since 3.19
- CMAKE_XCODE_SCHEME_ADDRESS_SANITIZER # Since 3.13
- CMAKE_XCODE_SCHEME_ADDRESS_SANITIZER_USE_AFTER_RETURN # Since 3.13
+ - CMAKE_XCODE_SCHEME_WORKING_DIRECTORY # Since 3.17
+ - CMAKE_XCODE_SCHEME_DEBUG_DOCUMENT_VERSIONING # Since 3.16
+ - CMAKE_XCODE_SCHEME_DISABLE_MAIN_THREAD_CHECKER # Since 3.13
+ - CMAKE_XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE # Since 3.13
+ - CMAKE_XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS # Since 3.13
+ - CMAKE_XCODE_SCHEME_ENABLE_GPU_API_VALIDATION # Since 3.25
+ - CMAKE_XCODE_SCHEME_ENABLE_GPU_FRAME_CAPTURE_MODE # Since 3.23
+ - CMAKE_XCODE_SCHEME_ENABLE_GPU_SHADER_VALIDATION # Since 3.25
+ - CMAKE_XCODE_SCHEME_ENVIRONMENT # Since 3.17
+ - CMAKE_XCODE_SCHEME_GUARD_MALLOC # Since 3.13
+ - CMAKE_XCODE_SCHEME_LAUNCH_CONFIGURATION # Since 3.25
+ - CMAKE_XCODE_SCHEME_LAUNCH_MODE # Since 3.25
+ - CMAKE_XCODE_SCHEME_MAIN_THREAD_CHECKER_STOP # Since 3.13
+ - CMAKE_XCODE_SCHEME_MALLOC_GUARD_EDGES # Since 3.13
+ - CMAKE_XCODE_SCHEME_MALLOC_SCRIBBLE # Since 3.13
+ - CMAKE_XCODE_SCHEME_MALLOC_STACK # Since 3.13
- CMAKE_XCODE_SCHEME_THREAD_SANITIZER # Since 3.13
- CMAKE_XCODE_SCHEME_THREAD_SANITIZER_STOP # Since 3.13
- CMAKE_XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER # Since 3.13
- CMAKE_XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER_STOP # Since 3.13
- - CMAKE_XCODE_SCHEME_DISABLE_MAIN_THREAD_CHECKER # Since 3.13
- - CMAKE_XCODE_SCHEME_MAIN_THREAD_CHECKER_STOP # Since 3.13
- - CMAKE_XCODE_SCHEME_MALLOC_SCRIBBLE # Since 3.13
- - CMAKE_XCODE_SCHEME_MALLOC_GUARD_EDGES # Since 3.13
- - CMAKE_XCODE_SCHEME_GUARD_MALLOC # Since 3.13
- CMAKE_XCODE_SCHEME_ZOMBIE_OBJECTS # Since 3.13
- - CMAKE_XCODE_SCHEME_MALLOC_STACK # Since 3.13
- - CMAKE_XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE # Since 3.13
- - CMAKE_XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS # Since 3.13
- - CMAKE_SUPPRESS_DEVELOPER_WARNINGS # Undocumented yet (CMake <= 3.10)
- - CMAKE_SUPPRESS_DEVELOPER_ERRORS # Undocumented yet (CMake <= 3.10)
+ - CMAKE_XCODE_XCCONFIG # Since 3.24
# Variables that Describe the System
- ANDROID
- APPLE
- BORLAND
+ - BSD # Since 3.25
+ - CMAKE_ANDROID_NDK_VERSION # Since 3.20
- CMAKE_CL_64
- CMAKE_COMPILER_2005
- CMAKE_HOST_APPLE
+ - CMAKE_HOST_BSD # Since 3.25
+ - CMAKE_HOST_LINUX # Since 3.25
- CMAKE_HOST_SOLARIS
- CMAKE_HOST_SYSTEM
- CMAKE_HOST_SYSTEM_NAME
@@ -707,7 +1028,9 @@ variables:
- CYGWIN
# NOTE `ENV` not a variable in fact!
# - ENV
- - GHS-MULTI
+ - GHSMULTI
+ - IOS # Since 3.14
+ - LINUX # Since 3.25
- MINGW
- MSVC
- MSVC10
@@ -730,6 +1053,7 @@ variables:
- XCODE
- XCODE_VERSION
# Variables that Control the Build
+ - CMAKE_AIX_EXPORT_ALL_SYMBOLS # Since 3.17
- CMAKE_ANDROID_ANT_ADDITIONAL_OPTIONS
- CMAKE_ANDROID_API
- CMAKE_ANDROID_API_MIN
@@ -755,58 +1079,99 @@ variables:
- CMAKE_ANDROID_SKIP_ANT_STEP
- CMAKE_ANDROID_STANDALONE_TOOLCHAIN
- CMAKE_ANDROID_STL_TYPE
+ - CMAKE_APPLE_SILICON_PROCESSOR # Since 3.19.2
- CMAKE_ARCHIVE_OUTPUT_DIRECTORY
- CMAKE_ARCHIVE_OUTPUT_DIRECTORY_<CONFIG>
+ - CMAKE_AUTOGEN_ORIGIN_DEPENDS # Since 3.14
- CMAKE_AUTOGEN_PARALLEL
+ - CMAKE_AUTOGEN_USE_SYSTEM_INCLUDE # Since 3.27
- CMAKE_AUTOGEN_VERBOSE # Since 3.13
- CMAKE_AUTOMOC
- CMAKE_AUTOMOC_DEPEND_FILTERS
- CMAKE_AUTOMOC_MOC_OPTIONS
+ - CMAKE_AUTOMOC_PATH_PREFIX # Since 3.16
+ - CMAKE_AUTOMOC_EXECUTABLE # Since 3.27
- CMAKE_AUTORCC
- CMAKE_AUTORCC_OPTIONS
+ - CMAKE_AUTORCC_EXECUTABLE # Since 3.27
- CMAKE_AUTOUIC
- CMAKE_AUTOUIC_OPTIONS
- CMAKE_AUTOUIC_SEARCH_PATHS
+ - CMAKE_AUTOUIC_EXECUTABLE # Since 3.27
- CMAKE_BUILD_RPATH
+ - CMAKE_BUILD_RPATH_USE_ORIGIN # Since 3.14
- CMAKE_BUILD_WITH_INSTALL_NAME_DIR
- CMAKE_BUILD_WITH_INSTALL_RPATH
- CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY
- CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG>
+ - CMAKE_COMPILE_WARNING_AS_ERROR # Since 3.24
- CMAKE_<CONFIG>_POSTFIX
+ - CMAKE_CROSS_CONFIGS # Since 3.17
+ - CMAKE_CTEST_ARGUMENTS # Since 3.17
+ - CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS # Since 3.16
+ - CMAKE_CUDA_RUNTIME_LIBRARY # Since 3.17
- CMAKE_CUDA_SEPARABLE_COMPILATION # Since 3.11
+ - CMAKE_CXX_SCAN_FOR_MODULES # Since 3.28
- CMAKE_DEBUG_POSTFIX
- - CMAKE_ENABLE_EXPORTS
+ - CMAKE_DEFAULT_BUILD_TYPE # Since 3.17
+ - CMAKE_DEFAULT_CONFIGS # Since 3.17
+ - CMAKE_DISABLE_PRECOMPILE_HEADERS # Since 3.17
+ - CMAKE_DLL_NAME_WITH_SOVERSION # Since 3.27
+ # `CMAKE_ENABLE_EXPORTS` has been moved to deprecated section
+ - CMAKE_EXECUTABLE_ENABLE_EXPORTS # Since 3.27
- CMAKE_EXE_LINKER_FLAGS
- CMAKE_EXE_LINKER_FLAGS_<CONFIG>
- CMAKE_EXE_LINKER_FLAGS_<CONFIG>_INIT
- CMAKE_EXE_LINKER_FLAGS_INIT
- CMAKE_FOLDER # Since 3.12
+ - CMAKE_FRAMEWORK # Since 3.15
+ - CMAKE_FRAMEWORK_MULTI_CONFIG_POSTFIX_<CONFIG> # Since 3.18
- CMAKE_Fortran_FORMAT
- CMAKE_Fortran_MODULE_DIRECTORY
+ - CMAKE_Fortran_PREPROCESS # Since 3.18
+ - CMAKE_GLOBAL_AUTOGEN_TARGET # Since 3.14
+ - CMAKE_GLOBAL_AUTOGEN_TARGET_NAME # Since 3.14
+ - CMAKE_GLOBAL_AUTORCC_TARGET # Since 3.14
+ - CMAKE_GLOBAL_AUTORCC_TARGET_NAME # Since 3.14
- CMAKE_GNUtoMS
- CMAKE_INCLUDE_CURRENT_DIR
- CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE
- CMAKE_INSTALL_NAME_DIR
+ - CMAKE_INSTALL_REMOVE_ENVIRONMENT_RPATH # Since 3.16
- CMAKE_INSTALL_RPATH
- CMAKE_INSTALL_RPATH_USE_LINK_PATH
- CMAKE_INTERPROCEDURAL_OPTIMIZATION
- CMAKE_INTERPROCEDURAL_OPTIMIZATION_<CONFIG>
- - CMAKE_IOS_INSTALL_COMBINED
- CMAKE_<LANG>_CLANG_TIDY
+ - CMAKE_<LANG>_CLANG_TIDY_EXPORT_FIXES_DIR # Since 3.26
- CMAKE_<LANG>_COMPILER_LAUNCHER
- CMAKE_<LANG>_CPPCHECK # Since 3.10
- CMAKE_<LANG>_CPPLINT
- CMAKE_<LANG>_INCLUDE_WHAT_YOU_USE
+ - CMAKE_<LANG>_LINK_LIBRARY_USING_<FEATURE> # Since 3.24
+ - CMAKE_<LANG>_LINK_LIBRARY_USING_<FEATURE>_SUPPORTED # Since 3.24
+ - CMAKE_<LANG>_LINKER_LAUNCHER # Since 3.21
+ - CMAKE_<LANG>_LINK_GROUP_USING_<FEATURE> # Since 3.24
+ - CMAKE_<LANG>_LINK_GROUP_USING_<FEATURE>_SUPPORTED # Since 3.24
+ - CMAKE_<LANG>_LINK_LIBRARY_FILE_FLAG # Since 3.16
+ - CMAKE_<LANG>_LINK_LIBRARY_FLAG # Since 3.16
+ - CMAKE_<LANG>_LINK_WHAT_YOU_USE_FLAG # Since 3.22
- CMAKE_<LANG>_VISIBILITY_PRESET
- CMAKE_LIBRARY_OUTPUT_DIRECTORY
- CMAKE_LIBRARY_OUTPUT_DIRECTORY_<CONFIG>
- CMAKE_LIBRARY_PATH_FLAG
- CMAKE_LINK_DEF_FILE_FLAG
- CMAKE_LINK_DEPENDS_NO_SHARED
+ - CMAKE_LINK_DEPENDS_USE_LINKER # Since 3.27
+ - CMAKE_LINK_GROUP_USING_<FEATURE> # Since 3.24
+ - CMAKE_LINK_GROUP_USING_<FEATURE>_SUPPORTED # Since 3.24
- CMAKE_LINK_INTERFACE_LIBRARIES
- CMAKE_LINK_LIBRARY_FILE_FLAG
- CMAKE_LINK_LIBRARY_FLAG
+ - CMAKE_LINK_LIBRARY_USING_<FEATURE> # Since 3.24
+ - CMAKE_LINK_LIBRARY_USING_<FEATURE>_SUPPORTED # Since 3.24
- CMAKE_LINK_WHAT_YOU_USE
+ - CMAKE_LINK_WHAT_YOU_USE_CHECK # Since 3.22
- CMAKE_MACOSX_BUNDLE
- CMAKE_MACOSX_RPATH
- CMAKE_MAP_IMPORTED_CONFIG_<CONFIG>
@@ -814,17 +1179,25 @@ variables:
- CMAKE_MODULE_LINKER_FLAGS_<CONFIG>
- CMAKE_MODULE_LINKER_FLAGS_<CONFIG>_INIT
- CMAKE_MODULE_LINKER_FLAGS_INIT
+ - CMAKE_MSVC_DEBUG_INFORMATION_FORMAT # Since 3.25
+ - CMAKE_MSVC_RUNTIME_LIBRARY # Since 3.15
+ - CMAKE_MSVCIDE_RUN_PATH # Since 3.15
- CMAKE_NINJA_OUTPUT_PATH_PREFIX
- CMAKE_NO_BUILTIN_CHRPATH
- CMAKE_NO_SYSTEM_FROM_IMPORTED
+ - CMAKE_OPTIMIZE_DEPENDENCIES # Since 3.19
- CMAKE_OSX_ARCHITECTURES
- CMAKE_OSX_DEPLOYMENT_TARGET
- CMAKE_OSX_SYSROOT
+ - CMAKE_PCH_WARN_INVALID # Since 3.18
+ - CMAKE_PCH_INSTANTIATE_TEMPLATES # Since 3.19
- CMAKE_PDB_OUTPUT_DIRECTORY
- CMAKE_PDB_OUTPUT_DIRECTORY_<CONFIG>
+ - CMAKE_PLATFORM_NO_VERSIONED_SONAME # Since 3.1
- CMAKE_POSITION_INDEPENDENT_CODE
- CMAKE_RUNTIME_OUTPUT_DIRECTORY
- CMAKE_RUNTIME_OUTPUT_DIRECTORY_<CONFIG>
+ - CMAKE_SHARED_LIBRARY_ENABLE_EXPORTS # Since 3.27
- CMAKE_SHARED_LINKER_FLAGS
- CMAKE_SHARED_LINKER_FLAGS_<CONFIG>
- CMAKE_SHARED_LINKER_FLAGS_<CONFIG>_INIT
@@ -835,14 +1208,24 @@ variables:
- CMAKE_STATIC_LINKER_FLAGS_<CONFIG>
- CMAKE_STATIC_LINKER_FLAGS_<CONFIG>_INIT
- CMAKE_STATIC_LINKER_FLAGS_INIT
+ - CMAKE_TASKING_TOOLSET # Since 3.25
- CMAKE_TRY_COMPILE_CONFIGURATION
+ - CMAKE_TRY_COMPILE_NO_PLATFORM_VARIABLES # Since 3.24
- CMAKE_TRY_COMPILE_PLATFORM_VARIABLES
- CMAKE_TRY_COMPILE_TARGET_TYPE
+ - CMAKE_UNITY_BUILD # Since 3.16
+ - CMAKE_UNITY_BUILD_BATCH_SIZE # Since 3.16
- CMAKE_USE_RELATIVE_PATHS
+ - CMAKE_VERIFY_INTERFACE_HEADER_SETS # Since 3.24
- CMAKE_VISIBILITY_INLINES_HIDDEN
+ - CMAKE_VS_DEBUGGER_COMMAND # Since 3.27
+ - CMAKE_VS_DEBUGGER_COMMAND_ARGUMENTS # Since 3.27
+ - CMAKE_VS_DEBUGGER_ENVIRONMENT # Since 3.27
+ - CMAKE_VS_DEBUGGER_WORKING_DIRECTORY # Since 3.27
- CMAKE_VS_GLOBALS # Since 3.13
- CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD
- CMAKE_VS_INCLUDE_PACKAGE_TO_DEFAULT_BUILD
+ - CMAKE_VS_JUST_MY_CODE_DEBUGGING # Since 3.15
- CMAKE_VS_SDK_EXCLUDE_DIRECTORIES # Since 3.12
- CMAKE_VS_SDK_EXECUTABLE_DIRECTORIES # Since 3.12
- CMAKE_VS_SDK_INCLUDE_DIRECTORIES # Since 3.12
@@ -850,6 +1233,8 @@ variables:
- CMAKE_VS_SDK_LIBRARY_WINRT_DIRECTORIES # Since 3.12
- CMAKE_VS_SDK_REFERENCE_DIRECTORIES # Since 3.12
- CMAKE_VS_SDK_SOURCE_DIRECTORIES # Since 3.12
+ - CMAKE_VS_WINRT_BY_DEFAULT # Since 3.13
+ - CMAKE_WATCOM_RUNTIME_LIBRARY # Since 3.24
- CMAKE_WIN32_EXECUTABLE
- CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
- CMAKE_XCODE_ATTRIBUTE_<an-attribute>
@@ -859,6 +1244,9 @@ variables:
- CMAKE_COMPILER_IS_GNUCC
- CMAKE_COMPILER_IS_GNUCXX
- CMAKE_COMPILER_IS_GNUG77
+ - CMAKE_CUDA_ARCHITECTURES # Since 3.18
+ - CMAKE_CUDA_COMPILE_FEATURES # Since 3.17
+ - CMAKE_CUDA_HOST_COMPILER # Since 3.17
- CMAKE_CUDA_EXTENSIONS
- CMAKE_CUDA_STANDARD
- CMAKE_CUDA_STANDARD_REQUIRED
@@ -874,15 +1262,22 @@ variables:
- CMAKE_Fortran_MODDIR_DEFAULT
- CMAKE_Fortran_MODDIR_FLAG
- CMAKE_Fortran_MODOUT_FLAG
- - CMAKE_INTERNAL_PLATFORM_ABI
+ - CMAKE_HIP_ARCHITECTURES # Since 3.21
+ - CMAKE_HIP_EXTENSIONS # Since 3.21
+ - CMAKE_HIP_PLATFORM # Since 3.28
+ - CMAKE_HIP_STANDARD # Since 3.21
+ - CMAKE_HIP_STANDARD_REQUIRED # Since 3.21
+ - CMAKE_ISPC_HEADER_DIRECTORY # Since 3.19
+ - CMAKE_ISPC_HEADER_SUFFIX # Since 3.19.2
+ - CMAKE_ISPC_INSTRUCTION_SETS # Since 3.19
- CMAKE_<LANG>_ANDROID_TOOLCHAIN_MACHINE
- CMAKE_<LANG>_ANDROID_TOOLCHAIN_PREFIX
- CMAKE_<LANG>_ANDROID_TOOLCHAIN_SUFFIX
- CMAKE_<LANG>_ARCHIVE_APPEND
- CMAKE_<LANG>_ARCHIVE_CREATE
- CMAKE_<LANG>_ARCHIVE_FINISH
+ - CMAKE_<LANG>_BYTE_ORDER # Since 3.20
- CMAKE_<LANG>_COMPILER
- - CMAKE_<LANG>_COMPILER_ABI
- CMAKE_<LANG>_COMPILER_EXTERNAL_TOOLCHAIN
- CMAKE_<LANG>_COMPILER_ID
- CMAKE_<LANG>_COMPILER_LOADED
@@ -892,7 +1287,11 @@ variables:
- CMAKE_<LANG>_CREATE_SHARED_LIBRARY
- CMAKE_<LANG>_CREATE_SHARED_MODULE
- CMAKE_<LANG>_CREATE_STATIC_LIBRARY
+ - CMAKE_<LANG>_EXTENSIONS
+ - CMAKE_<LANG>_EXTENSIONS_DEFAULT # Since 3.22
- CMAKE_<LANG>_FLAGS
+ - CMAKE_<LANG>_FLAGS_<CONFIG>
+ - CMAKE_<LANG>_FLAGS_<CONFIG>_INIT
- CMAKE_<LANG>_FLAGS_DEBUG
- CMAKE_<LANG>_FLAGS_DEBUG_INIT
- CMAKE_<LANG>_FLAGS_INIT
@@ -918,13 +1317,18 @@ variables:
- CMAKE_<LANG>_LINKER_WRAPPER_FLAG_SEP # Since 3.13
- CMAKE_<LANG>_LINK_EXECUTABLE
- CMAKE_<LANG>_OUTPUT_EXTENSION
- - CMAKE_<LANG>_PLATFORM_ID
- CMAKE_<LANG>_SIMULATE_ID
- CMAKE_<LANG>_SIMULATE_VERSION
- CMAKE_<LANG>_SIZEOF_DATA_PTR
- CMAKE_<LANG>_SOURCE_FILE_EXTENSIONS
- CMAKE_<LANG>_STANDARD_INCLUDE_DIRECTORIES
- CMAKE_<LANG>_STANDARD_LIBRARIES
+ - CMAKE_OBJC_EXTENSIONS # Since 3.16
+ - CMAKE_OBJC_STANDARD # Since 3.16
+ - CMAKE_OBJC_STANDARD_REQUIRED # Since 3.16
+ - CMAKE_OBJCXX_EXTENSIONS # Since 3.16
+ - CMAKE_OBJCXX_STANDARD # Since 3.16
+ - CMAKE_OBJCXX_STANDARD_REQUIRED # Since 3.16
- CMAKE_Swift_LANGUAGE_VERSION
- CMAKE_USER_MAKE_RULES_OVERRIDE_<LANG>
# Variables for CTest
@@ -955,6 +1359,7 @@ variables:
- CTEST_CUSTOM_PRE_MEMCHECK
- CTEST_CUSTOM_PRE_TEST
- CTEST_CUSTOM_TEST_IGNORE
+ - CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION # Since 3.24
- CTEST_CUSTOM_WARNING_EXCEPTION
- CTEST_CUSTOM_WARNING_MATCH
- CTEST_CVS_CHECKOUT
@@ -984,8 +1389,12 @@ variables:
- CTEST_P4_COMMAND
- CTEST_P4_OPTIONS
- CTEST_P4_UPDATE_OPTIONS
+ - CTEST_RESOURCE_SPEC_FILE # Since 3.18
+ - CTEST_RUN_CURRENT_SCRIPT # Since 3.11
- CTEST_SCP_COMMAND
- CTEST_SITE
+ - CTEST_SUBMIT_INACTIVITY_TIMEOUT # Since 3.23
+ - CTEST_SUBMIT_URL # Since 3.14
- CTEST_SOURCE_DIRECTORY
- CTEST_SVN_COMMAND
- CTEST_SVN_OPTIONS
@@ -996,52 +1405,101 @@ variables:
- CTEST_UPDATE_COMMAND
- CTEST_UPDATE_OPTIONS
- CTEST_UPDATE_VERSION_ONLY
+ - CTEST_UPDATE_VERSION_OVERRIDE # Since 3.15
- CTEST_USE_LAUNCHERS
# Variables for CPack
- CPACK_ABSOLUTE_DESTINATION_FILES
- CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY
+ - CPACK_CUSTOM_INSTALL_VARIABLES # Since 3.21
- CPACK_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION
- CPACK_INCLUDE_TOPLEVEL_DIRECTORY
- CPACK_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS # Since 3.11
- - CPACK_INSTALL_SCRIPT
+ - CPACK_INSTALL_SCRIPTS # Since 3.16
- CPACK_PACKAGING_INSTALL_PREFIX
- CPACK_SET_DESTDIR
- CPACK_WARN_ON_ABSOLUTE_INSTALL_DESTINATION
# Variables for `find_package()`
- PACKAGE_FIND_NAME
- - PACKAGE_FIND_VERSION
- - PACKAGE_FIND_VERSION_MAJOR
- - PACKAGE_FIND_VERSION_MINOR
- - PACKAGE_FIND_VERSION_PATCH
- - PACKAGE_FIND_VERSION_TWEAK
+ # NOTE <SMTH>_VERSION and components already defined above, so skipped here
- PACKAGE_FIND_VERSION_COUNT
+ - PACKAGE_FIND_VERSION_RANGE
+ - PACKAGE_FIND_VERSION_RANGE_MIN
+ - PACKAGE_FIND_VERSION_RANGE_MAX
+ - PACKAGE_FIND_VERSION_MIN
+ - PACKAGE_FIND_VERSION_MIN_MAJOR
+ - PACKAGE_FIND_VERSION_MIN_MINOR
+ - PACKAGE_FIND_VERSION_MIN_PATCH
+ - PACKAGE_FIND_VERSION_MIN_TWEAK
+ - PACKAGE_FIND_VERSION_MIN_COUNT
+ - PACKAGE_FIND_VERSION_MAX
+ - PACKAGE_FIND_VERSION_MAX_MAJOR
+ - PACKAGE_FIND_VERSION_MAX_MINOR
+ - PACKAGE_FIND_VERSION_MAX_PATCH
+ - PACKAGE_FIND_VERSION_MAX_TWEAK
+ - PACKAGE_FIND_VERSION_MAX_COUNT
+ - PACKAGE_FIND_VERSION_COMPLETE
- PACKAGE_VERSION
- PACKAGE_VERSION_EXACT
- PACKAGE_VERSION_COMPATIBLE
- PACKAGE_VERSION_UNSUITABLE
- # NOTE <SMTH>_VERSION and components already defined above, so skipped here
+ # Package File Interface Variables
- <package>_FOUND
- - <package>_VERSION_COUNT
- <package>_FIND_REQUIRED
- <package>_FIND_QUIETLY
- - <package>_FIND_VERSION
- - <package>_FIND_VERSION_MAJOR
- - <package>_FIND_VERSION_MINOR
- - <package>_FIND_VERSION_PATCH
- - <package>_FIND_VERSION_TWEAK
- - <package>_FIND_VERSION_COUNT
- - <package>_FIND_VERSION_EXACT
- - <package>_FIND_COMPONENTS
- - <package>_FIND_REQUIRED_<c>
- - <package>_CONSIDERED_CONFIGS
- - <package>_CONSIDERED_VERSIONS
+ - <package>_VERSION_COUNT
+ # NOTE <SMTH>_VERSION and components already defined above, so skipped here
+ - <PackageName>_FIND_VERSION_COUNT
+ - <PackageName>_FIND_VERSION_EXACT
+ - <PackageName>_FIND_COMPONENTS
+ - <PackageName>_FIND_REQUIRED_<c>
+ - <PackageName>_FIND_VERSION_RANGE
+ - <PackageName>_FIND_VERSION_RANGE_MIN
+ - <PackageName>_FIND_VERSION_RANGE_MAX
+ - <PackageName>_FIND_VERSION_MIN
+ - <PackageName>_FIND_VERSION_MIN_MAJOR
+ - <PackageName>_FIND_VERSION_MIN_MINOR
+ - <PackageName>_FIND_VERSION_MIN_PATCH
+ - <PackageName>_FIND_VERSION_MIN_TWEAK
+ - <PackageName>_FIND_VERSION_MIN_COUNT
+ - <PackageName>_FIND_VERSION_MAX
+ - <PackageName>_FIND_VERSION_MAX_MAJOR
+ - <PackageName>_FIND_VERSION_MAX_MINOR
+ - <PackageName>_FIND_VERSION_MAX_PATCH
+ - <PackageName>_FIND_VERSION_MAX_TWEAK
+ - <PackageName>_FIND_VERSION_MAX_COUNT
+ - <PackageName>_FIND_VERSION_COMPLETE
+ - <PackageName>_CONFIG
+ - <PackageName>_CONSIDERED_CONFIGS
+ - <PackageName>_CONSIDERED_VERSIONS
- <PackageName>_ROOT # Since 3.12
# Other standard variables/patterns
# - `try_run`
- <RUN_RESULT_VAR>__TRYRUN_OUTPUT
+ # - `function`
+ - ARGC
+ - ARGN
+ - ARGV
+ - ARGV<n>
+ # - `cmake_parse_arguments`
+ - <pfx>_UNPARSED_ARGUMENTS
+ - <pfx>_KEYWORDS_MISSING_VALUES
+ # Variables that control `file(GET_RUNTIME_DEPENDENCIES)` behavior
+ - CMAKE_GET_RUNTIME_DEPENDENCIES_PLATFORM
+ - CMAKE_GET_RUNTIME_DEPENDENCIES_TOOL
+ - CMAKE_GET_RUNTIME_DEPENDENCIES_COMMAND
+ # Fallback Interface Variables for `cmake_host_system_information`
+ # Since CMake 3.22
+ - CMAKE_GET_OS_RELEASE_FALLBACK_SCRIPTS
+ - CMAKE_GET_OS_RELEASE_FALLBACK_RESULT_<varname>
+ - CMAKE_GET_OS_RELEASE_FALLBACK_RESULT
# Well known CMake's official module's variables
+ # - BundleUtilities
+ - BU_CHMOD_BUNDLE_ITEMS
+ # - CheckCompilerFlag
# - CheckCCompilerFlag
+ # - CheckSourceCompiles
# - CheckCSourceCompiles
+ # - CheckSourceRuns
# - CheckCSourceRuns
# - CheckCxxCompilerFlag
# - CheckCxxSourceCompiles
@@ -1056,6 +1514,22 @@ variables:
# - CheckIncludeFile
# - CheckIncludeFiles
# - CheckLibraryExists
+ # - CheckPIESupported
+ - CMAKE_C_LINK_PIE_SUPPORTED
+ - CMAKE_CXX_LINK_PIE_SUPPORTED
+ - CMAKE_Fortran_LINK_PIE_SUPPORTED
+ - CMAKE_C_LINK_NO_PIE_SUPPORTED
+ - CMAKE_CXX_LINK_NO_PIE_SUPPORTED
+ - CMAKE_Fortran_LINK_NO_PIE_SUPPORTED
+ # Since 3.23
+ - CMAKE_OBJC_LINK_PIE_SUPPORTED
+ - CMAKE_OBJC_LINK_NO_PIE_SUPPORTED
+ - CMAKE_OBJCXX_LINK_PIE_SUPPORTED
+ - CMAKE_OBJCXX_LINK_NO_PIE_SUPPORTED
+ - CMAKE_CUDA_LINK_PIE_SUPPORTED
+ - CMAKE_CUDA_LINK_NO_PIE_SUPPORTED
+ - CMAKE_HIP_LINK_PIE_SUPPORTED
+ - CMAKE_HIP_LINK_NO_PIE_SUPPORTED
# - CheckPrototypeDefinition
# - CheckStructHasMember
# - CheckSymbolExists
@@ -1064,6 +1538,7 @@ variables:
- CMAKE_REQUIRED_DEFINITIONS
- CMAKE_REQUIRED_FLAGS
- CMAKE_REQUIRED_INCLUDES
+ - CMAKE_REQUIRED_LINK_OPTIONS # Since 3.14
- CMAKE_REQUIRED_LIBRARIES
- CMAKE_REQUIRED_QUIET
# - CheckTypeSize
@@ -1089,7 +1564,9 @@ variables:
# - CPackArchive
- CPACK_ARCHIVE_FILE_NAME
- CPACK_ARCHIVE_<COMPONENT>_FILE_NAME
+ - CPACK_ARCHIVE_FILE_EXTENSION # Since 3.25
- CPACK_ARCHIVE_COMPONENT_INSTALL
+ - CPACK_ARCHIVE_THREADS # Since 3.18
# - CPackBundle
- CPACK_BUNDLE_NAME
- CPACK_BUNDLE_PLIST
@@ -1131,7 +1608,7 @@ variables:
- CPACK_DEBIAN_ENABLE_COMPONENT_DEPENDS
- CPACK_DEBIAN_PACKAGE_MAINTAINER
- CPACK_DEBIAN_PACKAGE_DESCRIPTION
- - CPACK_COMPONENT_<COMPONENT>_DESCRIPTION
+ - CPACK_DEBIAN_<COMPONENT>_DESCRIPTION # Since 3.16
- CPACK_DEBIAN_PACKAGE_SECTION
- CPACK_DEBIAN_<COMPONENT>_PACKAGE_SECTION
- CPACK_DEBIAN_ARCHIVE_TYPE
@@ -1141,6 +1618,7 @@ variables:
- CPACK_DEBIAN_PACKAGE_HOMEPAGE
- CPACK_DEBIAN_PACKAGE_SHLIBDEPS
- CPACK_DEBIAN_<COMPONENT>_PACKAGE_SHLIBDEPS
+ - CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS # Since 3.20
- CPACK_DEBIAN_PACKAGE_DEBUG
- CPACK_DEBIAN_PACKAGE_PREDEPENDS
- CPACK_DEBIAN_<COMPONENT>_PACKAGE_PREDEPENDS
@@ -1175,15 +1653,54 @@ variables:
- CPACK_DMG_DS_STORE_SETUP_SCRIPT
- CPACK_DMG_BACKGROUND_IMAGE
- CPACK_DMG_DISABLE_APPLICATIONS_SYMLINK
+ - CPACK_DMG_SLA_USE_RESOURCE_FILE_LICENSE # Since 3.23
- CPACK_DMG_SLA_DIR
- CPACK_DMG_SLA_LANGUAGES
+ - CPACK_DMG_<component>_FILE_NAME # Since 3.17
+ - CPACK_DMG_FILESYSTEM # Since 3.21
- CPACK_COMMAND_HDIUTIL
- CPACK_COMMAND_SETFILE
- CPACK_COMMAND_REZ
+ # [built-in]: CPack Inno Setup Generator (Since 3.27)
+ - CPACK_INNOSETUP_USE_CMAKE_BOOL_FORMAT
+ - CPACK_INNOSETUP_ARCHITECTURE
+ - CPACK_INNOSETUP_INSTALL_ROOT
+ - CPACK_INNOSETUP_ALLOW_CUSTOM_DIRECTORY
+ - CPACK_INNOSETUP_PROGRAM_MENU_FOLDER
+ - CPACK_INNOSETUP_LANGUAGES
+ - CPACK_INNOSETUP_IGNORE_LICENSE_PAGE
+ - CPACK_INNOSETUP_IGNORE_README_PAGE
+ - CPACK_INNOSETUP_PASSWORD
+ - CPACK_INNOSETUP_USE_MODERN_WIZARD
+ - CPACK_INNOSETUP_ICON_FILE
+ - CPACK_INNOSETUP_SETUP_<directive>
+ - CPACK_INNOSETUP_CUSTOM_INSTALL_INSTRUCTIONS
+ - CPACK_INNOSETUP_MENU_LINKS
+ - CPACK_INNOSETUP_CREATE_UNINSTALL_LINK
+ - CPACK_INNOSETUP_RUN_EXECUTABLES
+ - CPACK_INNOSETUP_<compName>_INSTALL_DIRECTORY
+ - CPACK_INNOSETUP_VERIFY_DOWNLOADS
+ - CPACK_INNOSETUP_EXECUTABLE
+ - CPACK_INNOSETUP_EXECUTABLE_ARGUMENTS
+ - CPACK_INNOSETUP_DEFINE_<macro>
+ - CPACK_INNOSETUP_EXTRA_SCRIPTS
+ - CPACK_INNOSETUP_CODE_FILES
+ # [built-in]: CPack FreeBSD Generator (Since 3.10)
+ - CPACK_FREEBSD_PACKAGE_NAME
+ - CPACK_FREEBSD_PACKAGE_COMMENT
+ - CPACK_FREEBSD_PACKAGE_DESCRIPTION
+ - CPACK_FREEBSD_PACKAGE_WWW
+ - CPACK_FREEBSD_PACKAGE_LICENSE
+ - CPACK_FREEBSD_PACKAGE_LICENSE_LOGIC
+ - CPACK_FREEBSD_PACKAGE_MAINTAINER
+ - CPACK_FREEBSD_PACKAGE_ORIGIN
+ - CPACK_FREEBSD_PACKAGE_CATEGORIES
+ - CPACK_FREEBSD_PACKAGE_DEPS
# -CPackExt (Since 3.13)
- - CPACK_EXT_REQUESTED_VERSIONS
- - CPACK_EXT_ENABLE_STAGING
- - CPACK_EXT_PACKAGE_SCRIPT
+ - CPACK_EXTERNAL_REQUESTED_VERSIONS
+ - CPACK_EXTERNAL_ENABLE_STAGING
+ - CPACK_EXTERNAL_PACKAGE_SCRIPT
+ - CPACK_EXTERNAL_BUILT_PACKAGES # Since 3.19
# - CPackIFW
- CPACK_IFW_ROOT
- QTIFWDIR
@@ -1198,8 +1715,10 @@ variables:
- CPACK_IFW_PACKAGE_BANNER
- CPACK_IFW_PACKAGE_BACKGROUND
- CPACK_IFW_PACKAGE_WIZARD_STYLE
+ - CPACK_IFW_PACKAGE_STYLE_SHEET # Since 3.15
- CPACK_IFW_PACKAGE_WIZARD_DEFAULT_WIDTH
- CPACK_IFW_PACKAGE_WIZARD_DEFAULT_HEIGHT
+ - CPACK_IFW_PACKAGE_WIZARD_SHOW_PAGE_LIST # Since 3.20
- CPACK_IFW_PACKAGE_TITLE_COLOR
- CPACK_IFW_PACKAGE_START_MENU_DIRECTORY
- CPACK_IFW_TARGET_DIRECTORY
@@ -1210,11 +1729,19 @@ variables:
- CPACK_IFW_PACKAGE_MAINTENANCE_TOOL_INI_FILE
- CPACK_IFW_PACKAGE_ALLOW_NON_ASCII_CHARACTERS
- CPACK_IFW_PACKAGE_ALLOW_SPACE_IN_PATH
+ - CPACK_IFW_PACKAGE_DISABLE_COMMAND_LINE_INTERFACE # Since 3.23
- CPACK_IFW_PACKAGE_CONTROL_SCRIPT
- CPACK_IFW_PACKAGE_REMOVE_TARGET_DIR # Since 3.11
- CPACK_IFW_PACKAGE_RESOURCES
- CPACK_IFW_REPOSITORIES_ALL
- CPACK_IFW_DOWNLOAD_ALL
+ - CPACK_IFW_PACKAGE_PRODUCT_IMAGES # Since 3.23
+ - CPACK_IFW_PACKAGE_RUN_PROGRAM # Since 3.23
+ - CPACK_IFW_PACKAGE_RUN_PROGRAM_ARGUMENTS # Since 3.23
+ - CPACK_IFW_PACKAGE_RUN_PROGRAM_DESCRIPTION # Since 3.23
+ - CPACK_IFW_PACKAGE_SIGNING_IDENTITY # Since 3.23
+ - CPACK_IFW_ARCHIVE_FORMAT # Since 3.23
+ - CPACK_IFW_ARCHIVE_COMPRESSION # Since 3.23
- CPACK_IFW_RESOLVE_DUPLICATE_NAMES
- CPACK_IFW_PACKAGES_DIRECTORIES
- CPACK_IFW_FRAMEWORK_VERSION
@@ -1247,6 +1774,19 @@ variables:
- CPACK_NSIS_EXECUTABLES_DIRECTORY
- CPACK_NSIS_MUI_FINISHPAGE_RUN
- CPACK_NSIS_MENU_LINKS
+ - CPACK_NSIS_UNINSTALL_NAME # Since 3.17
+ - CPACK_NSIS_WELCOME_TITLE # Since 3.17
+ - CPACK_NSIS_WELCOME_TITLE_3LINES # Since 3.17
+ - CPACK_NSIS_FINISH_TITLE # Since 3.17
+ - CPACK_NSIS_FINISH_TITLE_3LINES # Since 3.17
+ - CPACK_NSIS_MUI_HEADERIMAGE # Since 3.17
+ - CPACK_NSIS_MANIFEST_DPI_AWARE # Since 3.18
+ - CPACK_NSIS_BRANDING_TEXT # Since 3.20
+ - CPACK_NSIS_BRANDING_TEXT_TRIM_POSITION # Since 3.20
+ - CPACK_NSIS_EXECUTABLE # Since 3.21
+ - CPACK_NSIS_IGNORE_LICENSE_PAGE # Since 3.22
+ - CPACK_NSIS_EXECUTABLE_PRE_ARGUMENTS # Since 3.25
+ - CPACK_NSIS_EXECUTABLE_POST_ARGUMENTS # Since 3.25
# - CPackNuGet (since 3.12)
- CPACK_NUGET_COMPONENT_INSTALL
- CPACK_NUGET_PACKAGE_NAME
@@ -1265,14 +1805,22 @@ variables:
- CPACK_NUGET_<compName>_PACKAGE_HOMEPAGE_URL
- CPACK_NUGET_PACKAGE_LICENSEURL
- CPACK_NUGET_<compName>_PACKAGE_LICENSEURL
+ - CPACK_NUGET_PACKAGE_LICENSE_EXPRESSION # Since 3.20
+ - CPACK_NUGET_<compName>_PACKAGE_LICENSE_EXPRESSION # Since 3.20
+ - CPACK_NUGET_PACKAGE_LICENSE_FILE_NAME # Since 3.20
+ - CPACK_NUGET_<compName>_PACKAGE_LICENSE_FILE_NAME # Since 3.20
- CPACK_NUGET_PACKAGE_ICONURL
- CPACK_NUGET_<compName>_PACKAGE_ICONURL
+ - CPACK_NUGET_PACKAGE_ICON # Since 3.20
+ - CPACK_NUGET_<compName>_PACKAGE_ICON # Since 3.20
- CPACK_NUGET_PACKAGE_DESCRIPTION_SUMMARY
- CPACK_NUGET_<compName>_PACKAGE_DESCRIPTION_SUMMARY
- CPACK_NUGET_PACKAGE_RELEASE_NOTES
- CPACK_NUGET_<compName>_PACKAGE_RELEASE_NOTES
- CPACK_NUGET_PACKAGE_COPYRIGHT
- CPACK_NUGET_<compName>_PACKAGE_COPYRIGHT
+ - CPACK_NUGET_PACKAGE_LANGUAGE # Since 3.20
+ - CPACK_NUGET_<compName>_PACKAGE_LANGUAGE # Since 3.20
- CPACK_NUGET_PACKAGE_TAGS
- CPACK_NUGET_<compName>_PACKAGE_TAGS
- CPACK_NUGET_PACKAGE_DEPENDENCIES
@@ -1280,16 +1828,33 @@ variables:
- CPACK_NUGET_PACKAGE_DEPENDENCIES_<dependency>_VERSION
- CPACK_NUGET_<compName>_PACKAGE_DEPENDENCIES_<dependency>_VERSION
- CPACK_NUGET_PACKAGE_DEBUG
- # - CPackPackageMaker
- - CPACK_OSX_PACKAGE_VERSION
+ # - CPackPackageMaker is deprecated and gonna be removed in next versions of CPack
+ # NOTE CPackPackageMaker has been removed in 3.24
# - CPackProductBuild
- CPACK_COMMAND_PRODUCTBUILD
+ - CPACK_PRODUCTBUILD_IDENTIFIER # Since 3.23
- CPACK_PRODUCTBUILD_IDENTITY_NAME
- CPACK_PRODUCTBUILD_KEYCHAIN_PATH
- CPACK_COMMAND_PKGBUILD
- CPACK_PKGBUILD_IDENTITY_NAME
- CPACK_PKGBUILD_KEYCHAIN_PATH
+ - CPACK_PREFLIGHT_<COMP>_SCRIPT # Since 3.1?
+ - CPACK_POSTFLIGHT_<COMP>_SCRIPT # Since 3.1?
- CPACK_PRODUCTBUILD_RESOURCES_DIR
+ - CPACK_PRODUCTBUILD_DOMAINS # Since 3.23
+ - CPACK_PRODUCTBUILD_DOMAINS_ANYWHERE # Since 3.23
+ - CPACK_PRODUCTBUILD_DOMAINS_USER # Since 3.23
+ - CPACK_PRODUCTBUILD_DOMAINS_ROOT # Since 3.23
+ - CPACK_PRODUCTBUILD_BACKGROUND # Since 3.17
+ - CPACK_PRODUCTBUILD_BACKGROUND_ALIGNMENT # Since 3.17
+ - CPACK_PRODUCTBUILD_BACKGROUND_SCALING # Since 3.17
+ - CPACK_PRODUCTBUILD_BACKGROUND_MIME_TYPE # Since 3.17
+ - CPACK_PRODUCTBUILD_BACKGROUND_UTI # Since 3.17
+ - CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA # Since 3.17
+ - CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_ALIGNMENT # Since 3.17
+ - CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_SCALING # Since 3.17
+ - CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_MIME_TYPE # Since 3.17
+ - CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_UTI # Since 3.17
# - CPackRPM
- CPACK_RPM_COMPONENT_INSTALL
- CPACK_RPM_PACKAGE_SUMMARY
@@ -1347,8 +1912,10 @@ variables:
- CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE
- CPACK_RPM_PRE_INSTALL_SCRIPT_FILE
- CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE
+ - CPACK_RPM_PRE_TRANS_SCRIPT_FILE # Since 3.18
- CPACK_RPM_POST_INSTALL_SCRIPT_FILE
- CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE
+ - CPACK_RPM_POST_TRANS_SCRIPT_FILE # Since 3.18
- CPACK_RPM_USER_FILELIST
- CPACK_RPM_<COMPONENT>_USER_FILELIST
- CPACK_RPM_CHANGELOG_FILE
@@ -1383,12 +1950,10 @@ variables:
- CPACK_RPM_SOURCE_PKG_BUILD_PARAMS
- CPACK_RPM_SOURCE_PKG_PACKAGING_INSTALL_PREFIX
- CPACK_RPM_BUILDREQUIRES
+ - CPACK_RPM_REQUIRES_EXCLUDE_FROM # Since 3.22
# - CPack
- CPACK_PACKAGE_NAME
- CPACK_PACKAGE_VENDOR
- # `CPACK_PACKAGE_CONTACT` used by some modules (like Deb and NSIS),
- # but not documented yet...
- - CPACK_PACKAGE_CONTACT
- CPACK_PACKAGE_DIRECTORY
- CPACK_PACKAGE_VERSION_MAJOR
- CPACK_PACKAGE_VERSION_MINOR
@@ -1411,6 +1976,7 @@ variables:
- CPACK_PACKAGE_EXECUTABLES
- CPACK_STRIP_FILES
- CPACK_VERBATIM_VARIABLES
+ - CPACK_THREADS # Since 3.20
- CPACK_SOURCE_PACKAGE_FILE_NAME
- CPACK_SOURCE_STRIP_FILES
- CPACK_SOURCE_GENERATOR
@@ -1426,6 +1992,12 @@ variables:
- CPACK_PACKAGE_INSTALL_REGISTRY_KEY
- CPACK_CREATE_DESKTOP_LINKS
- CPACK_BINARY_<GENNAME>
+ - CPACK_READELF_EXECUTABLE # Since 3.25
+ - CPACK_OBJCOPY_EXECUTABLE # Since 3.25
+ - CPACK_OBJDUMP_EXECUTABLE # Since 3.25
+ - CPACK_PRE_BUILD_SCRIPTS # Since 3.19
+ - CPACK_POST_BUILD_SCRIPTS # Since 3.19
+ - CPACK_PACKAGE_FILES # Since 3.19
# - CPackWIX
- CPACK_WIX_UPGRADE_GUID
- CPACK_WIX_PRODUCT_GUID
@@ -1450,6 +2022,9 @@ variables:
- CPACK_WIX_SKIP_PROGRAM_FOLDER
- CPACK_WIX_ROOT_FOLDER_ID
- CPACK_WIX_ROOT
+ - CPACK_WIX_CUSTOM_XMLNS # Since 3.19
+ - CPACK_WIX_SKIP_WIX_UI_EXTENSION # Since 3.23
+ - CPACK_WIX_ARCHITECTURE # Since 3.24
# - CTest
# - Dart
- BUILD_TESTING
@@ -1472,17 +2047,560 @@ variables:
- ExternalData_CUSTOM_LOCATION
- ExternalData_CUSTOM_FILE
- ExternalData_CUSTOM_ERROR
+ # - FetchContent
+ - FETCHCONTENT_QUIET
+ - FETCHCONTENT_FULLY_DISCONNECTED
+ - FETCHCONTENT_UPDATES_DISCONNECTED
+ - FETCHCONTENT_TRY_FIND_PACKAGE_MODE # Since 3.24
+ - FETCHCONTENT_SOURCE_DIR_<ucName>
+ - FETCHCONTENT_UPDATES_DISCONNECTED_<ucName>
# - FindXXX module "standard" variables
- <package>_INCLUDE_DIRS
- <package>_LIBRARIES
- <package>_LIBRARY_DIRS
- <package>_VERSION_STRING
+ # NOTE For the other stanfard finders below variables matched
+ # the regular expressions above gonna be omitted.
+ # - FindALSA
+ - ALSA_LIBRARY
+ # - FindArmadillo
+ - ALSA_LIBRARY
+ # - FindASPELL
+ - ASPELL_EXECUTABLE
+ - ASPELL_DEFINITIONS
+ # - FindAVIFile
+ - AVIFILE_DEFINITIONS
+ # - FindBacktrace
+ - Backtrace_HEADER
+ - Backtrace_LIBRARY
+ # - FindBISON
+ - BISON_EXECUTABLE
+ - BISON_<Name>_DEFINED
+ - BISON_<Name>_INPUT
+ - BISON_<Name>_OUTPUT_SOURCE
+ - BISON_<Name>_OUTPUT_HEADER
+ - BISON_<Name>_OUTPUTS
+ - BISON_<Name>_COMPILE_FLAGS
+ # - FindBLAS
+ - BLA_STATIC
+ - BLA_VENDOR
+ - BLA_F95
+ - BLA_PREFER_PKGCONFIG
+ - BLAS_LINKER_FLAGS
+ - BLA_SIZEOF_INTEGER # Since 3.22
+ # - FindBoost
+ - Boost_<COMPONENT>_LIBRARY
+ - Boost_VERSION_MACRO
+ - Boost_VERSION_COUNT
+ - Boost_INCLUDE_DIR
+ - Boost_LIBRARY_DIR_DEBUG
+ - Boost_LIBRARY_DIR_RELEASE
+ - Boost_<COMPONENT>_LIBRARY_DEBUG
+ - Boost_<COMPONENT>_LIBRARY_RELEASE
+ - BOOSTROOT
+ - BOOST_INCLUDEDIR
+ - BOOST_LIBRARYDIR
+ - Boost_NO_SYSTEM_PATHS
+ - Boost_ADDITIONAL_VERSIONS
+ - Boost_USE_DEBUG_LIBS
+ - Boost_USE_RELEASE_LIBS
+ - Boost_USE_MULTITHREADED
+ - Boost_USE_STATIC_LIBS
+ - Boost_USE_DEBUG_RUNTIME
+ - Boost_USE_DEBUG_PYTHON
+ - Boost_USE_STLPORT
+ - Boost_USE_STLPORT_DEPRECATED_NATIVE_IOSTREAMS
+ - Boost_COMPILER
+ - Boost_LIB_PREFIX
+ - Boost_ARCHITECTURE
+ - Boost_THREADAPI
+ - Boost_NAMESPACE
+ - Boost_DEBUG
+ - Boost_REALPATH
+ - Boost_NO_WARN_NEW_VERSIONS
+ # - FindBullet
+ # - FindBZip2
+ - BZIP2_NEED_PREFIX
+ - BZIP2_INCLUDE_DIR
+ # - FindCABLE
+ - CABLE
+ - CABLE_TCL_LIBRARY
+ - CABLE_INCLUDE_DIR
+ # - FindCoin3D
+ # - FindCUDAToolkit
+ - CUDAToolkit_NVCC_EXECUTABLE
+ # - FindCups
+ - CUPS_INCLUDE_DIR
+ # - FindCURL
+ - CURL_NO_CURL_CMAKE
+ - CURL_USE_STATIC_LIBS # Since 3.28
+ # - FindCurses
+ - CURSES_CFLAGS
+ - CURSES_HAVE_CURSES_H
+ - CURSES_HAVE_NCURSES_H
+ - CURSES_HAVE_NCURSES_NCURSES_H
+ - CURSES_HAVE_NCURSES_CURSES_H
+ - CURSES_NEED_NCURSES
+ - CURSES_NEED_WIDE
+ # - CURSES_LIBRARY deprecated
+ # - FindCVS
+ - CVS_EXECUTABLE
+ # - FindCxxTest
+ - CXXTEST_USE_PYTHON
+ - CXXTEST_TESTGEN_ARGS
+ - CXXTEST_PERL_TESTGEN_EXECUTABLE
+ - CXXTEST_PYTHON_TESTGEN_EXECUTABLE
+ - CXXTEST_TESTGEN_EXECUTABLE
+ - CXXTEST_TESTGEN_INTERPRETER
+ # - FindCygwin
+ # - FindDCMTK
+ # - FindDevIL
# - FindDoxygen
- DOXYGEN_<TAG>
+ # - FindEnvModules
+ - EnvModules_COMMAND
+ # - FindEXPAT
+ - EXPAT_USE_STATIC_LIBS # Since 3.28
+ # - FindFLEX
+ - FLEX_EXECUTABLE
+ # - FindFLTK
+ - FLTK_SKIP_OPENGL
+ - FLTK_SKIP_FORMS
+ - FLTK_SKIP_IMAGES
+ - FLTK_SKIP_FLUID
+ - FLTK_FLUID_EXECUTABLE
+ - FLTK_WRAP_UI
+ - FLTK_BASE_LIBRARY_RELEASE
+ - FLTK_BASE_LIBRARY_DEBUG
+ - FLTK_GL_LIBRARY_RELEASE
+ - FLTK_GL_LIBRARY_DEBUG
+ - FLTK_FORMS_LIBRARY_RELEASE
+ - FLTK_FORMS_LIBRARY_DEBUG
+ - FLTK_IMAGES_LIBRARY_RELEASE
+ - FLTK_IMAGES_LIBRARY_DEBUG
+ # - FindFLTK2
+ - FLTK2_FLUID_EXECUTABLE
+ - FLTK2_WRAP_UI
+ - FLTK2_BASE_LIBRARY
+ - FLTK2_GL_LIBRARY
+ - FLTK2_IMAGES_LIBRARY
+ # - FindFontconfig
+ - Fontconfig_COMPILE_OPTIONS
+ # - FindFreetype
+ - FREETYPE_INCLUDE_DIR_ft2build
+ - FREETYPE_INCLUDE_DIR_freetype2
+ # - FindGCCXML
+ - GCCXML
+ # - FindGDAL
+ - GDAL_LIBRARY
+ - FindGDAL_SKIP_GDAL_CONFIG
+ - GDAL_ADDITIONAL_LIBRARY_VERSIONS
+ # - FindGettext
+ - GETTEXT_MSGMERGE_EXECUTABLE
+ - GETTEXT_MSGFMT_EXECUTABLE
+ # - FindGIF
+ - GIF_LIBRARY
+ # - FindGit
+ - GIT_EXECUTABLE
+ # - FindGLEW
+ - GLEW_USE_STATIC_LIBS
+ - GLEW_VERBOSE
+ # - FindGLUT
+ - GLUT_glut_LIBRARY
+ - GLUT_Xmu_LIBRARY
+ - GLUT_Xi_LIBRARY
+ # - FindGnuplot
+ - GNUPLOT_EXECUTABLE
+ # - FindGnuTLS
+ - GNUTLS_DEFINITIONS
+ # - FindGSL
+ - GSL_CBLAS_LIBRARY
+ - GSL_CBLAS_LIBRARY_DEBUG
+ - GSL_CONFIG_EXECUTABLE
+ - GSL_LIBRARY
+ - GSL_LIBRARY_DEBUG
+ # - FindGTest
+ - GTEST_MSVC_SEARCH
+ # - FindGTK
+ # - FindGTK2
+ - GTK2_TARGETS
+ - GTK2_DEFINITIONS
+ - GTK2_USE_IMPORTED_TARGETS
+ - GTK2_DEBUG
+ - GTK2_ADDITIONAL_SUFFIXES
+ # - FindHDF5
+ - HDF5_DEFINITIONS
+ - HDF5_C_DEFINITIONS
+ - HDF5_CXX_DEFINITIONS
+ - HDF5_Fortran_DEFINITIONS
+ - HDF5_IS_PARALLEL
+ - HDF5_C_COMPILER_EXECUTABLE
+ - HDF5_CXX_COMPILER_EXECUTABLE
+ - HDF5_Fortran_COMPILER_EXECUTABLE
+ - HDF5_C_COMPILER_EXECUTABLE_NO_INTERROGATE
+ - HDF5_CXX_COMPILER_EXECUTABLE_NO_INTERROGATE
+ - HDF5_Fortran_COMPILER_EXECUTABLE_NO_INTERROGATE
+ - HDF5_DIFF_EXECUTABLE
+ - HDF5_PREFER_PARALLEL
+ - HDF5_FIND_DEBUG
+ - HDF5_NO_FIND_PACKAGE_CONFIG_FILE
+ # - FindHg
+ - HG_EXECUTABLE
+ #- <var-prefix>_WC_CHANGESET
+ #- <var-prefix>_WC_REVISION
+ # - FindHSPELL
+ # - FindHTMLHelp
+ - HTML_HELP_COMPILER
+ - HTML_HELP_LIBRARY
+ # - FindIce
+ # - FindIconv
+ - Iconv_IS_BUILT_IN
+ - Iconv_LIBRARY
+ # - FindIcotool
+ - ICOTOOL_EXECUTABLE
+ # - FindICU
+ - ICU_MAKEFILE_INC
+ - ICU_PKGDATA_INC
+ - ICU_<P>_EXECUTABLE
+ - ICU_<C>_LIBRARY
+ - ICU_DEBUG
+ # - FindImageMagick
+ # - FindIntl
+ - Intl_LIBRARY
+ - Intl_IS_BUILT_IN
+ # - FindITK
+ # - FindJasper
+ - JASPER_LIBRARY_RELEASE
+ - JASPER_LIBARRY_DEBUG
+ # - FindJava
+ - Java_JAVA_EXECUTABLE
+ - Java_JAVAC_EXECUTABLE
+ - Java_JAVAH_EXECUTABLE
+ - Java_JAVADOC_EXECUTABLE
+ - Java_IDLJ_EXECUTABLE
+ - Java_JAR_EXECUTABLE
+ - Java_JARSIGNER_EXECUTABLE
+ # - FindJNI
+ - JAVA_AWT_LIBRARY
+ - JAVA_JVM_LIBRARY
+ - JAVA_INCLUDE_PATH
+ - JAVA_INCLUDE_PATH2
+ - JAVA_AWT_INCLUDE_PATH
+ # - FindJPEG
+ - JPEG_LIBRARY_RELEASE
+ - JPEG_LIBRARY_DEBUG
+ - JPEG_LIBRARY
+ # - FindKDE3
+ # - FindKDE4
+ # - FindLAPACK
+ - LAPACK_LINKER_FLAGS
+ # - FindLATEX
+ - LATEX_COMPILER
+ - PDFLATEX_COMPILER
+ - XELATEX_COMPILER
+ - LUALATEX_COMPILER
+ - BIBTEX_COMPILER
+ - BIBER_COMPILER
+ - MAKEINDEX_COMPILER
+ - XINDY_COMPILER
+ - DVIPS_CONVERTER
+ - DVIPDF_CONVERTER
+ - PS2PDF_CONVERTER
+ - PDFTOPS_CONVERTER
+ - LATEX2HTML_CONVERTER
+ - HTLATEX_COMPILER
+ # - FindLibArchive
+ # - FindLibinput
+ - Libinput_COMPILE_OPTIONS
+ # - FindLibLZMA
+ - LIBLZMA_HAS_AUTO_DECODER
+ - LIBLZMA_HAS_EASY_ENCODER
+ - LIBLZMA_HAS_LZMA_PRESET
+ # - FindLibXml2
+ - LIBXML2_DEFINITIONS
+ - LIBXML2_XMLLINT_EXECUTABLE
+ - LIBXML2_LIBRARY
+ # - FindLibXslt
+ - LIBXSLT_DEFINITIONS
+ - LIBXSLT_XSLTPROC_EXECUTABLE
+ # - FindLTTngUST
+ - LTTNGUST_HAS_TRACEF
+ - LTTNGUST_HAS_TRACELOG
+ # - FindLua
+ # - FindLua50
+ # - FindLua51
+ # - FindMatlab
+ - MATLAB_FIND_DEBUG
+ - MATLAB_ADDITIONAL_VERSIONS
+ - Matlab_MAIN_PROGRAM
+ - Matlab_MEX_LIBRARY
+ - Matlab_MX_LIBRARY
+ - Matlab_ENG_LIBRARY
+ - Matlab_MAT_LIBRARY
+ - Matlab_ENGINE_LIBRARY
+ - Matlab_DATAARRAY_LIBRARY
+ - Matlab_MEX_COMPILER
+ - Matlab_MCC_COMPILER
+ - Matlab_MEX_EXTENSION
+ # - FindMFC
+ # - FindMotif
+ # - FindMPEG
+ - MPEG_mpeg2_LIBRARY
+ - MPEG_vo_LIBRARY
+ # - FindMPEG2
+ - MPEG2_mpeg2_LIBRARY
+ - MPEG2_vo_LIBRARY
+ # - FindMPI
+ - MPI_<lang>_COMPILER
+ - MPI_<lang>_COMPILE_OPTIONS
+ - MPI_<lang>_COMPILE_DEFINITIONS
+ - MPI_Fortran_HAVE_F77_HEADER
+ - MPI_Fortran_HAVE_F90_MODULE
+ - MPI_Fortran_HAVE_F08_MODULE
+ - MPIEXEC_EXECUTABLE
+ - MPIEXEC_NUMPROC_FLAG
+ - MPIEXEC_MAX_NUMPROCS
+ - MPIEXEC_PREFLAGS
+ - MPIEXEC_POSTFLAGS
+ - MPIEXEC_EXECUTABLE
+ - MPI_HOME
+ - MPI_COMPILER_FLAGS
+ - MPI_EXECUTABLE_SUFFIX
+ - MPI_GUESS_LIBRARY_NAME
+ - MPI_ASSUME_NO_BUILTIN_MPI
+ - MPI_SKIP_COMPILER_WRAPPER
+ - MPI_SKIP_GUESSING
+ - MPI_CXX_SKIP_MPICXX
+ - MPI_<lang>_ADDITIONAL_INCLUDE_VARS
+ - MPI_<lib_name>_LIBRARY
+ - MPI_<lang>_LIB_NAMES
+ - MPI_DETERMINE_Fortran_CAPABILITIES
+ - MPI_SUBARRAYS_SUPPORTED
+ - MPI_ASYNC_PROTECTS_NONBLOCKING
+ - MPI_Fortran_F77_HEADER_SUBARRAYS
+ - MPI_Fortran_F77_HEADER_ASYNCPROT
+ - MPI_Fortran_F90_MODULE_SUBARRAYS
+ - MPI_Fortran_F90_MODULE_ASYNCPROT
+ - MPI_Fortran_F08_MODULE_SUBARRAYS
+ - MPI_Fortran_F08_MODULE_ASYNCPROT
+ # - FindMsys
+ # - FindODBC
+ - ODBC_CONFIG
+ - ODBC_LIBRARY
+ # - FindOpenACC
+ - OpenACC_<lang>_FLAGS
+ - OpenACC_<lang>_OPTIONS
+ - OpenACC_<lang>_SPEC_DATE
+ - OpenACC_ACCEL_TARGET
+ # - FindOpenAL
+ - OPENAL_LIBRARY
+ # - FindOpenCL
+ - OpenCL_LIBRARY
+ # - FindOpenGL
+ - OPENGL_egl_LIBRARY
+ - OPENGL_glu_LIBRARY
+ - OPENGL_glx_LIBRARY
+ - OPENGL_opengl_LIBRARY
+ - OPENGL_gl_LIBRARY
+ - OpenGL_GL_PREFERENCE
+ # - FindOpenMP
+ - OpenMP_<lang>_FLAGS
+ - OpenMP_<lang>_LIB_NAMES
+ - OpenMP_<libname>_LIBRARY
+ - OpenMP_Fortran_HAVE_OMPLIB_HEADER
+ - OpenMP_Fortran_HAVE_OMPLIB_MODULE
+ - OpenMP_<lang>_SPEC_DATE
+ # - FindOpenSceneGraph
+ # - FindOpenSSL
+ - OPENSSL_CRYPTO_LIBRARY
+ - OPENSSL_SSL_LIBRARY
+ - OPENSSL_APPLINK_SOURCE
+ - OPENSSL_USE_STATIC_LIBS
+ - OPENSSL_MSVC_STATIC_RT
+ # - FindOpenThreads
+ # - Findosg
+ # - Findosg_functions
+ # - FindosgAnimation
+ # - FindosgDB
+ # - FindosgFX
+ # - FindosgGA
+ # - FindosgIntrospection
+ # - FindosgManipulator
+ # - FindosgParticle
+ # - FindosgPresentation
+ # - FindosgProducer
+ # - FindosgQt
+ # - FindosgShadow
+ # - FindosgSim
+ # - FindosgTerrain
+ # - FindosgText
+ # - FindosgUtil
+ # - FindosgViewer
+ # - FindosgVolume
+ # - FindosgWidget
+ # - FindPatch
+ - Patch_EXECUTABLE
+ # - FindPerl
+ - PERL_EXECUTABLE
+ # - FindPerlLibs
+ - PERL_SITESEARCH
+ - PERL_SITEARCH
+ - PERL_SITELIB
+ - PERL_VENDORARCH
+ - PERL_VENDORLIB
+ - PERL_ARCHLIB
+ - PERL_PRIVLIB
+ - PERL_UPDATE_ARCHLIB
+ - PERL_UPDATE_PRIVLIB
+ - PERL_EXTRA_C_FLAGS
+ # - FindPHP4
+ - PHP4_INCLUDE_PATH
+ - PHP4_EXECUTABLE
+ # - FindPhysFS
+ - PHYSFS_LIBRARY
+ # - FindPike
+ - PIKE_INCLUDE_PATH
+ - PIKE_EXECUTABLE
# - FindPkgConfig
- PKG_CONFIG_EXECUTABLE
- PKG_CONFIG_VERSION_STRING
- PKG_CONFIG_USE_CMAKE_PREFIX_PATH
+ - <prefix>_MODULE_NAME # Since 3.16
+ - <XXX>_LINK_LIBRARIES
+ - <XXX>_STATIC_LINK_LIBRARIES # Since 3.24
+ - <XXX>_LDFLAGS
+ - <XXX>_LDFLAGS_OTHER
+ - <XXX>_CFLAGS
+ - <XXX>_CFLAGS_OTHER
+ # - FindPNG
+ - PNG_DEFINITIONS
+ - PNG_LIBRARY
+ # - FindPostgreSQL
+ # - FindProducer
+ # - FindProtobuf
+ - Protobuf_SRC_ROOT_FOLDER
+ - Protobuf_IMPORT_DIRS
+ - Protobuf_DEBUG
+ - Protobuf_USE_STATIC_LIBS
+ - Protobuf_LIBRARY
+ - Protobuf_PROTOC_LIBRARY
+ - Protobuf_PROTOC_EXECUTABLE
+ - Protobuf_LIBRARY_DEBUG
+ - Protobuf_PROTOC_LIBRARY_DEBUG
+ - Protobuf_LITE_LIBRARY
+ - Protobuf_LITE_LIBRARY_DEBUG
+ # - FindPython
+ - Python_EXECUTABLE
+ - Python_INTERPRETER_ID
+ - Python_STDLIB
+ - Python_STDARCH
+ - Python_SITELIB
+ - Python_SITEARCH
+ - Python_SOABI
+ - Python_COMPILER
+ - Python_COMPILER_ID
+ - Python_DOTNET_LAUNCHER
+ - Python_LINK_OPTIONS
+ - Python_USE_STATIC_LIBS
+ - Python_FIND_ABI
+ - Python_FIND_STRATEGY
+ - Python_FIND_REGISTRY
+ - Python_FIND_FRAMEWORK
+ - Python_FIND_VIRTUALENV
+ - Python_FIND_IMPLEMENTATIONS
+ - Python_FIND_UNVERSIONED_NAMES
+ - Python_ARTIFACTS_INTERACTIVE
+ # - FindPython2
+ - Python2_EXECUTABLE
+ - Python2_INTERPRETER_ID
+ - Python2_STDLIB
+ - Python2_STDARCH
+ - Python2_SITELIB
+ - Python2_SITEARCH
+ - Python2_SOABI
+ - Python2_COMPILER
+ - Python2_COMPILER_ID
+ - Python2_DOTNET_LAUNCHER
+ - Python2_LINK_OPTIONS
+ - Python2_USE_STATIC_LIBS
+ - Python2_FIND_ABI
+ - Python2_FIND_STRATEGY
+ - Python2_FIND_REGISTRY
+ - Python2_FIND_FRAMEWORK
+ - Python2_FIND_VIRTUALENV
+ - Python2_FIND_IMPLEMENTATIONS
+ - Python2_FIND_UNVERSIONED_NAMES
+ - Python2_ARTIFACTS_INTERACTIVE
+ # - FindPython3
+ - Python3_EXECUTABLE
+ - Python3_INTERPRETER_ID
+ - Python3_STDLIB
+ - Python3_STDARCH
+ - Python3_SITELIB
+ - Python3_SITEARCH
+ - Python3_SOABI
+ - Python3_COMPILER
+ - Python3_COMPILER_ID
+ - Python3_DOTNET_LAUNCHER
+ - Python3_LINK_OPTIONS
+ - Python3_USE_STATIC_LIBS
+ - Python3_FIND_ABI
+ - Python3_FIND_STRATEGY
+ - Python3_FIND_REGISTRY
+ - Python3_FIND_FRAMEWORK
+ - Python3_FIND_VIRTUALENV
+ - Python3_FIND_IMPLEMENTATIONS
+ - Python3_FIND_UNVERSIONED_NAMES
+ - Python3_ARTIFACTS_INTERACTIVE
+ # - FindQt3
+ # - FindQt4
+ # - FindQuickTime
+ # - FindRTI
+ - RTI_DEFINITIONS
+ # - FindRuby
+ - Ruby_EXECUTABLE
+ - Ruby_FIND_VIRTUALENV
+ # - FindSDL
+ - SDL_LIBRARY
+ - SDL_BUILDING_LIBRARY
+ # - FindSDL_image
+ - SDLIMAGE_LIBRARY
+ # - FindSDL_mixer
+ - SDLMIXER_LIBRARY
+ # - FindSDL_net
+ - SDLNET_LIBRARY
+ # - FindSDL_sound
+ - SDL_SOUND_LIBRARY
+ # - FindSDL_ttf
+ - SDLTTF_LIBRARY
+ # - FindSelfPackers
+ # - FindSquish
+ - SQUISH_SERVER_EXECUTABLE
+ - SQUISH_CLIENT_EXECUTABLE
+ # - FindSQLite3
+ # - FindSubversion
+ - Subversion_SVN_EXECUTABLE
+ - Subversion_VERSION_SVN
+ # <var-prefix>_WC_URL
+ # <var-prefix>_WC_ROOT
+ # <var-prefix>_WC_REVISION
+ # <var-prefix>_WC_LAST_CHANGED_AUTHOR
+ # <var-prefix>_WC_LAST_CHANGED_DATE
+ # <var-prefix>_WC_LAST_CHANGED_REV
+ # <var-prefix>_WC_INFO
+ # - FindSWIG
+ - SWIG_EXECUTABLE
+ # - FindTCL
+ - TCL_INCLUDE_PATH
+ - TCL_TCLSH
+ - TK_LIBRARY
+ - TK_INCLUDE_PATH
+ - TK_WISH
+ # - FindTclsh
+ # - FindTclStub
+ - TCL_STUB_LIBRARY
+ - TK_STUB_LIBRARY
+ - TTK_STUB_LIBRARY
# - FindThreads
- CMAKE_THREAD_LIBS_INIT
- CMAKE_USE_SPROC_INIT
@@ -1491,6 +2609,63 @@ variables:
- CMAKE_HP_PTHREADS_INIT
- CMAKE_THREAD_PREFER_PTHREAD
- THREADS_PREFER_PTHREAD_FLAG
+ # - FindTIFF
+ - TIFF_LIBRARY_RELEASE
+ - TIFF_LIBRARY_DEBUG
+ - TIFFXX_LIBRARY_RELEASE
+ - TIFFXX_LIBRARY_DEBUG
+ # - FindUnixCommands
+ # - FindVTK
+ # - FindVulkan
+ - Vulkan_LIBRARY
+ - Vulkan_GLSLC_EXECUTABLE
+ - Vulkan_GLSLANG_VALIDATOR_EXECUTABLE
+ # - FindWget
+ - WGET_EXECUTABLE
+ # - FindWish
+ # - FindwxWidgets
+ - wxWidgets_CONFIGURATION
+ - wxWidgets_EXCLUDE_COMMON_LIBRARIES
+ - wxWidgets_USE_DEBUG
+ - wxWidgets_USE_UNICODE
+ - wxWidgets_USE_UNIVERSAL
+ - wxWidgets_USE_STATIC
+ - wxWidgets_DEFINITIONS
+ - wxWidgets_DEFINITIONS_DEBUG
+ - wxWidgets_CXX_FLAGS
+ - wxWidgets_USE_FILE
+ # - FindX11
+ # - FindXalanC
+ - XalanC_LIBRARY
+ # - FindXCTest
+ - XCTest_EXECUTABLE
+ # - FindXercesC
+ - XercesC_LIBRARY
+ # - FindXMLRPC
+ # - FindZLIB
+ - ZLIB_USE_STATIC_LIBS # Since 3.24
+ # - FortranCInterface
+ # The following vars gonna match by regex
+ # - FortranCInterface_GLOBAL_FOUND
+ # - FortranCInterface_MODULE_FOUND
+ - FortranCInterface_GLOBAL_PREFIX
+ - FortranCInterface_GLOBAL_SUFFIX
+ - FortranCInterface_GLOBAL_CASE
+ - FortranCInterface_GLOBAL__PREFIX
+ - FortranCInterface_GLOBAL__SUFFIX
+ - FortranCInterface_GLOBAL__CASE
+ - FortranCInterface_MODULE_PREFIX
+ - FortranCInterface_MODULE_MIDDLE
+ - FortranCInterface_MODULE_SUFFIX
+ - FortranCInterface_MODULE_CASE
+ - FortranCInterface_MODULE__PREFIX
+ - FortranCInterface_MODULE__MIDDLE
+ - FortranCInterface_MODULE__SUFFIX
+ - FortranCInterface_MODULE__CASE
+ - FortranCInterface_VERIFIED_C
+ - FortranCInterface_VERIFIED_CXX
+ - FortranCInterface_GLOBAL_SYMBOLS
+ - FortranCInterface_MODULE_SYMBOLS
# - GNUInstallDirs
- CMAKE_INSTALL_BINDIR
- CMAKE_INSTALL_FULL_BINDIR
@@ -1524,6 +2699,8 @@ variables:
- CMAKE_INSTALL_FULL_MANDIR
- CMAKE_INSTALL_DOCDIR
- CMAKE_INSTALL_FULL_DOCDIR
+ # - GoogleTest
+ - CMAKE_GTEST_DISCOVER_TESTS_DISCOVERY_MODE
# - InstallRequiredSystemLibraries
- CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
- CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP
@@ -1543,18 +2720,160 @@ variables:
- CMAKE_NO_ANSI_STRING_STREAM
# - TestForSTDNamespace
- CMAKE_NO_STD_NAMESPACE
+ # - UseJava
+ - CMAKE_JAVA_COMPILE_FLAGS
+ - CMAKE_JAVA_INCLUDE_PATH
+ - CMAKE_JNI_TARGET
+ - CMAKE_JAR_CLASSES_PREFIX
# - UseSWIG
+ - UseSWIG_MODULE_VERSION # Since 3.12
- CMAKE_SWIG_FLAGS
- CMAKE_SWIG_OUTDIR
+ - SWIG_OUTFILE_DIR
- SWIG_MODULE_<name>_EXTRA_DEPS
+ - SWIG_SOURCE_FILE_EXTENSIONS # Since 3.14
+ - SWIG_USE_SWIG_DEPENDENCIES # Since 3.20
+
+deprecated-or-internal-variables:
+ - CMAKE_HOME_DIRECTORY
+ - CMAKE_INTERNAL_PLATFORM_ABI
+ - CMAKE_<LANG>_COMPILER_ABI
+ - CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID
+ - CMAKE_<LANG>_COMPILER_VERSION_INTERNAL
+ - CMAKE_<LANG>_PLATFORM_ID
+ - CMAKE_NOT_USING_CONFIG_FLAGS
+ - CMAKE_VS_INTEL_Fortran_PROJECT_VERSION
+ - CPACK_INSTALL_SCRIPT # Deprecated since 3.16
+ # Various undocumented variables (yet)
+ - CMAKE_SUPPRESS_DEVELOPER_WARNINGS # CMake <= 3.10
+ - CMAKE_SUPPRESS_DEVELOPER_ERRORS # CMake <= 3.10
+ - CMAKE_FILES_DIRECTORY
+ # The following variables used by CPack and some CMake modules,
+ # but not documented (yet):
+ # used by some modules like Deb and NSIS
+ - CPACK_PACKAGE_CONTACT
+ # used in CPack.cmake as default value for `CPACK_RPM_PACKAGE_RELOCATABLE`
+ - CPACK_PACKAGE_RELOCATABLE
+ # mentioned in CPack External generator but not documented (yet)
+ - CPACK_TEMPORARY_DIRECTORY
+ - CPACK_TOPLEVEL_DIRECTORY
+ - CPACK_INSTALL_PREFIX
+ # Mentioned in `file(GET_RUNTIME_DEPENDENCIES)` docs
+ - CMAKE_OBJDUMP
+ # Mentioned in "Deprecated and Removed Features" of release notes 3.21
+ - CMAKE_SYSTEM_ARCH
+ # Superseded by `CMAKE_EXECUTABLE_ENABLE_EXPORTS`
+ - CMAKE_ENABLE_EXPORTS
+ - CMAKE_IOS_INSTALL_COMBINED # Since 3.28
+
+
+
+# https://cmake.org/cmake/help/latest/manual/cmake-env-variables.7.html
+# NOTE Added to syntax file version 14 at 3.15.0 version of CMake
+environment-variables:
+ # Environment Variables that Change Behavior
+ - CMAKE_PREFIX_PATH
+ - SSL_CERT_DIR # Since 3.25
+ - SSL_CERT_FILE # Since 3.25
+ # Environment Variables that Control the Build
+ - ADSP_ROOT # Since 3.24
+ - CMAKE_APPLE_SILICON_PROCESSOR # Since 3.19.2
+ - CMAKE_BUILD_PARALLEL_LEVEL
+ - CMAKE_BUILD_TYPE # Since 3.22
+ - CMAKE_COLOR_DIAGNOSTICS # Since 3.24
+ - CMAKE_CONFIGURATION_TYPES # Since 3.22
+ - CMAKE_CONFIG_TYPE
+ - CMAKE_CROSSCOMPILING_EMULATOR # Since 3.28
+ - CMAKE_EXPORT_COMPILE_COMMANDS # Since 3.17
+ - CMAKE_GENERATOR
+ - CMAKE_GENERATOR_INSTANCE
+ - CMAKE_GENERATOR_PLATFORM
+ - CMAKE_GENERATOR_TOOLSET
+ - CMAKE_INSTALL_MODE # Since 3.22
+ - CMAKE_<LANG>_COMPILER_LAUNCHER # Since 3.17
+ - CMAKE_<LANG>_LINKER_LAUNCHER # Since 3.21
+ - CMAKE_MSVCIDE_RUN_PATH
+ - CMAKE_NO_VERBOSE
+ - CMAKE_OSX_ARCHITECTURES
+ - CMAKE_TOOLCHAIN_FILE # Since 3.21
+ - DESTDIR
+ - LDFLAGS
+ - MACOSX_DEPLOYMENT_TARGET
+ - <PackageName>_ROOT
+ - VERBOSE
+ # Environment Variables for Languages
+ - ASM<DIALECT>
+ - ASM<DIALECT>FLAGS
+ - CC
+ - CFLAGS
+ - CSFLAGS
+ - CUDAARCHS # Since 3.20
+ - CUDACXX
+ - CUDAFLAGS
+ - CUDAHOSTCXX
+ - CXX
+ - CXXFLAGS
+ - FC
+ - FFLAGS
+ - HIPCXX # Since 3.21
+ - HIPFLAGS # Since 3.21
+ - ISPC # Since 3.19
+ - ISPCFLAGS # Since 3.19
+ - OBJC # Since 3.16.7
+ - OBJCXX # Since 3.16.7
+ - RC
+ - RCFLAGS
+ - SWIFTC
+ # Environment Variables for CTest
+ - CMAKE_CONFIG_TYPE
+ - CTEST_INTERACTIVE_DEBUG_MODE
+ - CTEST_NO_TESTS_ACTION # Since 3.26
+ - CTEST_OUTPUT_ON_FAILURE
+ - CTEST_PARALLEL_LEVEL
+ - CTEST_PROGRESS_OUTPUT
+ - CTEST_USE_LAUNCHERS_DEFAULT
+ - DASHBOARD_TEST_FROM_CTEST
+ # Environment Variables for the CMake curses interface
+ - CCMAKE_COLORS
+ # Here are the `find_package` specific variables described at the
+ # https://cmake.org/cmake/help/latest/command/find_package.html
+ - <PackageName>_DIR
+ - CMAKE_FRAMEWORK_PATH
+ - CMAKE_APPBUNDLE_PATH
+ - PATH
+ # Environment Variables recognized by some standard modules
+ - QTIFWDIR
+ - CUDA_PATH # FindCUDAToolkit
scripting-commands:
-
+ name: block # Since 3.25
+ named-args: [
+ SCOPE_FOR
+ , PROPAGATE
+ ]
+ special-args: [
+ POLICIES
+ , VARIABLES
+ ]
+ start-region: block
+ -
name: break
nulary?: true
-
name: cmake_host_system_information
- named-args: [RESULT, QUERY]
+ named-args: [
+ RESULT
+ , QUERY
+ # Since 3.24
+ , WINDOWS_REGISTRY
+ , VALUE_NAMES
+ , SUBKEYS
+ , VALUE
+ , VIEW
+ , SEPARATOR
+ , ERROR_VARIABLE
+ ]
special-args: [
NUMBER_OF_LOGICAL_CORES
, NUMBER_OF_PHYSICAL_CORES
@@ -1584,7 +2903,41 @@ scripting-commands:
, OS_RELEASE
, OS_VERSION
, OS_PLATFORM
+ , MSYSTEM_PREFIX # Since 3.28
+ # Since 3.22
+ , DISTRIB_INFO
+ , DISTRIB_<name>
+ # Since 3.24
+ , '64'
+ , '32'
+ , '64_32'
+ , '32_64'
+ , HOST
+ , TARGET
+ , BOTH
+ ]
+ -
+ name: cmake_language
+ named-args: [
+ CALL
+ , EVAL
+ , CODE
+ # Since 3.19
+ , DEFER
+ , DIRECTORY
+ , ID
+ , ID_VAR
+ , GET_CALL_IDS
+ , GET_CALL
+ , CANCEL_CALL
+ # Since 3.24
+ , SET_DEPENDENCY_PROVIDER
+ , SUPPORTED_METHODS
+ # Since 3.25
+ , GET_MESSAGE_LOG_LEVEL
]
+ # Since 3.24
+ special-args: [FIND_PACKAGE, FETCHCONTENT_MAKEAVAILABLE_SERIAL]
-
name: cmake_minimum_required
named-args: [VERSION, FATAL_ERROR]
@@ -1592,12 +2945,72 @@ scripting-commands:
name: cmake_parse_arguments
named-args: [PARSE_ARGV]
-
+ name: cmake_path # Since 3.20
+ named-args: [
+ # Decomposition
+ GET
+ , ROOT_NAME
+ , ROOT_DIRECTORY
+ , ROOT_PATH
+ , FILENAME
+ , EXTENSION
+ , LAST_ONLY
+ , STEM
+ , RELATIVE_PART
+ , PARENT_PATH
+ # Query
+ , HAS_ROOT_NAME
+ , HAS_ROOT_DIRECTORY
+ , HAS_ROOT_PATH
+ , HAS_FILENAME
+ , HAS_EXTENSION
+ , HAS_STEM
+ , HAS_RELATIVE_PART
+ , HAS_PARENT_PATH
+ , IS_ABSOLUTE
+ , IS_RELATIVE
+ , IS_PREFIX
+ , NORMALIZE
+ , COMPARE # Since 3.??
+ , EQUAL # Since 3.??
+ , NOT_EQUAL # Since 3.??
+ # Modification
+ , SET
+ , APPEND
+ , OUTPUT_VARIABLE
+ , APPEND_STRING
+ , REMOVE_FILENAME
+ , REPLACE_FILENAME
+ , REMOVE_EXTENSION
+ , REPLACE_EXTENSION
+ # Generation
+ , NORMAL_PATH
+ , RELATIVE_PATH
+ , BASE_DIRECTORY
+ , ABSOLUTE_PATH
+ # Native Conversion
+ , NATIVE_PATH
+ , CONVERT
+ , TO_CMAKE_PATH_LIST
+ , TO_NATIVE_PATH_LIST
+ # Hashing
+ , HASH
+ ]
+ -
name: cmake_policy
named-args: [GET, SET, PUSH, POP, VERSION]
special-args: [OLD, NEW]
-
name: configure_file
- named-args: [COPYONLY, ESCAPE_QUOTES, "@ONLY", NEWLINE_STYLE]
+ named-args: [
+ COPYONLY
+ , ESCAPE_QUOTES
+ , NO_SOURCE_PERMISSIONS # Since 3.19
+ , "@ONLY"
+ , NEWLINE_STYLE
+ , USE_SOURCE_PERMISSIONS # Since 3.20
+ , FILE_PERMISSIONS # Since 3.20
+ ]
special-args: [UNIX, DOS, WIN32, LF, CRLF]
-
name: continue
@@ -1608,12 +3021,12 @@ scripting-commands:
NOT
, AND
, OR
+ , COMMAND
, POLICY
, TARGET
, TEST
, EXISTS
, IS_NEWER_THAN
- , IS_NEWER_THAN
, IS_DIRECTORY
, IS_SYMLINK
, IS_ABSOLUTE
@@ -1635,26 +3048,37 @@ scripting-commands:
, VERSION_GREATER_EQUAL
, IN_LIST
, DEFINED
+ , PATH_EQUAL # Since 3.24
]
+ has-target-name-after-kw: TARGET
nested-parentheses?: true
-
name: else
nulary?: true
-
+ name: endblock
+ nulary?: true
+ end-region: block
+ -
name: endforeach
nulary?: true
+ end-region: foreach
-
name: endfunction
nulary?: true
+ end-region: function
-
name: endif
nulary?: true
+ end-region: if
-
name: endmacro
nulary?: true
+ end-region: macro
-
name: endwhile
nulary?: true
+ end-region: while
-
name: execute_process
named-args: [
@@ -1670,11 +3094,26 @@ scripting-commands:
, ERROR_FILE
, OUTPUT_QUIET
, ERROR_QUIET
+ , COMMAND_ECHO # Since 3.15
, OUTPUT_STRIP_TRAILING_WHITESPACE
, ERROR_STRIP_TRAILING_WHITESPACE
, ENCODING
+ , ECHO_OUTPUT_VARIABLE # Since 3.18
+ , ECHO_ERROR_VARIABLE # Since 3.18
+ , COMMAND_ERROR_IS_FATAL # Since 3.19
]
- special-args: [NONE, AUTO, ANSI, OEM, UTF8]
+ special-args: [
+ NONE
+ , AUTO
+ , ANSI
+ , OEM
+ , UTF8
+ , STDERR # Since 3.15: the value for `COMMAND_ECHO`
+ , STDOUT # Since 3.15: the value for `COMMAND_ECHO`
+ , ANY # Since 3.19: the value for `COMMAND_ERROR_IS_FATAL`
+ , LAST # Since 3.19: the value for `COMMAND_ERROR_IS_FATAL`
+ ]
+ nested-parentheses?: true
-
name: file
named-args: [
@@ -1730,6 +3169,8 @@ scripting-commands:
, HTTPHEADER
, EXPECTED_HASH
, EXPECTED_MD5
+ , RANGE_START # Since 3.24
+ , RANGE_END # Since 3.24
, TLS_VERIFY
, TLS_CAINFO
, TIMESTAMP
@@ -1739,6 +3180,7 @@ scripting-commands:
, INPUT
, CONTENT
, CONDITION
+ , TARGET # Since 3.19
, COPY
, INSTALL
, DESTINATION
@@ -1746,6 +3188,7 @@ scripting-commands:
, DIRECTORY_PERMISSIONS
, NO_SOURCE_PERMISSIONS
, USE_SOURCE_PERMISSIONS
+ , FOLLOW_SYMLINK_CHAIN # Since 3.15
, FILES_MATCHING
, PATTERN
, REGEX
@@ -1760,6 +3203,49 @@ scripting-commands:
# Sub-options of UPLOAD/DOWNLOAD since 3.11
, NETRC
, NETRC_FILE
+ # New sub-options since 3.14
+ , READ_SYMLINK
+ , SIZE
+ # New sub-options since 3.16
+ , GET_RUNTIME_DEPENDENCIES
+ , RESOLVED_DEPENDENCIES_VAR
+ , UNRESOLVED_DEPENDENCIES_VAR
+ , EXECUTABLES
+ , LIBRARIES
+ , MODULES
+ , DIRECTORIES
+ , BUNDLE_EXECUTABLE
+ , PRE_INCLUDE_REGEXES
+ , PRE_EXCLUDE_REGEXES
+ , POST_INCLUDE_REGEXES
+ , POST_EXCLUDE_REGEXES
+ , POST_INCLUDE_FILES # Since 3.21
+ , POST_EXCLUDE_FILES # Since 3.21
+ # New sub-options since 3.18
+ , ARCHIVE_CREATE
+ , FILES
+ , FORMAT
+ , COMPRESSION
+ , COMPRESSION_LEVEL # Since 3.19
+ , MTIME
+ , VERBOSE
+ , ARCHIVE_EXTRACT
+ , LIST_ONLY
+ , CONFIGURE
+ , ESCAPE_QUOTES
+ , "@ONLY"
+ , NEWLINE_STYLE
+ # New sub-options since 3.19
+ , CHMOD
+ , CHMOD_RECURSE
+ , REAL_PATH
+ , BASE_DIRECTORY
+ # New sub-options since 3.21
+ , COPY_FILE
+ , RESULT
+ , ONLY_IF_DIFFERENT
+ , EXPAND_TILDE
+ , NO_REPLACE
]
special-args: [
UTF-8
@@ -1781,9 +3267,29 @@ scripting-commands:
, WORLD_EXECUTE
, SETUID
, SETGID
- , IGNORED # NETRC options since 3.11
+ # Special args for NETRC options since 3.11
+ , IGNORED
, OPTIONAL
, REQUIRED
+ # Special args for `FORMAT` named argument since 3.18
+ , 7zip
+ , gnutar
+ , pax
+ , paxr
+ , raw
+ , zip
+ # Special args for `TYPE` named argument since 3.18
+ , None
+ , BZip2
+ , GZip
+ , XZ
+ , Zstd
+ # Special args for `NEWLINE_STYLE` named argument since 3.18
+ , UNIX
+ , DOS
+ , WIN32
+ , LF
+ , CRLF
]
-
name: find_file
@@ -1793,6 +3299,8 @@ scripting-commands:
, PATHS
, PATH_SUFFIXES
, DOC
+ , NO_CACHE # Since 3.21
+ , REQUIRED # Since 3.18
, NO_DEFAULT_PATH
, NO_PACKAGE_ROOT_PATH
, NO_CMAKE_PATH
@@ -1802,7 +3310,12 @@ scripting-commands:
, CMAKE_FIND_ROOT_PATH_BOTH
, ONLY_CMAKE_FIND_ROOT_PATH
, NO_CMAKE_FIND_ROOT_PATH
+ , NO_CMAKE_INSTALL_PREFIX # Since 3.24
+ , REGISTRY_VIEW # Since 3.24
+ , VALIDATOR # Since 3.25
]
+ # Since 3.24
+ special-args: &reg_view_special ['64', '32', '64_32', '32_64', HOST, TARGET, BOTH]
-
name: find_library
named-args: &find_library [
@@ -1812,6 +3325,8 @@ scripting-commands:
, PATHS
, PATH_SUFFIXES
, DOC
+ , NO_CACHE # Since 3.21
+ , REQUIRED # Since 3.18
, NO_DEFAULT_PATH
, NO_PACKAGE_ROOT_PATH
, NO_CMAKE_PATH
@@ -1821,7 +3336,11 @@ scripting-commands:
, CMAKE_FIND_ROOT_PATH_BOTH
, ONLY_CMAKE_FIND_ROOT_PATH
, NO_CMAKE_FIND_ROOT_PATH
+ , NO_CMAKE_INSTALL_PREFIX # Since 3.24
+ , REGISTRY_VIEW # Since 3.24
+ , VALIDATOR # Since 3.25
]
+ special-args: *reg_view_special # Since 3.24
-
name: find_package
named-args: [
@@ -1850,31 +3369,83 @@ scripting-commands:
, CMAKE_FIND_ROOT_PATH_BOTH
, ONLY_CMAKE_FIND_ROOT_PATH
, NO_CMAKE_FIND_ROOT_PATH
+ , NO_CMAKE_INSTALL_PREFIX # Since 3.24
+ , BYPASS_PROVIDER # Since 3.24
+ , REGISTRY_VIEW # Since 3.24
+ , GLOBAL # Since 3.24
]
+ special-args: *reg_view_special # Since 3.24
-
name: find_path
named-args: *find_file
+ special-args: *reg_view_special # Since 3.24
-
name: find_program
named-args: *find_library
+ special-args: *reg_view_special # Since 3.24
-
name: foreach
- named-args: [RANGE, IN, LISTS, ITEMS]
+ named-args: [
+ RANGE
+ , IN
+ , LISTS
+ , ITEMS
+ , ZIP_LISTS # Since 3.17
+ ]
+ start-region: foreach
-
name: function
+ start-region: function
-
name: get_cmake_property
property-args: [global-properties]
+ special-args: [
+ COMMANDS
+ , COMPONENTS
+ , MACROS
+ , VARIABLES
+ , CACHE_VARIABLES
+ ]
-
name: get_directory_property
named-args: [DIRECTORY, DEFINITION]
property-args: &get_directory_property [directory-properties]
-
name: get_filename_component
- named-args: [DIRECTORY, NAME, EXT, NAME_WE, PATH, CACHE, BASE_DIR, ABSOLUTE, REALPATH, PROGRAM, PROGRAM_ARGS]
+ named-args: [
+ DIRECTORY
+ , NAME
+ , EXT
+ , NAME_WE
+ , PATH
+ , CACHE
+ , BASE_DIR
+ , ABSOLUTE
+ , REALPATH
+ , PROGRAM
+ , PROGRAM_ARGS
+ , LAST_EXT # Since 3.14
+ , NAME_WLE # Since 3.14
+ ]
-
name: get_property
- named-args: [GLOBAL, DIRECTORY, TARGET, SOURCE, INSTALL, TEST, CACHE, VARIABLE, PROPERTY, SET, DEFINED, BRIEF_DOCS, FULL_DOCS]
+ named-args: [
+ GLOBAL
+ , DIRECTORY
+ , TARGET
+ , SOURCE
+ , TARGET_DIRECTORY # `SOURCE` sub-option since 3.18
+ , DIRECTORY # `SOURCE` sub-option since 3.18
+ , INSTALL
+ , TEST
+ , CACHE
+ , VARIABLE
+ , PROPERTY
+ , SET
+ , DEFINED
+ , BRIEF_DOCS
+ , FULL_DOCS
+ ]
property-args: &get-property [
global-properties
, directory-properties
@@ -1887,7 +3458,9 @@ scripting-commands:
-
name: if
named-args: *if
+ has-target-name-after-kw: TARGET
nested-parentheses?: true
+ start-region: if
-
name: include
named-args: [OPTIONAL, RESULT_VARIABLE, NO_POLICY_SCOPE]
@@ -1933,11 +3506,24 @@ scripting-commands:
, FOR
# NOTE Another `REGEX` named arg has already added
, OUTPUT_VARIABLE
+ # Since 3.15
+ # NOTE Another `PREPEND` named arg has already added
+ , POP_FRONT
+ , POP_BACK
]
# Since 3.13
- special-args: [STRING, FILE_BASENAME, SENSITIVE, INSENSITIVE, ASCENDING, DESCENDING]
+ special-args: [
+ STRING
+ , FILE_BASENAME
+ , SENSITIVE
+ , INSENSITIVE
+ , ASCENDING
+ , DESCENDING
+ , NATURAL # Since 3.18
+ ]
-
name: macro
+ start-region: macro
-
name: mark_as_advanced
named-args: [CLEAR, FORCE]
@@ -1951,22 +3537,61 @@ scripting-commands:
special-args: [DECIMAL, HEXADECIMAL]
-
name: message
- named-args: [STATUS, WARNING, AUTHOR_WARNING, SEND_ERROR, FATAL_ERROR, DEPRECATION]
+ named-args: [
+ STATUS
+ , WARNING
+ , AUTHOR_WARNING
+ , SEND_ERROR
+ , FATAL_ERROR
+ , DEPRECATION
+ # Since 3.15
+ , NOTICE
+ , VERBOSE
+ , DEBUG
+ , TRACE
+ # Since 3.17
+ , CHECK_START
+ , CHECK_PASS
+ , CHECK_FAIL
+ # Since 3.26
+ , CONFIGURE_LOG
+ ]
-
name: option
-
name: return
- nulary?: true
+ named-args: [PROPAGATE] # Since 3.25
-
name: separate_arguments
- named-args: [NATIVE_COMMAND, UNIX_COMMAND, WINDOWS_COMMAND]
+ named-args: [
+ NATIVE_COMMAND
+ , UNIX_COMMAND
+ , WINDOWS_COMMAND
+ , PROGRAM # Since 3.19
+ , SEPARATE_ARGS # Since 3.19
+ ]
-
name: set_directory_properties
named-args: [PROPERTIES]
property-args: *get-property
-
name: set_property
- named-args: [GLOBAL, DIRECTORY, TARGET, DIRECTORY, SOURCE, INSTALL, TEST, CACHE, VARIABLE, APPEND, APPEND_STRING, PROPERTY]
+ named-args: [
+ GLOBAL
+ , DIRECTORY
+ , TARGET
+ , DIRECTORY
+ , SOURCE
+ , TARGET_DIRECTORY # `SOURCE` sub-option since 3.18
+ , DIRECTORY # `SOURCE` sub-option since 3.18
+ , INSTALL
+ , TEST
+ , CACHE
+ , VARIABLE
+ , APPEND
+ , APPEND_STRING
+ , PROPERTY
+ ]
property-args: *get-property
-
name: set
@@ -1993,6 +3618,7 @@ scripting-commands:
, SUBSTRING
, STRIP
, GENEX_STRIP
+ , REPEAT # Since 3.15
, COMPARE
, LESS
, GREATER
@@ -2011,6 +3637,7 @@ scripting-commands:
, SHA3_384
, SHA3_512
, ASCII
+ , HEX # Since 3.18
, CONFIGURE
, "@ONLY"
, ESCAPE_QUOTES
@@ -2026,6 +3653,16 @@ scripting-commands:
, NAME
, TYPE
, UPPER
+ # Since 3.19
+ , JSON
+ , ERROR_VARIABLE
+ , GET
+ , TYPE
+ , MEMBER
+ , LENGTH
+ , REMOVE
+ , SET
+ , EQUAL
]
-
name: unset
@@ -2035,7 +3672,9 @@ scripting-commands:
-
name: while
named-args: *if
+ has-target-name-after-kw: TARGET
nested-parentheses?: true
+ start-region: while
project-commands:
-
@@ -2055,15 +3694,20 @@ project-commands:
, WORKING_DIRECTORY
, COMMENT
, DEPFILE
+ , JOB_POOL # Since 3.15
+ , JOB_SERVER_AWARE # Since 3.28
, VERBATIM
, APPEND
, USES_TERMINAL
, COMMAND_EXPAND_LISTS
+ , DEPENDS_EXPLICIT_ONLY # Since 3.27
, TARGET
, PRE_BUILD
, PRE_LINK
, POST_BUILD
]
+ nested-parentheses?: true
+ has-target-name-after-kw: TARGET
-
name: add_custom_target
named-args: [
@@ -2075,61 +3719,120 @@ project-commands:
, WORKING_DIRECTORY
, COMMENT
, DEPFILE
+ , JOB_POOL # Since 3.15
+ , JOB_SERVER_AWARE # Since 3.28
, VERBATIM
, APPEND
, USES_TERMINAL
, COMMAND_EXPAND_LISTS
, SOURCES
]
+ first-arg-is-target?: true
+ nested-parentheses?: true
-
name: add_definitions
-
name: add_dependencies
+ first-args-are-targets?: true
-
name: add_executable
named-args: [WIN32, MACOSX_BUNDLE, EXCLUDE_FROM_ALL, IMPORTED, GLOBAL, ALIAS]
+ first-arg-is-target?: true
-
name: add_library
named-args: [STATIC, SHARED, MODULE, OBJECT, EXCLUDE_FROM_ALL, IMPORTED, UNKNOWN, GLOBAL, ALIAS, INTERFACE]
+ first-arg-is-target?: true
+ has-target-name-after-kw: ALIAS
-
name: add_link_options
-
name: add_subdirectory
- named-args: [EXCLUDE_FROM_ALL]
+ named-args: [
+ EXCLUDE_FROM_ALL
+ , SYSTEM # Since 3.25
+ ]
-
name: add_test
- named-args: [NAME, COMMAND, CONFIGURATIONS, WORKING_DIRECTORY]
+ named-args: [NAME, COMMAND, COMMAND_EXPAND_LISTS, CONFIGURATIONS, WORKING_DIRECTORY]
+ nested-parentheses?: true
-
name: aux_source_directory
-
name: build_command
- named-args: [CONFIGURATION, TARGET]
+ named-args: [
+ CONFIGURATION
+ , PARALLEL_LEVEL # Since 3.21
+ , TARGET
+ ]
+ has-target-name-after-kw: TARGET
+ -
+ name: cmake_file_api # Since 3.27
+ named-args: [QUERY, API_VERSION, CODEMODEL, CACHE, CMAKEFILES, TOOLCHAINS]
-
name: create_test_sourcelist
named-args: [EXTRA_INCLUDE, FUNCTION]
-
name: define_property
- named-args: [GLOBAL, DIRECTORY, DIRECTORY, SOURCE, TEST, VARIABLE, CACHED_VARIABLE, PROPERTY, INHERITED, BRIEF_DOCS, FULL_DOCS]
+ named-args: [
+ GLOBAL
+ , DIRECTORY
+ , DIRECTORY
+ , SOURCE
+ , TEST
+ , VARIABLE
+ , CACHED_VARIABLE
+ , PROPERTY
+ , INHERITED
+ , BRIEF_DOCS
+ , FULL_DOCS
+ , INITIALIZE_FROM_VARIABLE # Since 3.23
+ ]
property-args: *get-property
-
name: enable_language
named-args: [OPTIONAL]
- special-args: [C, CXX, RC, Fortran]
+ special-args: &langs [
+ ASM
+ , ASM-ATT
+ , ASM_NASM
+ , ASM_MARMASM # Since 3.26
+ , ASM_MASM
+ , C
+ , CSharp
+ , CXX
+ , CUDA
+ , HIP # Since 3.21
+ , ISPC # Since 3.19
+ , Java
+ , OBJC # Since 3.16
+ , OBJCXX # Since 3.16
+ , RC
+ , Fortran
+ , Swift
+ ]
-
name: enable_testing
-
name: export
named-args: [EXPORT, NAMESPACE, FILE, TARGETS, APPEND, EXPORT_LINK_INTERFACE_LIBRARIES, ANDROID_MK]
+ has-target-names-after-kw: TARGETS
-
name: fltk_wrap_ui
-
name: get_source_file_property
+ named-args: [
+ # Sice 3.18
+ TARGET_DIRECTORY
+ , DIRECTORY
+ ]
property-args: &get_source_file_property [source-properties]
-
name: get_target_property
+ second-arg-is-target?: true
property-args: &get_target_property [target-properties]
-
name: get_test_property
+ named-args: [DIRECTORY] # Since 3.28
property-args: &get_test_property [test-properties]
-
name: include_directories
@@ -2151,6 +3854,7 @@ project-commands:
, EXCLUDE_FROM_ALL
, RENAME
, OPTIONAL
+ , TYPE # Since 3.20
# Installing Targets
, TARGETS
, EXPORT
@@ -2163,9 +3867,11 @@ project-commands:
, PRIVATE_HEADER
, PUBLIC_HEADER
, RESOURCE
+ , FILE_SET # Since 3.23
, INCLUDES
, NAMELINK_ONLY
, NAMELINK_SKIP
+ , RUNTIME_DEPENDENCIES # Since 3.21
# Installing Files
, FILES
, PROGRAMS
@@ -2187,6 +3893,17 @@ project-commands:
, FILE
, EXPORT_ANDROID_MK
, EXPORT_LINK_INTERFACE_LIBRARIES
+ # Installing Imported Runtime Artifacts (since 3.21)
+ , IMPORTED_RUNTIME_ARTIFACTS
+ , RUNTIME_DEPENDENCY_SET
+ # Installing Runtime Dependencies (since 3.21)
+ , PRE_INCLUDE_REGEXES
+ , PRE_EXCLUDE_REGEXES
+ , POST_INCLUDE_REGEXES
+ , POST_EXCLUDE_REGEXES
+ , POST_INCLUDE_FILES
+ , POST_EXCLUDE_FILES
+ , DIRECTORIES
]
special-args: &valid_permissions [
OWNER_READ
@@ -2201,12 +3918,13 @@ project-commands:
, SETUID
, SETGID
]
+ has-target-names-after-kw: TARGETS
-
name: link_directories
named-args: [AFTER, BEFORE]
-
name: link_libraries
- named-args: [debug, optimized, general]
+ special-args: &link_libraries_sa [debug, optimized, general]
-
name: load_cache
named-args: [READ_WITH_PREFIX, EXCLUDE, INCLUDE_INTERNALS]
@@ -2218,7 +3936,25 @@ project-commands:
, HOMEPAGE_URL # Since 3.12
, LANGUAGES
]
- special-args: [NONE, C, CXX, RC, CUDA, Fortran, ASM]
+ special-args: [
+ ASM
+ , ASM-ATT
+ , ASM_NASM
+ , ASM_MASM
+ , C
+ , CSharp
+ , CXX
+ , CUDA
+ , HIP # Since 3.21
+ , ISPC # Since 3.19
+ , Java
+ , OBJC # Since 3.16
+ , OBJCXX # Since 3.16
+ , RC
+ , Fortran
+ , Swift
+ , NONE # This one is different from `enable_language`
+ ]
-
name: qt_wrap_cpp
-
@@ -2227,15 +3963,23 @@ project-commands:
name: remove_definitions
-
name: set_source_files_properties
- named-args: [PROPERTIES]
+ named-args: [
+ PROPERTIES
+ , TARGET_DIRECTORY # Since 3.18
+ , DIRECTORY # Since 3.18
+ ]
property-args: *get_source_file_property
-
name: set_target_properties
named-args: [PROPERTIES]
property-args: *get_target_property
+ first-args-are-targets?: true # NOTE Multiple target args
-
name: set_tests_properties
- named-args: [PROPERTIES]
+ named-args: [
+ DIRECTORY # Since 3.28
+ , PROPERTIES
+ ]
property-args: *get_test_property
-
name: source_group
@@ -2243,6 +3987,7 @@ project-commands:
-
name: target_compile_definitions
named-args: &target_compile_definitions [INTERFACE, PUBLIC, PRIVATE]
+ first-arg-is-target?: true
-
name: target_compile_features
named-args: *target_compile_definitions
@@ -2253,6 +3998,8 @@ project-commands:
, cxx_std_14
, cxx_std_17
, cxx_std_20 # Since 3.12
+ , cxx_std_23 # Since 3.20
+ , cxx_std_26 # Since 3.25
, cxx_aggregate_default_initializers
, cxx_alias_templates
, cxx_alignas
@@ -2314,44 +4061,99 @@ project-commands:
, c_std_90
, c_std_99
, c_std_11
+ , c_std_17 # Since 3.21
+ , c_std_23 # Since 3.21
, c_function_prototypes
, c_restrict
, c_static_assert
, c_variadic_macros
+ # CMAKE_CUDA_KNOWN_FEATURES (since 3.17)
+ , cuda_std_03
+ , cuda_std_11
+ , cuda_std_14
+ , cuda_std_17
+ , cuda_std_20
+ , cuda_std_23 # Since 3.21
+ , cuda_std_26 # Since 3.25
]
+ first-arg-is-target?: true
-
name: target_compile_options
named-args: &target_compile_options [BEFORE, INTERFACE, PUBLIC, PRIVATE]
+ first-arg-is-target?: true
-
name: target_include_directories
- named-args: [BEFORE, SYSTEM, INTERFACE, PUBLIC, PRIVATE]
+ named-args: [
+ AFTER # Since 3.20
+ , BEFORE
+ , SYSTEM
+ , INTERFACE
+ , PUBLIC
+ , PRIVATE
+ ]
+ first-arg-is-target?: true
-
# Since 3.13
name: target_link_directories
named-args: *target_compile_options
+ first-arg-is-target?: true
-
name: target_link_libraries
named-args: *target_compile_definitions
+ special-args: *link_libraries_sa
+ first-arg-is-target?: true
-
name: target_link_options
named-args: *target_compile_definitions
+ first-arg-is-target?: true
+ -
+ # Since 3.16
+ name: target_precompile_headers
+ named-args: [INTERFACE, PUBLIC, PRIVATE, REUSE_FROM]
+ first-arg-is-target?: true
-
name: target_sources
- named-args: *target_compile_definitions
+ named-args: [
+ INTERFACE
+ , PUBLIC
+ , PRIVATE
+ # Since 3.23
+ , FILE_SET
+ , TYPE
+ , BASE_DIRS
+ , FILES
+ ]
+ special-args: [
+ HEADERS
+ , CXX_MODULES # Since 3.28
+ ]
+ first-arg-is-target?: true
-
name: try_compile
named-args: [
- RESULT_VAR
- , CMAKE_FLAGS
+ CMAKE_FLAGS
, OUTPUT_VARIABLE
, SOURCES
, COMPILE_DEFINITIONS
, LINK_LIBRARIES
+ , LINK_OPTIONS # Since 3.14
, COPY_FILE
, COPY_FILE_ERROR
, <LANG>_STANDARD
, <LANG>_STANDARD_REQUIRED
, <LANG>_EXTENSIONS
+ # Since 3.25
+ , PROJECT
+ , SOURCE_DIR
+ , BINARY_DIR
+ , TARGET
+ , NO_CACHE
+ , SOURCE_FROM_CONTENT
+ , SOURCE_FROM_VAR
+ , SOURCE_FROM_FILE
+ # Since 3.26
+ , LOG_DESCRIPTION
+ , NO_LOG
]
-
name: try_run
@@ -2361,10 +4163,28 @@ project-commands:
, CMAKE_FLAGS
, COMPILE_DEFINITIONS
, LINK_LIBRARIES
+ , LINK_OPTIONS # Since 3.14
, COMPILE_OUTPUT_VARIABLE
+ , COPY_FILE
+ , COPY_FILE_ERROR
+ , <LANG>_STANDARD
+ , <LANG>_STANDARD_REQUIRED
+ , <LANG>_EXTENSIONS
, RUN_OUTPUT_VARIABLE
, OUTPUT_VARIABLE
+ , WORKING_DIRECTORY # Since 3.20
, ARGS
+ # Since 3.25
+ , SOURCES
+ , SOURCE_FROM_CONTENT
+ , SOURCE_FROM_VAR
+ , SOURCE_FROM_FILE
+ , NO_CACHE
+ , RUN_OUTPUT_STDOUT_VARIABLE
+ , RUN_OUTPUT_STDERR_VARIABLE
+ # Since 3.26
+ , LOG_DESCRIPTION
+ , NO_LOG
]
ctest-commands:
@@ -2414,7 +4234,19 @@ ctest-commands:
named-args: [TRACK, APPEND, QUIET]
-
name: ctest_submit
- named-args: [PARTS, FILES, HTTPHEADER, RETRY_COUNT, RETRY_DELAY, RETURN_VALUE, QUIET, CDASH_UPLOAD, CDASH_UPLOAD_TYPE]
+ named-args: [
+ PARTS
+ , FILES
+ , BUILD_ID # Since 3.15
+ , SUBMIT_URL # Since 3.14
+ , HTTPHEADER
+ , RETRY_COUNT
+ , RETRY_DELAY
+ , RETURN_VALUE
+ , QUIET
+ , CDASH_UPLOAD
+ , CDASH_UPLOAD_TYPE
+ ]
-
name: ctest_test
named-args: [
@@ -2433,14 +4265,1215 @@ ctest-commands:
, PARALLEL_LEVEL
, TEST_LOAD
, SCHEDULE_RANDOM
+ , STOP_ON_FAILURE # Since 3.18
, STOP_TIME
, RETURN_VALUE
, CAPTURE_CMAKE_ERROR
+ , REPEAT # Since 3.17
, QUIET
]
+ special-args: [
+ # Since 3.17
+ UNTIL_FAIL
+ , UNTIL_PASS
+ , AFTER_TIMEOUT
+ ]
-
name: ctest_update
named-args: [SOURCE, RETURN_VALUE, QUIET]
-
name: ctest_upload
named-args: [FILES, CAPTURE_CMAKE_ERROR, QUIET]
+
+modules:
+ # The modules listed here are part of the CMake distribution:
+ # https://cmake.org/cmake/help/latest/manual/cmake-modules.7.html
+ utility:
+ - AndroidTestUtilities
+ - BundleUtilities
+ - CheckCCompilerFlag
+ - CheckCompilerFlag
+ - CheckCSourceCompiles
+ - CheckCSourceRuns
+ - CheckCXXCompilerFlag
+ - CheckCXXSourceCompiles
+ - CheckCXXSourceRuns
+ - CheckCXXSymbolExists
+ - CheckFortranCompilerFlag
+ - CheckFortranFunctionExists
+ - CheckFortranSourceCompiles
+ - CheckFortranSourceRuns
+ - CheckFunctionExists
+ - CheckIncludeFileCXX
+ - CheckIncludeFile
+ - CheckIncludeFiles
+ - CheckIPOSupported
+ - CheckLanguage
+ - CheckLibraryExists
+ - CheckLinkerFlag
+ - CheckOBJCCompilerFlag
+ - CheckOBJCSourceCompiles
+ - CheckOBJCSourceRuns
+ - CheckOBJCXXCompilerFlag
+ - CheckOBJCXXSourceCompiles
+ - CheckOBJCXXSourceRuns
+ - CheckPIESupported
+ - CheckPrototypeDefinition
+ - CheckSourceCompiles
+ - CheckSourceRuns
+ - CheckStructHasMember
+ - CheckSymbolExists
+ - CheckTypeSize
+ - CheckVariableExists
+ - CMakeAddFortranSubdirectory
+ - CMakeBackwardCompatibilityCXX
+ - CMakeDependentOption
+ - CMakeFindDependencyMacro
+ - CMakeFindFrameworks
+ # NOTE The commented modules below are not for `include()`
+ # - CMakeFindPackageMode
+ # - CMakeGraphVizOptions
+ - CMakePackageConfigHelpers
+ - CMakePrintHelpers
+ - CMakePrintSystemInformation
+ - CMakePushCheckState
+ # NOTE The commented module below is not for `include()`
+ # - CMakeVerifyManifest
+ - CPack
+ - CPackComponent
+ - CPackIFW
+ - CPackIFWConfigureFile
+ - CSharpUtilities
+ - CTest
+ - CTestCoverageCollectGCOV
+ - CTestScriptMode
+ - CTestUseLaunchers
+ - DeployQt4
+ - ExternalData
+ - ExternalProject
+ - FeatureSummary
+ - FetchContent
+ - FindPackageHandleStandardArgs
+ - FindPackageMessage
+ - FortranCInterface
+ - GenerateExportHeader
+ - GNUInstallDirs
+ - GoogleTest
+ - InstallRequiredSystemLibraries
+ - ProcessorCount
+ - SelectLibraryConfigurations
+ # NOTE The commented module below is not for `include()`
+ # - SquishTestScript
+ - TestForANSIForScope
+ - TestForANSIStreamHeaders
+ - TestForSSTREAM
+ - TestForSTDNamespace
+ - UseEcos
+ - UseJava
+ - UseSWIG
+ - UsewxWidgets
+
+ finder:
+ - FindALSA
+ - FindArmadillo
+ - FindASPELL
+ - FindAVIFile
+ - FindBacktrace
+ - FindBISON
+ - FindBLAS
+ - FindBoost
+ - FindBullet
+ - FindBZip2
+ - FindCABLE
+ - FindCoin3D
+ - FindCUDAToolkit
+ - FindCups
+ - FindCURL
+ - FindCurses
+ - FindCVS
+ - FindCxxTest
+ - FindCygwin
+ - FindDCMTK
+ - FindDevIL
+ - FindDoxygen
+ - FindEnvModules
+ - FindEXPAT
+ - FindFLEX
+ - FindFLTK
+ - FindFLTK2
+ - FindFontconfig
+ - FindFreetype
+ - FindGCCXML
+ - FindGDAL
+ - FindGettext
+ - FindGIF
+ - FindGit
+ - FindGLEW
+ - FindGLUT
+ - FindGnuplot
+ - FindGnuTLS
+ - FindGSL
+ - FindGTest
+ - FindGTK
+ - FindGTK2
+ - FindHDF5
+ - FindHg
+ - FindHSPELL
+ - FindHTMLHelp
+ - FindIce
+ - FindIconv
+ - FindIcotool
+ - FindICU
+ - FindImageMagick
+ - FindIntl
+ - FindITK
+ - FindJasper
+ - FindJava
+ - FindJNI
+ - FindJPEG
+ - FindKDE3
+ - FindKDE4
+ - FindLAPACK
+ - FindLATEX
+ - FindLibArchive
+ - FindLibinput
+ - FindLibLZMA
+ - FindLibXml2
+ - FindLibXslt
+ - FindLTTngUST
+ - FindLua
+ - FindLua50
+ - FindLua51
+ - FindMatlab
+ - FindMFC
+ - FindMotif
+ - FindMPEG
+ - FindMPEG2
+ - FindMPI
+ - FindMsys
+ - FindODBC
+ - FindOpenACC
+ - FindOpenAL
+ - FindOpenCL
+ - FindOpenGL
+ - FindOpenMP
+ - FindOpenSceneGraph
+ - FindOpenSSL
+ - FindOpenThreads
+ - Findosg
+ - Findosg_functions
+ - FindosgAnimation
+ - FindosgDB
+ - FindosgFX
+ - FindosgGA
+ - FindosgIntrospection
+ - FindosgManipulator
+ - FindosgParticle
+ - FindosgPresentation
+ - FindosgProducer
+ - FindosgQt
+ - FindosgShadow
+ - FindosgSim
+ - FindosgTerrain
+ - FindosgText
+ - FindosgUtil
+ - FindosgViewer
+ - FindosgVolume
+ - FindosgWidget
+ - FindPatch
+ - FindPerl
+ - FindPerlLibs
+ - FindPHP4
+ - FindPhysFS
+ - FindPike
+ - FindPkgConfig
+ - FindPNG
+ - FindPostgreSQL
+ - FindProducer
+ - FindProtobuf
+ - FindPython
+ - FindPython2
+ - FindPython3
+ - FindQt3
+ - FindQt4
+ - FindQuickTime
+ - FindRTI
+ - FindRuby
+ - FindSDL
+ - FindSDL_image
+ - FindSDL_mixer
+ - FindSDL_net
+ - FindSDL_sound
+ - FindSDL_ttf
+ - FindSelfPackers
+ - FindSquish
+ - FindSQLite3
+ - FindSubversion
+ - FindSWIG
+ - FindTCL
+ - FindTclsh
+ - FindTclStub
+ - FindThreads
+ - FindTIFF
+ - FindUnixCommands
+ - FindVTK
+ - FindVulkan
+ - FindWget
+ - FindWish
+ - FindwxWidgets
+ - FindX11
+ - FindXalanC
+ - FindXCTest
+ - FindXercesC
+ - FindXMLRPC
+ - FindZLIB
+
+ deprecated:
+ # Deprecated Utility Modules
+ - AddFileDependencies
+ - CMakeDetermineVSServicePack
+ - CMakeExpandImportedTargets
+ - CMakeForceCompiler
+ - CMakeParseArguments
+ - Dart # Since 3.27
+ - Documentation
+ - MacroAddFileDependencies
+ - TestCXXAcceptsFlag
+ - UseJavaClassFilelist
+ - UseJavaSymlinks
+ - UsePkgConfig
+ - Use_wxWindows
+ - WriteBasicConfigVersionFile
+ - WriteCompilerDetectionHeader
+ # Deprecated Find Modules
+ - FindCUDA
+ - FindDart # Since 3.27
+ - FindPythonInterp
+ - FindPythonLibs
+ - FindQt
+ - FindwxWindows
+ # Legacy CPack Modules
+ - CPackArchive
+ - CPackBundle
+ - CPackCygwin
+ - CPackDeb
+ - CPackDMG
+ - CPackFreeBSD
+ - CPackNSIS
+ - CPackNuGet
+ - CPackPackageMaker
+ - CPackProductBuild
+ - CPackRPM
+ - CPackWIX
+ # ATTENTION The following modules still in the list of the standard modules
+ # however, the docs claims that they have been deprecated
+ - GetPrerequisites
+ - TestBigEndian
+
+standard-module-commands:
+ # AndroidTestUtilities
+ -
+ name: android_add_test_data
+ named-args:
+ - FILES
+ - FILES_DEST
+ - LIBS
+ - LIBS_DEST
+ - DEVICE_OBJECT_STORE
+ - DEVICE_TEST_DIR
+ - NO_LINK_REGEX
+ # BundleUtilities
+ - name: fixup_bundle
+ - name: copy_and_fixup_bundle
+ - name: verify_app
+ - name: get_bundle_main_executable
+ - name: get_dotapp_dir
+ - name: get_bundle_and_executable
+ - name: get_bundle_all_executables
+ - name: get_item_key
+ - name: get_item_rpaths
+ - name: clear_bundle_keys
+ - name: set_bundle_key_values
+ - name: get_bundle_keys
+ - name: copy_resolved_item_into_bundle
+ - name: copy_resolved_framework_into_bundle
+ - name: fixup_bundle_item
+ - name: verify_bundle_prerequisites
+ - name: verify_bundle_symlinks
+ # CheckCCompilerFlag
+ - name: check_c_compiler_flag
+ # CheckCompilerFlag
+ - name: check_compiler_flag
+ # CheckCSourceCompiles
+ -
+ name: check_c_source_compiles
+ named-args: &ccsc [FAIL_REGEX]
+ # CheckCSourceRuns
+ - name: check_c_source_runs
+ # CheckCXXCompilerFlag
+ - name: check_cxx_compiler_flag
+ # CheckCXXSourceCompiles
+ -
+ name: check_cxx_source_compiles
+ named-args: *ccsc
+ # CheckCXXSourceRuns
+ - name: check_cxx_source_runs
+ # CheckCXXSymbolExists
+ - name: check_cxx_symbol_exists
+ # CheckFortranCompilerFlag
+ - name: check_fortran_compiler_flag
+ # CheckFortranFunctionExists
+ - name: check_fortran_function_exists
+ # CheckFortranSourceCompiles
+ -
+ name: check_fortran_source_compiles
+ named-args: &frse [FAIL_REGEX, SRC_EXT]
+ # CheckFortranSourceRuns
+ -
+ name: check_fortran_source_runs
+ named-args: &se [SRC_EXT]
+ # CheckFunctionExists
+ - name: check_function_exists
+ # CheckIncludeFileCXX
+ - name: check_include_file_cxx
+ # CheckIncludeFile
+ - name: check_include_file
+ # CheckIncludeFiles
+ -
+ name: check_include_files
+ named-args: &l [LANGUAGE]
+ special-args: &ccxx [C, CXX]
+ # CheckIPOSupported
+ -
+ name: check_ipo_supported
+ named-args: [RESULT, OUTPUT, LANGUAGES]
+ special-args: &ccxxf [C, CXX, Fortran]
+ # CheckLanguage
+ -
+ name: check_language
+ special-args: *langs
+ # CheckLibraryExists
+ - name: check_library_exists
+ # CheckLinkerFlag
+ - name: check_linker_flag
+ # CheckOBJCCompilerFlag
+ - name: check_objc_compiler_flag
+ # CheckOBJCSourceCompiles
+ -
+ name: check_objc_source_compiles
+ named-args: *ccsc
+ # CheckOBJCSourceRuns
+ - name: check_objc_source_runs
+ # CheckOBJCXXCompilerFlag
+ - name: check_objcxx_compiler_flag
+ # CheckOBJCXXSourceCompiles
+ -
+ name: check_objcxx_source_compiles
+ named-args: *ccsc
+ # CheckOBJCXXSourceRuns
+ - name: check_objcxx_source_runs
+ # CheckPIESupported
+ -
+ name: check_pie_supported
+ named-args: [OUTPUT_VARIABLE, LANGUAGES]
+ special-args: [
+ C, CXX, Fortran,
+ # Since 3.23
+ OBJC, OBJCXX, CUDA, HIP
+ ]
+ # CheckPrototypeDefinition
+ - name: check_prototype_definition
+ # CheckSourceCompiles
+ -
+ name: check_source_compiles
+ named-args: *frse
+ # CheckSourceRuns
+ -
+ name: check_source_runs
+ named-args: *se
+ # CheckStructHasMember
+ -
+ name: check_struct_has_member
+ named-args: *l
+ special-args: *ccxx
+ # CheckSymbolExists
+ - name: check_symbol_exists
+ # CheckTypeSize
+ -
+ name: check_type_size
+ named-args: [BUILTIN_TYPES_ONLY, LANGUAGE]
+ special-args: *ccxx
+ # CheckVariableExists
+ - name: check_variable_exists
+ # CMakeAddFortranSubdirectory
+ -
+ name: cmake_add_fortran_subdirectory
+ named-args:
+ - PROJECT
+ - ARCHIVE_DIR
+ - RUNTIME_DIR
+ - LIBRARIES
+ - LINK_LIBRARIES
+ - LINK_LIBS
+ - CMAKE_COMMAND_LINE
+ - NO_EXTERNAL_INSTALL
+ # CMakeBackwardCompatibilityCXX
+ # CMakeDependentOption
+ - name: cmake_dependent_option
+ # CMakeFindDependencyMacro
+ - name: find_dependency
+ # CMakeFindFrameworks
+ # CMakeFindPackageMode
+ # CMakeGraphVizOptions
+ # CMakePackageConfigHelpers
+ -
+ name: configure_package_config_file
+ named-args:
+ - INSTALL_DESTINATION
+ - PATH_VARS
+ - NO_SET_AND_CHECK_MACRO
+ - NO_CHECK_REQUIRED_COMPONENTS_MACRO
+ - INSTALL_PREFIX
+ -
+ name: write_basic_package_version_file
+ named-args:
+ - VERSION
+ - COMPATIBILITY
+ - ARCH_INDEPENDENT
+ special-args: [AnyNewerVersion, SameMajorVersion, SameMinorVersion, ExactVersion]
+ # CMakePrintHelpers
+ -
+ name: cmake_print_properties
+ named-args:
+ - TARGETS
+ - SOURCES
+ - DIRECTORIES
+ - TESTS
+ - CACHE_ENTRIES
+ - PROPERTIES
+ has-target-names-after-kw: TARGETS
+ # CMakePrintSystemInformation
+ # CMakePushCheckState
+ -
+ name: cmake_push_check_state
+ named-args: [RESET]
+ - name: cmake_pop_check_state
+ - name: cmake_reset_check_state
+ # CMakeVerifyManifest
+ # CPack
+ # CPackComponent
+ -
+ name: cpack_add_component
+ named-args:
+ - DISPLAY_NAME
+ - DESCRIPTION
+ - HIDDEN
+ - REQUIRED
+ - DISABLED
+ - GROUP
+ - DEPENDS
+ - INSTALL_TYPES
+ - DOWNLOADED
+ - ARCHIVE_FILE
+ - PLIST
+ -
+ name: cpack_add_component_group
+ named-args:
+ - DISPLAY_NAME
+ - DESCRIPTION
+ - PARENT_GROUP
+ - EXPANDED
+ - BOLD_TITLE
+ -
+ name: cpack_add_install_type
+ named-args: [DISPLAY_NAME]
+ -
+ name: cpack_configure_downloads
+ named-args:
+ - UPLOAD_DIRECTORY
+ - ALL
+ - ADD_REMOVE
+ - NO_ADD_REMOVE
+ # CPackIFW
+ -
+ name: cpack_ifw_configure_component
+ named-args:
+ - COMMON
+ - ESSENTIAL
+ - VIRTUAL
+ - FORCED_INSTALLATION
+ - REQUIRES_ADMIN_RIGHTS]
+ - NAME
+ - DISPLAY_NAME
+ - DESCRIPTION
+ - UPDATE_TEXT
+ - VERSION
+ - RELEASE_DATE
+ - SCRIPT
+ - PRIORITY
+ - SORTING_PRIORITY
+ - DEPENDS
+ - DEPENDENCIES
+ - AUTO_DEPEND_ON
+ - LICENSES
+ - DEFAULT
+ - USER_INTERFACES
+ - TRANSLATIONS
+ - REPLACES
+ - CHECKABLE
+ -
+ name: cpack_ifw_configure_component_group
+ named-args:
+ - VIRTUAL
+ - FORCED_INSTALLATION
+ - REQUIRES_ADMIN_RIGHTS
+ - NAME
+ - DISPLAY_NAME
+ - DESCRIPTION
+ - UPDATE_TEXT
+ - VERSION
+ - RELEASE_DATE
+ - SCRIPT
+ - PRIORITY
+ - SORTING_PRIORITY
+ - DEPENDS
+ - DEPENDENCIES
+ - AUTO_DEPEND_ON
+ - LICENSES
+ - DEFAULT
+ - USER_INTERFACES
+ - TRANSLATIONS
+ - REPLACES
+ - CHECKABLE
+ -
+ name: cpack_ifw_add_repository
+ named-args:
+ - DISABLED
+ - URL
+ - USERNAME
+ - PASSWORD
+ - DISPLAY_NAME
+ -
+ name: cpack_ifw_update_repository
+ named-args:
+ - ADD
+ - REMOVE
+ - URL
+ - REPLACE
+ - OLD_URL
+ - NEW_URL
+ - USERNAME
+ - PASSWORD
+ - DISPLAY_NAME
+ - name: cpack_ifw_add_package_resources
+ # CPackIFWConfigureFile
+ - name: cpack_ifw_configure_file
+ # CSharpUtilities
+ - name: csharp_set_windows_forms_properties
+ - name: csharp_set_designer_cs_properties
+ - name: csharp_set_xaml_cs_properties
+ - name: csharp_get_filename_keys
+ - name: csharp_get_filename_key_base
+ - name: csharp_get_dependentupon_name
+ # CTest
+ # CTestCoverageCollectGCOV
+ -
+ name: ctest_coverage_collect_gcov
+ named-args:
+ - TARBALL
+ - TARBALL_COMPRESSION
+ - SOURCE
+ - BUILD
+ - GCOV_COMMAND
+ - GCOV_OPTIONS
+ - GLOB
+ - DELETE
+ - QUIET
+ # CTestScriptMode
+ # CTestUseLaunchers
+ # Dart
+ # DeployQt4
+ - name: write_qt4_conf
+ - name: resolve_qt4_paths
+ - name: fixup_qt4_executable
+ - name: install_qt4_plugin_path
+ - name: install_qt4_plugin
+ - name: install_qt4_executable
+ # ExternalData
+ - name: ExternalData_Expand_Arguments
+ - name: ExternalData_Add_Test
+ -
+ name: ExternalData_Add_Target
+ named-args: [SHOW_PROGRESS]
+ # ExternalProject
+ -
+ name: ExternalProject_Add
+ named-args:
+ - PREFIX
+ - TMP_DIR
+ - STAMP_DIR
+ - LOG_DIR
+ - DOWNLOAD_DIR
+ - SOURCE_DIR
+ - BINARY_DIR
+ - INSTALL_DIR
+ - DOWNLOAD_COMMAND
+ - URL
+ - URL_HASH
+ - URL_MD5
+ - DOWNLOAD_NAME
+ - DOWNLOAD_EXTRACT_TIMESTAMP # Since 3.24
+ - DOWNLOAD_NO_EXTRACT
+ - DOWNLOAD_NO_PROGRESS
+ - TIMEOUT
+ - INACTIVITY_TIMEOUT
+ - HTTP_USERNAME
+ - HTTP_PASSWORD
+ - HTTP_HEADER
+ - TLS_VERIFY
+ - TLS_CAINFO
+ - NETRC
+ - NETRC_FILE
+ - GIT_REPOSITORY
+ - GIT_TAG
+ - GIT_REMOTE_NAME
+ - GIT_SUBMODULES
+ - GIT_SUBMODULES_RECURSE
+ - GIT_SHALLOW
+ - GIT_PROGRESS
+ - GIT_CONFIG
+ - GIT_REMOTE_UPDATE_STRATEGY
+ - SVN_REPOSITORY
+ - SVN_REVISION
+ - SVN_USERNAME
+ - SVN_PASSWORD
+ - SVN_TRUST_CERT
+ - HG_REPOSITORY
+ - HG_TAG
+ - CVS_REPOSITORY
+ - CVS_MODULE
+ - CVS_TAG
+ - UPDATE_COMMAND
+ - UPDATE_DISCONNECTED
+ - PATCH_COMMAND
+ - CONFIGURE_COMMAND
+ - CMAKE_COMMAND
+ - CMAKE_GENERATOR
+ - CMAKE_GENERATOR_PLATFORM
+ - CMAKE_GENERATOR_TOOLSET
+ - CMAKE_GENERATOR_INSTANCE
+ - CMAKE_ARGS
+ - CMAKE_CACHE_ARGS
+ - CMAKE_CACHE_DEFAULT_ARGS
+ - SOURCE_SUBDIR
+ - CONFIGURE_HANDLED_BY_BUILD
+ - BUILD_COMMAND
+ - BUILD_IN_SOURCE
+ - BUILD_ALWAYS
+ - BUILD_BYPRODUCTS
+ - BUILD_JOB_SERVER_AWARE # Since 3.28
+ - INSTALL_COMMAND
+ - TEST_COMMAND
+ - TEST_BEFORE_INSTALL
+ - TEST_AFTER_INSTALL
+ - TEST_EXCLUDE_FROM_MAIN
+ - LOG_DOWNLOAD
+ - LOG_UPDATE
+ - LOG_PATCH
+ - LOG_CONFIGURE
+ - LOG_BUILD
+ - LOG_INSTALL
+ - LOG_TEST
+ - LOG_MERGED_STDOUTERR
+ - LOG_OUTPUT_ON_FAILURE
+ - USES_TERMINAL_DOWNLOAD
+ - USES_TERMINAL_UPDATE
+ - USES_TERMINAL_PATCH # Since 3.23
+ - USES_TERMINAL_CONFIGURE
+ - USES_TERMINAL_BUILD
+ - USES_TERMINAL_INSTALL
+ - USES_TERMINAL_TEST
+ - DEPENDS
+ - EXCLUDE_FROM_ALL
+ - STEP_TARGETS
+ - INDEPENDENT_STEP_TARGETS
+ - LIST_SEPARATOR
+ - COMMAND
+ - INSTALL_BYPRODUCTS # Since 3.26
+ special-args: [IGNORED, OPTIONAL, REQUIRED, CHECKOUT, REBASE, REBASE_CHECKOUT]
+ property-args: *get_target_property
+ - name: ExternalProject_Get_Property
+ -
+ name: ExternalProject_Add_Step
+ named-args:
+ - COMMAND
+ - COMMENT
+ - DEPENDEES
+ - DEPENDERS
+ - DEPENDS
+ - INDEPENDENT
+ - BYPRODUCTS
+ - ALWAYS
+ - JOB_SERVER_AWARE # Since 3.28
+ - EXCLUDE_FROM_MAIN
+ - WORKING_DIRECTORY
+ - LOG
+ - USES_TERMINAL
+ -
+ name: ExternalProject_Add_StepTargets
+ named-args:
+ - NO_DEPENDS
+ - name: ExternalProject_Add_StepDependencies
+ # FeatureSummary
+ -
+ name: feature_summary
+ named-args:
+ - FILENAME
+ - APPEND
+ - VAR
+ - INCLUDE_QUIET_PACKAGES
+ - FATAL_ON_MISSING_REQUIRED_PACKAGES
+ - DESCRIPTION
+ - DEFAULT_DESCRIPTION
+ - QUIET_ON_EMPTY
+ - WHAT
+ - ALL
+ - PACKAGES_FOUND
+ - PACKAGES_NOT_FOUND
+ - ENABLED_FEATURES
+ - DISABLED_FEATURES
+ -
+ name: set_package_properties
+ named-args:
+ - PROPERTIES
+ - URL
+ - DESCRIPTION
+ - TYPE
+ - RUNTIME
+ - OPTIONAL
+ - RECOMMENDED
+ - REQUIRED
+ - PURPOSE
+ - name: add_feature_info
+ - name: set_package_info
+ - name: set_feature_info
+ - name: print_enabled_features
+ - name: print_disabled_features
+ # FetchContent
+ -
+ name: FetchContent_Declare
+ named-args:
+ - DOWNLOAD_COMMAND
+ - URL
+ - URL_HASH
+ - URL_MD5
+ - DOWNLOAD_NAME
+ - DOWNLOAD_NO_EXTRACT
+ - DOWNLOAD_NO_PROGRESS
+ - TIMEOUT
+ - INACTIVITY_TIMEOUT
+ - HTTP_USERNAME
+ - HTTP_PASSWORD
+ - HTTP_HEADER
+ - TLS_VERIFY
+ - TLS_CAINFO
+ - NETRC
+ - NETRC_FILE
+ - GIT_REPOSITORY
+ - GIT_TAG
+ - GIT_REMOTE_NAME
+ - GIT_SUBMODULES
+ - GIT_SUBMODULES_RECURSE
+ - GIT_SHALLOW
+ - GIT_PROGRESS
+ - GIT_CONFIG
+ - GIT_REMOTE_UPDATE_STRATEGY
+ - SVN_REPOSITORY
+ - SVN_REVISION
+ - SVN_USERNAME
+ - SVN_PASSWORD
+ - SVN_TRUST_CERT
+ - HG_REPOSITORY
+ - HG_TAG
+ - CVS_REPOSITORY
+ - CVS_MODULE
+ - CVS_TAG
+ - UPDATE_COMMAND
+ - UPDATE_DISCONNECTED
+ - PATCH_COMMAND
+ - SOURCE_SUBDIR
+ - OVERRIDE_FIND_PACKAGE
+ - FIND_PACKAGE_ARGS
+ - SYSTEM
+ - EXCLUDE_FROM_ALL # Since 3.28
+ -
+ name: FetchContent_Populate
+ named-args:
+ - QUIET
+ - SUBBUILD_DIR
+ - SOURCE_DIR
+ - BINARY_DIR
+ - DOWNLOAD_COMMAND
+ - URL
+ - URL_HASH
+ - URL_MD5
+ - DOWNLOAD_NAME
+ - DOWNLOAD_NO_EXTRACT
+ - DOWNLOAD_NO_PROGRESS
+ - TIMEOUT
+ - INACTIVITY_TIMEOUT
+ - HTTP_USERNAME
+ - HTTP_PASSWORD
+ - HTTP_HEADER
+ - TLS_VERIFY
+ - TLS_CAINFO
+ - NETRC
+ - NETRC_FILE
+ - GIT_REPOSITORY
+ - GIT_TAG
+ - GIT_REMOTE_NAME
+ - GIT_SUBMODULES
+ - GIT_SUBMODULES_RECURSE
+ - GIT_SHALLOW
+ - GIT_PROGRESS
+ - GIT_CONFIG
+ - GIT_REMOTE_UPDATE_STRATEGY
+ - SVN_REPOSITORY
+ - SVN_REVISION
+ - SVN_USERNAME
+ - SVN_PASSWORD
+ - SVN_TRUST_CERT
+ - HG_REPOSITORY
+ - HG_TAG
+ - CVS_REPOSITORY
+ - CVS_MODULE
+ - CVS_TAG
+ - UPDATE_COMMAND
+ - UPDATE_DISCONNECTED
+ - PATCH_COMMAND
+ - SOURCE_SUBDIR
+ -
+ name: FetchContent_GetProperties
+ named-args:
+ - SOURCE_DIR
+ - BINARY_DIR
+ - POPULATED
+ - name: FetchContent_MakeAvailable
+ # FindPackageHandleStandardArgs
+ -
+ name: find_package_handle_standard_args
+ named-args:
+ - DEFAULT_MSG
+ - FOUND_VAR
+ - REQUIRED_VARS
+ - VERSION_VAR
+ - HANDLE_VERSION_RANGE
+ - HANDLE_COMPONENTS
+ - CONFIG_MODE
+ - NAME_MISMATCHED
+ - REASON_FAILURE_MESSAGE
+ - FAIL_MESSAGE
+ -
+ name: find_package_check_version
+ named-args:
+ - HANDLE_VERSION_RANGE
+ - RESULT_MESSAGE_VARIABLE
+ # FindPackageMessage
+ - name: find_package_message
+ # FortranCInterface
+ -
+ name: FortranCInterface_HEADER
+ named-args:
+ - MACRO_NAMESPACE
+ - SYMBOL_NAMESPACE
+ - SYMBOLS
+ -
+ name: FortranCInterface_VERIFY
+ named-args: [CXX, QUIET]
+ # GenerateExportHeader
+ -
+ name: generate_export_header
+ named-args:
+ - BASE_NAME
+ - EXPORT_MACRO_NAME
+ - EXPORT_FILE_NAME
+ - DEPRECATED_MACRO_NAME
+ - NO_EXPORT_MACRO_NAME
+ - INCLUDE_GUARD_NAME
+ - STATIC_DEFINE
+ - NO_DEPRECATED_MACRO_NAME
+ - DEFINE_NO_DEPRECATED
+ - PREFIX_NAME
+ - CUSTOM_CONTENT_FROM_VARIABLE
+ first-arg-is-target?: true
+ # GetPrerequisites (NOTE The module has functions but has been deprecated)
+ # GNUInstallDirs
+ - name: GNUInstallDirs_get_absolute_install_dir
+ # GoogleTest
+ -
+ name: gtest_add_tests
+ named-args:
+ - TARGET
+ - SOURCES
+ - EXTRA_ARGS
+ - WORKING_DIRECTORY
+ - TEST_PREFIX
+ - TEST_SUFFIX
+ - SKIP_DEPENDENCY
+ - TEST_LIST
+ has-target-name-after-kw: TARGET
+ -
+ name: gtest_discover_tests # Since 3.10
+ named-args:
+ - EXTRA_ARGS
+ - WORKING_DIRECTORY
+ - TEST_PREFIX
+ - TEST_SUFFIX
+ - TEST_FILTER # Since 3.22
+ - NO_PRETTY_TYPES
+ - NO_PRETTY_VALUES
+ - PROPERTIES
+ - TEST_LIST
+ - DISCOVERY_TIMEOUT
+ - XML_OUTPUT_DIR
+ - DISCOVERY_MODE
+ special-args: [POST_BUILD, PRE_TEST]
+ first-arg-is-target?: true
+ # InstallRequiredSystemLibraries
+ # ProcessorCount
+ - name: processorcount
+ # SelectLibraryConfigurations
+ - name: select_library_configurations
+ # SquishTestScript
+ # TestBigEndian
+ - name: test_big_endian
+ # TestForANSIForScope
+ # TestForANSIStreamHeaders
+ # TestForSSTREAM
+ # TestForSTDNamespace
+ # UseEcos
+ - name: ecos_add_include_directories
+ - name: ecos_add_executable
+ - name: ecos_add_target_lib
+ - name: ecos_adjust_directory
+ - name: ecos_use_arm_elf_tools
+ - name: ecos_use_i386_elf_tools
+ - name: ecos_use_ppc_eabi_tools
+ # UseJava
+ -
+ name: add_jar
+ named-args:
+ - SOURCES
+ - RESOURCES
+ - NAMESPACE
+ - INCLUDE_JARS
+ - ENTRY_POINT
+ - VERSION
+ - MANIFEST
+ - OUTPUT_NAME
+ - OUTPUT_DIR
+ - GENERATE_NATIVE_HEADERS
+ - DESTINATION
+ - INSTALL
+ - BUILD
+ first-arg-is-target?: true
+ -
+ name: install_jar
+ named-args: &dc [DESTINATION, COMPONENT]
+ first-arg-is-target?: true
+ -
+ name: install_jni_symlink
+ named-args: *dc
+ first-arg-is-target?: true
+ -
+ name: create_javah
+ named-args:
+ - TARGET
+ - GENERATED_FILES
+ - CLASSES
+ - CLASSPATH
+ - DEPENDS
+ - OUTPUT_NAME
+ - OUTPUT_DIR
+ has-target-name-after-kw: TARGET
+ -
+ name: install_jar_exports
+ named-args:
+ - TARGETS
+ - NAMESPACE
+ - FILE
+ - DESTINATION
+ - COMPONENT
+ has-target-names-after-kw: TARGETS
+ -
+ name: export_jars
+ named-args:
+ - TARGETS
+ - NAMESPACE
+ - FILE
+ has-target-names-after-kw: TARGETS
+ -
+ name: find_jar
+ named-args:
+ - NAMES
+ - PATHS
+ - ENV
+ - VERSIONS
+ - DOC
+ -
+ name: create_javadoc
+ named-args:
+ - PACKAGES
+ - FILES
+ - SOURCEPATH
+ - CLASSPATH
+ - INSTALLPATH
+ - DOCTITLE
+ - WINDOWTITLE
+ - AUTHOR
+ - USE
+ - VERSION
+ # UseSWIG
+ -
+ name: swig_add_library
+ named-args:
+ - TYPE
+ - SHARED
+ - MODULE
+ - STATIC
+ - USE_BUILD_SHARED_LIBS
+ - LANGUAGE
+ - NO_PROXY
+ - OUTPUT_DIR
+ - OUTFILE_DIR
+ - SOURCES
+ - name: swig_link_libraries
+ # UsewxWidgets
+ # NOTE Some standard finder modules also provide commands
+ # FindSquish
+ -
+ name: squish_add_test
+ named-args:
+ - AUT
+ - SUITE
+ - TEST
+ - SETTINGSGROUP
+ - PRE_COMMAND
+ - POST_COMMAND
+ # FindBISON
+ -
+ name: bison_target
+ named-args:
+ - COMPILE_FLAGS
+ - DEFINES_FILE
+ - VERBOSE
+ - REPORT_FILE
+ # FindCxxTest
+ - name: cxxtest_add_test
+ # FindDoxygen
+ -
+ name: doxygen_add_docs
+ named-args:
+ - ALL
+ - USE_STAMP_FILE
+ - WORKING_DIRECTORY
+ - COMMENT
+ - CONFIG_FILE # Since 3.27
+ # FindEnvModules
+ -
+ name: env_module
+ named-args: [COMMAND, OUTPUT_VARIABLE, RESULT_VARIABLE]
+ -
+ name: env_module_swap
+ named-args: [OUTPUT_VARIABLE, RESULT_VARIABLE]
+ - name: env_module_list
+ - name: env_module_avail
+ # FindFLEX
+ -
+ name: flex_target
+ named-args:
+ - COMPILE_FLAGS
+ - DEFINES_FILE
+ - name: add_flex_bison_dependency
+ # FindGettext
+ -
+ name: gettext_create_translations
+ named-args: [ALL]
+ -
+ name: gettext_process_pot_file
+ named-args: [ALL, INSTALL_DESTINATION, LANGUAGES]
+ -
+ name: gettext_process_po_files
+ named-args: [ALL, INSTALL_DESTINATION, PO_FILES]
+ # FindHg
+ - name: hg_wc_info
+ # FindMatlab
+ - name: matlab_get_version_from_release_name
+ - name: matlab_get_release_name_from_version
+ - name: matlab_extract_all_installed_versions_from_registry
+ - name: matlab_get_all_valid_matlab_roots_from_registry
+ - name: matlab_get_mex_suffix
+ - name: matlab_get_version_from_matlab_run
+ -
+ name: matlab_add_unit_test
+ named-args:
+ - NAME
+ - UNITTEST_FILE
+ - CUSTOM_TEST_COMMAND
+ - UNITTEST_PRECOMMAND
+ - TIMEOUT
+ - ADDITIONAL_PATH
+ - MATLAB_ADDITIONAL_STARTUP_OPTIONS
+ - TEST_ARGS
+ - NO_UNITTEST_FRAMEWORK
+ -
+ name: matlab_add_mex
+ named-args:
+ - NAME
+ - EXECUTABLE
+ - MODULE
+ - SHARED
+ - SRC
+ - OUTPUT_NAME
+ - DOCUMENTATION
+ - LINK_TO
+ - R2017b
+ - R2018a
+ - EXCLUDE_FROM_ALL
+ - NO_IMPLICIT_LINK_TO_MATLAB_LIBRARIES # Since 3.24
+ # FindPkgConfig
+ -
+ name: pkg_check_modules
+ named-args: &pkgcm
+ - REQUIRED
+ - QUIET
+ - NO_CMAKE_PATH
+ - NO_CMAKE_ENVIRONMENT_PATH
+ - IMPORTED_TARGET
+ - GLOBAL
+ - STATIC_TARGET # Since 3.24
+ -
+ name: pkg_search_module
+ named-args: *pkgcm
+ -
+ name: pkg_get_variable
+ named-args: [DEFINE_VARIABLES] # Since 3.28
+ # FindProtobuf
+ -
+ name: protobuf_generate_cpp
+ named-args: [DESCRIPTORS, EXPORT_MACRO]
+ -
+ name: protobuf_generate_python
+ # FindPython
+ -
+ name: Python_add_library
+ named-args: [STATIC, SHARED, MODULE, WITH_SOABI]
+ # FindSubversion
+ -
+ name: Subversion_WC_INFO
+ named-args: [IGNORE_SVN_FAILURE]
+ -
+ name: Subversion_WC_LOG
+ # FindXCTest
+ - name: xctest_add_bundle
+ - name: xctest_add_test
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/generate-cmake-syntax.py b/src/libs/3rdparty/syntax-highlighting/data/generators/generate-cmake-syntax.py
index 61f60a682d..0d9597320e 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/generators/generate-cmake-syntax.py
+++ b/src/libs/3rdparty/syntax-highlighting/data/generators/generate-cmake-syntax.py
@@ -3,26 +3,31 @@
#
# Generate Kate syntax file for CMake
#
-# Copyright (c) 2017, Alex Turbov <i.zaufi@gmail.com>
+# SPDX-FileCopyrightText: 2017-2023 Alex Turbov <i.zaufi@gmail.com>
#
# To install prerequisites:
#
-# $ pip install --user click jinja2 yaml
+# $ pip install --user click jinja2 lxml pyyaml
#
# To use:
#
# $ ./generate-cmake-syntax.py cmake.yaml > ../syntax/cmake.xml
#
+
+from __future__ import annotations
+
+import functools
+import re
+from dataclasses import dataclass, field
+
import click
import jinja2
-import pathlib
-import re
import yaml
-
-import pprint
+import sys
+from lxml import etree
-_TEMPLATED_NAME = re.compile('<[^>]+>')
+_TEMPLATED_NAME = re.compile(r'(?:<[^>]+>)')
_PROPERTY_KEYS = [
'global-properties'
, 'directory-properties'
@@ -33,18 +38,239 @@ _PROPERTY_KEYS = [
, 'install-properties'
]
_KW_RE_LIST = ['kw', 're']
-
-
-def try_transform_placeholder_string_to_regex(name):
+_VAR_KIND_LIST = ['variables', 'deprecated-or-internal-variables', 'environment-variables']
+_CONTROL_FLOW_LIST = {
+ 'break'
+ , 'continue'
+ , 'elseif'
+ , 'else'
+ , 'endforeach'
+ , 'endif'
+ , 'endwhile'
+ , 'foreach'
+ , 'if'
+ , 'return'
+ , 'while'
+ }
+_VAR_REF_ENTITY = '&var_ref_re;'
+
+_HEURISTICS = [
+ (
+ {'MAX(_(COUNT|MAJOR|MINOR|PATCH|TWEAK))?', 'MIN(_(COUNT|MAJOR|MINOR|PATCH|TWEAK))?'}
+ , 'M(AX|IN)(_(COUNT|MAJOR|MINOR|PATCH|TWEAK))?'
+ )
+ , ({'OUTPUTS', 'OUTPUT_(HEADER|SOURCE)'}, 'OUTPUT(S|_(HEADER|SOURCE))')
+ , ({'PREFIX', 'SUFFIX'}, '(PRE|SUF)FIX')
+ , ({'CPPCHECK', 'CPPLINT'}, 'CPP(CHECK|LINT)')
+ , ({'DEPENDS', 'PREDEPENDS'}, '(PRE)?DEPENDS')
+ , ({'ICON', 'ICONURL'}, 'ICON(URL)?')
+ , (
+ {
+ '&var%ref%re;(_INIT)?'
+ , 'DEBUG(_INIT)?'
+ , 'MINSIZEREL(_INIT)?'
+ , 'RELEASE(_INIT)?'
+ , 'RELWITHDEBINFO(_INIT)?'
+ }
+ , '(DEBUG|MINSIZEREL|REL(EASE|WITHDEBINFO)|&var%ref%re;)(_INIT)?'
+ )
+ , ({'RELEASE', 'RELWITHDEBINFO'}, 'REL(EASE|WITHDEBINFO)')
+ , ({'POST', 'POSTUN', 'PRE', 'PREUN'}, 'P(RE|OST)(UN)?')
+ , ({'AUTOPROV', 'AUTOREQ', 'AUTOREQPROV'}, 'AUTO(PROV|REQ(PROV)?)')
+ , ({'DEFINITIONS', 'OPTIONS'}, '(DEFINI|OP)TIONS')
+ , ({'LIB_NAMES', 'LIBRARY'}, 'LIB(_NAMES|RARY)')
+ , ({'EXTENSIONS', 'EXTRA_FLAGS'}, 'EXT(ENSIONS|RA_FLAGS)')
+ , ({'DISABLED', 'DISPLAY_NAME'}, 'DIS(ABLED|PLAY_NAME)')
+ , ({'LIBRARIES', 'LINK_LIBRARIES', 'STATIC_LINK_LIBRARIES'}, '((STATIC_)?LINK_)?LIBRARIES')
+ , ({'INCLUDE_DIRS', 'LIBRARY_DIRS'}, '(INCLUDE|LIBRARY)_DIRS')
+ , ({'BINARY_DIR', 'SOURCE_DIR'}, '(BINARY|SOURCE)_DIR')
+ , ({'CFLAGS(_OTHER)?', 'LDFLAGS(_OTHER)?'}, '(C|LD)FLAGS(_OTHER)?')
+ , ({'INCLUDE_DIRECTORIES', 'LIBRARIES'}, '(INCLUDE_DIRECTO|LIBRA)RIES')
+ , ({'POSTFLIGHT_&var%ref%re;_SCRIPT', 'PREFLIGHT_&var%ref%re;_SCRIPT'}, 'P(RE|OST)FLIGHT_&var%ref%re;_SCRIPT')
+ , ({'DIRECTORIES', 'FRAMEWORK_DIRECTORIES'}, '(FRAMEWORK_)?DIRECTORIES')
+ , ({'FILE_FLAG', 'FILE'}, 'FILE(_FLAG)?')
+ , ({'DIR_PERMISSIONS', 'FILE_PERMISSIONS'}, '(DIR|FILE)_PERMISSIONS')
+ , ({'COMPILER_LAUNCHER', 'LINKER_LAUNCHER'}, '(COMPIL|LINK)ER_LAUNCHER')
+ , ({'COMPILER', 'COMPILE_(DEFINI|OP)TIONS'}, 'COMPILE(R|_(DEFINI|OP)TIONS)')
+ , ({'LICENSEURL', 'LICENSE_(EXPRESSION|FILE_NAME)'}, 'LICENSE(URL|_(EXPRESSION|FILE_NAME))')
+ , ({'NO_SONAME', 'SONAME'}, '(NO_)?SONAME')
+ , ({'CODE_SIGN_ON_COPY', 'REMOVE_HEADERS_ON_COPY'}, '(CODE_SIGN|REMOVE_HEADERS)_ON_COPY')
+ , ({'(REFERENCE|REFERENCEPROP_&var%ref%re;_TAG)_&var%ref%re;'}, 'REFERENCE(PROP_&var%ref%re;_TAG)?_&var%ref%re;')
+ , ({'DISABLE_FIND_PACKAGE', 'REQUIRE_FIND_PACKAGE'}, '(DISABLE|REQUIRE)_FIND_PACKAGE')
+ , (
+ {'GROUP_USING_&var%ref%re;(_SUPPORTED)?', 'LIBRARY_USING_&var%ref%re;(_SUPPORTED)?'}
+ , '(GROUP|LIBRARY)_USING_&var%ref%re;(_SUPPORTED)?'
+ )
+ , (
+ {
+ 'EXE_LINKER_FLAGS_&var%ref%re;(_INIT)?'
+ , 'MODULE_LINKER_FLAGS_&var%ref%re;(_INIT)?'
+ , 'SHARED_LINKER_FLAGS_&var%ref%re;(_INIT)?'
+ , 'STATIC_LINKER_FLAGS_&var%ref%re;(_INIT)?'
+ }
+ , '(EXE|MODULE|SHARED|STATIC)_LINKER_FLAGS_&var%ref%re;(_INIT)?'
+ )
+ , (
+ {
+ 'ARCHIVE_OUTPUT_DIRECTORY'
+ , 'COMPILE_PDB_OUTPUT_DIRECTORY'
+ , 'LIBRARY_OUTPUT_DIRECTORY'
+ , 'PDB_OUTPUT_DIRECTORY'
+ , 'RUNTIME_OUTPUT_DIRECTORY'
+ }
+ , '(ARCHIVE|(COMPILE_)?PDB|LIBRARY|RUNTIME)_OUTPUT_DIRECTORY'
+ )
+ , (
+ {
+ 'ARCHIVE_OUTPUT_(DIRECTORY|NAME)'
+ , 'LIBRARY_OUTPUT_(DIRECTORY|NAME)'
+ , 'RUNTIME_OUTPUT_(DIRECTORY|NAME)'
+ }
+ , '(ARCHIVE|LIBRARY|RUNTIME)_OUTPUT_(DIRECTORY|NAME)'
+ )
+ , ({'ASM&var_ref_re;', 'ASM&var_ref_re;FLAGS'}, 'ASM&var_ref_re;(FLAGS)?')
+ , (
+ {
+ 'CMAKE_POLICY_DEFAULT_CMP[0-9]{4}'
+ , 'CMAKE_POLICY_WARNING_CMP[0-9]{4}'
+ }
+ , 'CMAKE_POLICY_(DEFAULT|WARNING)_CMP[0-9]{4}'
+ )
+ , ({'CMAKE_ARGV[0-9]+', 'CMAKE_MATCH_[0-9]+'}, 'CMAKE_(ARGV|MATCH_)[0-9]+')
+ ]
+
+@dataclass
+class RePartNode:
+ children: dict[str, RePartNode] = field(default_factory=dict, hash=False)
+ is_leaf: bool = False
+
+
+@dataclass
+class RegexCollection:
+ special_cases: list[str] = field(default_factory=list, hash=False)
+ re_tree: dict[str, RePartNode] = field(default_factory=dict, hash=False)
+
+ def add_case(self, regex: str) -> RegexCollection:
+ self.special_cases.append(regex)
+ return self
+
+ def update_tree(self, name_parts: list[str]) -> RegexCollection:
+ safe_var_ref = _VAR_REF_ENTITY.replace('_', '%')
+ current = functools.reduce(
+ lambda current, part: (
+ self.re_tree if current is None else current.children
+ ).setdefault(part, RePartNode())
+ , safe_var_ref.join(name_parts).replace(f'{safe_var_ref}_{safe_var_ref}', safe_var_ref).split('_')
+ , None
+ )
+ current.is_leaf = True
+ return self
+
+
+def try_transform_placeholder_string_to_regex(state: RegexCollection, name: str):
'''
NOTE Some placeholders are not IDs, but numbers...
`CMAKE_MATCH_<N>` 4 example
'''
- m = _TEMPLATED_NAME.split(name)
- if 'CMAKE_MATCH_' in m:
- return '\\bCMAKE_MATCH_[0-9]+\\b'
+ name_parts = _TEMPLATED_NAME.split(name)
+ match name_parts:
+ case ['CMAKE_MATCH_' as head, ''] | ['CMAKE_ARGV' as head, ''] | ['ARGV' as head, '']:
+ return state.add_case(head + '[0-9]+')
+
+ case ['CMAKE_POLICY_DEFAULT_CMP' as head, ''] | ['CMAKE_POLICY_WARNING_CMP' as head, '']:
+ return state.add_case(head + '[0-9]{4}')
+
+ case ['', '__TRYRUN_OUTPUT']:
+ return state.add_case(f'{_VAR_REF_ENTITY}__TRYRUN_OUTPUT')
+
+ case (['ASM', ''] | ['ASM', 'FLAGS']) as asm_env:
+ return state.add_case(f'{asm_env[0]}{_VAR_REF_ENTITY}{asm_env[1]}')
+
+ return state.update_tree(name_parts)
+
+
+def is_first_subset_of_second(first, second):
+ subset = set(first)
+ fullset = set(second)
+ return subset.issubset(fullset)
+
+
+def try_optimize_known_alt_groups(groups: list[str]) -> list[str]:
+ for case in _HEURISTICS:
+ if is_first_subset_of_second(case[0], groups):
+ groups = sorted([*filter(lambda item: item not in case[0], groups), case[1]])
+ return groups
+
+
+def try_optimize_trailing_var_ref_regex(groups: list[str]) -> list[str]:
+ tail_var_ref_re = '_' + _VAR_REF_ENTITY.replace('_', '%')
+ candidates = [*filter(lambda s: s.endswith(tail_var_ref_re), groups)]
+ return sorted([
+ *filter(lambda item: item not in candidates, groups)
+ , f'({"|".join(try_optimize_known_alt_groups([s[:-len(tail_var_ref_re)] for s in candidates]))}){tail_var_ref_re}'
+ ]) if len(candidates) > 1 else groups
+
+
+def build_regex(state: list[str], kv: tuple[str, RePartNode]) -> list[str]:
+ name, value = kv
+ match (value, len(value.children)):
+ case (RePartNode(children={}, is_leaf=True), 0):
+ return [*state, name]
+
+ case (node, sz) if sz > 0:
+ alt_group = try_optimize_known_alt_groups(
+ try_optimize_trailing_var_ref_regex(
+ functools.reduce(build_regex, node.children.items(), [])
+ )
+ )
+
+ match (len(alt_group), node.is_leaf):
+ case (1, False):
+ return [*state, f'{name}_{alt_group[0]}']
+
+ case (1, True):
+ return [*state, f'{name}(_{alt_group[0]})?']
+
+ case (sz, False) if sz > 0:
+ return [*state, f'{name}_({"|".join(alt_group)})']
+
+ case (sz, True) if sz > 0:
+ return [*state, f'{name}(_({"|".join(alt_group)}))?']
+
+ case _:
+ raise AssertionError('Zero children?')
+
+ case _:
+ raise AssertionError(f'NOT MATCHED: {name=}→{value=}')
- return '\\b{}\\b'.format('&id_re;'.join(list(m))) if 1 < len(m) else name
+ return state
+
+
+def try_placeholders_to_regex(names):
+ if not names:
+ return None
+
+ data = functools.reduce(
+ try_transform_placeholder_string_to_regex
+ , names
+ , RegexCollection()
+ )
+
+ return (
+ '\\b(?:'
+ + '|'.join(
+ try_optimize_known_alt_groups(
+ try_optimize_trailing_var_ref_regex(
+ functools.reduce(
+ build_regex
+ , data.re_tree.items()
+ , data.special_cases
+ )
+ )
+ )
+ ).replace('%', '_')
+ + ')\\b'
+ )
def partition_iterable(fn, iterable):
@@ -60,7 +286,7 @@ def _transform_command_set(cmd, list_name):
list_name = list_name.replace('-', '_')
cmd[list_name] = {k: sorted(set(v)) for k, v in zip(_KW_RE_LIST, [args, args_re])}
- cmd[list_name]['re'] = [*map(lambda x: try_transform_placeholder_string_to_regex(x), args_re)]
+ cmd[list_name]['re'] = try_placeholders_to_regex(args_re)
return cmd
@@ -86,19 +312,124 @@ def transform_command(cmd):
assert new_cmd == cmd
can_be_nulary = False
- cmd['nested_parentheses'] = cmd['nested-parentheses?'] if 'nested-parentheses?' in cmd else False
+ cmd['nested_parentheses'] = cmd.get('nested-parentheses?', False)
+
+ if 'first-arg-is-target?' in cmd:
+ cmd['first_arg_is_target'] = cmd['first-arg-is-target?']
+ can_be_nulary = False
+
+ if 'first-args-are-targets?' in cmd:
+ cmd['first_args_are_targets'] = cmd['first-args-are-targets?']
+ can_be_nulary = False
+
+ if 'has-target-name-after-kw' in cmd:
+ cmd['has_target_name_after_kw'] = cmd['has-target-name-after-kw']
+ can_be_nulary = False
+
+ if 'has-target-names-after-kw' in cmd:
+ cmd['has_target_names_after_kw'] = cmd['has-target-names-after-kw']
+ can_be_nulary = False
+
+ if 'second-arg-is-target?' in cmd:
+ cmd['second_arg_is_target'] = cmd['second-arg-is-target?']
+ can_be_nulary = False
if 'nulary?' in cmd and cmd['nulary?'] and not can_be_nulary:
raise RuntimeError('Command `{}` w/ args declared nulary!?'.format(cmd['name']))
+ if 'start-region' in cmd:
+ cmd['start_region'] = cmd['start-region']
+
+ if 'end-region' in cmd:
+ cmd['end_region'] = cmd['end-region']
+
+ cmd['attribute'] = 'Control Flow' if cmd['name'] in _CONTROL_FLOW_LIST else 'Command'
+
return cmd
+def remove_duplicate_list_nodes(contexts, highlighting):
+ remap = {}
+
+ items_by_kws = {}
+ # extract duplicate keyword list
+ for items in highlighting:
+ if items.tag != 'list':
+ break
+ k = '<'.join(item.text for item in items)
+ name = items.attrib['name']
+ rename = items_by_kws.get(k)
+ if rename:
+ remap[name] = rename
+ highlighting.remove(items)
+ else:
+ items_by_kws[k] = name
+
+ # update keyword list name referenced by each rule
+ for context in contexts:
+ for rule in context:
+ if rule.tag == 'keyword':
+ name = rule.attrib['String']
+ rule.attrib['String'] = remap.get(name, name)
+
+
+def remove_duplicate_context_nodes(contexts):
+ # 3 levels: ctx, ctx_op and ctx_op_nested
+ for _ in range(3):
+ remap = {}
+ duplicated = {}
+
+ # remove duplicate nodes
+ for context in contexts:
+ name = context.attrib['name']
+ context.attrib['name'] = 'dummy'
+ ref = duplicated.setdefault(etree.tostring(context), [])
+ if ref:
+ contexts.remove(context)
+ else:
+ context.attrib['name'] = name
+ ref.append(name)
+ remap[name] = ref[0]
+
+ # update context name referenced by each rule
+ for context in contexts:
+ for rule in context:
+ ref = remap.get(rule.attrib.get('context'))
+ if ref:
+ rule.attrib['context'] = ref
+
+
+def remove_duplicate_nodes(xml_string):
+ parser = etree.XMLParser(resolve_entities=False, collect_ids=False)
+ root = etree.fromstring(xml_string.encode(), parser=parser)
+ highlighting = root[0]
+
+ contexts = highlighting.find('contexts')
+
+ remove_duplicate_list_nodes(contexts, highlighting)
+ remove_duplicate_context_nodes(contexts)
+
+ # reformat comments
+ xml = etree.tostring(root)
+ xml = re.sub(b'(?=[^\n ])<!--', b'\n<!--', xml)
+ xml = re.sub(b'-->(?=[^ \n])', b'-->\n', xml)
+
+ # extract DOCTYPE removed by etree.fromstring and reformat <language>
+ doctype = xml_string[:xml_string.find('<highlighting')]
+
+ # remove unformatted <language>
+ xml = xml[xml.find(b'<highlighting'):]
+
+ # last comment removed by etree.fromstring
+ last_comment = '\n<!-- kate: replace-tabs on; indent-width 2; tab-width 2; -->'
+
+ return f'{doctype}{xml.decode()}{last_comment}'
+
+
#BEGIN Jinja filters
def cmd_is_nulary(cmd):
- assert not ('named-args' in cmd or 'special-args' in cmd or 'property-args' in cmd)
- return 'nulary?' in cmd and cmd['nulary?']
+ return cmd.setdefault('nulary?', False)
#END Jinja filters
@@ -107,13 +438,17 @@ def cmd_is_nulary(cmd):
@click.argument('input_yaml', type=click.File('r'))
@click.argument('template', type=click.File('r'), default='./cmake.xml.tpl')
def cli(input_yaml, template):
- data = yaml.load(input_yaml)
-
- # Partition `variables` list into "pure" words and regexes to match
- data['variables'] = {
- k: sorted(set(v)) for k, v in zip(_KW_RE_LIST, [*partition_iterable(lambda x: _TEMPLATED_NAME.search(x) is None, data['variables'])])
- }
- data['variables']['re'] = [*map(lambda x: try_transform_placeholder_string_to_regex(x), data['variables']['re'])]
+ data = yaml.load(input_yaml, Loader=yaml.BaseLoader)
+
+ # Partition `variables` and `environment-variables` lists into "pure" (key)words and regexes to match
+ for var_key in _VAR_KIND_LIST:
+ data[var_key] = {
+ k: sorted(set(v)) for k, v in zip(
+ _KW_RE_LIST
+ , [*partition_iterable(lambda x: _TEMPLATED_NAME.search(x) is None, data[var_key])]
+ )
+ }
+ data[var_key]['re'] = try_placeholders_to_regex(data[var_key]['re'])
# Transform properties and make all-properties list
data['properties'] = {}
@@ -122,27 +457,54 @@ def cli(input_yaml, template):
props, props_re = partition_iterable(lambda x: _TEMPLATED_NAME.search(x) is None, data[prop])
del data[prop]
- data['properties'][python_prop_list_name] = {k: sorted(set(v)) for k, v in zip(_KW_RE_LIST, [props, props_re])}
- data['properties'][python_prop_list_name]['re'] = [*map(lambda x: try_transform_placeholder_string_to_regex(x), props_re)]
-
+ data['properties'][python_prop_list_name] = {
+ k: sorted(set(v)) for k, v in zip(_KW_RE_LIST, [props, props_re])
+ }
+ data['properties'][python_prop_list_name]['re'] = try_placeholders_to_regex(props_re)
- data['properties']['kinds'] = [*map(lambda name: name.replace('-', '_'), _PROPERTY_KEYS)]
+ data['properties']['kinds'] = list(map(lambda name: name.replace('-', '_'), _PROPERTY_KEYS))
# Make all commands list
- data['commands'] = [*map(lambda cmd: transform_command(cmd), data['scripting-commands'] + data['project-commands'] + data['ctest-commands'])]
-
- data['generator_expressions'] = data['generator-expressions']
+ data['commands'] = list(
+ map(
+ transform_command
+ , data['scripting-commands'] + data['project-commands'] + data['ctest-commands']
+ )
+ )
+ data['standard_module_commands'] = list(
+ map(
+ transform_command
+ , data['standard-module-commands']
+ )
+ )
+ del data['standard-module-commands']
+ # Fix node names to be accessible from Jinja template
+ data['generator_expressions'] = (ex for ex in data['generator-expressions'] if isinstance(ex, str))
+ data['complex_generator_expressions'] = [ex for ex in data['generator-expressions'] if not isinstance(ex, str)]
+ data['deprecated_or_internal_variables'] = data['deprecated-or-internal-variables']
+ data['environment_variables'] = data['environment-variables']
+ del data['generator-expressions']
+ del data['deprecated-or-internal-variables']
+ del data['environment-variables']
env = jinja2.Environment(
keep_trailing_newline=True
)
+ env.block_start_string = '<!--['
+ env.block_end_string = ']-->'
+ env.variable_start_string = '<!--{'
+ env.variable_end_string = '}-->'
+ env.comment_start_string = '<!--#'
+ env.comment_end_string = '#-->'
# Register convenience filters
env.tests['nulary'] = cmd_is_nulary
tpl = env.from_string(template.read())
result = tpl.render(data)
+ result = remove_duplicate_nodes(result)
+
print(result)
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/generate-doxygenlua.pl b/src/libs/3rdparty/syntax-highlighting/data/generators/generate-doxygenlua.pl
new file mode 100644
index 0000000000..ffc38ea17e
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/generators/generate-doxygenlua.pl
@@ -0,0 +1,42 @@
+#!/usr/bin/env perl
+# SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+# SPDX-License-Identifier: MIT
+
+my $file = "";
+
+open(my $input, '<:encoding(UTF-8)', $ARGV[0])
+ or die "Could not open file '$ARGV[0]': $!";
+
+open(my $output, '>:encoding(UTF-8)', $ARGV[1])
+ or die "Could not open file '$ARGV[1]': $!";
+
+while (<$input>)
+{
+ $file .= $_;
+}
+
+$warning = "\n\n<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT ***** -->\n";
+$first_context = " <context attribute=\"Normal Text\" lineEndContext=\"#stay\" name=\"Normal\">
+ <RegExpr attribute=\"Comment\" context=\"LineComment\" String=\"--(?:!|(?:-(?=[^-]|\$)))\"/>
+ <RegExpr attribute=\"Region\" context=\"#stay\" String=\"--\\s*\@\\{\\s*\$\" beginRegion=\"MemberGroup\" />
+ <RegExpr attribute=\"Region\" context=\"#stay\" String=\"--\\s*\@\\}\\s*\$\" endRegion=\"MemberGroup\" />
+ </context>";
+
+$file =~ s/\n\s*<context [^\n]*?(?:name="ML_|name="BlockComment").*?<\/context>//gs;
+$file =~ s/\n\s*<context [^\n]*?name="Normal".*?<\/context>/\n$first_context/s;
+$file =~ s/\n[^\n]*?(?: ml_word|LineContinue)[^\n]+//gs;
+$file =~ s/\/\/\//---/gs;
+$file =~ s/\/\/!/--!/gs;
+
+$language = $file =~ s/.*?(<language[^>]+?>).*/$1/sr;
+$language =~ s/ name="[^"]+/ name="DoxygenLua/s;
+$language =~ s/ extensions="[^"]+/ extensions="/s;
+$language =~ s/ mimetype="[^"]+/ mimetype="/s;
+$language =~ s/ priority="[^"]+"//s;
+$version = $language =~ s/.*? version="([^"]+).*/$1/sr;
+$version = $version+2;
+$language =~ s/ version="[^"]+/ version="$version/s;
+$file =~ s/<language[^>]+?>/$warning\n$language/s;
+
+print $output $file;
+print $output $warning;
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/generate-html.pl b/src/libs/3rdparty/syntax-highlighting/data/generators/generate-html.pl
new file mode 100644
index 0000000000..a5b9bc9d05
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/generators/generate-html.pl
@@ -0,0 +1,143 @@
+#!/usr/bin/perl
+
+# This perl script read stdin and write on stdout. It shall be an XML language file.
+#
+# * If the name of the language is 'HTML', then it creates the language 'PHP (HTML)'
+# which shall be used for PHP hl.
+#
+# * If the name of the language is something else (say '*'), it creates the language '*/PHP'.
+# This new language is the same as the old one, but is able to detect PHP everywhere.
+#
+# This script will correctly set extensions & mimetype, and will replace
+# <IncludeRules context="##*"> by <IncludeRules context="##*/PHP">
+#
+# Generated languages need a language named 'PHP/PHP', which shall take care of PHP hl itself
+# and which will be called every time something like <?php is encountred.
+#
+# This script also supports Twig and does the same as for PHP.
+#
+# SPDX-FileCopyrightText: Jan Villat <jan.villat@net2000.ch>
+# License: LGPL
+
+my $file = "";
+
+open(my $input, '<:encoding(UTF-8)', $ARGV[0])
+ or die "Could not open file '$ARGV[0]': $!";
+
+open(my $output, '>:encoding(UTF-8)', $ARGV[1])
+ or die "Could not open file '$ARGV[1]': $!";
+
+my $language = $ARGV[1];
+if ($language =~ /-php\.xml$/)
+{
+ $language = "PHP";
+}
+else
+{
+ $language = "Twig";
+}
+
+while (<$input>)
+{
+ $file .= $_;
+}
+
+$warning = "\n\n<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT ***** -->\n";
+
+$file =~ s/(?=<language)/$warning\n\n\n/;
+
+$file =~ /<language.*?name="([^"]+)"/;
+my $syntaxName = $1;
+
+if ($syntaxName eq "HTML")
+{
+ $root = 1;
+}
+
+if ($language eq "Twig")
+{
+ $file =~ s/<language([^>]+)priority="[^"]*"/<language$1/s;
+}
+
+if ($root == 1)
+{
+ $file =~ s/<language([^>]+)name="[^"]*"/<language$1name="$language (HTML)"/s;
+ $file =~ s/<language([^>]+)section="[^"]*"/<language$1section="Scripts"/s;
+ if ($language eq "PHP")
+ {
+ $file =~ s/<language([^>]+)extensions="[^"]*"/<language$1extensions="*.php;*.php3;*.wml;*.phtml;*.phtm;*.inc;*.ctp"/s;
+ $file =~ s/<language([^>]+)mimetype="[^"]*"/<language$1mimetype="text\/x-php4-src;text\/x-php3-src;text\/vnd.wap.wml;application\/x-php"/s;
+ $file =~ s/<language([^>]+)*/<language$1 indenter="cstyle"/s;
+ }
+ # Twig
+ else
+ {
+ $file =~ s/<language([^>]+)extensions="[^"]*"/<language$1extensions="*.twig;*.html.twig;*.htm.twig"/s;
+ $file =~ s/<language([^>]+)mimetype="[^"]*"/<language$1mimetype="text\/x-twig"/s;
+ }
+}
+else
+{
+ $file =~ s/<language([^>]+)hidden="[^"]*"/<language$1/s;
+ $file =~ s/<language([^>]+)section="[^"]*"/<language$1section="Other"/s;
+ my $extra = " hidden=\"true\"";
+ my $mimetype = "";
+ my $extensions = "";
+ if ($language eq "Twig")
+ {
+ $mimetype = "text/x-twig";
+ if ($syntaxName eq "JavaScript")
+ {
+ $extra = " priority=\"1\"";
+ $extensions = "*.js.twig;*.mjs.twig;*.cjs.twig";
+ }
+ elsif ($syntaxName eq "TypeScript")
+ {
+ $extra = " priority=\"1\"";
+ $extensions = "*.ts.twig;*.mts.twig;*.cts.twig";
+ }
+ }
+ $file =~ s/<language([^>]+)mimetype="[^"]*"/<language$1mimetype="$mimetype"/s;
+ $file =~ s/<language([^>]+)name="([^"]*)"/<language$1name="$2\/$language"$extra/s;
+ $file =~ s/<language([^>]+)extensions="[^"]*"/<language$1extensions="$extensions"/s;
+}
+
+# replace list with a include
+$file =~ s/<list name="([^"]+)">.*?<\/list>/<list name="$1"><include>$1##$syntaxName<\/include><\/list>/gs;
+
+$file =~ s/<language([^>]+)kateversion="[^"]*"/<language$1kateversion="5.79"/s;
+$file =~ s/ fallthrough="(true|1)"//gs;
+
+if ($language eq "Twig")
+{
+ # remove Mustache syntax
+ if ($root == 1)
+ {
+ $file =~ s/<context name="MustacheJS.*?<\/context>//gs;
+ $file =~ s/<StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="[^"]+[^\/]+\/>//gs;
+ }
+}
+elsif ($root == 1 || $ARGV[0] =~ /mustache.xml$/)
+{
+ $file =~ s/<(?:RegExpr (attribute="Processing Instruction" context="PI"|context="PI" attribute="Processing Instruction")|itemData name="Processing Instruction")[^\/]+\/>|<context name="PI".*?<\/context>//gs;
+}
+
+my $find_language = "##$language/$language";
+my $language_suffix = "/$language";
+if ($language eq "PHP")
+{
+ $find_language = "FindPHP";
+}
+
+$file =~ s/<IncludeRules\s([^>]*)context="([^"#]*)##(?!Alerts|Comments|Doxygen|Modelines)([^"]+)"/<IncludeRules $1context="$2##$3$language_suffix"/g;
+$file =~ s/(<context\s[^>]*[^>\/]>)/$1\n<IncludeRules context="$find_language" \/>/g;
+$file =~ s/(<context\s[^>]*[^>\/])\s*\/>/$1>\n<IncludeRules context="$find_language" \/>\n<\/context>/g;
+
+if ($language eq "PHP")
+{
+ $findphp = "<context name=\"FindPHP\" attribute=\"Normal Text\" lineEndContext=\"#stay\">\n<Detect2Chars context=\"##PHP/PHP\" char=\"&lt;\" char1=\"?\" lookAhead=\"true\" />\n</context>\n";
+ $file =~ s/(?=<\/contexts\s*>)/$findphp/;
+}
+
+print $output $file;
+print $output $warning;
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/generate-nginx-lists.rb b/src/libs/3rdparty/syntax-highlighting/data/generators/generate-nginx-lists.rb
new file mode 100644
index 0000000000..577dea47c4
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/generators/generate-nginx-lists.rb
@@ -0,0 +1,55 @@
+#!/usr/bin/env ruby
+#
+# Generates the keyword lists for directives and variables used in nginx and
+# prints them to stdout, ready to be copy & pasted into nginx.xml.
+#
+# SPDX-FileCopyrightText: 2023 Georg Gadinger <nilsding@nilsding.org>
+# SPDX-License-Identifier: MIT
+#
+# Usage:
+# % ./generate-nginx-lists.rb
+#
+# if you want to install the required dependencies provide `INSTALL_GEMS` in
+# your ENV:
+# % INSTALL_GEMS=1 ./generate-nginx-lists.rb
+
+require "bundler/inline"
+
+gemfile(ENV["INSTALL_GEMS"]) do
+ source "https://rubygems.org"
+
+ gem "nokogiri", "~> 1.14"
+ gem "faraday", "~> 2.7"
+ gem "builder", "~> 3.2"
+end
+
+def fetch_vars(url)
+ Faraday.get(url)
+ .then { Nokogiri::HTML.parse _1.body }
+ .css("div#content a[href]")
+ .map(&:text)
+ .reject { _1.end_with?("_") } # some vars are just a prefix, ignore those
+ .sort
+ .uniq
+end
+
+def build_xml_list(name, url: nil, items: [])
+ builder = Builder::XmlMarkup.new(indent: 2)
+
+ builder.comment! "see #{url} for a full list of #{name}"
+ builder.list(name:) do |b|
+ items.each do |item|
+ b.item item
+ end
+ end
+end
+
+{
+ directives: "https://nginx.org/en/docs/dirindex.html",
+ variables: "https://nginx.org/en/docs/varindex.html",
+}.each do |name, url|
+ items = fetch_vars(url)
+
+ puts build_xml_list(name, url:, items:).gsub(/^/, ' ' * 4)
+ puts
+end
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/generate-php.pl b/src/libs/3rdparty/syntax-highlighting/data/generators/generate-php.pl
deleted file mode 100644
index c8274aab58..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/data/generators/generate-php.pl
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/usr/bin/perl
-
-# This perl script read stdin and write on stdout. It shall be an XML language file.
-#
-# * If the name of the language is 'HTML', then it creates the language 'PHP (HTML)'
-# which shall be used for PHP hl.
-#
-# * If the name of the language is something else (say '*'), it creates the language '*/PHP'.
-# This new language is the same as the old one, but is able to detect PHP everywhere.
-#
-# This script will correctly set extensions & mimetype, and will replace
-# <IncludeRules context="##*"> by <IncludeRules context="##*/PHP">
-#
-# Generated languages need a language named 'PHP/PHP', which shall take care of PHP hl itself
-# and which will be called every time something like <?php is encountred.
-#
-# Author: Jan Villat <jan.villat@net2000.ch>
-# License: LGPL
-
-my $file = "";
-
-while (<>)
-{
- $file .= $_;
-}
-
-$warning = "\n\n<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT ***** -->\n";
-
-$file =~ s/(?=<language)/$warning\n\n\n/;
-
-if ($file =~ /<language[^>]+name="HTML"/)
-{
- $root = 1;
-}
-
-if ($root == 1)
-{
- $file =~ s/<language([^>]+)name="[^"]*"/<language$1name="PHP (HTML)"/s;
- $file =~ s/<language([^>]+)section="[^"]*"/<language$1section="Scripts"/s;
- $file =~ s/<language([^>]+)extensions="[^"]*"/<language$1extensions="*.php;*.php3;*.wml;*.phtml;*.phtm;*.inc;*.ctp"/s;
- $file =~ s/<language([^>]+)mimetype="[^"]*"/<language$1mimetype="text\/x-php4-src;text\/x-php3-src;text\/vnd.wap.wml;application\/x-php"/s;
-}
-else
-{
- $file =~ s/<language([^>]+)name="([^"]*)"/<language$1name="$2\/PHP" hidden="true"/s;
- $file =~ s/<language([^>]+)section="[^"]*"/<language$1section="Other"/s;
- $file =~ s/<language([^>]+)extensions="[^"]*"/<language$1extensions=""/s;
- $file =~ s/<language([^>]+)mimetype="[^"]*"/<language$1mimetype=""/s;
-}
-
-$findphp = "<context name=\"FindPHP\" attribute=\"Normal Text\" lineEndContext=\"#stay\">\n<RegExpr context=\"##PHP/PHP\" String=\"&lt;\\?(?:=|php)?\" lookAhead=\"true\" />\n</context>\n";
-
-$file =~ s/<IncludeRules\s([^>]*)context="([^"#]*)##(?!Alerts|Doxygen|Modelines)([^"]+)"/<IncludeRules $1context="$2##$3\/PHP"/g;
-$file =~ s/(<context\s[^>]*>)/$1\n<IncludeRules context="FindPHP" \/>/g;
-$file =~ s/(?=<\/contexts\s*>)/$findphp/;
-
-print $file;
-print $warning;
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/generate-spdx-syntax.py b/src/libs/3rdparty/syntax-highlighting/data/generators/generate-spdx-syntax.py
new file mode 100644
index 0000000000..73ff29092c
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/generators/generate-spdx-syntax.py
@@ -0,0 +1,67 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+#
+# Generate SPDX-Comments syntax file
+#
+# SPDX-FileCopyrightText: 2020 Alex Turbov <i.zaufi@gmail.com>
+# SPDX-License-Identifier: MIT
+#
+# To install prerequisites:
+#
+# $ pip install --user click jinja2
+#
+# To use:
+#
+# $ ./generate-spdx-syntax.py > ../syntax/spdx-comments.xml
+#
+
+import json
+import pathlib
+import urllib.request
+
+import click
+import jinja2
+
+
+def get_json(url):
+ with urllib.request.urlopen(url=url) as body:
+ return json.load(body)
+
+
+@click.command()
+@click.argument('template', type=click.File('r'), default='./spdx-comments.xml.tpl')
+def cli(template):
+
+ data = {
+ 'licenses': [
+ *filter(
+ lambda l: not l['licenseId'].endswith('+')
+ , get_json(url='https://spdx.org/licenses/licenses.json')['licenses']
+ )
+ ]
+ , 'exceptions': [
+ *filter(
+ lambda l: not l['licenseExceptionId'].endswith('+')
+ , get_json(url='https://spdx.org/licenses/exceptions.json')['exceptions']
+ )
+ ]
+ }
+
+ env = jinja2.Environment(
+ keep_trailing_newline=True
+ )
+ env.block_start_string = '<!--['
+ env.block_end_string = ']-->'
+ env.variable_start_string = '<!--{'
+ env.variable_end_string = '}-->'
+ env.comment_start_string = '<!--#'
+ env.comment_end_string = '#-->'
+
+ tpl = env.from_string(template.read())
+ result = tpl.render(data)
+ print(result.strip(), end=None)
+
+
+if __name__ == '__main__':
+ cli()
+ # TODO Handle execptions and show errors
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/get-Qt-classes.sh b/src/libs/3rdparty/syntax-highlighting/data/generators/get-Qt-classes.sh
index f2735c88a5..fcfddd1a9d 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/generators/get-Qt-classes.sh
+++ b/src/libs/3rdparty/syntax-highlighting/data/generators/get-Qt-classes.sh
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Copyright (c) 2012-2013 by Alex Turbov
+# SPDX-FileCopyrightText: 2012-2013 Alex Turbov
#
# Grab a documented (officially) class list from Qt project web site:
# http://qt-project.org/doc/qt-${version}/classes.html
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/get-Qt-macros.sh b/src/libs/3rdparty/syntax-highlighting/data/generators/get-Qt-macros.sh
index db2a32d7a3..c6275e52cb 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/generators/get-Qt-macros.sh
+++ b/src/libs/3rdparty/syntax-highlighting/data/generators/get-Qt-macros.sh
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Copyright (c) 2011-2012 by Alex Turbov
+# SPDX-FileCopyrightText: 2011-2012 Alex Turbov
#
# Simplest (and stupid) way to get #defines from a header file(s)
#
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/qmake-gen.py b/src/libs/3rdparty/syntax-highlighting/data/generators/qmake-gen.py
index 3b20361708..a16d5fd5d4 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/generators/qmake-gen.py
+++ b/src/libs/3rdparty/syntax-highlighting/data/generators/qmake-gen.py
@@ -1,19 +1,8 @@
#!/usr/bin/env python
-# Copyright (C) 2016 Kevin Funk <kfunk@kde.org>
+# SPDX-FileCopyrightText: 2016 Kevin Funk <kfunk@kde.org>
#
-# This program is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Library General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or (at your
-# option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
-# License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# SPDX-License-Identifier: LGPL-2.0-or-later
# This script will print XML-like code you can put into the qmake.xml
# syntax definition file
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/spdx-comments.xml.tpl b/src/libs/3rdparty/syntax-highlighting/data/generators/spdx-comments.xml.tpl
new file mode 100644
index 0000000000..ad13296c1d
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/generators/spdx-comments.xml.tpl
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language>
+<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT *****
+ cd data/generators
+ # increase version of spdx-comments.xml.tpl then
+ ./generate-spdx-syntax.py > ../syntax/spdx-comments.xml
+-->
+<language
+ version="6"
+ kateversion="3.1"
+ name="SPDX-Comments"
+ section="Other"
+ extensions=""
+ mimetype=""
+ author="Alex Turbov (i.zaufi@gmail.com)"
+ license="MIT"
+ hidden="true"
+ >
+ <highlighting>
+ <list name="tags">
+ <item>SPDX-License-Identifier:</item>
+ <item>SPDX-FileContributor:</item>
+ <item>SPDX-FileCopyrightText:</item>
+ <item>SPDX-LicenseInfoInFile:</item>
+ </list>
+
+ <list name="operators">
+ <item>AND</item>
+ <item>OR</item>
+ <item>WITH</item>
+ </list>
+
+ <list name="licenses">
+ <!--[- for license in licenses if not license.isDeprecatedLicenseId ]-->
+ <item><!--{ license.licenseId }--></item>
+ <!--[- endfor ]-->
+ </list>
+
+ <list name="deprecated-licenses">
+ <!--[- for license in licenses if license.isDeprecatedLicenseId ]-->
+ <item><!--{ license.licenseId }--></item>
+ <!--[- endfor ]-->
+ </list>
+
+ <list name="exceptions">
+ <!--[- for exception in exceptions if not exception.isDeprecatedLicenseId ]-->
+ <item><!--{ exception.licenseExceptionId }--></item>
+ <!--[- endfor ]-->
+ </list>
+
+ <list name="deprecated-exceptions">
+ <!--[- for exception in exceptions if exception.isDeprecatedLicenseId ]-->
+ <item><!--{ exception.licenseExceptionId }--></item>
+ <!--[- endfor ]-->
+ </list>
+
+ <contexts>
+
+ <context name="Normal" attribute="SPDX Tag" lineEndContext="#pop">
+ <WordDetect String="SPDX-License-Identifier:" attribute="SPDX Tag" context="license-expression" />
+ <keyword String="tags" attribute="SPDX Tag" />
+ </context>
+
+ <context name="license-expression" attribute="SPDX Value" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
+ <DetectSpaces/>
+ <AnyChar String="()+" context="#stay" attribute="SPDX License Expression Operator" />
+ <keyword String="licenses" context="#stay" attribute="SPDX License" />
+ <keyword String="deprecated-licenses" context="#stay" attribute="SPDX Deprecated License" />
+ <keyword String="exceptions" context="#stay" attribute="SPDX License Exception" />
+ <keyword String="deprecated-exceptions" context="#stay" attribute="SPDX Deprecated License Exception" />
+ <keyword String="operators" context="#stay" attribute="SPDX License Expression Operator" />
+ <RegExpr attribute="SPDX License" context="#stay" String="\bLicenseRef-[^\s]+" />
+ </context>
+
+ </contexts>
+
+ <itemDatas>
+ <itemData name="SPDX Tag" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
+ <itemData name="SPDX Value" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
+ <itemData name="SPDX License" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
+ <itemData name="SPDX License Exception" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
+ <itemData name="SPDX Deprecated License" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
+ <itemData name="SPDX Deprecated License Exception" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
+ <itemData name="SPDX License Expression Operator" defStyleNum="dsOperator" italic="true" spellChecking="false" />
+ </itemDatas>
+
+ </highlighting>
+
+ <general>
+ <keywords casesensitive="1" weakDeliminator=":-." />
+ </general>
+
+</language>
+<!-- kate: indent-width 2; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/update_css_and_scss.py b/src/libs/3rdparty/syntax-highlighting/data/generators/update_css_and_scss.py
new file mode 100644
index 0000000000..a4edaa4227
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/generators/update_css_and_scss.py
@@ -0,0 +1,498 @@
+#!/usr/bin/env python3
+# SPDX-FileCopyrightText: 2023 Jonathan Poelen <jonathan.poelen@gmail.com>
+# SPDX-License-Identifier: MIT
+
+from pathlib import Path
+from collections import defaultdict
+from typing import TextIO
+import re
+import sys
+
+
+exclude_line = {
+ ' - non-standard\n',
+ ' - experimental\n',
+ ' - deprecated\n',
+ 'page-type: css-combinator\n',
+ 'page-type: css-selector\n',
+ 'page-type: css-module\n',
+ 'page-type: landing-page\n',
+ 'page-type: guide\n',
+}
+
+page_type_accepted = {
+ 'page-type: css-type\n',
+ 'page-type: css-function\n',
+ 'page-type: css-property\n',
+ 'page-type: css-keyword\n',
+ 'page-type: css-shorthand-property\n',
+ 'page-type: css-pseudo-element\n',
+ 'page-type: css-pseudo-class\n',
+ 'page-type: css-at-rule-descriptor\n',
+ 'page-type: css-at-rule\n',
+ 'page-type: css-media-feature\n',
+ 'page-type: svg-attribute\n',
+}
+
+exclude_title = {
+ '<alpha-value>',
+ '<angle>',
+ '<angle-percentage>',
+ '<basic-shape>',
+ '<calc-constant>',
+ '<calc-sum>',
+ '<color-interpolation-method>',
+ '<color>',
+ '<custom-ident>',
+ '<dashed-ident>',
+ '<display-listitem>',
+ '<display-inside>',
+ '<dimension>',
+ '<easing-function>'
+ '<filter-function>',
+ '<flex>',
+ '<frequency-percentage>',
+ '<frequency>',
+ '<gradient>',
+ '<hex-color>',
+ '<hue>',
+ '<hue-interpolation-method>',
+ '<ident>',
+ '<image>',
+ '<integer>',
+ '<length>',
+ '<length-percentage>',
+ '<number>',
+ '<percentage>',
+ '<position>',
+ '<ratio>',
+ '<resolution>',
+ '<string>',
+ '<time-percentage>',
+ '<time>',
+ '<transform-function>',
+ '"!important"',
+}
+
+properties_ignore_value = (
+ 'counter-increment',
+ 'counter-reset',
+ 'counter-set',
+ 'text-rendering',
+ 'page',
+)
+
+
+units: list[str] = []
+colors: set[str] = set()
+system_colors: set[str] = set()
+deprecated_system_colors: set[str] = set()
+values: set[str] = set()
+properties: set[str] = set()
+svg_values: set[str] = set()
+svg_properties: set[str] = set()
+functions: set[str] = set()
+pseudo_classes: set[str] = set()
+pseudo_elements: set[str] = set()
+experimental_pseudo_classes: set[str] = set()
+experimental_pseudo_elements: set[str] = set()
+at_rules: set[str] = set()
+media_features: set[str] = set()
+media_feature_values: set[str] = set()
+
+
+_update_version_extractor = re.compile(r' version="(\d+)" ')
+
+def update_version(s: str) -> str:
+ return _update_version_extractor.sub(lambda m: f' version="{int(m[1])+1}" ', s, count=1)
+
+
+_md_value_extractor = re.compile(r'(?<=[^\w][ /])`([-\w][-\w\d]+(?:<[^>]+>[?+*])?)`')
+_html_value_extractor = re.compile(r'<code>([-\w][-\w\d]+)</code>')
+_is_md_value = re.compile(r'^\s*- `')
+_is_html_table_desc = re.compile(r'^\s+<td><code>')
+
+def css_parse_values(f: TextIO, prop: str, values: set[str]) -> None:
+ line:str = ''
+ # Format:
+ # ## Syntax or ### Syntax
+ #
+ # ```css
+ # (optional)
+ # ```
+ # ## Values or ### Values or not...
+ #
+ # - `ident` or html table <td><code>....</code></td>
+ #
+ # ## SVG only ... (optional)
+ # ## other title
+ for line in f:
+ if line.endswith('## Syntax\n') or line.endswith('## Values\n') or '## SVG only' in line:
+ for line in f:
+ if _is_md_value.match(line):
+ if 'deprecated' not in line:
+ values.update(_md_value_extractor.findall(line))
+ elif line.startswith('#'):
+ if not (line.endswith('## Values\n') or '## SVG only' in line
+ or (prop == 'display'
+ and (line.endswith('## Grouped values\n')
+ or line.endswith('## Outside\n')
+ or line.endswith('## Inside\n')
+ or line.endswith('## List Item\n')
+ or line.endswith('## Internal\n')
+ or line.endswith('## Box\n')
+ or line.endswith('## Precomposed\n')
+ ))
+ ):
+ return
+ elif line == '```css\n':
+ for line in f:
+ if line.startswith('```\n'):
+ break
+ elif _is_html_table_desc.match(line):
+ values.update(_html_value_extractor.findall(line))
+
+
+def css_parse_named_colors(f: TextIO) -> set[str]:
+ return set(re.findall('\n <td>(?:\n )?<code>([a-z]+)</code>', f.read()))
+
+
+def css_parse_units(f: TextIO) -> list[str]:
+ return re.findall(r'`([^`]+)`', ''.join(re.findall(r'\n\| (`[^|]+)', f.read())))
+
+
+_svg_values_extractor = re.compile(r'<th scope="row">Value</th>\n\s*<td>(.*?)</td>', re.DOTALL)
+_svg_value_extractor = re.compile(r'<code>([-\w\d]+)</code>')
+
+def css_parse_svg_attribute(f: TextIO, prop: str, properties: set[str], values: set[str]) -> None:
+ contents = f.read()
+ if 'can be used as a CSS property' in contents:
+ properties.add(prop)
+ m = _svg_values_extractor.search(contents)
+ if m:
+ values.update(_svg_value_extractor.findall(m[1]))
+
+
+_experimental_selector_extractor = re.compile(r'\n- {{CSSxRef([^}]+)}} {{Experimental_Inline}}')
+_selector_extractor = re.compile(r'":+([-\w\d]+)[()]*"')
+
+def css_parse_pseudo_classes_or_elements(f: TextIO) -> tuple[
+ set[str], # experimental
+ list[str]
+]:
+ s = f.read()
+ experimental_str = ''.join(_experimental_selector_extractor.findall(s))
+ return (set(_selector_extractor.findall(experimental_str)), _selector_extractor.findall(s))
+
+
+if len(sys.argv) < 5:
+ print(f'''{Path(sys.argv[0]).name} content-main-directory syntax/css.xml sass-site-directory syntax/scss.xml
+
+content-main-directory is https://github.com/mdn/content/ (https://github.com/mdn/content/archive/refs/heads/main.zip)
+sass-site-directory is https://github.com/sass/sass-site/tree/main (https://github.com/sass/sass-site/archive/refs/heads/main.zip)
+''', file=sys.stderr)
+ exit(1)
+
+css_dir = Path(sys.argv[1])
+css_filename = Path(sys.argv[2])
+scss_dir = Path(sys.argv[3])
+scss_filename = Path(sys.argv[4])
+
+
+tmp_pseudo_classes = (set(), ())
+tmp_pseudo_elements = (set(), ())
+
+for pattern in (
+ 'files/en-us/web/svg/attribute/**/',
+ 'files/en-us/web/css/**/',
+):
+ for md in css_dir.glob(pattern):
+ with open(md/'index.md', encoding='utf8') as f:
+ if f.readline() != '---\n':
+ continue
+
+ title = f.readline()[7:-1]
+ if title in exclude_title:
+ continue
+
+ if title.startswith('"'):
+ title = title[1:-1]
+
+ page_type = ''
+ for line in f:
+ if line in exclude_line:
+ page_type = ''
+ break
+
+ if line.startswith('page-type: '):
+ if line not in page_type_accepted:
+ raise Exception(f'Unknown {line[:-1]}')
+ page_type = line[11:-1]
+
+ if line == '---\n':
+ break
+
+ if page_type == 'css-property' or page_type == 'css-at-rule-descriptor':
+ properties.add(title)
+ if not title.endswith('-name') and title not in properties_ignore_value:
+ css_parse_values(f, title, values)
+ elif page_type == 'css-shorthand-property':
+ properties.add(title)
+ elif page_type == 'css-pseudo-class':
+ pseudo_classes.add(title[1:].removesuffix('()'))
+ elif page_type == 'css-pseudo-element':
+ pseudo_elements.add(title[2:].removesuffix('()'))
+ elif page_type == 'css-type':
+ if title == '<named-color>':
+ colors = css_parse_named_colors(f)
+ if title == '<system-color>':
+ css_parse_values(f, '', system_colors)
+ deprecated_system_colors = set(re.findall('\n- `([^`]+)` {{deprecated_inline}}', f.read()))
+ else:
+ css_parse_values(f, '', values)
+ elif page_type == 'css-function':
+ functions.add(title[:-2])
+ elif page_type == 'css-at-rule':
+ at_rules.add(title)
+ elif page_type == 'css-media-feature':
+ media_features.add(title)
+ css_parse_values(f, title, media_feature_values)
+ elif page_type == 'css-keyword':
+ values.add(title)
+ elif title == 'CSS values and units':
+ units = css_parse_units(f)
+ elif title == 'Pseudo-classes':
+ tmp_pseudo_classes = css_parse_pseudo_classes_or_elements(f)
+ elif title == 'Pseudo-elements':
+ tmp_pseudo_elements = css_parse_pseudo_classes_or_elements(f)
+ elif page_type == 'svg-attribute':
+ css_parse_svg_attribute(f, title, svg_properties, svg_values)
+ elif title == 'CSS value functions':
+ functions.update(re.findall(r'\n- {{CSSxRef\("[^"]+", "([-\w\d]+)\(\)"\)}}\n', f.read()))
+
+
+experimental_pseudo_classes = tmp_pseudo_classes[0]
+experimental_pseudo_classes -= pseudo_classes
+pseudo_classes.update(tmp_pseudo_classes[1])
+
+experimental_pseudo_elements = tmp_pseudo_elements[0]
+experimental_pseudo_elements -= pseudo_elements
+pseudo_elements.update(tmp_pseudo_elements[1])
+
+
+global_values = {
+ 'auto',
+ 'inherit',
+ 'initial',
+ 'revert',
+ 'revert-layer',
+ 'unset',
+}
+values -= global_values
+svg_values -= global_values
+pseudo_classes -= experimental_pseudo_classes
+pseudo_elements -= experimental_pseudo_elements
+
+# add values of functions
+values.update((
+ # repeat()
+ 'auto-fill',
+ 'auto-fit',
+))
+
+# move some keyword colors in values
+for special_color in ('transparent', 'currentcolor'):
+ values.add(special_color)
+ colors.discard(special_color)
+
+# fix not specified value in mdn file
+if 'user-invalid' in experimental_pseudo_classes:
+ pseudo_classes.discard('user-valid')
+ experimental_pseudo_classes.add('user-valid')
+media_features.update((
+ 'min-width',
+ 'max-width',
+ 'min-height',
+ 'max-height',
+))
+
+# fix errors in mdn file
+for e in ('has', 'host-context'):
+ pseudo_classes.add(e)
+ experimental_pseudo_classes.discard(e)
+
+# @font-format functions
+functions.update((
+ 'format',
+ 'local',
+ 'tech',
+))
+
+
+# def show(name, values):
+# print(f'{name} ({len(values)}):')
+# print('\n'.join(sorted(values)), end='\n\n')
+#
+# show('properties', properties)
+# show('svg properties', svg_properties)
+# show('values', values)
+# show('svg values', svg_values)
+# show('global values', global_values)
+# show('functions', functions)
+# show('pseudo-classes', pseudo_classes)
+# show('pseudo-elements', pseudo_elements)
+# show('experimental pseudo-classes', experimental_pseudo_classes)
+# show('experimental pseudo-elements', experimental_pseudo_elements)
+# show('at-rules', at_rules)
+# show('media-features', media_features)
+# show('media-features values', media_feature_values)
+# show('colors', colors)
+# show('system colors', system_colors)
+# show('deprecated system colors', deprecated_system_colors)
+# show('units', units)
+# print('units reg:', '|'.join(units))
+
+
+#
+# Update CSS
+#
+
+sep = '\n '
+css_replacements = {
+ prop: f'</item>{sep}<item>'.join(sorted(seq))
+ for prop, seq in (
+ ('properties', properties),
+ ('values', values),
+ ('value keywords', global_values),
+ ('functions', functions),
+ ('pseudo-classes', pseudo_classes),
+ ('pseudo-elements', pseudo_elements),
+ ('media features', media_features)
+ )
+}
+for prop, seq in (('properties', svg_properties - properties), ('values', svg_values - values)):
+ if seq:
+ items = f'</item>{sep}<item>'.join(sorted(seq))
+ css_replacements[prop] += f'</item>\n{sep}<!-- SVG only -->\n{sep}<item>{items}'
+
+rep1 = f'</item>{sep}<item>'.join(sorted(colors))
+rep2 = f'</item>{sep}<item>'.join(sorted(system_colors))
+css_replacements['colors'] = f'{rep1}</item>{sep}{sep}<!-- System colors -->{sep}<item>{rep2}'
+
+item_extractor = re.compile('<item>([^-<][^<]*)')
+
+current_at_rules = set()
+
+def _css_update_and_extract_items(m) -> str:
+ seq = css_replacements.get(m[1])
+ if seq:
+ end = ' ' if m[3] == '</list>' else sep
+ return f'<list name="{m[1]}">{sep}<item>{seq}</item>\n{end}{m[3]}'
+
+ current_at_rules.update(item_extractor.findall(m[2]))
+ return m[0]
+
+
+css_content = css_filename.read_text()
+original_css_content = css_content
+
+names = f"{'|'.join(css_replacements)}|at-rules(?: definitions)?"
+css_content = re.sub(rf'<list name="({names})">(.*?)(</list>|<!-- manual list -->)',
+ _css_update_and_extract_items, css_content, flags=re.DOTALL)
+
+_regexpr_unit_prefix = r'(<RegExpr attribute="Unit".*?String="\(%\|\()'
+regexpr_unit_extractor = re.compile(fr'{_regexpr_unit_prefix}([^)]+)')
+
+css_content = regexpr_unit_extractor.sub('\\1' + "|".join(units), css_content, 1)
+
+if original_css_content != css_content:
+ css_content = update_version(css_content)
+ css_filename.write_text(css_content)
+
+
+def show_at_rule_difference(language: str, old_at_rules: set[str], new_at_rules: set[str]) -> None:
+ at_rule_added = new_at_rules - old_at_rules
+ at_rule_removed = old_at_rules - new_at_rules
+ nl = '\n '
+ if at_rule_added or at_rule_removed:
+ print(f"""\x1b[31m{language} At-rules requires a manual update
+New ({len(at_rule_added)}):\x1b[0m
+ {nl.join(at_rule_added)}
+\x1b[31mRemoved ({len(at_rule_removed)}):\x1b[0m
+ {nl.join(at_rule_removed)}""")
+
+show_at_rule_difference('CSS', current_at_rules, at_rules)
+
+#
+# Extract SCSS data
+#
+
+scss_functions:list[str] = []
+scss_at_rules:set[str] = {'@content', '@return'}
+
+_function_list_extractor = re.compile(r'{% function (.*?) %}')
+_function_extractor = re.compile(r"'([-._a-zA-Z0-9]+)\(")
+_at_rule_extractor = re.compile(r'@[-a-z0-9]+')
+
+for md in sorted(scss_dir.glob('source/documentation/modules/**/*.md')):
+ func_list = _function_list_extractor.findall(md.read_text())
+ func_items = set(_function_extractor.findall(''.join(func_list)))
+ scss_functions.append(f'\n{sep}<!-- {md.stem} -->')
+ scss_functions.extend(f'{sep}<item>{func}</item>' for func in sorted(func_items - functions))
+
+for md in scss_dir.glob('source/documentation/at-rules/**/*.md'):
+ with open(md) as f:
+ f.readline()
+ scss_at_rules.update(_at_rule_extractor.findall(f.readline()))
+
+subproperties = set(
+ '-'.join(splitted[i:n])
+ for prop in properties
+ for splitted in (prop.rsplit('-', prop.count('-') - 1) # '-aaa-bbb' -> ['-aaa', 'bbb']
+ if prop.startswith('-')
+ else prop.split('-'), ) # 'aaa-bbb' -> ['aaa', 'bbb']
+ for i in range(len(splitted))
+ for n in range(i+1, len(splitted)+1)
+)
+
+#
+# Update SCSS
+#
+
+scss_current_at_rules = set()
+
+def _scss_update_and_extract_items(m) -> str:
+ name = m[1]
+
+ if name == 'functions':
+ return f"""<list name="functions">
+ <include>functions##CSS</include>
+
+ <!-- https://sass-lang.com/documentation/modules/ -->{f''.join(scss_functions)}
+ </list>"""
+
+ if name == 'at-rules':
+ scss_current_at_rules.update(_at_rule_extractor.findall(m[2]))
+ return m[0]
+
+ # sub-properties
+ items = f'</item>{sep}<item>'.join(sorted(subproperties - properties))
+ return f'<list name="{name}">{sep}<item>{items}</item>\n </list>'
+
+scss_content = scss_filename.read_text()
+original_scss_content = scss_content
+
+scss_content = re.sub(r'<list name="(sub-properties|functions|at-rules)">(.*?)</list>',
+ _scss_update_and_extract_items, scss_content, count=3, flags=re.DOTALL)
+
+scss_content = re.sub(r'<!ENTITY pseudoclasses "[^"]*">',
+ f'<!ENTITY pseudoclasses "{"|".join(sorted(pseudo_classes))}">',
+ scss_content, count=1)
+
+scss_content = regexpr_unit_extractor.sub('\\1' + "|".join(units), scss_content, 1)
+
+if original_scss_content != scss_content:
+ scss_content = update_version(scss_content)
+ scss_filename.write_text(scss_content)
+
+show_at_rule_difference('SCSS', scss_current_at_rules, scss_at_rules)
diff --git a/src/libs/3rdparty/syntax-highlighting/data/generators/update_less.py b/src/libs/3rdparty/syntax-highlighting/data/generators/update_less.py
new file mode 100644
index 0000000000..d509aeabe7
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/generators/update_less.py
@@ -0,0 +1,45 @@
+#!/usr/bin/env python3
+# SPDX-FileCopyrightText: 2023 Jonathan Poelen <jonathan.poelen@gmail.com>
+# SPDX-License-Identifier: MIT
+
+from pathlib import Path
+from urllib import request
+import re
+import sys
+
+
+if len(sys.argv) < 1:
+ print(f'{sys.argv[0]} syntax/less.xml', file=sys.stderr)
+ exit(1)
+
+#
+# Extract functions
+#
+
+data = request.urlopen('https://lesscss.org/functions/').read().decode()
+
+functions = re.findall(r'</a>([-_\w\d]+)</h3>', data, flags=re.DOTALL)
+functions.append('%')
+
+#
+# Update syntax
+#
+
+sep = '\n '
+new_list = f"""<list name="functions">
+ <include>functions##CSS</include>
+
+ <!-- Less functions, @see http://lesscss.org/functions/ -->
+ <item>{f'</item>{sep}<item>'.join(sorted(functions))}</item>
+ </list>"""
+
+less_filename = Path(sys.argv[1])
+less_content = less_filename.read_text()
+original_less_content = less_content
+less_content = re.sub(r'<list name="functions">.*?</list>',
+ new_list, less_content, count=1, flags=re.DOTALL)
+
+if original_less_content != less_content:
+ less_content = re.sub(' version="(\d+)" ', lambda m: f' version="{int(m[1])+1}" ',
+ less_content, count=1)
+ less_filename.write_text(less_content)
diff --git a/src/libs/3rdparty/syntax-highlighting/data/schema/language.xsd b/src/libs/3rdparty/syntax-highlighting/data/schema/language.xsd
index 6f05aad7b5..b640219414 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/schema/language.xsd
+++ b/src/libs/3rdparty/syntax-highlighting/data/schema/language.xsd
@@ -1,44 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2001 Joseph Wenninger <jowenn@kde.org>
- modified (c) 2002 Anders Lund <anders@alweb.dk>
- modified (c) 2003 Simon Huerlimann <simon.huerlimann@access.unizh.ch>
- modified (c) 2005 Dominik Haumann <dhdev@gmx.de>
- modified (c) 2008 Wilbert Berendsen <info@wilbertberendsen.nl>
+ SPDX-FileCopyrightText: 2001 Joseph Wenninger <jowenn@kde.org>
+ SPDX-FileCopyrightText: 2002 Anders Lund <anders@alweb.dk>
+ SPDX-FileCopyrightText: 2003 Simon Huerlimann <simon.huerlimann@access.unizh.ch>
+ SPDX-FileCopyrightText: 2005 Dominik Haumann <dhdev@gmx.de>
+ SPDX-FileCopyrightText: 2008 Wilbert Berendsen <info@wilbertberendsen.nl>
- This file describes the XML format used for syntax highlight descriptions
- for the Kate text editor (http://kate.kde.org), which is part of the KDE
- desktop environment (http://www.kde.org).
- You'll find the "Writing a Kate Highlighting XML File HOWTO" at
- http://kate.kde.org/doc/hlhowto.php
+ This file describes the XML format used for syntax highlight descriptions
+ for the Kate text editor (https://kate-editor.org), which is part of the
+ KDE desktop environment (https://kde.org).
+ You'll find the "Working with Syntax Highlighting" at
+ https://docs.kde.org/stable5/en/kate/katepart/highlight.html
- This format is identified using the SYSTEM identifier
- SYSTEM "language.dtd"
+ You can validate your syntax files using "validatehl.sh yourSyntax.xml".
+ This needs xmllint from the libxml2 XML library.
- Files using this format should include a DOCTYPE declaration like this:
- <!DOCTYPE language SYSTEM "language.dtd">
-
- You can validate your syntax files using "validatehl.sh yourSyntax.xml".
- This needs xmllint from the libxml2 XML library.
-
- In any case, the katehighlightingindexer will validate all files bundled
- with KTextEditor during compile time and fail on errors.
-
- To use your syntax file, copy it to ~/.local/share/katepart5/syntax/ in
- your home directory. You have to open a new instance of kwrite/kate to use
- the new syntax file.
+ In any case, the katehighlightingindexer will validate all files bundled
+ with KTextEditor during compile time and fail on errors.
TODO
- find a more readable way for the - -dtdvalid stuff, it's just annoying
xml comments don't allow it.
-->
-<!--
- Entity declarations
- You can use '&per;' instead of '.'. This seems to be useful in <item> elements.
-
- TODO
- - Are there any more such pre-defined entities?
--->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<!--
Default Styles
@@ -115,27 +98,29 @@
</xs:restriction>
</xs:simpleType>
<!--
+ Char type
+ A sequence of exactly 1 character
+ -->
+ <xs:simpleType name="char">
+ <xs:restriction base="xs:string">
+ <xs:length value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <!--
Language specification
name: The name of this syntax description. Used in the Highlightning Mode menu
section: The logical group to which this syntax description belongs. Used for sub menus
extensions: A file glob or pattern to decide for which documents to use this syntax description
style: The style that this highlighter provides. It is used through required-syntax-style by the indenters. [optional]
mimetype: A list of mimetypes to decide for which documents to use this syntax description [optional]
- version: Version number of this syntax description [optional]
- kateversion: Kate version required for using this file [optional]
- casesensitive: Whether text is matched case sensitive. [boolean, optional, default=true] FIXME: This is not implemented yet
+ version: Version number of this syntax description
+ kateversion: Kate version required for using this file
+ casesensitive: Ignored but preserved to maintain compatibility in older versions of KF5.
priority: Priority of this language, if more than one are usable for the file [optional]
author: Name of author of this hl file [optional]
license: License for this hl file [optional]
indenter: Name of the Indenter to use for this highlighting mode per default, like "cstyle" [optional]
hidden: Should it be hidden in menu [boolean, optional, default=false]
-
- TODO
- - Which matches are affected by casesensitive? keyword, RegExpr, StringDetect, WordDetect...?
-
- WARNING: due to helper scripts, the language opening tag must be on a
- *single line* and *cannot* be split in multiple lines.
-
-->
<xs:element name="language">
<xs:complexType>
@@ -151,6 +136,7 @@
<xs:attribute name="kateversion" use="required" type="xs:decimal"/>
<xs:attribute name="style"/>
<xs:attribute name="mimetype"/>
+ <!-- always ignored, <keywords casesensitive> must be used -->
<xs:attribute name="casesensitive" type="xs:boolean"/>
<xs:attribute name="priority" type="xs:integer"/>
<xs:attribute name="author"/>
@@ -279,9 +265,10 @@
-->
<xs:element name="list">
<xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="item"/>
- </xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="item"/>
+ <xs:element ref="include"/>
+ </xs:choice>
<xs:attribute name="name" use="required"/>
</xs:complexType>
</xs:element>
@@ -290,6 +277,11 @@
contains string used in <keyword>
-->
<xs:element name="item" type="xs:string"/>
+ <!--
+ List include
+ contains a name of <keyword>
+ -->
+ <xs:element name="include" type="xs:string"/>
<!-- List of contexts -->
<xs:element name="contexts">
<xs:complexType>
@@ -302,20 +294,18 @@
context specification
name: The name of this context specification. Used in '*Context' attributes [optional]
attribute: The name of the ItemData to be used for matching text
- lineEndContext: Next context if end of line is encountered
- lineEmptyContext: Next context if an empty line is encountered [optional]
+ lineEndContext: Next context if end of line is encountered [optional, default='#stay']
+ lineEmptyContext: Next context if an empty line is encountered [optional, default=value of lineEndContext]
fallthrough: Use a fallthrough context [optional]
- fallthroughContext: Fall through to this context [optional]
+ deprecated since 5.62 but preserved to maintain compatibility in older versions of KF5
+ fallthroughContext: Fall through to this context [optional, default='#stay']
dynamic: Dynamic context [boolean, optional]
+ deprecated since always but preserved to maintain compatibility in older versions of KF5
noIndentationBasedFolding: Python uses indentation based folding. However, Python has parts where
- it does not use indentation based folding (e.g. for """ strings). In this case
- switch to an own context and set this attribute to true. Then the indentation
- based folding will ignore this parts and not change folding markers. [optional]
-
- TODO:
- - Explain fallthrough.
- - Do we need fallthrough at all? It could be true, if fallthroughContext is set, false otherwise.
- - Make lineEndContext optional, defaults to '#stay'. Reasonable?
+ it does not use indentation based folding (e.g. for """ strings). In this case
+ switch to an own context and set this attribute to true. Then the indentation
+ based folding will ignore this parts and not change folding markers. [optional]
+ stopEmptyLineContextSwitchLoop: Do not continue the context switching if an empty line is encountered. [boolean, optional, default=false]
-->
<xs:element name="context">
<xs:complexType>
@@ -324,7 +314,6 @@
<xs:element ref="Float"/>
<xs:element ref="HlCOct"/>
<xs:element ref="HlCHex"/>
- <xs:element ref="HlCFloat"/>
<xs:element ref="Int"/>
<xs:element ref="DetectChar"/>
<xs:element ref="Detect2Chars"/>
@@ -342,12 +331,23 @@
</xs:choice>
<xs:attribute name="name"/>
<xs:attribute name="attribute" use="required"/>
- <xs:attribute name="lineEndContext" use="required"/>
+ <xs:attribute name="lineEndContext"/>
<xs:attribute name="lineEmptyContext"/>
- <xs:attribute name="fallthrough" type="xs:boolean"/>
+ <xs:attribute name="fallthrough">
+ <xs:simpleType>
+ <!-- always true since 5.62 -->
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="1"/>
+ <xs:enumeration value="true"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
<xs:attribute name="fallthroughContext"/>
+ <!-- always ignored -->
<xs:attribute name="dynamic" type="xs:boolean"/>
<xs:attribute name="noIndentationBasedFolding" type="xs:boolean"/>
+ <!-- since 5.103 -->
+ <xs:attribute name="stopEmptyLineContextSwitchLoop" type="xs:boolean"/>
</xs:complexType>
</xs:element>
<!--
@@ -373,66 +373,66 @@
commonAttributes: Common attributes
insensitive: Is this list case-insensitive? [boolean, optional, see note]
String: Name of the list
- weakDelimiter: Use weak deliminator
+ weakDeliminator: Add weak deliminators [optional, see note]
+ additionalDeliminator: Add deliminators [optional, see note]
By default, case sensitivity is determined from <keywords casesensitive> in
<general> (default=true), but can be overridden per-list with 'insensitive'.
- TODO:
- - Should be weakDeliminator
- - Explain deliminator
- - Doesn't seem to be supported in highligh.cpp
+ weakDeliminator and additionalDeliminator are accumulated to those defined in
+ <keywords weakDeliminator additionalDeliminator> in <general>.
-->
<xs:element name="keyword">
<xs:complexType>
<xs:attributeGroup ref="commonAttributes"/>
<xs:attribute name="insensitive" type="xs:boolean"/>
<xs:attribute name="String" use="required"/>
- <xs:attribute name="weakDelimiter"/>
+ <xs:attribute name="weakDeliminator"/>
+ <xs:attribute name="additionalDeliminator"/>
</xs:complexType>
</xs:element>
<!--
- Detect a floating point number
+ Detect a floating point number (as the regular expression: (\b[0-9]+\.[0-9]*|\.[0-9]+)([eE][-+]?[0-9]+)?).
commonAttributes: Common attributes
+ weakDeliminator: Add weak deliminators [optional]
+ additionalDeliminator: Add deliminators [optional]
-->
<xs:element name="Float">
<xs:complexType>
<xs:attributeGroup ref="commonAttributes"/>
+ <xs:attribute name="weakDeliminator"/>
+ <xs:attribute name="additionalDeliminator"/>
</xs:complexType>
</xs:element>
<!--
- Detect an octal number
+ Detect an octal number (as the regular expression: \b0[0-7]+).
commonAttributes: Common attributes
+ weakDeliminator: Add weak deliminators [optional]
+ additionalDeliminator: Add deliminators [optional]
-->
<xs:element name="HlCOct">
<xs:complexType>
<xs:attributeGroup ref="commonAttributes"/>
+ <xs:attribute name="weakDeliminator"/>
+ <xs:attribute name="additionalDeliminator"/>
</xs:complexType>
</xs:element>
<!--
- Detect a hexadecimal number
+ Detect a hexadecimal number (as a regular expression: \b0[xX][0-9a-fA-F]+).
commonAttributes: Common attributes
+ weakDeliminator: Add weak deliminators [optional]
+ additionalDeliminator: Add deliminators [optional]
-->
<xs:element name="HlCHex">
<xs:complexType>
<xs:attributeGroup ref="commonAttributes"/>
+ <xs:attribute name="weakDeliminator"/>
+ <xs:attribute name="additionalDeliminator"/>
</xs:complexType>
</xs:element>
<!--
- Detect a C-style floating point number
- commonAttributes: Common attributes
- -->
- <xs:element name="HlCFloat">
- <xs:complexType>
- <xs:attributeGroup ref="commonAttributes"/>
- </xs:complexType>
- </xs:element>
- <!--
- Detect C-style character
+ Detect C-style character. Characters enclosed in a tick (Example: 'c') which may be a simple character or an escaped character (as a regular expression: '(\\([abefnrtv"'?\\.]|x[0-9a-fA-F]{1,2}|[0-7]{1,3})|[^'])')
commonAttributes: Common attributes
-
- TODO
- - Did I get this right?
-->
<xs:element name="HlCChar">
<xs:complexType>
@@ -442,10 +442,14 @@
<!--
Detect an integer number
commonAttributes: Common attributes
+ weakDeliminator: Add weak deliminators [optional]
+ additionalDeliminator: Add deliminators [optional]
-->
<xs:element name="Int">
<xs:complexType>
<xs:attributeGroup ref="commonAttributes"/>
+ <xs:attribute name="weakDeliminator"/>
+ <xs:attribute name="additionalDeliminator"/>
</xs:complexType>
</xs:element>
<!--
@@ -457,7 +461,7 @@
<xs:element name="DetectChar">
<xs:complexType>
<xs:attributeGroup ref="commonAttributes"/>
- <xs:attribute name="char" use="required"/>
+ <xs:attribute name="char" type="char" use="required"/>
<xs:attribute name="dynamic" type="xs:boolean"/>
</xs:complexType>
</xs:element>
@@ -470,17 +474,14 @@
<xs:element name="Detect2Chars">
<xs:complexType>
<xs:attributeGroup ref="commonAttributes"/>
- <xs:attribute name="char" use="required"/>
- <xs:attribute name="char1" use="required"/>
+ <xs:attribute name="char" type="char" use="required"/>
+ <xs:attribute name="char1" type="char" use="required"/>
</xs:complexType>
</xs:element>
<!--
- Detect any group of characters
+ Detect one character of a set of specified characters.
commonAttributes: Common attributes
- String: A string representing the characters to look for
-
- TODO
- - Description is not descriptive enough, I'm not sure what it exactly does:-(
+ String: The set of characters
-->
<xs:element name="AnyChar">
<xs:complexType>
@@ -494,9 +495,6 @@
String: The string to look for
insensitive: Whether the string is matched case INsensitive. [boolean, optional, default=false]
dynamic: Uses %1 .. %9 as placeholders for dynamic arguments [boolean, optional, default=false]
-
- TODO
- - What's default of insensitive? I'm not sure...
-->
<xs:element name="StringDetect">
<xs:complexType>
@@ -511,15 +509,16 @@
commonAttributes: Common attributes
String: The string to look for
insensitive: Whether the string is matched case INsensitive. [boolean, optional, default=false]
-
- TODO
- - What's default of insensitive? I'm not sure...
+ weakDeliminator: Add weak deliminators [optional]
+ additionalDeliminator: Add deliminators [optional]
-->
<xs:element name="WordDetect">
<xs:complexType>
<xs:attributeGroup ref="commonAttributes"/>
<xs:attribute name="String" use="required"/>
<xs:attribute name="insensitive" type="xs:boolean"/>
+ <xs:attribute name="weakDeliminator"/>
+ <xs:attribute name="additionalDeliminator"/>
</xs:complexType>
</xs:element>
<!--
@@ -527,7 +526,7 @@
commonAttributes: Common attributes
String: The regular expression pattern
insensitive: Whether the text is matched case INsensitive. [boolean, optional, default=false]
- minimal: Wheather to use minimal matching for wild cards in the pattern [boolean, optional, default='false']
+ minimal: Wheather to use minimal matching for wild cards in the pattern [boolean, optional, default=false]
dynamic: Uses %1 .. %9 as placeholders for dynamic arguments [boolean, optional, default=false]
-->
<xs:element name="RegExpr">
@@ -547,15 +546,12 @@
<xs:element name="LineContinue">
<xs:complexType>
<xs:attributeGroup ref="commonAttributes"/>
- <xs:attribute name="char"/>
+ <xs:attribute name="char" type="char"/>
</xs:complexType>
</xs:element>
<!--
- Detect a C-style escaped character
+ Detect a C-style escaped character (as a regular expression: \\([abefnrtv"'?\\.]|x[0-9a-fA-F]{1,2}|[0-7]{1,3})).
commonAttributes: Common attributes
-
- TODO:
- - Did I get this right? Only one character, or a string?
-->
<xs:element name="HlCStringChar">
<xs:complexType>
@@ -563,7 +559,7 @@
</xs:complexType>
</xs:element>
<!--
- Detect a range of characters
+ Detect a string with defined start and end characters.
commonAttributes: Common attributes
char: The character starting the range
char1: The character terminating the range
@@ -571,8 +567,8 @@
<xs:element name="RangeDetect">
<xs:complexType>
<xs:attributeGroup ref="commonAttributes"/>
- <xs:attribute name="char" use="required"/>
- <xs:attribute name="char1" use="required"/>
+ <xs:attribute name="char" type="char" use="required"/>
+ <xs:attribute name="char1" type="char" use="required"/>
</xs:complexType>
</xs:element>
<!--
@@ -661,7 +657,7 @@
<xs:element name="encoding">
<xs:complexType>
<xs:attribute name="string" use="required"/>
- <xs:attribute name="char"/>
+ <xs:attribute name="char" type="char"/>
<xs:attribute name="ignored" type="xs:boolean"/>
</xs:complexType>
</xs:element>
diff --git a/src/libs/3rdparty/syntax-highlighting/data/schema/validatehl.sh b/src/libs/3rdparty/syntax-highlighting/data/schema/validatehl.sh
index 06bf60ce35..49be00d96e 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/schema/validatehl.sh
+++ b/src/libs/3rdparty/syntax-highlighting/data/schema/validatehl.sh
@@ -1,2 +1,3 @@
#!/bin/sh
-xmllint --noout --schema language.xsd $@
+schemadir=$(dirname "$0")
+xmllint --noout --schema "$schemadir"/language.xsd "$@"
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/alert.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/alert.xml
index ec881f1503..b6c290b0ba 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/alert.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/alert.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd">
-<language version="5" kateversion="3.1" name="Alerts" section="Other" extensions="" mimetype="" author="Dominik Haumann (dhaumann@kde.org)" license="MIT" hidden="true">
+<!DOCTYPE language>
+<language version="8" kateversion="3.1" name="Alerts" section="Other" extensions="" mimetype="" author="Dominik Haumann (dhaumann@kde.org)" license="MIT" hidden="true">
<highlighting>
<list name="alerts_hi">
<item>ALERT</item>
@@ -19,6 +19,7 @@
<item>WARNING</item>
<item>CAUTION</item>
<item>NOLINT</item>
+ <item>NOQA</item>
</list>
<list name="alerts_lo">
<item>###</item>
@@ -35,6 +36,8 @@
<WordDetect attribute="Region Marker" context="#stay" String="END" endRegion="AlertRegion2" />
<keyword attribute="Alert Level 1" context="#stay" String="alerts_hi" />
<keyword attribute="Alert Level 2" context="#stay" String="alerts_mid" />
+ <!-- Some (Python?) linters use `noqa:` (small case w/ colon) -->
+ <WordDetect attribute="Alert Level 2" context="#stay" String="noqa:" />
<keyword attribute="Alert Level 3" context="#stay" String="alerts_lo" />
</context>
</contexts>
@@ -47,7 +50,8 @@
</itemDatas>
</highlighting>
<general>
- <keywords casesensitive="1"/>
+ <!-- NO-BREAK SPACE (nbsp) as deliminator -->
+ <keywords casesensitive="1" additionalDeliminator="&#160;"/>
</general>
</language>
<!-- kate: indent-width 2; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/autoconf.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/autoconf.xml
new file mode 100644
index 0000000000..c8a5ca2e6b
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/autoconf.xml
@@ -0,0 +1,396 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language SYSTEM "/opt/kde3/share/apps/katepart/syntax/language.dtd">
+<!-- (c) 2008-2011 by Jürgen Heinemann http://www.hjcms.de
+ @see http://www.gnu.org/software/automake/manual/autoconf/
+-->
+<language name="Autoconf Language" version="2" kateversion="2.4" section="Other"
+ extensions="configure.ac;configure.in;configure.in.in;*.m4;*.M4"
+ mimetype="text/x-m4;text/x-autoconf"
+ author="Juergen Heinemann (nospam@hjcms.de)" license="LGPL">
+ <highlighting>
+ <!-- http://www.gnu.org/software/automake/manual/autoconf/Program-_0026-Function-Index.html -->
+ <list name="keywords">
+ <item> if </item>
+ <item> then </item>
+ <item> elif </item>
+ <item> else </item>
+ <item> fi </item>
+ <item> for </item>
+ <item> in </item>
+ <item> do </item>
+ <item> don </item>
+ <item> function </item>
+ <item> select </item>
+ <item> until </item>
+ <item> while </item>
+ <item> set </item>
+ <item> ifelse </item>
+ <item> case </item>
+ <item> esac </item>
+ </list>
+
+ <!-- http://www.gnu.org/software/automake/manual/autoconf/Limitations-of-Builtins.html -->
+ <list name="builtins">
+ <item> : </item>
+ <item> source </item>
+ <item> alias </item>
+ <item> bg </item>
+ <item> bind </item>
+ <item> break </item>
+ <item> builtin </item>
+ <item> cd </item>
+ <item> caller </item>
+ <item> command </item>
+ <item> compgen </item>
+ <item> complete </item>
+ <item> continue </item>
+ <item> dirs </item>
+ <item> disown </item>
+ <item> echo </item>
+ <item> enable </item>
+ <item> eval </item>
+ <item> exec </item>
+ <item> exit </item>
+ <item> fc </item>
+ <item> fg </item>
+ <item> getopts </item>
+ <item> hash </item>
+ <item> help </item>
+ <item> history </item>
+ <item> jobs </item>
+ <item> kill </item>
+ <item> let </item>
+ <item> logout </item>
+ <item> popd </item>
+ <item> printf </item>
+ <item> pushd </item>
+ <item> pwd </item>
+ <item> return </item>
+ <item> set </item>
+ <item> shift </item>
+ <item> shopt </item>
+ <item> suspend </item>
+ <item> test </item>
+ <item> time </item>
+ <item> times </item>
+ <item> trap </item>
+ <item> type </item>
+ <item> ulimit </item>
+ <item> umask </item>
+ <item> unalias </item>
+ <item> wait </item>
+ </list>
+
+ <list name="bools">
+ <item> no </item>
+ <item> yes </item>
+ <item> false </item>
+ <item> true </item>
+ </list>
+
+ <!--
+ This is an alphabetical list of the M4, M4sugar, and M4sh macros.
+ http://www.gnu.org/software/automake/manual/autoconf/M4-Macro-Index.html
+ -->
+ <list name="m4sugar">
+ <item> AS_BOURNE_COMPATIBLE </item>
+ <item> AS_BOX </item>
+ <item> AS_CASE </item>
+ <item> AS_DIRNAME </item>
+ <item> AS_ECHO </item>
+ <item> AS_ECHO_N </item>
+ <item> AS_ESCAPE </item>
+ <item> AS_EXIT </item>
+ <item> AS_HELP_STRING </item>
+ <item> AS_IF </item>
+ <item> AS_INIT </item>
+ <item> AS_INIT_GENERATED </item>
+ <item> AS_LINENO_PREPARE </item>
+ <item> AS_LITERAL_IF </item>
+ <item> AS_LITERAL_WORD_IF </item>
+ <item> AS_ME_PREPARE </item>
+ <item> AS_MESSAGE_FD </item>
+ <item> AS_MESSAGE_LOG_FD </item>
+ <item> AS_MKDIR_P </item>
+ <item> AS_ORIGINAL_STDIN_FD </item>
+ <item> AS_SET_CATFILE </item>
+ <item> AS_SET_STATUS </item>
+ <item> AS_SHELL_SANITIZE </item>
+ <item> AS_TMPDIR </item>
+ <item> AS_TR_CPP </item>
+ <item> AS_TR_SH </item>
+ <item> AS_UNSET </item>
+ <item> AS_VAR_APPEND </item>
+ <item> AS_VAR_ARITH </item>
+ <item> AS_VAR_COPY </item>
+ <item> AS_VAR_IF </item>
+ <item> AS_VAR_POPDEF </item>
+ <item> AS_VAR_PUSHDEF </item>
+ <item> AS_VAR_SET </item>
+ <item> AS_VAR_SET_IF </item>
+ <item> AS_VAR_TEST_SET </item>
+ <item> AS_VERSION_COMPARE </item>
+ <item> m4_append </item>
+ <item> m4_append_uniq </item>
+ <item> m4_append_uniq_w </item>
+ <item> m4_apply </item>
+ <item> m4_argn </item>
+ <item> m4_assert </item>
+ <item> m4_bmatch </item>
+ <item> m4_bpatsubst </item>
+ <item> m4_bpatsubsts </item>
+ <item> m4_bregexp </item>
+ <item> m4_builtin </item>
+ <item> m4_car </item>
+ <item> m4_case </item>
+ <item> m4_cdr </item>
+ <item> m4_changecom </item>
+ <item> m4_changequote </item>
+ <item> m4_chomp </item>
+ <item> m4_chomp_all </item>
+ <item> m4_cleardivert </item>
+ <item> m4_cmp </item>
+ <item> m4_combine </item>
+ <item> m4_cond </item>
+ <item> m4_copy </item>
+ <item> m4_copy_force </item>
+ <item> m4_count </item>
+ <item> m4_curry </item>
+ <item> m4_debugfile </item>
+ <item> m4_debugmode </item>
+ <item> m4_decr </item>
+ <item> m4_default </item>
+ <item> m4_default_nblank </item>
+ <item> m4_default_nblank_quoted </item>
+ <item> m4_default_quoted </item>
+ <item> m4_define </item>
+ <item> m4_define_default </item>
+ <item> m4_defn </item>
+ <item> m4_divert </item>
+ <item> m4_divert_once </item>
+ <item> m4_divert_pop </item>
+ <item> m4_divert_push </item>
+ <item> m4_divert_text </item>
+ <item> m4_divnum </item>
+ <item> m4_do </item>
+ <item> m4_dquote </item>
+ <item> m4_dquote_elt </item>
+ <item> m4_dumpdef </item>
+ <item> m4_dumpdefs </item>
+ <item> m4_echo </item>
+ <item> m4_errprint </item>
+ <item> m4_errprintn </item>
+ <item> m4_escape </item>
+ <item> m4_esyscmd </item>
+ <item> m4_esyscmd_s </item>
+ <item> m4_eval </item>
+ <item> m4_exit </item>
+ <item> m4_expand </item>
+ <item> m4_fatal </item>
+ <item> m4_flatten </item>
+ <item> m4_for </item>
+ <item> m4_foreach </item>
+ <item> m4_foreach_w </item>
+ <item> m4_format </item>
+ <item> m4_if </item>
+ <item> m4_ifblank </item>
+ <item> m4_ifdef </item>
+ <item> m4_ifnblank </item>
+ <item> m4_ifndef </item>
+ <item> m4_ifset </item>
+ <item> m4_ifval </item>
+ <item> m4_ifvaln </item>
+ <item> m4_ignore </item>
+ <item> m4_include </item>
+ <item> m4_incr </item>
+ <item> m4_index </item>
+ <item> m4_indir </item>
+ <item> m4_init </item>
+ <item> m4_join </item>
+ <item> m4_joinall </item>
+ <item> m4_len </item>
+ <item> m4_list_cmp </item>
+ <item> m4_location </item>
+ <item> m4_make_list </item>
+ <item> m4_maketemp </item>
+ <item> m4_map </item>
+ <item> m4_map_args </item>
+ <item> m4_map_args_pair </item>
+ <item> m4_map_args_sep </item>
+ <item> m4_map_args_w </item>
+ <item> m4_map_sep </item>
+ <item> m4_mapall </item>
+ <item> m4_mapall_sep </item>
+ <item> m4_max </item>
+ <item> m4_min </item>
+ <item> m4_mkstemp </item>
+ <item> m4_n </item>
+ <item> m4_newline </item>
+ <item> m4_normalize </item>
+ <item> m4_pattern_allow </item>
+ <item> m4_pattern_forbid </item>
+ <item> m4_popdef </item>
+ <item> m4_pushdef </item>
+ <item> m4_quote </item>
+ <item> m4_re_escape </item>
+ <item> m4_rename </item>
+ <item> m4_rename_force </item>
+ <item> m4_reverse </item>
+ <item> m4_set_add </item>
+ <item> m4_set_add_all </item>
+ <item> m4_set_contains </item>
+ <item> m4_set_contents </item>
+ <item> m4_set_delete </item>
+ <item> m4_set_difference </item>
+ <item> m4_set_dump </item>
+ <item> m4_set_empty </item>
+ <item> m4_set_foreach </item>
+ <item> m4_set_intersection </item>
+ <item> m4_set_list </item>
+ <item> m4_set_listc </item>
+ <item> m4_set_map </item>
+ <item> m4_set_map_sep </item>
+ <item> m4_set_remove </item>
+ <item> m4_set_size </item>
+ <item> m4_set_union </item>
+ <item> m4_shift </item>
+ <item> m4_shift2 </item>
+ <item> m4_shift3 </item>
+ <item> m4_shiftn </item>
+ <item> m4_sign </item>
+ <item> m4_sinclude </item>
+ <item> m4_split </item>
+ <item> m4_stack_foreach </item>
+ <item> m4_stack_foreach_lifo </item>
+ <item> m4_stack_foreach_sep </item>
+ <item> m4_stack_foreach_sep_lifo </item>
+ <item> m4_strip </item>
+ <item> m4_substr </item>
+ <item> m4_syscmd </item>
+ <item> m4_sysval </item>
+ <item> m4_text_box </item>
+ <item> m4_text_wrap </item>
+ <item> m4_tolower </item>
+ <item> m4_toupper </item>
+ <item> m4_traceoff </item>
+ <item> m4_traceon </item>
+ <item> m4_translit </item>
+ <item> m4_undefine </item>
+ <item> m4_undivert </item>
+ <item> m4_unquote </item>
+ <item> m4_version_compare </item>
+ <item> m4_version_prereq </item>
+ <item> m4_warn </item>
+ <item> m4_wrap </item>
+ <item> m4_wrap_lifo </item>
+ </list>
+
+ <!-- Autotest Macro Index -->
+ <list name="autotest_macro">
+ <item> AT_ARG_OPTION </item>
+ <item> AT_ARG_OPTION_ARG </item>
+ <item> AT_BANNER </item>
+ <item> AT_CAPTURE_FILE </item>
+ <item> AT_CHECK </item>
+ <item> AT_CHECK_EUNIT </item>
+ <item> AT_CHECK_UNQUOTED </item>
+ <item> AT_CLEANUP </item>
+ <item> AT_COLOR_TESTS </item>
+ <item> AT_COPYRIGHT </item>
+ <item> AT_DATA </item>
+ <item> AT_FAIL_IF </item>
+ <item> AT_INIT </item>
+ <item> AT_KEYWORDS </item>
+ <item> AT_PACKAGE_BUGREPORT </item>
+ <item> AT_PACKAGE_NAME </item>
+ <item> AT_PACKAGE_STRING </item>
+ <item> AT_PACKAGE_TARNAME </item>
+ <item> AT_PACKAGE_URL </item>
+ <item> AT_PACKAGE_VERSION </item>
+ <item> AT_SETUP </item>
+ <item> AT_SKIP_IF </item>
+ <item> AT_TESTED </item>
+ <item> AT_XFAIL_IF </item>
+ </list>
+
+ <list name="libtool">
+ <item> LT_PREREQ </item>
+ <item> LT_LANG </item>
+ <item> LT_INIT </item>
+ <item> LTDL_INIT </item>
+ <item> LT_CONFIG_LTDL_DIR </item>
+ </list>
+
+ <list name="pkgconfig">
+ <item> PKG_CHECK_MODULES </item>
+ <item> PKG_PROG_PKG_CONFIG </item>
+ <item> PKG_CHECK_EXISTS </item>
+ </list>
+
+ <contexts>
+ <context attribute="Normal Text" lineEndContext="#stay" name="Default">
+ <!-- <IncludeRules context="##Bash" /> -->
+ <keyword attribute="Keyword" context="#stay" String="keywords" />
+ <RegExpr attribute="Builtin" context="#stay" String="\.(?=\s)" />
+ <keyword attribute="Builtin" context="#stay" String="builtins" />
+ <keyword attribute="Boolean" context="#stay" String="bools" />
+ <!-- Autoconf Macros -->
+ <keyword attribute="M4 Sugar Macros" context="#stay" String="m4sugar" />
+ <!-- Autotest Macro Index -->
+ <keyword attribute="Autotest Macros" context="#stay" String="autotest_macro" />
+ <!-- Other Macros -->
+ <keyword attribute="pkg-config Macros" context="#stay" String="pkgconfig" />
+ <!-- libtool Macros -->
+ <keyword attribute="Libtool Macros" context="#stay" String="libtool" />
+ <!-- Autoconf Macros -->
+ <RegExpr attribute="Autoconf Macros" context="#stay" String="\bAC_[A-Z0-9_]+\b" insensitive="false" endRegion="BeginRegion" />
+ <!-- Automake Macros -->
+ <RegExpr attribute="Automake Macros" context="#stay" String="\bAM_[A-Z0-9_]+\b" insensitive="false" endRegion="BeginRegion" />
+ <!-- Script temp Defined Macros -->
+ <RegExpr attribute="Inline Macros" context="#stay" String="\bac_[a-z_]+\b" insensitive="false" endRegion="BeginRegion" />
+ <RegExpr attribute="Char" context="#stay" String="'.'"/>
+ <DetectChar attribute="String" context="String" char="&quot;"/>
+ <AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/.*&lt;=&gt;|"/>
+ <RegExpr attribute="Variable" context="#stay" String="\$[a-z_]+" insensitive="true" endRegion="BeginRegion" />
+ <Float attribute="Float" context="#stay"/>
+ <Int attribute="Decimal" context="#stay"/>
+ <RegExpr attribute="Pragmas" context="#stay" String="([\s\t]+#).*$" insensitive="true" endRegion="BeginRegion" />
+ <RegExpr attribute="Comment" context="#stay" String="(^#).*$" insensitive="true" endRegion="BeginRegion" />
+ <RegExpr attribute="Comment" context="#stay" String="(\bdnl\s).*$" insensitive="true" endRegion="BeginRegion" />
+ </context>
+ <context attribute="Region Marker" lineEndContext="#pop" name="Region Marker"/>
+ <context attribute="String" lineEndContext="#pop" name="String">
+ <DetectChar attribute="String" context="#pop" char="&quot;"/>
+ </context>
+ </contexts>
+ <itemDatas>
+ <itemData name="Normal Text" defStyleNum="dsNormal" />
+ <itemData name="Keyword" defStyleNum="dsKeyword" />
+ <itemData name="Builtin" defStyleNum="dsKeyword" color="#808" />
+ <itemData name="M4 Sugar Macros" defStyleNum="dsKeyword" />
+ <itemData name="Autotest Macros" defStyleNum="dsKeyword" />
+ <itemData name="Autoconf Macros" defStyleNum="dsKeyword" color="#0095ff" selColor="#ffffff" bold="1" />
+ <itemData name="Automake Macros" defStyleNum="dsKeyword" color="#6666cc" selColor="#ffffff" bold="1" />
+ <itemData name="Libtool Macros" defStyleNum="dsKeyword" color="#6666cc" selColor="#ffffff" bold="1" />
+ <itemData name="Inline Macros" defStyleNum="dsKeyword" color="#6666cc" selColor="#ffffff" />
+ <itemData name="pkg-config Macros" defStyleNum="dsKeyword" />
+ <itemData name="Boolean" defStyleNum="dsOthers" />
+ <itemData name="Variable" defStyleNum="dsOthers" />
+ <itemData name="Decimal" defStyleNum="dsDecVal" />
+ <itemData name="Float" defStyleNum="dsFloat" />
+ <itemData name="Char" defStyleNum="dsChar" />
+ <itemData name="String" defStyleNum="dsString" />
+ <itemData name="Pragmas" defStyleNum="dsOthers" color="#00C000" />
+ <itemData name="Comment" defStyleNum="dsComment" />
+ <itemData name="Symbol" defStyleNum="dsNormal"/>
+ <itemData name="Region Marker" defStyleNum="dsRegionMarker" />
+ </itemDatas>
+ </highlighting>
+ <general>
+ <comments>
+ <comment name="singleLine" start="dnl" />
+ <comment name="multiLine" start="/*" end="*/" />
+ </comments>
+ <keywords casesensitive="0" />
+ </general>
+</language>
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/bash.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/bash.xml
index cdfdf95844..b3e8334fda 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/bash.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/bash.xml
@@ -1,14 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd"
+<!DOCTYPE language
[
- <!ENTITY funcname "[A-Za-z_:][A-Za-z0-9_:#&#37;@-]*">
- <!ENTITY varname "[A-Za-z_][A-Za-z0-9_]*">
- <!ENTITY word "[^|&amp;;()&lt;&gt;\s]+"> <!-- see man bash -->
- <!ENTITY eos "(?=($|\s))"> <!-- eol or space following -->
- <!ENTITY noword "(?![\w$+-])"> <!-- no word, $, + or - following -->
- <!ENTITY pathpart "([\w_@.&#37;*?+-]|\\ )"> <!-- valid character in a file name -->
+ <!ENTITY tab "&#009;">
+ <!ENTITY funcname "([^&_fragpathseps;}=#$]|[+!@](?!\())([^&_fragpathseps;}=$]*+([+!@](?!\())?+)*+">
+ <!ENTITY varname "[A-Za-z_][A-Za-z0-9_]*">
+ <!ENTITY eos "(?=$|[ &tab;])"> <!-- eol or space following -->
+ <!ENTITY eoexpr "(?=$|[ &tab;&lt;>|&amp;;)])">
+
+ <!ENTITY substseps "${'&quot;`\\">
+ <!ENTITY symbolseps "&lt;>|&amp;;()"> <!-- see man bash -->
+ <!ENTITY wordseps " &tab;&symbolseps;"> <!-- see man bash -->
+
+ <!ENTITY bq_string "`[^`]*+`">
+ <!ENTITY sq_string "'[^']*+'">
+ <!ENTITY dq_string "&quot;(?:[^&quot;\\`]*+|&bq_string;|\\.)*+&quot;">
+ <!ENTITY strings "(?:&sq_string;|&dq_string;|&bq_string;)">
+
+ <!ENTITY globany "\[(?:[^&wordseps;&quot;'`\\\[\]]+|\\.|&strings;|\[:\w+:\]|\[)*\]">
+
+ <!ENTITY next_is_globany "(?:\^?\]\]|(?:\^?\]?)?(?:\\.|[^'&quot; &tab;&lt;>|&amp;;()\\[\]]+|&strings;|\[:\w+:\])+\])">
+ <!ENTITY bracket_noglobany "\[(?!&next_is_globany;)">
+
+ <!ENTITY _fragpathseps "*?+!@&wordseps;&substseps;">
+ <!ENTITY _fragpathnosep "(?:[+!@](?!\()|\\.|&_brace_noexpansion;)?+">
+ <!ENTITY path "(?:[^&_fragpathseps;\[]*+&_fragpathnosep;)*+">
+ <!ENTITY fragpath "(?:[^&_fragpathseps;\[/]*+&_fragpathnosep;)*+">
+ <!ENTITY opt "(?:[^&_fragpathseps;\[=/]*+&_fragpathnosep;)*+">
+ <!ENTITY pathpart "(?:~|\.\.?|&fragpath;)(?:/&path;|(?=[*?]|[+!@]\(|&fragpath;(?:[/*?]|\[&next_is_globany;|[+!@]\()))|(?:~|\.\.?)(?=[&wordseps;]|$)">
+
+ <!ENTITY _fragpathseps_alt "*?+!@&substseps;}">
+ <!ENTITY _fragpathnosep_alt "(?:[+!@](?!\()|\\.)?+">
+ <!ENTITY path_alt "(?:[^&_fragpathseps_alt;]*+&_fragpathnosep_alt;)*+">
+ <!ENTITY fragpath_alt "(?:[^&_fragpathseps_alt;/]*+&_fragpathnosep_alt;)*+">
+ <!ENTITY opt_alt "(?:[^&_fragpathseps_alt;=/]*+&_fragpathnosep_alt;)*+">
+ <!ENTITY pathpart_alt "(?:~|\.\.?|&fragpath_alt;)(?:/&path_alt;|(?=[*?]|[+!@]\(|&fragpath_alt;(?:[/*?]|[+!@]\()))|(?:~|\.\.?)(?=\}|$)">
+
+ <!-- Path only with / -->
+ <!ENTITY path_with_sep_text "[^?*+!@&wordseps;'&quot;`\\/]">
+ <!ENTITY path_with_sep_text2 "[^?*+!@()'&quot;`\\/]">
+ <!ENTITY path_with_sep_expr "\\.|&strings;|&globany;|[?*+](?!\()">
+ <!ENTITY path_with_sep_spe "(~|\.\.?)($|[/ &tab;&lt;>|&amp;;)])">
+ <!ENTITY path_with_sep_sub "[?*+!@]\((&path_with_sep_text2;++|&path_with_sep_expr;)*+(\)|(?=/))">
+ <!ENTITY path_with_sep "/|&path_with_sep_spe;|(&path_with_sep_text;++|&path_with_sep_expr;|&path_with_sep_sub;)*+/">
+
+ <!ENTITY _braceexpansion_spe " &tab;&lt;>|&amp;;{}\\`'&quot;$">
+ <!ENTITY _brace_noexpansion "\{[^&_braceexpansion_spe;,]*+\}">
+ <!ENTITY _braceexpansion_var "\$(?:\{[^\[\]&_braceexpansion_spe;]*+(?:\[[*@a-zA-Z0-9]\])\})?">
+ <!ENTITY _braceexpansion_string "'[^']*'|&quot;([^&quot;\`]*+|`[^`]*`)*+&quot;">
+ <!ENTITY _braceexpansion_elems "\\.|`[^`]*`|&_braceexpansion_string;|&_braceexpansion_var;|&_brace_noexpansion;">
+ <!ENTITY _braceexpansion_consume "&_braceexpansion_elems;|{(?:[^&_braceexpansion_spe;,]++|&_braceexpansion_elems;)*?}|(?R)?+">
+ <!ENTITY _braceexpansion "(?:[^&_braceexpansion_spe;,]++|&_braceexpansion_consume;)*?,(?:[^&_braceexpansion_spe;]++|&_braceexpansion_consume;)*?}">
+ <!ENTITY braceexpansion "{&_braceexpansion;">
+
+ <!ENTITY heredocq "(?|&quot;([^&quot;]+)&quot;|'([^']+)'|\\(.[^&wordseps;&substseps;]*))">
+
+ <!ENTITY arithmetic_as_subshell "\(((?:[^`'&quot;()$]++|\$\{[^`'&quot;(){}$]+\}|\$(?=[^{`'&quot;()])|`[^`]*+`|\((?1)(?:[)]|(?=['&quot;])))++)(?:[)](?=$|[^)])|[&quot;'])">
+
+ <!ENTITY unary_operators "-[abcdefghkprstuwxGLNOSovRnz]&eos;">
+ <!ENTITY binary_operators "(?:-(?:e[fq]|[nolg]t|[nlg]e)|==?|!=)&eos;">
+
+ <!ENTITY dblbracket_close "\]\](?=($|[ &tab;;|&amp;)]))">
+
+ <!ENTITY weakDeliminatorSymbols "^&#37;#[]$.{}:-/">
]>
-<language name="Bash" version="9" kateversion="5.0" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;*.nix;.bashrc;.bash_profile;.bash_login;.profile;PKGBUILD;APKBUILD" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
+
+<language
+ name="Bash"
+ version="51"
+ kateversion="5.79"
+ section="Scripts"
+ extensions="*.sh;*.bash;*.ebuild;*.eclass;*.exlib;*.exheres-0;.bashrc;.bash_profile;.bash_login;.profile;PKGBUILD;APKBUILD"
+ mimetype="application/x-shellscript"
+ casesensitive="1"
+ author="Wilbert Berendsen (wilbert@kde.nl)"
+ license="LGPL"
+ >
<!-- (c) 2004 by Wilbert Berendsen (wilbert@kde.nl)
Changes by Matthew Woehlke (mw_triad@users.sourceforge.net)
@@ -18,32 +84,40 @@
<highlighting>
<list name="keywords">
+ <item>break</item>
+ <item>case</item>
+ <item>continue</item>
+ <item>do</item>
+ <item>done</item>
+ <item>elif</item>
<item>else</item>
+ <item>esac</item>
+ <item>fi</item>
<item>for</item>
<item>function</item>
+ <item>if</item>
<item>in</item>
+ <item>return</item>
<item>select</item>
+ <item>then</item>
<item>until</item>
<item>while</item>
- <item>elif</item>
- <item>then</item>
- <item>set</item>
</list>
<list name="builtins">
+ <item>.</item>
<item>:</item>
<item>source</item>
<item>alias</item>
<item>bg</item>
<item>bind</item>
- <item>break</item>
<item>builtin</item>
<item>cd</item>
<item>caller</item>
<item>command</item>
<item>compgen</item>
<item>complete</item>
- <item>continue</item>
+ <item>coproc</item>
<item>dirs</item>
<item>disown</item>
<item>echo</item>
@@ -53,19 +127,16 @@
<item>exit</item>
<item>fc</item>
<item>fg</item>
- <item>getopts</item>
<item>hash</item>
<item>help</item>
<item>history</item>
<item>jobs</item>
<item>kill</item>
- <item>let</item>
<item>logout</item>
<item>popd</item>
<item>printf</item>
<item>pushd</item>
<item>pwd</item>
- <item>return</item>
<item>set</item>
<item>shift</item>
<item>shopt</item>
@@ -83,18 +154,23 @@
<list name="builtins_var">
<item>export</item>
- <item>unset</item>
<item>declare</item>
- <item>typeset</item>
+ <item>getopts</item>
+ <item>let</item>
<item>local</item>
<item>read</item>
<item>readonly</item>
+ <item>typeset</item>
+ <item>unset</item>
</list>
<list name="unixcommands">
<!-- /bin -->
<item>arch</item>
<item>awk</item>
+ <item>b2sum</item>
+ <item>base32</item>
+ <item>base64</item>
<item>bash</item>
<item>bunzip2</item>
<item>bzcat</item>
@@ -109,11 +185,15 @@
<item>bzmore</item>
<item>cat</item>
<item>chattr</item>
+ <item>chcon</item>
<item>chgrp</item>
<item>chmod</item>
<item>chown</item>
<item>chvt</item>
+ <item>cksum</item>
<item>cp</item>
+ <item>crontab</item>
+ <item>csplit</item>
<item>date</item>
<item>dd</item>
<item>deallocvt</item>
@@ -125,12 +205,13 @@
<item>domainname</item>
<item>du</item>
<item>dumpkeys</item>
- <item>echo</item>
<item>ed</item>
<item>egrep</item>
+ <item>expand</item>
<item>false</item>
<item>fgconsole</item>
<item>fgrep</item>
+ <item>fold</item>
<item>fuser</item>
<item>gawk</item>
<item>getkeycodes</item>
@@ -141,7 +222,9 @@
<item>gunzip</item>
<item>gzexe</item>
<item>gzip</item>
+ <item>hostid</item>
<item>hostname</item>
+ <item>iconv</item>
<item>igawk</item>
<item>install</item>
<item>kbd_mode</item>
@@ -165,11 +248,11 @@
<item>lzfgrep</item>
<item>lzgrep</item>
<item>lzless</item>
- <item>lzcat</item>
<item>lzma</item>
<item>lzmainfo</item>
<item>lzmore</item>
<item>mapscrn</item>
+ <item>md5sum</item>
<item>mesg</item>
<item>mkdir</item>
<item>mkfifo</item>
@@ -181,21 +264,29 @@
<item>nano</item>
<item>netstat</item>
<item>nisdomainname</item>
+ <item>nproc</item>
<item>nroff</item>
+ <item>numfmt</item>
<item>openvt</item>
+ <item>paste</item>
+ <item>pathchk</item>
<item>pgawk</item>
<item>pidof</item>
<item>ping</item>
+ <item>pinky</item>
+ <item>printenv</item>
<item>ps</item>
<item>pstree</item>
- <item>pwd</item>
+ <item>ptx</item>
<item>rbash</item>
<item>readlink</item>
+ <item>realpath</item>
<item>red</item>
<item>resizecons</item>
<item>rm</item>
<item>rmdir</item>
<item>run-parts</item>
+ <item>runcon</item>
<item>sash</item>
<item>sed</item>
<item>setfont</item>
@@ -204,21 +295,33 @@
<item>setmetamode</item>
<item>setserial</item>
<item>sh</item>
+ <item>sha1sum</item>
+ <item>sha224sum</item>
+ <item>sha256sum</item>
+ <item>sha384sum</item>
+ <item>sha512sum</item>
<item>showkey</item>
<item>shred</item>
+ <item>shuf</item>
<item>sleep</item>
<item>ssed</item>
<item>stat</item>
+ <item>stdbuf</item>
<item>stty</item>
<item>su</item>
<item>sync</item>
<item>tar</item>
<item>tempfile</item>
+ <item>timeout</item>
<item>touch</item>
+ <item>tput</item>
<item>troff</item>
<item>true</item>
+ <item>truncate</item>
+ <item>tty</item>
<item>umount</item>
<item>uname</item>
+ <item>unexpand</item>
<item>unicode_start</item>
<item>unicode_stop</item>
<item>unlink</item>
@@ -227,6 +330,7 @@
<item>utmpdump</item>
<item>uuidgen</item>
<item>vdir</item>
+ <item>vi</item>
<item>wall</item>
<item>wc</item>
<item>xz</item>
@@ -258,13 +362,11 @@
<item>autoconf</item>
<item>autoheader</item>
<item>automake</item>
- <item>awk</item>
<item>basename</item>
<item>bc</item>
<item>bison</item>
<item>c++</item>
<item>cal</item>
- <item>cat</item>
<item>cc</item>
<item>cdda2wav</item>
<item>cdparanoia</item>
@@ -272,9 +374,6 @@
<item>cd-read</item>
<item>cdrecord</item>
<item>chfn</item>
- <item>chgrp</item>
- <item>chmod</item>
- <item>chown</item>
<item>chroot</item>
<item>chsh</item>
<item>clear</item>
@@ -282,20 +381,14 @@
<item>co</item>
<item>col</item>
<item>comm</item>
- <item>cp</item>
<item>cpio</item>
<item>cpp</item>
<item>cut</item>
<item>dc</item>
- <item>dd</item>
- <item>df</item>
<item>diff</item>
<item>diff3</item>
- <item>dir</item>
- <item>dircolors</item>
<item>directomatic</item>
<item>dirname</item>
- <item>du</item>
<item>env</item>
<item>expr</item>
<item>fbset</item>
@@ -307,12 +400,11 @@
<item>free</item>
<item>ftp</item>
<item>funzip</item>
- <item>fuser</item>
<item>g++</item>
- <item>gawk</item>
<item>gc</item>
<item>gcc</item>
<item>clang</item>
+ <item>clang++</item>
<item>valgrind</item>
<item>xdg-open</item>
<item>cmake</item>
@@ -333,30 +425,22 @@
<item>head</item>
<item>hexdump</item>
<item>id</item>
- <item>install</item>
<item>join</item>
- <item>kill</item>
- <item>killall</item>
<item>ld</item>
<item>ld86</item>
<item>ldd</item>
<item>less</item>
<item>lex</item>
- <item>ln</item>
<item>locate</item>
<item>lockfile</item>
<item>logname</item>
<item>lp</item>
<item>lpr</item>
- <item>ls</item>
<item>lynx</item>
<item>m4</item>
<item>make</item>
<item>man</item>
- <item>mkdir</item>
- <item>mknod</item>
<item>msgfmt</item>
- <item>mv</item>
<item>namei</item>
<item>nasm</item>
<item>nawk</item>
@@ -374,9 +458,7 @@
<item>pcretest</item>
<item>perl</item>
<item>perror</item>
- <item>pidof</item>
<item>pr</item>
- <item>printf</item>
<item>procmail</item>
<item>prune</item>
<item>ps2ascii</item>
@@ -392,12 +474,9 @@
<item>pstops</item>
<item>rcs</item>
<item>rev</item>
- <item>rm</item>
<item>scp</item>
- <item>sed</item>
<item>seq</item>
<item>setterm</item>
- <item>shred</item>
<item>size</item>
<item>size86</item>
<item>skill</item>
@@ -411,7 +490,6 @@
<item>ssh-agent</item>
<item>ssh-keygen</item>
<item>ssh-keyscan</item>
- <item>stat</item>
<item>strings</item>
<item>strip</item>
<item>sudo</item>
@@ -420,10 +498,9 @@
<item>tac</item>
<item>tail</item>
<item>tee</item>
- <item>test</item>
<item>tr</item>
+ <item>tsort</item>
<item>uniq</item>
- <item>unlink</item>
<item>unzip</item>
<item>updatedb</item>
<item>updmap</item>
@@ -431,7 +508,6 @@
<item>users</item>
<item>vmstat</item>
<item>w</item>
- <item>wc</item>
<item>wget</item>
<item>whatis</item>
<item>whereis</item>
@@ -456,525 +532,1377 @@
<contexts>
- <context attribute="Normal Text" lineEndContext="#stay" name="Start">
- <IncludeRules context="FindAll" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="Start" fallthroughContext="Command">
+ <IncludeRules context="BashOneLine"/>
</context>
-<!-- ====== The following rulessets are meant to be included ======== -->
- <!-- FindAll tries to interpret everything -->
- <context attribute="Normal Text" lineEndContext="#stay" name="FindAll">
- <IncludeRules context="FindComments" />
- <IncludeRules context="FindCommands" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindSubstitutions" />
- <IncludeRules context="FindOthers" />
+ <!-- used by other syntaxes -->
+ <context attribute="Normal Text" lineEndContext="#pop" name="FindOneLineBackq" fallthroughContext="#pop">
+ <DetectChar attribute="Backquote" context="OneLineBackq" char="`"/>
</context>
-
- <!-- FindMost tries to interpret anything except commands -->
- <context attribute="Normal Text" lineEndContext="#stay" name="FindMost">
- <IncludeRules context="FindComments" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindSubstitutions" />
- <IncludeRules context="FindOthers" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="OneLineBackq" fallthroughContext="Command">
+ <DetectChar attribute="Backquote" context="#pop" char="`"/>
+ <IncludeRules context="Start"/>
</context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="BashOneLine" fallthroughContext="Command">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <DetectChar attribute="Comment" context="Comment" char="#"/>
+ <!-- start expression in double parentheses -->
+ <Detect2Chars context="ExprDblParenOrSubShell" char="(" char1="(" lookAhead="1"/>
+ <!-- start a subshell -->
+ <DetectChar attribute="Keyword" context="SubShell" char="(" beginRegion="subshell"/>
+ <!-- start expression in single/double brackets -->
+ <DetectChar context="MaybeBracketExpression" char="[" lookAhead="1"/>
+ <!-- start a group command or BraceExpansion with { -->
+ <DetectChar context="MaybeGroup" char="{" lookAhead="1"/>
+
+ <!-- handle ` -->
+ <DetectChar attribute="Backquote" context="CommandBackq" char="`"/>
+
+ <!-- &> and &>> redirection -->
+ <StringDetect attribute="Redirection" context="WordRedirection" String="&amp;>>"/>
+ <Detect2Chars attribute="Redirection" context="FdRedirection" char="&amp;" char1=">"/>
+
+ <!-- handle branche conditions -->
+ <Detect2Chars attribute="Control" context="#stay" char="&amp;" char1="&amp;"/>
+ <Detect2Chars attribute="Control" context="#stay" char="|" char1="|"/>
+
+ <!-- handle &, |, ; -->
+ <AnyChar attribute="Control" context="#stay" String="&amp;|;"/>
+
+ <!-- handle variable assignments -->
+ <RegExpr attribute="Variable" context="VarAssign" String="&varname;(?=\+?=|\[(?:$|[^]]))"/>
+ <!-- handle keywords -->
+ <keyword context="DispatchKeyword" String="keywords" lookAhead="1"/>
+ <!-- handle commands that have variable names as argument -->
+ <keyword attribute="Builtin" context="VarName" String="builtins_var" lookAhead="1"/>
+ <!-- mark function definitions without function keyword -->
+ <RegExpr attribute="Function" context="#stay" String="&funcname;[ &tab;]*\(\)"/>
+ <!-- Special case for `: << '#BLOCK-COMMENT' form of "multiline" comments-->
+ <RegExpr attribute="Normal Text" context="PreHereDocMLComment" String="^:[ &tab;]+&lt;&lt;[ &tab;]*'#([^']+)'$" lookAhead="1" column="0"/>
+ <WordDetect attribute="Builtin" context="Coproc" String="coproc"/>
+ <keyword attribute="Builtin" context="CommandArgs" String="builtins"/>
+ <keyword attribute="Command" context="CommandArgs" String="unixcommands"/>
+
+ <!-- handle redirection -->
+ <AnyChar context="CommandMaybeRedirection" String="&lt;&gt;0123456789" lookAhead="1"/>
- <!-- FindComments consumes shell comments till EOL -->
- <context attribute="Normal Text" lineEndContext="#pop" name="FindComments">
- <DetectChar attribute="Comment" context="Comment" char="#" firstNonSpace="true"/>
- <RegExpr attribute="Normal Text" context="Comment" String="[\s;](?=#)" />
+ <AnyChar attribute="Error" context="#stay" String=")}"/>
+
+ <LineContinue attribute="Escape" context="#stay"/>
+
+ <Detect2Chars attribute="Expression" context="#stay" char="!" char1=" "/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="MaybeBracketExpression" fallthroughContext="#pop!Command">
+ <!-- start expression in double brackets -->
+ <RegExpr attribute="Keyword" context="#pop!ExprDblBracket" String="\[\[(?=$|[ &tab;(])" beginRegion="expression"/>
+ <!-- start expression in single brackets -->
+ <RegExpr attribute="Builtin" context="#pop!ExprBracket" String="\[&eos;" beginRegion="expression"/>
</context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="MaybeGroup">
+ <!-- start a group command with { -->
+ <RegExpr attribute="Keyword" context="#pop!Group" String="\{&eos;" beginRegion="group"/>
+ <DetectChar context="#pop!Command" char="{" lookAhead="1"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="CommandMaybeRedirection" fallthroughContext="#pop!Command">
+ <IncludeRules context="FindRedirection"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="Return" fallthroughContext="#pop">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <Int attribute="Decimal" context="#stay"/>
+ </context>
+ <!-- Comment consumes shell comments till EOL -->
<context attribute="Comment" lineEndContext="#pop" name="Comment">
- <IncludeRules context="##Alerts" />
- <IncludeRules context="##Modelines" />
+ <DetectSpaces attribute="Comment"/>
+ <IncludeRules context="##Comments"/>
+ <DetectIdentifier attribute="Comment" context="#stay"/>
</context>
- <!-- FindCommentsParen consumes shell comments till EOL or a closing parenthese -->
- <context attribute="Normal Text" lineEndContext="#pop" name="FindCommentsParen">
- <DetectChar attribute="Comment" context="CommentParen" char="#" firstNonSpace="true"/>
- <RegExpr attribute="Normal Text" context="CommentParen" String="[\s;](?=#)" />
+ <!-- Group is called after a { is encountered -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="Group" fallthroughContext="Command">
+ <DetectChar context="MaybeGroupEnd" char="}" lookAhead="1"/>
+ <IncludeRules context="Start"/>
</context>
- <context attribute="Comment" lineEndContext="#pop" name="CommentParen">
- <RegExpr attribute="Comment" context="#pop" String="[^)](?=\))" />
- <IncludeRules context="##Alerts" />
+ <context attribute="Normal Text" lineEndContext="#pop" name="MaybeGroupEnd">
+ <!-- stop a group command with } -->
+ <RegExpr attribute="Keyword" context="#pop#pop" String="\}&eoexpr;" endRegion="group"/>
+ <DetectChar context="#pop!Command" char="}" lookAhead="1"/>
</context>
- <!-- FindCommentsBackq consumes shell comments till EOL or a backquote -->
- <context attribute="Normal Text" lineEndContext="#pop" name="FindCommentsBackq">
- <DetectChar attribute="Comment" context="CommentBackq" char="#" firstNonSpace="true"/>
- <RegExpr attribute="Normal Text" context="CommentBackq" String="[\s;](?=#)" />
+ <context attribute="Normal Text" lineEndContext="#pop" name="Coproc" fallthroughContext="#pop">
+ <DetectSpaces attribute="Normal Text"/>
+ <LineContinue attribute="Escape" context="#stay"/>
+ <RegExpr context="CoprocName" String="(\$?&varname;|\$\{&varname;\}|'&varname;'|&quot;(\$?&varname;|\$\{&varname;\}|[a-zA-Z0-9_])+&quot;)+(?=\s+\{($|\s))" lookAhead="1"/>
</context>
- <context attribute="Comment" lineEndContext="#pop" name="CommentBackq">
- <RegExpr attribute="Comment" context="#pop" String="[^`](?=`)" />
- <IncludeRules context="##Alerts" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="CoprocName">
+ <DetectChar attribute="Keyword" context="#pop#pop!Group" char="{" beginRegion="group"/>
+ <DetectSpaces attribute="Normal Text"/>
+ <DetectIdentifier attribute="Normal Text"/>
+ <IncludeRules context="FindWord"/>
</context>
-
- <!-- FindCommands matches many items that can be expected outside strings, substitutions etc. -->
- <context attribute="Normal Text" lineEndContext="#stay" name="FindCommands">
- <IncludeRules context="FindSpecialCommands" />
- <IncludeRules context="FindNormalCommands" />
+ <context attribute="Command" lineEndContext="#pop" name="Command" fallthroughContext="#pop">
+ <DetectSpaces attribute="Normal Text" context="#pop!CommandArgs"/>
+ <DetectChar context="CommandVariables" char="$" lookAhead="1"/>
+ <IncludeRules context="FindStrings"/>
+ <DetectChar context="#pop" char="`" lookAhead="1"/>
+ <RegExpr attribute="OtherCommand" context="CommandName" String="(?:[^&wordseps;&substseps;]++|\\.)+"/>
+ <LineContinue attribute="Escape" context="#stay"/>
+ <DetectChar context="CommandMaybeBraceExpansion" char="{" lookAhead="1"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="FindSpecialCommands">
+ <context attribute="Command" lineEndContext="#pop#pop" name="CommandVariables">
+ <IncludeRules context="DispatchVariables"/>
+ <DetectChar attribute="OtherCommand" context="#pop" char="$"/>
+ </context>
+ <context attribute="Command" lineEndContext="#pop#pop" name="DispatchVariables">
+ <IncludeRules context="DispatchSubstVariables"/>
+ <IncludeRules context="DispatchStringVariables"/>
+ <IncludeRules context="DispatchVarnameVariables"/>
+ </context>
+ <context attribute="Command" lineEndContext="#pop#pop" name="DispatchSubstVariables">
+ <Detect2Chars attribute="Parameter Expansion" context="#pop!VarBraceStart" char="$" char1="{"/>
+ <StringDetect context="#pop!ExprDblParenSubstOrSubstCommand" String="$((" lookAhead="1"/>
+ <Detect2Chars attribute="Parameter Expansion" context="#pop!SubstCommand" char="$" char1="(" beginRegion="subshell"/>
+ </context>
+ <context attribute="Command" lineEndContext="#pop#pop" name="DispatchStringVariables">
+ <Detect2Chars attribute="String SingleQ" context="#pop!StringEsc" char="$" char1="'"/>
+ <Detect2Chars attribute="String Transl." context="#pop!StringDQ" char="$" char1="&quot;"/>
+ </context>
+ <context attribute="Command" lineEndContext="#pop#pop" name="DispatchVarnameVariables">
+ <RegExpr attribute="Dollar Prefix" context="#pop!VarNamePrefixedWithDollar" String="\$(?=&varname;|[*@#?$!0-9-])"/>
+ </context>
+ <context attribute="Variable" lineEndContext="#pop" name="VarNamePrefixedWithDollar">
+ <DetectIdentifier attribute="Variable" context="#pop"/>
+ <AnyChar attribute="Variable" context="#pop" String="*@#?$!0123456789-"/>
+ </context>
+ <context attribute="OtherCommand" lineEndContext="#pop#pop" name="CommandName">
+ <DetectSpaces attribute="Normal Text" context="#pop#pop!CommandArgs"/>
+ <DetectIdentifier attribute="OtherCommand" context="#stay"/>
+ <DetectChar context="CommandVariables" char="$" lookAhead="1"/>
+ <IncludeRules context="FindStrings"/>
+ <Detect2Chars attribute="Control" context="#pop#pop" char="&amp;" char1="&amp;"/>
+ <Detect2Chars attribute="Control" context="#pop#pop" char="|" char1="|"/>
+ <DetectChar attribute="Control" context="#pop#pop" char="|"/>
+ <AnyChar context="#pop#pop" String=";)`" lookAhead="1"/>
+ <AnyChar context="#pop#pop!CommandArgs" String="&amp;&lt;>" lookAhead="1"/>
<!-- start expression in double parentheses -->
- <Detect2Chars attribute="Keyword" context="ExprDblParen" char="(" char1="(" beginRegion="expression" />
- <!-- start expression in double brackets -->
- <RegExpr attribute="Keyword" context="ExprDblBracket" String="\[\[&eos;" beginRegion="expression" column="0"/>
- <RegExpr attribute="Keyword" context="ExprDblBracket" String="\s\[\[&eos;" beginRegion="expression" />
- <!-- start expression in single brackets -->
- <RegExpr attribute="Builtin" context="ExprBracket" String="\[&eos;" beginRegion="expression" column="0"/>
- <RegExpr attribute="Builtin" context="ExprBracket" String="\s\[&eos;" beginRegion="expression" />
- <!-- start a group command with { -->
- <RegExpr attribute="Keyword" context="Group" String="\{&eos;" beginRegion="group" />
+ <Detect2Chars attribute="Error" context="#pop#pop!ExprDblParen" char="(" char1="(" beginRegion="expression"/>
<!-- start a subshell -->
- <DetectChar attribute="Keyword" context="SubShell" char="(" beginRegion="subshell" />
+ <DetectChar attribute="Error" context="#pop#pop!SubShell" char="(" beginRegion="subshell"/>
+ <LineContinue attribute="Escape" context="#stay"/>
+ <DetectChar context="#pop!CommandMaybeBraceExpansion" char="{" lookAhead="1"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="CommandMaybeBraceExpansion">
+ <IncludeRules context="DispatchBraceExpansion"/>
+ <DetectChar attribute="OtherCommand" context="#pop" char="{"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="CommandBackq" fallthroughContext="Command">
+ <DetectChar attribute="Backquote" context="#pop!CommandArgs" char="`"/>
+ <DetectChar attribute="Comment" context="CommentBackq" char="#"/>
+ <IncludeRules context="Start"/>
+ </context>
+ <!-- CommentBackq consumes shell comments till EOL or a backquote -->
+ <context attribute="Comment" lineEndContext="#pop" name="CommentBackq">
+ <DetectChar context="#pop" char="`" lookAhead="1"/>
+ <IncludeRules context="Comment"/>
+ </context>
+
+ <!-- CommandArgs matches the items after a command -->
+ <context attribute="Normal Text" lineEndContext="#pop" name="CommandArgs" fallthroughContext="CommandArg">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+
+ <!-- &> and &>> redirection -->
+ <StringDetect attribute="Redirection" context="WordRedirection" String="&amp;>>"/>
+ <Detect2Chars attribute="Redirection" context="FdRedirection" char="&amp;" char1=">"/>
+
+ <!-- handle &, |, ;, ` -->
+ <AnyChar context="#pop" String="&amp;|;`" lookAhead="1"/>
+
+ <!-- handle redirection -->
+ <AnyChar context="CommandArgMaybeRedirection" String="&lt;&gt;0123456789" lookAhead="1"/>
+
+ <DetectChar context="#pop" char=")" lookAhead="1"/>
+ <DetectChar attribute="Error" context="#pop!SubShell" char="("/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop#pop" name="CommandArg" fallthroughContext="#pop!NormalOption">
+ <!-- In command arguments, do not allow comments after escaped characters.
+ This avoids highlighting comments within paths or other text. Ex: pathtext\ #no\ comment -->
+ <DetectChar context="#pop#pop" char="#" lookAhead="1"/>
+ <Detect2Chars attribute="Option" context="#pop!LongOption" char="-" char1="-"/>
+ <DetectChar attribute="Option" context="#pop!ShortOption" char="-"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="CommandArgMaybeRedirection" fallthroughContext="#pop!NormalOption">
+ <IncludeRules context="FindRedirection"/>
+ </context>
+
+ <context attribute="Option" lineEndContext="#pop" name="ShortOption" fallthroughContext="#pop">
+ <DetectChar attribute="Path" context="PathThenPop" char="/"/>
+ <IncludeRules context="LongOption"/>
+ </context>
+ <context attribute="Option" lineEndContext="#pop" name="LongOption" fallthroughContext="#pop">
+ <AnyChar context="#pop" String="&wordseps;`" lookAhead="1"/>
+ <DetectChar attribute="Operator" context="#pop!NormalOption" char="="/>
+ <IncludeRules context="FindWord"/>
+ <IncludeRules context="FindGlobAndPop"/>
+ <DetectChar context="OptionMaybeBraceExpansion" char="{" lookAhead="1"/>
+ <DetectChar context="LongOptionMaybeGlobAny" char="[" lookAhead="1"/>
+ <RegExpr attribute="Option" context="#stay" String="&opt;"/>
+ </context>
+ <context attribute="Option" lineEndContext="#pop#pop" name="LongOptionMaybeGlobAny" fallthroughContext="#pop">
+ <IncludeRules context="FindGlobAny"/>
+ <DetectChar attribute="Option" context="#pop" char="["/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="NormalOption" fallthroughContext="#pop">
+ <AnyChar context="#pop" String="&wordseps;`" lookAhead="1"/>
+ <IncludeRules context="FindWord"/>
+ <DetectChar context="NormalMaybeBraceExpansion" char="{" lookAhead="1"/>
+ <IncludeRules context="FindNormalText"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="FindNormalText">
+ <IncludeRules context="FindGlobAndPop"/>
+ <RegExpr attribute="Path" context="PathThenPop" String="&pathpart;"/>
+ <DetectChar context="FindPathThenPopMaybeGlobAny" char="[" lookAhead="1"/>
+ <RegExpr attribute="Normal Text" context="#stay" String="[^&wordseps;&substseps;\[]+"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="OptionMaybeBraceExpansion">
+ <IncludeRules context="DispatchBraceExpansion"/>
+ <DetectChar attribute="Option" context="#pop" char="{"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="NormalMaybeBraceExpansion">
+ <IncludeRules context="DispatchBraceExpansion"/>
+ <DetectChar attribute="Normal Text" context="#pop" char="{"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="AssumeEscape">
+ <LineContinue attribute="Escape" context="#pop"/>
+ <RegExpr attribute="Escape" context="#pop" String="\\."/>
+ </context>
+
+<!-- ====== The following rulessets are meant to be included ======== -->
+
+ <!-- FindRedirection consumes shell redirection -->
+ <context attribute="Normal Text" lineEndContext="#pop" name="FindRedirection">
+ <RegExpr attribute="File Descriptor" context="#pop!AssumeRedirection" String="[0-9]++(?=[&lt;>])"/>
+ <IncludeRules context="AssumeRedirection"/>
+ </context>
+
+ <!-- DispatchBraceExpansion consumes brace expansions -->
+ <context attribute="Normal Text" lineEndContext="#pop" name="DispatchBraceExpansion">
+ <!-- Only highlighting closed braces. The "BraceExpansion" context corrects
+ the closure of braces and allows recursive braces (bug #387915). -->
+ <RegExpr context="#pop!BraceExpansion" String="&braceexpansion;" lookAhead="1"/>
+ <RegExpr attribute="Escape" context="#pop!SequenceExpression" String="{(?=([-+]?[0-9]+\.\.[-+]?[0-9]+|[a-zA-Z]\.\.[a-zA-Z])(\.\.[-+]?[0-9]+)?\})"/>
+ </context>
+
+ <!-- FindPathThenPopMaybeGlobAny consumes path -->
+ <context attribute="Normal Text" lineEndContext="#pop#pop" name="FindPathThenPopMaybeGlobAny" fallthroughContext="#pop!PathThenPop">
+ <IncludeRules context="FindGlobAny"/>
+ <DetectChar attribute="Normal Text" context="#pop" char="["/>
+ </context>
+ <context attribute="Path" lineEndContext="#pop" name="FindGlobAndPop">
+ <Detect2Chars attribute="Glob" context="ExtGlobAndPop" char="?" char1="("/>
+ <Detect2Chars attribute="Glob" context="ExtGlobAndPop" char="*" char1="("/>
+ <AnyChar attribute="Glob" context="PathThenPop" String="?*"/>
+ <Detect2Chars attribute="Glob" context="ExtGlobAndPop" char="+" char1="("/>
+ <Detect2Chars attribute="Glob" context="ExtGlobAndPop" char="@" char1="("/>
+ <Detect2Chars attribute="Glob" context="ExtGlobAndPop" char="!" char1="("/>
+ </context>
+ <context attribute="Path" lineEndContext="#stay" name="ExtGlobAndPop">
+ <DetectChar attribute="Glob" context="#pop!PathThenPop" char=")"/>
+ <IncludeRules context="FindWord"/>
+ <IncludeRules context="IncExtGlob"/>
+ </context>
+ <context attribute="Path" lineEndContext="#stay" name="FindExtGlob">
+ <Detect2Chars attribute="Glob" context="RecursiveExtGlob" char="?" char1="("/>
+ <Detect2Chars attribute="Glob" context="RecursiveExtGlob" char="*" char1="("/>
+ <Detect2Chars attribute="Glob" context="RecursiveExtGlob" char="+" char1="("/>
+ <Detect2Chars attribute="Glob" context="RecursiveExtGlob" char="@" char1="("/>
+ <Detect2Chars attribute="Glob" context="RecursiveExtGlob" char="!" char1="("/>
+ <AnyChar attribute="Glob" context="#stay" String="|?*"/>
+ </context>
+ <context attribute="Path" lineEndContext="#stay" name="RecursiveExtGlob">
+ <DetectChar attribute="Glob" context="#pop" char=")"/>
+ <IncludeRules context="FindWord"/>
+ <IncludeRules context="IncExtGlob"/>
+ <IncludeRules context="PathThenPopMaybeGlobAny"/>
+ </context>
+ <context attribute="Path" lineEndContext="#stay" name="IncExtGlob">
+ <DetectIdentifier attribute="Path"/>
+ <IncludeRules context="FindExtGlob"/>
+ <DetectChar context="PathMaybeBraceExpansion" char="{" lookAhead="1"/>
+ </context>
+ <context attribute="Path" lineEndContext="#pop#pop" name="PathThenPop">
+ <AnyChar context="#pop#pop" String="&wordseps;`" lookAhead="1"/>
+ <IncludeRules context="FindWord"/>
+ <IncludeRules context="FindExtGlob"/>
+ <DetectChar context="PathMaybeBraceExpansion" char="{" lookAhead="1"/>
+ <DetectChar context="PathThenPopMaybeGlobAny" char="[" lookAhead="1"/>
+ <RegExpr attribute="Path" context="#stay" String="&path;"/>
+ </context>
+ <context attribute="Path" lineEndContext="#pop#pop" name="PathThenPopMaybeGlobAny" fallthroughContext="#pop">
+ <IncludeRules context="FindGlobAny"/>
+ <DetectChar attribute="Path" context="#pop" char="["/>
+ </context>
+ <context attribute="Path" lineEndContext="#pop" name="PathMaybeBraceExpansion" fallthroughContext="#pop">
+ <IncludeRules context="DispatchBraceExpansion"/>
+ <DetectChar attribute="Path" context="#pop" char="{"/>
+ </context>
+
+ <context attribute="Glob" lineEndContext="#stay" name="FindGlobAny">
+ <RegExpr attribute="Glob" context="GlobAnyFlag" String="\[(?=&next_is_globany;)"/>
+ </context>
+ <context attribute="Pattern" lineEndContext="#pop" name="GlobAnyFlag" fallthroughContext="#pop!GlobAny">
+ <DetectChar attribute="Glob" context="#pop!GlobAny" char="^"/>
+ </context>
+ <context attribute="Pattern" lineEndContext="#pop" name="GlobAny">
+ <DetectIdentifier attribute="Pattern"/>
+ <DetectChar context="AssumeEscape" char="\" lookAhead="1"/>
+ <DetectChar attribute="Glob" context="#stay" char="-"/>
+ <IncludeRules context="FindStrings"/>
+ <DetectChar attribute="Glob" context="#pop" char="]"/>
+ <Detect2Chars attribute="Glob" context="GlobClass" char="[" char1=":"/>
+ </context>
+ <context attribute="Glob" lineEndContext="#pop#pop" name="GlobClass">
+ <DetectIdentifier attribute="Pattern"/>
+ <Detect2Chars attribute="Glob" context="#pop" char=":" char1="]"/>
+ <DetectChar attribute="Error" context="#pop" char="]"/>
+ </context>
+
+ <!-- FindPathThenPopInAlternateValue consumes path in ${xx:here}-->
+ <context attribute="Normal Text" lineEndContext="#pop" name="FindPathThenPopInAlternateValue">
+ <Detect2Chars context="#pop!PathThenPopInAlternateValue" char="?" char1="(" lookAhead="1"/>
+ <Detect2Chars context="#pop!PathThenPopInAlternateValue" char="*" char1="(" lookAhead="1"/>
+ <Detect2Chars context="#pop!PathThenPopInAlternateValue" char="+" char1="(" lookAhead="1"/>
+ <Detect2Chars context="#pop!PathThenPopInAlternateValue" char="@" char1="(" lookAhead="1"/>
+ <Detect2Chars context="#pop!PathThenPopInAlternateValue" char="!" char1="(" lookAhead="1"/>
+ <AnyChar attribute="Glob" context="#pop!PathThenPopInAlternateValue" String="?*"/>
+ <RegExpr attribute="Path" context="#pop!PathThenPopInAlternateValue" String="&pathpart_alt;"/>
+ </context>
+ <context attribute="Path" lineEndContext="#pop#pop" name="PathThenPopInAlternateValue">
+ <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/>
+ <IncludeRules context="FindWord"/>
+ <Detect2Chars attribute="Glob" context="ExtGlobAndPopInAlternateValue" char="?" char1="("/>
+ <Detect2Chars attribute="Glob" context="ExtGlobAndPopInAlternateValue" char="*" char1="("/>
+ <Detect2Chars attribute="Glob" context="ExtGlobAndPopInAlternateValue" char="+" char1="("/>
+ <Detect2Chars attribute="Glob" context="ExtGlobAndPopInAlternateValue" char="@" char1="("/>
+ <Detect2Chars attribute="Glob" context="ExtGlobAndPopInAlternateValue" char="!" char1="("/>
+ <AnyChar attribute="Glob" context="#stay" String="?*"/>
+ <RegExpr attribute="Path" context="#stay" String="&path_alt;"/>
+ </context>
+ <context attribute="Path" lineEndContext="#stay" name="ExtGlobAndPopInAlternateValue">
+ <DetectChar attribute="Glob" context="#pop" char=")"/>
+ <DetectChar attribute="Error" context="#pop#pop" char="}"/>
+ <IncludeRules context="FindWord"/>
+ <IncludeRules context="FindExtGlobInAlternateValue"/>
+ </context>
+ <context attribute="Path" lineEndContext="#stay" name="FindExtGlobInAlternateValue">
+ <DetectIdentifier attribute="Path"/>
+ <Detect2Chars attribute="Glob" context="RecursiveExtGlobInAlternateValue" char="?" char1="("/>
+ <Detect2Chars attribute="Glob" context="RecursiveExtGlobInAlternateValue" char="*" char1="("/>
+ <Detect2Chars attribute="Glob" context="RecursiveExtGlobInAlternateValue" char="+" char1="("/>
+ <Detect2Chars attribute="Glob" context="RecursiveExtGlobInAlternateValue" char="@" char1="("/>
+ <Detect2Chars attribute="Glob" context="RecursiveExtGlobInAlternateValue" char="!" char1="("/>
+ <AnyChar attribute="Glob" context="#stay" String="|?*"/>
+ </context>
+ <context attribute="Path" lineEndContext="#stay" name="RecursiveExtGlobInAlternateValue">
+ <DetectChar attribute="Glob" context="#pop" char=")"/>
+ <DetectChar context="#pop" char="}" lookAhead="1"/>
+ <IncludeRules context="FindWord"/>
+ <IncludeRules context="FindExtGlobInAlternateValue"/>
+ </context>
+
+ <context attribute="Pattern" lineEndContext="#stay" name="FindPattern">
+ <Detect2Chars attribute="Glob" context="ExtPattern" char="?" char1="("/>
+ <Detect2Chars attribute="Glob" context="ExtPattern" char="*" char1="("/>
+ <Detect2Chars attribute="Glob" context="ExtPattern" char="+" char1="("/>
+ <Detect2Chars attribute="Glob" context="ExtPattern" char="@" char1="("/>
+ <Detect2Chars attribute="Glob" context="ExtPattern" char="!" char1="("/>
+ <AnyChar attribute="Glob" context="#stay" String="?*"/>
+ </context>
+ <context attribute="Pattern" lineEndContext="#stay" name="ExtPattern">
+ <DetectIdentifier attribute="Pattern"/>
+ <DetectChar attribute="Glob" context="#stay" char="|"/>
+ <IncludeRules context="FindWord"/>
+ <DetectChar attribute="Glob" context="#pop" char=")"/>
+ <IncludeRules context="FindPattern"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="VarAssign" fallthroughContext="#pop">
+ <DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/>
+ <DetectChar attribute="Operator" context="#pop!Assign" char="="/>
+ <Detect2Chars attribute="Operator" context="#pop!Assign" char="+" char1="="/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="DispatchKeyword">
<!-- match do and if blocks -->
- <RegExpr attribute="Keyword" context="#stay" String="\bdo&noword;" beginRegion="do" />
- <RegExpr attribute="Keyword" context="#stay" String="\bdone&noword;" endRegion="do" />
- <RegExpr attribute="Keyword" context="#stay" String="\bif&eos;" beginRegion="if" />
- <RegExpr attribute="Keyword" context="#stay" String="\bfi&noword;" endRegion="if" />
+ <Detect2Chars attribute="Control Flow" context="#pop!NotCond" char="i" char1="f" beginRegion="if"/>
+ <Detect2Chars attribute="Control Flow" context="#pop" char="f" char1="i" endRegion="if"/>
+ <StringDetect attribute="Control Flow" context="#pop" String="done" endRegion="do"/>
+ <Detect2Chars attribute="Control Flow" context="#pop" char="d" char1="o" beginRegion="do"/>
+ <!-- handle while/until as a special case -->
+ <StringDetect attribute="Control Flow" context="#pop!NotCond" String="while"/>
+ <StringDetect attribute="Control Flow" context="#pop!NotCond" String="until"/>
+ <!-- handle for as a special case -->
+ <StringDetect attribute="Control Flow" context="#pop!For" String="for"/>
+ <!-- handle select as a special case -->
+ <StringDetect attribute="Control Flow" context="#pop!For" String="select"/>
<!-- handle case as a special case -->
- <RegExpr attribute="Keyword" context="Case" String="\bcase&noword;" beginRegion="case" />
- <!-- handle variable assignments -->
- <RegExpr attribute="Variable" context="Assign" String="\b&varname;\+?=" />
- <RegExpr attribute="Variable" context="AssignSubscr" String="\b&varname;(?=\[.+\]\+?=)" />
+ <StringDetect attribute="Control Flow" context="#pop!Case" String="case" beginRegion="case"/>
<!-- handle functions with function keyword before keywords -->
- <StringDetect attribute="Function" context="#stay" String=":()" />
- <WordDetect attribute="Keyword" context="FunctionDef" String="function" />
- <!-- mark function definitions without function keyword -->
- <RegExpr attribute="Function" context="#stay" String="&funcname;\s*\(\)" />
+ <StringDetect attribute="Keyword" context="#pop!FunctionDef" String="function"/>
+ <StringDetect attribute="Control Flow" context="#pop!Return" String="return"/>
+ <!-- not a keyword in this context -->
+ <Detect2Chars attribute="Error" context="#pop" char="i" char1="n"/>
+ <StringDetect attribute="Error" context="#pop" String="esac"/>
<!-- handle keywords -->
- <keyword attribute="Keyword" context="#stay" String="keywords" />
- <RegExpr attribute="Builtin" context="#stay" String="\.(?=\s)" />
- <!-- handle commands that have variable names as argument -->
- <keyword attribute="Builtin" context="VarName" String="builtins_var" />
- <!-- handle here-string -->
- <RegExpr attribute="Redirection" context="#stay" String="\d*&lt;&lt;&lt;" />
- <!-- handle here document -->
- <Detect2Chars attribute="Redirection" context="HereDoc" char="&lt;" char1="&lt;" lookAhead="true" />
- <!-- handle process subst -->
- <RegExpr attribute="Redirection" context="ProcessSubst" String="[&lt;&gt;]\(" />
- <!-- handle redirection -->
- <RegExpr attribute="Redirection" context="#stay" String="([0-9]*(&gt;{1,2}|&lt;)(&amp;[0-9]+-?)?|&amp;&gt;|&gt;&amp;|[0-9]*&lt;&gt;)" />
- <!-- handle &, &&, | and || -->
- <RegExpr attribute="Control" context="#stay" String="([|&amp;])\1?" />
+ <DetectIdentifier attribute="Control Flow" context="#pop"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="FindNormalCommands">
- <keyword attribute="Builtin" context="CommandArgs" String="builtins" />
- <keyword attribute="Command" context="CommandArgs" String="unixcommands" />
- <RegExpr attribute="OtherCommand" context="#stay" String="&pathpart;*(?=/)" />
- <RegExpr attribute="OtherCommand" context="#stay" String="~\w*" />
- <RegExpr attribute="OtherCommand" context="#stay" String="/&pathpart;*(?=([/);$`'&quot;]|$))" />
- <RegExpr attribute="OtherCommand" context="CommandArgs" String="/&pathpart;*(?=([\s);$`'&quot;]|$))" />
- <!-- This list is not complete. ie, ":" is missing but as it is in bash completition. -->
- <RegExpr attribute="OtherCommand" context="CommandArgs" String="&pathpart;*" />
+
+ <!-- if ! ..., while ! ... and until ! ... -->
+ <context attribute="Normal Text" lineEndContext="#pop" name="NotCond" fallthroughContext="#pop">
+ <DetectSpaces attribute="Normal Text" context="#pop!NotCond2"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="NotCond2" fallthroughContext="#pop">
+ <Detect2Chars attribute="Expression" context="#pop" char="!" char1="&tab;"/>
+ <Detect2Chars attribute="Expression" context="#pop" char="!" char1=" "/>
+ <LineContinue attribute="Expression" context="#pop" char="!"/>
</context>
- <!-- CommandArgs matches the items after a command -->
- <context attribute="Normal Text" lineEndContext="#pop" name="CommandArgs">
- <LineContinue />
- <IncludeRules context="FindMost" />
- <RegExpr attribute="Keyword" context="#stay" String="\\$" />
- <!-- handle keywords -->
- <RegExpr attribute="Option" context="#stay" String="\.(?=\s)" />
- <!-- handle here-string -->
- <RegExpr attribute="Redirection" context="#stay" String="\d*&lt;&lt;&lt;" />
+ <context attribute="Normal Text" lineEndContext="#pop" name="For" fallthroughContext="#pop">
+ <LineContinue attribute="Escape" context="#stay"/>
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <DetectIdentifier attribute="Normal Text" context="#pop!ForIn"/>
+ <Detect2Chars attribute="Keyword" context="#pop!ForArithmeticExpr" char="(" char1="("/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="ForIn" fallthroughContext="#pop">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <DetectChar attribute="Control" context="#pop" char=";"/>
+ <WordDetect attribute="Keyword" context="#pop!CommandArgs" String="in"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="ForArithmeticExpr">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <DetectChar attribute="Control" context="#stay" char=";"/>
+ <Detect2Chars attribute="Keyword" context="#pop" char=")" char1=")"/>
+ <IncludeRules context="FindExprDblParen"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="AssumeRedirection">
+ <!-- handle output redirection -->
+ <Detect2Chars attribute="Redirection" context="#pop!WordRedirection" char=">" char1=">"/>
+ <Detect2Chars attribute="Redirection" context="#pop!WordRedirection" char=">" char1="|"/>
+ <Detect2Chars attribute="Redirection" context="#pop!FdRedirection" char=">" char1="&amp;"/>
+ <Detect2Chars attribute="Redirection" context="#pop!ProcessSubst" char=">" char1="("/>
+ <DetectChar attribute="Redirection" context="#pop!WordRedirection" char=">"/>
+ <StringDetect attribute="Redirection" context="#pop!StringRedirection" String="&lt;&lt;&lt;"/>
<!-- handle here document -->
- <Detect2Chars attribute="Redirection" context="HereDoc" char="&lt;" char1="&lt;" lookAhead="true" />
- <!-- handle process subst -->
- <RegExpr attribute="Redirection" context="ProcessSubst" String="[&lt;&gt;]\(" />
- <!-- handle redirection -->
- <RegExpr attribute="Redirection" context="#stay" String="([0-9]*(&gt;{1,2}|&lt;)(&amp;[0-9]+-?)?|&amp;&gt;|&gt;&amp;|[0-9]*&lt;&gt;)" />
- <!-- handle &, &&, | and || -->
- <RegExpr attribute="Control" context="#pop" String="([|&amp;;])\1?" />
- <RegExpr attribute="Normal Text" context="#stay" String="[a-zA-Z_]+-[A-Za-z0-9_-]*" />
- <RegExpr attribute="Option" context="#stay" String="-?-[a-zA-Z_][A-Za-z0-9_-]*" />
- <keyword attribute="Option" context="#stay" String="keywords" />
- <AnyChar String=")}" context="#pop" lookAhead="true"/>
- </context>
-
- <!-- FindCommands matches many items that can be expected outside strings, substitutions etc, when inside a Backquote -->
- <context attribute="Normal Text" lineEndContext="#stay" name="FindCommandsBackq">
- <IncludeRules context="FindSpecialCommands" />
- <IncludeRules context="FindNormalCommandsBackq" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="FindNormalCommandsBackq">
- <keyword attribute="Builtin" context="CommandArgsBackq" String="builtins" />
- <keyword attribute="Command" context="CommandArgsBackq" String="unixcommands" />
- <RegExpr attribute="OtherCommand" context="#stay" String="&pathpart;*(?=/)" />
- <RegExpr attribute="OtherCommand" context="#stay" String="~\w*" />
- <RegExpr attribute="OtherCommand" context="#stay" String="/&pathpart;*(?=([/);$`'&quot;]|$))" />
- <RegExpr attribute="OtherCommand" context="CommandArgsBackq" String="/&pathpart;*(?=([\s);$`'&quot;]|$))" />
- <RegExpr attribute="OtherCommand" context="CommandArgsBackq" String="&pathpart;*" />
- </context>
- <context attribute="Normal Text" lineEndContext="#pop" name="CommandArgsBackq">
- <LineContinue />
- <DetectChar attribute="Keyword" context="#pop" char="`" lookAhead="true"/>
- <IncludeRules context="CommandArgs" />
- </context>
-
- <!-- FindOthers contains various rules to mark different shell input -->
- <context attribute="Normal Text" lineEndContext="#stay" name="FindOthers">
- <IncludeRules context="Escapes" />
- <RegExpr attribute="Keyword" context="#stay" String="\\$" />
- <!-- Only highlighting closed braces. The "BraceExpansion" context corrects
- the closure of braces and allows recursive braces (bug #387915). -->
- <RegExpr attribute="Escape" context="BraceExpansion" String="\{(?=(\\[ \{\}]|[^\s\{\}]|\{(\\[ ]|\S)*\})+\})" />
- <RegExpr attribute="Path" context="#stay" String="&pathpart;*(?=/)" />
- <RegExpr attribute="Path" context="#stay" String="~\w*" />
- <RegExpr attribute="Path" context="#stay" String="/&pathpart;*(?=([\s/):;$`'&quot;]|$))" />
- <!-- TODO: shell globs beside * and ? (in Path's) -->
+ <Detect2Chars context="#pop!HereDoc" char="&lt;" char1="&lt;" lookAhead="1"/>
+ <!-- handle input redirection -->
+ <Detect2Chars attribute="Redirection" context="#pop!FdRedirection" char="&lt;" char1="&amp;"/>
+ <Detect2Chars attribute="Redirection" context="#pop!WordRedirection" char="&lt;" char1=">"/>
+ <Detect2Chars attribute="Redirection" context="#pop!ProcessSubst" char="&lt;" char1="("/>
+ <DetectChar attribute="Redirection" context="#pop!WordRedirection" char="&lt;"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="Escapes">
- <RegExpr attribute="Escape" context="#stay" String="\\[][;\\$`{}()|&amp;&lt;&gt;* ]" />
+ <context attribute="Normal Text" lineEndContext="#pop" name="FdRedirection" fallthroughContext="#pop!FdRedirection2">
+ <DetectSpaces attribute="Normal Text"/>
+ <DetectChar attribute="Comment" context="#pop!Comment" char="#"/>
</context>
- <context attribute="Escape" lineEndContext="#pop" name="BraceExpansion">
- <DetectSpaces context="#pop" lookAhead="true" />
- <DetectChar attribute="Escape" context="#pop" char="}" />
- <DetectChar attribute="Escape" context="BraceExpansion" char="{" />
- <RegExpr attribute="Error" context="#stay" String="[^\s\{\}\\](?=\s|$)" />
- <IncludeRules context="Escapes" />
- <IncludeRules context="FindSubstitutions" />
- </context>
-
- <!-- FindStrings looks for single and double quoted strings, also with $-prefix -->
- <context attribute="Normal Text" lineEndContext="#stay" name="FindStrings">
- <Detect2Chars attribute="Escape" context="#stay" char="\" char1="'" />
- <Detect2Chars attribute="Escape" context="#stay" char="\" char1="&quot;" />
- <DetectChar attribute="String SingleQ" context="StringSQ" char="'" />
- <DetectChar attribute="String DoubleQ" context="StringDQ" char="&quot;" />
- <Detect2Chars attribute="String SingleQ" context="StringEsc" char="$" char1="'" />
- <Detect2Chars attribute="String Transl." context="StringDQ" char="$" char1="&quot;" />
- </context>
-
- <!-- FindSubstitutions goes after anything starting with $ and ` and their escapes -->
- <context attribute="Normal Text" lineEndContext="#stay" name="FindSubstitutions">
- <RegExpr attribute="Variable" context="Subscript" String="\$&varname;\[" />
- <RegExpr attribute="Variable" context="#stay" String="\$&varname;" />
- <RegExpr attribute="Variable" context="#stay" String="\$[*@#?$!_0-9-]" />
- <RegExpr attribute="Variable" context="#stay" String="\$\{[*@#?$!_0-9-]\}" />
- <RegExpr attribute="Variable" context="#stay" String="\$\{#&varname;(\[[*@]\])?\}" />
- <RegExpr attribute="Variable" context="#stay" String="\$\{!&varname;(\[[*@]\]|[*@])?\}" />
- <RegExpr attribute="Variable" context="#stay" String="\$\{#[0-9]+\}" />
- <RegExpr attribute="Variable" context="VarBrace" String="\$\{&varname;" />
- <RegExpr attribute="Variable" context="VarBrace" String="\$\{[*@#?$!_0-9-](?=[:#%/=?+-])" />
- <StringDetect attribute="Variable" context="ExprDblParenSubst" String="$((" beginRegion="expression" />
- <StringDetect attribute="Redirection" context="SubstFile" String="$(&lt;" />
- <Detect2Chars attribute="Variable" context="SubstCommand" char="$" char1="(" />
- <DetectChar attribute="Backquote" context="SubstBackq" char="`" />
- <RegExpr attribute="Escape" context="#stay" String="\\[`$\\]" />
- </context>
-
- <!-- FindTests finds operators valid in tests -->
- <context attribute="Normal Text" lineEndContext="#stay" name="FindTests">
- <RegExpr attribute="Expression" context="#stay" String="-[abcdefghkprstuwxOGLSNozn](?=\s)"/>
- <RegExpr attribute="Expression" context="#stay" String="-([no]t|ef)(?=\s)"/>
- <RegExpr attribute="Expression" context="#stay" String="([!=]=?|[&gt;&lt;])(?=\s)"/>
- <RegExpr attribute="Expression" context="#stay" String="-(eq|ne|[gl][te])(?=\s)"/>
+ <context attribute="Normal Text" lineEndContext="#pop" name="FdRedirection2" fallthroughContext="#pop!WordRedirection2">
+ <RegExpr attribute="File Descriptor" context="#pop!CloseFile" String="[0-9]+(?=-?&eoexpr;)"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="WordRedirection" fallthroughContext="#pop!WordRedirection2">
+ <DetectSpaces attribute="Normal Text"/>
+ <DetectChar attribute="Comment" context="#pop!Comment" char="#"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="WordRedirection2" fallthroughContext="#pop">
+ <AnyChar context="#pop" String="&wordseps;`" lookAhead="1"/>
+ <IncludeRules context="FindWord"/>
+ <RegExpr attribute="Path" context="PathThenPop" String="&path;"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="StringRedirection" fallthroughContext="#pop!StringRedirection2">
+ <DetectSpaces attribute="Normal Text"/>
+ <DetectChar attribute="Comment" context="#pop!Comment" char="#"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="StringRedirection2">
+ <AnyChar context="#pop" String="&wordseps;`" lookAhead="1"/>
+ <IncludeRules context="FindWord"/>
+ <DetectIdentifier attribute="Normal Text"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="CloseFile" fallthroughContext="#pop">
+ <DetectChar attribute="Keyword" context="#pop" char="-"/>
</context>
+ <!-- HereDoc consumes Here-documents. It is called at the beginning of the "<<" construct. -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="HereDoc">
+ <RegExpr attribute="Redirection" context="HereDocMLComment" String="^[ &tab;]*&lt;&lt;[ &tab;]*'#([^']+)'$" column="0"/>
+ <RegExpr attribute="Redirection" context="HereDocIQ" String="&lt;&lt;-[ &tab;]*&heredocq;(?=[ &tab;]*$)"/>
+ <RegExpr attribute="Redirection" context="HereDocINQ" String="&lt;&lt;-[ &tab;]*([^&wordseps;]+)(?=[ &tab;]*$)"/>
+ <RegExpr attribute="Redirection" context="HereDocQ" String="&lt;&lt;[ &tab;]*&heredocq;(?=[ &tab;]*$)"/>
+ <RegExpr attribute="Redirection" context="HereDocNQ" String="&lt;&lt;[ &tab;]*([^&wordseps;]+)(?=[ &tab;]*$)"/>
-<!-- ====== These are the contexts that can be branched to ======= -->
+ <RegExpr context="HereDocIQCmd" String="(&lt;&lt;-[ &tab;]*&heredocq;)" lookAhead="1"/>
+ <RegExpr context="HereDocINQCmd" String="(&lt;&lt;-[ &tab;]*([^&wordseps;]+))" lookAhead="1"/>
+ <RegExpr context="HereDocQCmd" String="(&lt;&lt;[ &tab;]*&heredocq;)" lookAhead="1"/>
+ <RegExpr context="HereDocNQCmd" String="(&lt;&lt;[ &tab;]*([^&wordseps;]+))" lookAhead="1"/>
- <!-- ExprDblParen consumes an expression started in command mode till )) -->
- <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParen">
- <Detect2Chars attribute="Keyword" context="#pop" char=")" char1=")" endRegion="expression" />
- <DetectChar attribute="Normal Text" context="ExprSubParen" char="(" />
- <IncludeRules context="FindMost" />
+ <Detect2Chars attribute="Redirection" context="#pop" char="&lt;" char1="&lt;"/><!-- always met -->
</context>
- <!-- ExprDblParenSubst like ExprDblParen but matches )) as Variable -->
- <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParenSubst">
- <Detect2Chars attribute="Variable" context="#pop" char=")" char1=")" endRegion="expression" />
- <DetectChar attribute="Normal Text" context="ExprSubParen" char="(" />
- <IncludeRules context="FindMost" />
+ <context attribute="Normal Text" lineEndContext="#pop" name="HereDocRemainder" fallthroughContext="CommandArg">
+ <AnyChar context="BashOneLine" String="&amp;|;`" lookAhead="1"/>
+ <IncludeRules context="CommandArgs"/>
</context>
- <!-- ExprSubParen consumes an expression till ) -->
- <context attribute="Normal Text" lineEndContext="#stay" name="ExprSubParen">
- <DetectChar attribute="Normal Text" context="#pop" char=")" />
- <DetectChar attribute="Normal Text" context="ExprSubParen" char="(" />
- <IncludeRules context="FindMost" />
+ <!-- Highlight the builtin `:` (true) and the followed redirection, then fall into `HereDocMLComment` -->
+ <context attribute="Comment" lineEndContext="#stay" name="PreHereDocMLComment">
+ <DetectChar attribute="Builtin" context="#stay" char=":" column="0"/>
+ <RegExpr attribute="Redirection" context="HereDocMLComment" String="&lt;&lt;[ &tab;]*'#([^']+)'$"/>
</context>
- <!-- ExprBracket consumes an expression till ] -->
- <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracket">
- <RegExpr attribute="Builtin" context="#pop" String="\s\](?=($|[\s;|&amp;]))" endRegion="expression" />
- <RegExpr attribute="Builtin" context="#pop" String="\](?=($|[\s;|&amp;]))" endRegion="expression" column="0"/>
- <DetectChar attribute="Normal Text" context="ExprSubParen" char="(" />
- <IncludeRules context="FindTests" />
- <IncludeRules context="FindMost" />
+ <context attribute="Comment" lineEndContext="#stay" name="HereDocMLComment" dynamic="true" fallthroughContext="Comment">
+ <RegExpr attribute="Redirection" context="#pop#pop" String="^#%1$" column="0" dynamic="true"/>
+ <RegExpr attribute="Region Marker" context="RST Documentation" String="^#?\[(=*)\[\.rst:" column="0" beginRegion="RSTDocumentation" />
+ <IncludeRules context="Comment"/>
</context>
- <!-- ExprDblBracket consumes an expression till ]] -->
- <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracket">
- <RegExpr attribute="Keyword" context="#pop" String="\s\]\](?=($|[\s;|&amp;]))" endRegion="expression" />
- <RegExpr attribute="Keyword" context="#pop" String="\]\](?=($|[\s;|&amp;]))" endRegion="expression" column="0"/>
- <DetectChar attribute="Normal Text" context="ExprSubParen" char="(" />
- <IncludeRules context="FindTests" />
- <IncludeRules context="FindMost" />
+ <context attribute="Comment" lineEndContext="#stay" name="RST Documentation" dynamic="true">
+ <RegExpr attribute="Redirection" context="#pop#pop#pop" String="^#BLOCK-COMMENT$" column="0"/>
+ <RegExpr attribute="Region Marker" context="#pop" String="^#?\]%1\]" dynamic="true" column="0" endRegion="RSTDocumentation" />
+ <IncludeRules context="##reStructuredText" />
</context>
- <!-- Group consumes shell input till } -->
- <context attribute="Normal Text" lineEndContext="#stay" name="Group">
- <DetectChar attribute="Keyword" context="#pop" char="}" endRegion="group" />
- <IncludeRules context="FindAll" />
+ <context attribute="Here Doc" lineEndContext="#stay" name="HereDocQ" dynamic="true" fallthroughContext="HereDocText">
+ <RegExpr attribute="Redirection" context="#pop#pop" String="^%1$" dynamic="true" column="0"/>
</context>
- <!-- SubShell consumes shell input till ) -->
- <context attribute="Normal Text" lineEndContext="#stay" name="SubShell">
- <DetectChar attribute="Keyword" context="#pop" char=")" endRegion="subshell" />
- <IncludeRules context="FindAll" />
+ <context attribute="Here Doc" lineEndContext="#stay" name="HereDocNQ" dynamic="true" fallthroughContext="HereDocSubstitutions">
+ <IncludeRules context="HereDocQ" />
</context>
- <!-- Assign consumes an expression till EOL or whitespace -->
- <context attribute="Normal Text" lineEndContext="#pop" name="Assign" fallthrough="true" fallthroughContext="#pop">
- <DetectChar attribute="Variable" context="AssignArray" char="(" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindSubstitutions" />
- <IncludeRules context="FindOthers" />
- <RegExpr attribute="Normal Text" context="#stay" String="[\w:,+_./-]" />
+ <context attribute="Here Doc" lineEndContext="#stay" name="HereDocIQ" dynamic="true" fallthroughContext="HereDocText">
+ <RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%1$" dynamic="true" column="0"/>
</context>
- <!-- AssignArray consumes everything till ), marking assignments -->
- <context attribute="Normal Text" lineEndContext="#pop" name="AssignArray">
- <DetectChar attribute="Variable" context="#pop" char=")" />
- <DetectChar attribute="Variable" context="Subscript" char="[" />
- <DetectChar attribute="Variable" context="Assign" char="=" />
- <IncludeRules context="FindMost" />
+ <context attribute="Here Doc" lineEndContext="#stay" name="HereDocINQ" dynamic="true" fallthroughContext="HereDocSubstitutions">
+ <IncludeRules context="HereDocIQ" />
</context>
- <!-- AssignSubscr first expects a [ then parses subscript and continues with '=value' -->
- <context attribute="Normal Text" lineEndContext="#pop" name="AssignSubscr" fallthrough="true" fallthroughContext="#pop">
- <DetectChar attribute="Variable" context="Subscript" char="[" />
- <Detect2Chars attribute="Variable" context="Assign" char="+" char1="=" />
- <DetectChar attribute="Variable" context="Assign" char="=" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindSubstitutions" />
- <IncludeRules context="FindOthers" />
+ <context attribute="Here Doc" lineEndContext="#stay" name="HereDocCmd">
+ <!-- Only if the redirect is before the command, but as this is too complicated,
+ check if the redirect is at the beginning of the line. -->
+ <StringDetect attribute="Redirection" context="BashOneLine" String="%1" dynamic="true" firstNonSpace="1"/>
+ <StringDetect attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true"/>
</context>
- <!-- Subscript consumes anything till ], marks as Variable -->
- <context attribute="Variable" lineEndContext="#stay" name="Subscript">
- <DetectChar attribute="Variable" context="#pop" char="]" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindSubstitutions" />
- <IncludeRules context="FindOthers" />
+ <context attribute="Here Doc" lineEndContext="#stay" name="HereDocQCmd" dynamic="true" fallthroughContext="HereDocText">
+ <IncludeRules context="HereDocCmd"/>
+ <RegExpr attribute="Redirection" context="#pop#pop" String="^%2$" dynamic="true" column="0"/>
</context>
- <!-- FunctionDef consumes a name, possibly with (), marks as Function -->
- <context attribute="Function" lineEndContext="#pop" name="FunctionDef" fallthrough="true" fallthroughContext="#pop">
- <RegExpr attribute="Function" context="#pop" String="\s+&funcname;(\s*\(\))?" />
+ <context attribute="Here Doc" lineEndContext="#stay" name="HereDocNQCmd" dynamic="true" fallthroughContext="HereDocSubstitutions">
+ <IncludeRules context="HereDocQCmd"/>
+ </context>
+
+ <context attribute="Here Doc" lineEndContext="#stay" name="HereDocIQCmd" dynamic="true" fallthroughContext="HereDocText">
+ <IncludeRules context="HereDocCmd"/>
+ <RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%2$" dynamic="true" column="0"/>
+ </context>
+
+ <context attribute="Here Doc" lineEndContext="#stay" name="HereDocINQCmd" dynamic="true" fallthroughContext="HereDocSubstitutions">
+ <IncludeRules context="HereDocIQCmd"/>
+ </context>
+
+ <context attribute="Here Doc" lineEndContext="#pop" name="HereDocText">
+ </context>
+
+ <context attribute="Here Doc" lineEndContext="#pop" name="HereDocSubstitutions">
+ <DetectSpaces attribute="Here Doc"/>
+ <DetectIdentifier attribute="Here Doc"/>
+ <DetectChar context="HereDocVariables" char="$" lookAhead="1"/>
+ <DetectChar attribute="Backquote" context="CommandBackq" char="`"/>
+ <DetectChar context="AssumeEscape" char="\" lookAhead="1"/>
+ </context>
+ <context attribute="Here Doc" lineEndContext="#pop" name="HereDocVariables">
+ <IncludeRules context="DispatchSubstVariables"/>
+ <IncludeRules context="DispatchVarnameVariables"/>
+ <DetectChar attribute="Here Doc" context="#pop" char="$"/>
</context>
<!-- VarName consumes spare variable names and assignments -->
- <context attribute="Normal Text" lineEndContext="#pop" name="VarName" fallthrough="true" fallthroughContext="#pop">
- <!-- handle command line options -->
- <RegExpr attribute="Option" context="#stay" String="-[A-Za-z0-9]+" />
- <RegExpr attribute="Option" context="#stay" String="--[a-z][A-Za-z0-9_-]*" />
- <RegExpr attribute="Variable" context="#stay" String="\b&varname;" />
- <DetectChar attribute="Variable" context="Subscript" char="[" />
- <DetectChar attribute="Variable" context="Assign" char="=" />
- <IncludeRules context="FindMost" />
- <!-- stay here in spaces and other safe characters -->
- <RegExpr attribute="Normal Text" context="#stay" String="[^]})|;`&amp;&gt;&lt;]" />
+ <context attribute="Normal Text" lineEndContext="#pop" name="VarName">
+ <StringDetect attribute="Builtin" context="#pop!BuiltinGetopts" String="getopts"/>
+ <StringDetect attribute="Builtin" context="#pop!BuiltinLet" String="let"/>
+ <DetectIdentifier attribute="Builtin" context="#pop!VarNameArgs"/>
+ <AnyChar attribute="Builtin" context="#pop!VarNameArgs" String=".:"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="VarNameArgs" fallthroughContext="#pop!CommandArgs">
+ <DetectSpaces attribute="Normal Text" context="VarNameArg"/>
+ <LineContinue attribute="Escape" context="#stay"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop#pop" name="VarNameArg" fallthroughContext="#pop!VarNameArg2">
+ <!-- In command arguments, do not allow comments after escaped characters.
+ This avoids highlighting comments within paths or other text. Ex: pathtext\ #no\ comment -->
+ <DetectChar context="#pop#pop" char="#" lookAhead="1"/>
+ <DetectChar attribute="Option" context="#pop!ShortOption" char="-"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="VarNameArg2" fallthroughContext="#pop!NormalOption">
+ <DetectChar attribute="Variable" context="Subscript" char="["/>
+ <DetectChar attribute="Operator" context="Assign" char="="/>
+ <DetectChar attribute="Variable" context="AssignArray" char="("/>
+ <DetectIdentifier attribute="Variable" context="#stay"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="BuiltinGetopts" fallthroughContext="#pop!CommandArgs">
+ <DetectSpaces attribute="Normal Text" context="#pop!BuiltinGetoptsOpt"/>
+ <LineContinue attribute="Escape" context="#stay"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop#pop" name="BuiltinGetoptsOpt" fallthroughContext="#pop!BuiltinGetoptsOpt2">
+ <DetectChar context="#pop#pop" char="#" lookAhead="1"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="BuiltinGetoptsOpt2" fallthroughContext="#pop!NormalOption">
+ <DetectChar attribute="Operator" context="#stay" char=":"/>
+ <DetectIdentifier attribute="Normal Text" context="#stay" />
+ <DetectSpaces attribute="Normal Text" context="#pop!BuiltinGetoptsVar"/>
+ <AnyChar context="#pop" String="&wordseps;`" lookAhead="1"/>
+ <IncludeRules context="FindWord"/>
+ <DetectChar context="NormalMaybeBraceExpansion" char="{" lookAhead="1"/>
+ <AnyChar attribute="Normal Text" context="#stay" String="/%.0123456789"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="BuiltinGetoptsVar" fallthroughContext="#pop!CommandArgs">
+ <DetectIdentifier attribute="Variable" context="#pop!CommandArgs"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="BuiltinLet" fallthroughContext="#pop!CommandArgs">
+ <DetectSpaces attribute="Normal Text" context="#pop!BuiltinLetArgs"/>
+ <LineContinue attribute="Escape" context="#stay"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="BuiltinLetArgs" fallthroughContext="BuiltinLetArg">
+ <AnyChar context="BuiltinLetArgsNumber" String="0123456789" lookAhead="1"/>
+ <IncludeRules context="CommandArgs"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="BuiltinLetArgsNumber" fallthroughContext="#pop!BuiltinLetArg">
+ <IncludeRules context="FindRedirection"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop#pop" name="BuiltinLetArg" fallthroughContext="#pop!BuiltinLetExpr">
+ <DetectChar context="#pop#pop" char="#" lookAhead="1"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="BuiltinLetExpr" fallthroughContext="#pop!NormalOption">
+ <DetectIdentifier attribute="Variable" context="#stay" />
+ <AnyChar context="#pop" String="&wordseps;`" lookAhead="1"/>
+ <AnyChar attribute="Operator" context="#stay" String="+-/%=^:"/>
+ <AnyChar context="Number" String="0123456789" lookAhead="1"/>
+ <DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/>
+ <IncludeRules context="FindWord"/>
+ <DetectChar attribute="Error" context="#stay" char="#"/>
+ <DetectChar context="NormalMaybeBraceExpansion" char="{" lookAhead="1"/>
</context>
<!-- ProcessSubst handles <(command) and >(command) -->
- <context attribute="Normal Text" lineEndContext="#stay" name="ProcessSubst">
- <DetectChar attribute="Redirection" context="#pop" char=")" />
- <IncludeRules context="FindCommentsParen" />
- <IncludeRules context="FindCommands" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindSubstitutions" />
- <IncludeRules context="FindOthers" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="ProcessSubst" fallthroughContext="Command">
+ <DetectChar attribute="Redirection" context="#pop" char=")"/>
+ <IncludeRules context="Start"/>
</context>
<!-- StringSQ consumes anything till ' -->
<context attribute="String SingleQ" lineEndContext="#stay" name="StringSQ">
- <DetectChar attribute="String SingleQ" context="#pop" char="'" />
+ <DetectSpaces attribute="String SingleQ"/>
+ <DetectIdentifier attribute="String SingleQ"/>
+ <DetectChar attribute="String SingleQ" context="#pop" char="'"/>
</context>
<!-- StringDQ consumes anything till ", substitutes vars and expressions -->
<context attribute="String DoubleQ" lineEndContext="#stay" name="StringDQ">
- <DetectChar attribute="String DoubleQ" context="#pop" char="&quot;" />
- <RegExpr attribute="String Escape" context="#stay" String="\\[`&quot;\\$\n]" />
- <IncludeRules context="FindSubstitutions" />
+ <DetectSpaces attribute="String DoubleQ"/>
+ <DetectIdentifier attribute="String DoubleQ"/>
+ <DetectChar attribute="String DoubleQ" context="#pop" char="&quot;"/>
+ <DetectChar context="StringDQEscape" char="\" lookAhead="1"/>
+ <DetectChar context="StringDQDispatchVariables" char="$" lookAhead="1"/>
+ <DetectChar attribute="Backquote" context="RegularBackq" char="`"/>
+ </context>
+ <context attribute="String DoubleQ" lineEndContext="#stay" name="StringDQDispatchVariables">
+ <IncludeRules context="DispatchSubstVariables"/>
+ <IncludeRules context="DispatchVarnameVariables"/>
+ <DetectChar attribute="String DoubleQ" context="#pop" char="$"/>
+ </context>
+ <context attribute="String DoubleQ" lineEndContext="#pop" name="StringDQEscape">
+ <Detect2Chars attribute="String Escape" context="#pop" char="\" char1="&quot;"/>
+ <Detect2Chars attribute="String Escape" context="#pop" char="\" char1="\"/>
+ <Detect2Chars attribute="String Escape" context="#pop" char="\" char1="`"/>
+ <Detect2Chars attribute="String Escape" context="#pop" char="\" char1="$"/>
+ <LineContinue attribute="String Escape" context="#pop"/>
+ <DetectChar attribute="String DoubleQ" context="#pop" char="\"/>
+ </context>
+
+ <!-- RegularBackq consumes anything till ` -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="RegularBackq" fallthroughContext="Command">
+ <DetectChar attribute="Backquote" context="#pop" char="`"/>
+ <DetectChar attribute="Comment" context="CommentBackq" char="#"/>
+ <IncludeRules context="Start"/>
</context>
<!-- StringEsc eats till ', but escaping many characters -->
<context attribute="String SingleQ" lineEndContext="#stay" name="StringEsc">
- <DetectChar attribute="String SingleQ" context="#pop" char="'" />
- <RegExpr attribute="String Escape" context="#stay" String="\\[abefnrtv\\']" />
- <RegExpr attribute="String Escape" context="#stay" String="\\([0-7]{1,3}|x[A-Fa-f0-9]{1,2}|c.)" />
+ <DetectSpaces attribute="String SingleQ"/>
+ <DetectIdentifier attribute="String SingleQ"/>
+ <DetectChar attribute="String SingleQ" context="#pop" char="'"/>
+ <RegExpr attribute="String Escape" context="#stay" String="\\(?:[abefnrtv\\']|[0-7]{1,3}|x[A-Fa-f0-9]{1,2}|c.)"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="FindWord">
+ <IncludeRules context="FindStrings"/>
+ <DetectChar context="RegularVariable" char="$" lookAhead="1"/>
+ <DetectChar attribute="Backquote" context="RegularBackq" char="`"/>
+ <DetectChar context="AssumeEscape" char="\" lookAhead="1"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="RegularVariable">
+ <IncludeRules context="DispatchVariables"/>
+ <DetectChar attribute="Normal Text" context="#pop" char="$"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="FindStrings">
+ <DetectChar attribute="String SingleQ" context="StringSQ" char="'"/>
+ <DetectChar attribute="String DoubleQ" context="StringDQ" char="&quot;"/>
+ </context>
+
+ <!-- SubstCommand is called after a $( is encountered -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="SubstCommand" fallthroughContext="Command">
+ <DetectChar attribute="Parameter Expansion" context="#pop" char=")" endRegion="subshell"/>
+ <IncludeRules context="Start"/>
</context>
- <!-- VarBrace is called as soon as ${xxx is encoutered -->
- <context attribute="Error" lineEndContext="#stay" name="VarBrace">
- <DetectChar attribute="Variable" context="#pop" char="}" />
- <DetectChar attribute="Variable" context="Subscript" char="[" />
- <RegExpr attribute="Variable" context="VarAlt" String="(:?[-=?+@]|##?|%%?|\^\^?|,,?)" />
- <RegExpr attribute="Variable" context="VarSubst" String="//?" />
- <DetectChar attribute="Variable" context="VarSub" char=":" />
+ <!-- VarBraceStart is called as soon as ${ is encoutered -->
+ <context attribute="Variable" lineEndContext="#pop!VarBrace" name="VarBraceStart" fallthroughContext="#pop!VarBrace">
+ <StringDetect context="#pop!VarBrace" String="!}" lookAhead="1"/>
+ <DetectChar attribute="Parameter Expansion Operator" context="#pop!VarBracePrefix" char="!"/>
+ <DetectChar attribute="Parameter Expansion Operator" context="#pop!VarBrace" char="#"/>
</context>
- <!-- VarAlt is to handle default/alternate/etc values of variables -->
- <context attribute="Normal Text" lineEndContext="#stay" name="VarAlt">
- <DetectChar attribute="Variable" context="#pop#pop" char="}" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindSubstitutions" />
+ <!-- VarBracePrefix called as soon as ${! is encoutered -->
+ <context attribute="Variable" lineEndContext="#pop" name="VarBracePrefix">
+ <DetectIdentifier attribute="Variable" context="#pop!VarBracePrefixSuffix"/>
+ <Int attribute="Variable" context="#pop!VarBracePrefixSuffix"/>
+ <AnyChar attribute="Parameter Expansion Operator" context="#pop!VarBracePrefixSharp" String="@*#"/>
+ <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/>
+ </context>
+ <context attribute="Variable" lineEndContext="#pop" name="VarBracePrefixSuffix" fallthroughContext="#pop!VarError">
+ <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/>
+ <AnyChar attribute="Parameter Expansion Operator" context="#stay" String="@*"/>
+ <StringDetect attribute="Parameter Expansion Operator" context="#stay" String="[@]"/>
+ <StringDetect attribute="Parameter Expansion Operator" context="#stay" String="[*]"/>
+ </context>
+ <context attribute="Variable" lineEndContext="#pop" name="VarBracePrefixSharp" fallthroughContext="#pop!VarError">
+ <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/>
+ <DetectChar attribute="Parameter Expansion Operator" char="#"/>
</context>
- <!-- VarSubst is to handle substitutions on variables -->
- <context attribute="Normal Text" lineEndContext="#stay" name="VarSubst">
- <DetectChar attribute="Variable" context="#pop#pop" char="}" />
- <DetectChar attribute="Variable" context="VarSubst2" char="/" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindSubstitutions" />
+ <!-- VarBrace is called as soon as ${ or ${# are encoutered -->
+ <context attribute="Variable" lineEndContext="#stay" name="VarBrace" fallthroughContext="#pop!VarError">
+ <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/>
+ <DetectIdentifier attribute="Variable" context="#pop!CheckVarAlt"/>
+ <AnyChar attribute="Variable" context="#pop!CheckVarAlt" String="*@?$!-"/>
+ <Int attribute="Variable" context="#pop!CheckVarAlt" additionalDeliminator=":#%^,/@{}"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="VarSubst2">
- <DetectChar attribute="Variable" context="#pop#pop#pop" char="}" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindSubstitutions" />
+ <context attribute="Error" lineEndContext="#stay" name="VarError">
+ <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="CheckVarAlt" fallthroughContext="#pop!VarError">
+ <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/>
+ <StringDetect attribute="Parameter Expansion Operator" context="#stay" String="[@]"/>
+ <StringDetect attribute="Parameter Expansion Operator" context="#stay" String="[*]"/>
+ <DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/>
+ <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char=":" char1="-"/>
+ <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char=":" char1="="/>
+ <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char=":" char1="?"/>
+ <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char=":" char1="+"/>
+ <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char="#" char1="#"/>
+ <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char="%" char1="%"/>
+ <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternatePatternValue" char="^" char1="^"/>
+ <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternatePatternValue" char="," char1=","/>
+ <DetectChar attribute="Parameter Expansion Operator" context="#pop!VarSub" char=":"/>
+ <DetectChar attribute="Parameter Expansion Operator" context="#pop!VarSubst" char="/"/>
+ <AnyChar attribute="Parameter Expansion Operator" context="#pop!AlternateValue" String="-+=?#%"/>
+ <AnyChar attribute="Parameter Expansion Operator" context="#pop!AlternatePatternValue" String="^,"/>
+ <DetectChar attribute="Parameter Expansion Operator" context="#pop!VarTransformation" char="@"/>
</context>
- <!-- VarSub is to substrings of variables -->
- <context attribute="Error" lineEndContext="#stay" name="VarSub">
- <DetectSpaces attribute="Variable" context="#stay" />
- <DetectChar attribute="Variable" context="VarSub2" char=":" />
- <DetectChar attribute="Variable" context="#pop#pop" char="}" />
- <RegExpr attribute="Variable" context="#stay" String="&varname;" />
- <RegExpr attribute="Variable" context="#stay" String="([\-\+]\s*)?[0-9]+\s*(?=[:}])" />
- <IncludeRules context="FindSubstitutions" />
+ <!-- called as soon as ${xxx: is encoutered -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="VarSub">
+ <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/>
+ <!-- <Int> doesn't match :3 because : is a weakDeliminator -->
+ <AnyChar attribute="Decimal" String="0123456789"/>
+ <DetectChar attribute="Parameter Expansion Operator" context="#stay" char=":"/>
+ <DetectChar context="VarVariables" char="$" lookAhead="1"/>
+ <IncludeRules context="FindStrings"/>
+ <DetectChar attribute="Backquote" context="RegularBackq" char="`"/>
+ <DetectChar context="AssumeEscape" char="\" lookAhead="1"/>
</context>
- <context attribute="Error" lineEndContext="#stay" name="VarSub2">
- <DetectSpaces attribute="Variable" context="#stay" />
- <DetectChar attribute="Variable" context="#pop#pop#pop" char="}" />
- <RegExpr attribute="Variable" context="#stay" String="&varname;" />
- <RegExpr attribute="Variable" context="#stay" String="([\-\+]\s*)?[0-9]+\s*(?=[:}])" />
- <IncludeRules context="FindSubstitutions" />
+ <context attribute="Command" lineEndContext="#pop" name="VarVariables">
+ <IncludeRules context="DispatchVariables"/>
+ <DetectChar attribute="Error" context="#pop" char="$"/>
</context>
+ <!-- called as soon as ${xxx:- ${xxx:= ${xxx:? ${xxx:+ ${xxx# ${xxx% and ${xxx are encoutered -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="AlternateValue">
+ <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/>
+ <IncludeRules context="FindWord"/>
+ <IncludeRules context="FindPathThenPopInAlternateValue"/>
+ <DetectIdentifier attribute="Normal Text"/>
+ </context>
- <!-- SubstFile is called after a <( or >( is encoutered -->
- <context attribute="Normal Text" lineEndContext="#stay" name="SubstFile">
- <DetectChar attribute="Redirection" context="#pop" char=")" />
- <IncludeRules context="FindCommentsParen" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindSubstitutions" />
- <IncludeRules context="FindOthers" />
+ <!-- called as soon as ${xxx^ are ${xxx, are encoutered -->
+ <context attribute="Pattern" lineEndContext="#stay" name="AlternatePatternValue">
+ <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/>
+ <IncludeRules context="FindWord"/>
+ <IncludeRules context="FindPattern"/>
+ <DetectIdentifier attribute="Pattern"/>
</context>
- <!-- SubstCommand is called after a $( is encountered -->
- <context attribute="Normal Text" lineEndContext="#stay" name="SubstCommand">
- <DetectChar attribute="Variable" context="#pop" char=")" />
- <IncludeRules context="FindCommentsParen" />
- <IncludeRules context="FindCommands" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindSubstitutions" />
- <IncludeRules context="FindOthers" />
+ <!-- called as soon as ${xxx/ is encoutered -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="VarSubst" fallthroughContext="#pop!VarSubstPat">
+ <AnyChar attribute="Parameter Expansion Operator" context="#pop!VarSubstPat" String="/#%"/>
+ </context>
+ <context attribute="Pattern" lineEndContext="#stay" name="VarSubstPat">
+ <DetectChar attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char="/"/>
+ <IncludeRules context="AlternatePatternValue"/>
</context>
- <!-- SubstBackq is called when a backquote is encountered -->
- <context attribute="Normal Text" lineEndContext="#stay" name="SubstBackq">
- <DetectChar attribute="Backquote" context="#pop" char="`" />
- <IncludeRules context="FindCommentsBackq" />
- <IncludeRules context="FindCommandsBackq" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindSubstitutions" />
- <IncludeRules context="FindOthers" />
+ <!-- called as soon as ${xxx@ is encoutered -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="VarTransformation" fallthroughContext="#pop!VarError">
+ <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/>
+ <AnyChar attribute="Parameter Expansion" context="#stay" String="UuLQEPAKa"/>
</context>
- <!-- Case is called after the case keyword is encoutered. We handle this because of
- the lonely closing parentheses that would otherwise disturb the expr matching -->
- <context attribute="Normal Text" lineEndContext="#stay" name="Case">
- <RegExpr attribute="Keyword" context="CaseIn" String="\sin\b" />
- <IncludeRules context="FindMost" />
+ <context attribute="Escape" lineEndContext="#pop" name="BraceExpansion">
+ <DetectChar attribute="Escape" context="#pop!BraceExpansion2" char="{"/>
+ </context>
+ <context attribute="Escape" lineEndContext="#pop" name="BraceExpansion2">
+ <DetectChar attribute="Operator" context="#stay" char=","/>
+ <DetectChar attribute="Escape" context="#pop" char="}"/>
+ <DetectChar context="EscapeMaybeBraceExpansion" char="{" lookAhead="1"/>
+ <DetectChar context="AssumeEscape" char="\" lookAhead="1"/>
+ <DetectChar attribute="Backquote" context="CommandBackq" char="`"/>
+ <DetectChar context="BraceExpansionVariables" char="$" lookAhead="1"/>
+ <IncludeRules context="FindStrings"/>
+ <IncludeRules context="FindPattern"/>
+ <DetectIdentifier attribute="Escape"/>
+ </context>
+ <context attribute="Escape" lineEndContext="#pop" name="EscapeMaybeBraceExpansion">
+ <IncludeRules context="DispatchBraceExpansion"/>
+ <DetectChar attribute="Escape" context="#pop!BraceExpansion2" char="{"/>
+ </context>
+ <context attribute="Escape" lineEndContext="#pop" name="BraceExpansionVariables">
+ <IncludeRules context="DispatchVariables"/>
+ <DetectChar attribute="Escape" context="#pop" char="$"/>
</context>
- <!-- CaseIn is called when the construct 'case ... in' has been found. -->
- <context attribute="Normal Text" lineEndContext="#stay" name="CaseIn">
- <RegExpr attribute="Keyword" context="#pop#pop" String="\besac(?=$|[\s;)])" endRegion="case" />
- <DetectChar attribute="Keyword" context="CaseExpr" char=")" beginRegion="caseexpr" />
- <AnyChar attribute="Keyword" context="#stay" String="(|" />
- <IncludeRules context="FindMost" />
+ <context attribute="Normal Text" lineEndContext="#pop" name="SequenceExpression">
+ <AnyChar attribute="Decimal" context="#stay" String="0123456789-+"/>
+ <Detect2Chars attribute="Escape" context="#stay" char="." char1="."/>
+ <DetectChar attribute="Escape" context="#pop" char="}"/>
+ </context>
+
+<!-- ====== These are the contexts that can be branched to ======= -->
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParenOrSubShell">
+ <RegExpr attribute="Keyword" context="#pop!SubShell" String="\((?=&arithmetic_as_subshell;)|" beginRegion="subshell"/>
+ <Detect2Chars attribute="Keyword" context="#pop!ExprDblParen" char="(" char1="(" beginRegion="expression"/>
+ </context>
+ <!-- ExprDblParen consumes an expression started in command mode till )) -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParen">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <Detect2Chars attribute="Keyword" context="#pop" char=")" char1=")" endRegion="expression"/>
+ <IncludeRules context="FindExprDblParen"/>
+ <!-- ((cmd
+ ) # jump to SubShell context -->
+ <DetectChar attribute="Keyword" context="#pop!SubShell" char=")" endRegion="expression" beginRegion="subshell"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="FindExprDblParen">
+ <Detect2Chars attribute="Control" context="#stay" char="&amp;" char1="&amp;"/>
+ <Detect2Chars attribute="Control" context="#stay" char="|" char1="|"/>
+ <AnyChar attribute="Operator" context="#stay" String="+-!~*/%&lt;>=&amp;^|?:"/>
+ <AnyChar context="Number" String="0123456789" lookAhead="1"/>
+ <DetectChar attribute="Control" context="#stay" char=","/>
+ <DetectChar attribute="Normal Text" context="ExprSubDblParen" char="("/>
+ <DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/>
+ <IncludeRules context="FindWord"/>
+ <DetectChar attribute="Error" context="#stay" char="#"/>
+ <DetectChar context="MaybeArithmeticBrace" char="{" lookAhead="1"/>
+ <DetectIdentifier attribute="Variable" context="#stay"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprSubDblParen">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ <IncludeRules context="FindExprDblParen"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="MaybeArithmeticBrace">
+ <IncludeRules context="DispatchBraceExpansion"/>
+ <DetectChar attribute="Error" context="#pop" char="{"/>
</context>
- <!-- CaseExpr eats shell input till ;; -->
- <context attribute="Normal Text" lineEndContext="#stay" name="CaseExpr">
- <Detect2Chars attribute="Keyword" context="#pop" char=";" char1=";" endRegion="caseexpr" />
- <RegExpr attribute="Keyword" context="#pop" String="esac(?=$|[\s;)])" lookAhead="true" firstNonSpace="true" endRegion="caseexpr"/>
- <IncludeRules context="FindAll" />
+ <context attribute="Decimal" lineEndContext="#pop" name="Number">
+ <HlCHex attribute="Hex" context="#pop" additionalDeliminator="&weakDeliminatorSymbols;"/>
+ <HlCOct attribute="Octal" context="#pop!NumberError" additionalDeliminator="&weakDeliminatorSymbols;"/>
+ <RegExpr attribute="Base" context="#pop!BaseN" String="[1-9][0-9]*#"/>
+ <DetectChar attribute="Decimal" context="#pop!NumberError" char="0"/>
+ <Int attribute="Decimal" context="#pop" additionalDeliminator="&weakDeliminatorSymbols;"/>
+ </context>
+ <context attribute="BaseN" lineEndContext="#pop" name="BaseN" fallthroughContext="#pop">
+ <RegExpr attribute="BaseN" context="#pop" String="[0-9a-zA-Z@_]+"/>
+ </context>
+ <context attribute="Error" lineEndContext="#pop" name="NumberError" fallthroughContext="#pop">
+ <Int attribute="Error" context="#pop" additionalDeliminator="0123456789"/>
</context>
- <!-- HereDoc consumes Here-documents. It is called at the beginning of the "<<" construct. -->
- <context attribute="Normal Text" lineEndContext="#stay" name="HereDoc">
- <RegExpr attribute="Redirection" context="HereDocIQ" String="(&lt;&lt;-\s*&quot;(&word;)&quot;)" lookAhead="true" />
- <RegExpr attribute="Redirection" context="HereDocIQ" String="(&lt;&lt;-\s*'(&word;)')" lookAhead="true" />
- <RegExpr attribute="Redirection" context="HereDocIQ" String="(&lt;&lt;-\s*\\(&word;))" lookAhead="true" />
- <RegExpr attribute="Redirection" context="HereDocINQ" String="(&lt;&lt;-\s*(&word;))" lookAhead="true" />
- <RegExpr attribute="Redirection" context="HereDocQ" String="(&lt;&lt;\s*&quot;(&word;)&quot;)" lookAhead="true" />
- <RegExpr attribute="Redirection" context="HereDocQ" String="(&lt;&lt;\s*'(&word;)')" lookAhead="true" />
- <RegExpr attribute="Redirection" context="HereDocQ" String="(&lt;&lt;\s*\\(&word;))" lookAhead="true" />
- <RegExpr attribute="Redirection" context="HereDocNQ" String="(&lt;&lt;\s*(&word;))" lookAhead="true" />
- <Detect2Chars attribute="Redirection" context="#pop" char="&lt;" char1="&lt;" /><!-- always met -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParenSubstOrSubstCommand">
+ <RegExpr attribute="Parameter Expansion" context="#pop!SubstCommand" String="\$\((?=&arithmetic_as_subshell;)|" beginRegion="subshell"/>
+ <StringDetect attribute="Parameter Expansion" context="#pop!ExprDblParenSubst" String="$((" beginRegion="expression"/>
+ </context>
+ <!-- ExprDblParenSubst like ExprDblParen but matches )) as Variable -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParenSubst">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <Detect2Chars attribute="Parameter Expansion" context="#pop" char=")" char1=")" endRegion="expression"/>
+ <IncludeRules context="FindExprDblParen"/>
+ <!-- $((cmd
+ ) # jump to SubstCommand context -->
+ <DetectChar attribute="Parameter Expansion" context="#pop!SubstCommand" char=")" endRegion="expression" beginRegion="subshell"/>
</context>
- <context attribute="Normal Text" lineEndContext="#pop" name="HereDocRemainder">
- <IncludeRules context="FindAll" />
+ <!-- ExprBracket consumes an expression till ] -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracket" fallthroughContext="#pop!ExprBracketNot">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <IncludeRules context="FindExprBracketEnd"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="HereDocQ" dynamic="true">
- <RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
- <RegExpr attribute="Redirection" context="#pop#pop" String="^%2\b" dynamic="true" column="0"/>
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketNot" fallthroughContext="#pop!ExprBracketParam1">
+ <DetectSpaces attribute="Normal Text" context="#pop!ExprBracketParam1"/>
+ <Detect2Chars attribute="Expression" context="ExprBracketTestMaybeNot" char="!" char1=" " lookAhead="1"/>
+ <Detect2Chars attribute="Expression" context="ExprBracketTestMaybeNot" char="!" char1="&tab;" lookAhead="1"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="ExprBracketTestMaybeNot">
+ <DetectChar attribute="Expression" context="#pop" char="!"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="HereDocNQ" dynamic="true">
- <RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
- <RegExpr attribute="Redirection" context="#pop#pop" String="^%2\b" dynamic="true" column="0"/>
- <IncludeRules context="FindSubstitutions" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketParam1" fallthroughContext="ExprBracketValue">
+ <DetectSpaces attribute="Normal Text" context="#pop!ExprBracketParam2"/>
+ <DetectChar context="TestMaybeUnary" char="-" lookAhead="1"/>
+ <IncludeRules context="FindExprBracketEnd"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="HereDocIQ" dynamic="true">
- <RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
- <RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%2\b" dynamic="true" column="0"/>
+ <context attribute="Normal Text" lineEndContext="#pop" name="ExprBracketValue">
+ <AnyChar attribute="Error" context="#stay" String="&symbolseps;"/>
+ <AnyChar context="#pop" String=" &tab;" lookAhead="1"/>
+ <IncludeRules context="FindWord"/>
+ <DetectChar context="NormalMaybeBraceExpansion" char="{" lookAhead="1"/>
+ <IncludeRules context="FindNormalText"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketParam2" fallthroughContext="ExprBracketValue">
+ <DetectSpaces attribute="Normal Text" context="#pop!ExprBracketParam3"/>
+ <AnyChar context="TestMaybeBinary" String="-=!" lookAhead="1"/>
+ <IncludeRules context="FindExprBracketEnd"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="ExprBracketFinal" name="ExprBracketParam3" fallthroughContext="ExprBracketValue">
+ <DetectSpaces attribute="Normal Text" context="#pop!ExprBracketFinal"/>
+ <IncludeRules context="FindExprBracketEnd"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketFinal" fallthroughContext="ExprBracketValue">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <IncludeRules context="FindExprBracketEnd"/>
+ <RegExpr attribute="Expression" context="#pop!ExprBracket" String="-[ao]&eos;"/>
+ <RegExpr attribute="Error" context="#pop" String="(?:[^] &tab;]++|\][^ &tab;])++" endRegion="expression"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="FindExprBracketEnd">
+ <LineContinue attribute="Escape" context="#stay"/>
+ <RegExpr attribute="Builtin" context="#pop" String="\](?=($|[ &tab;;|&amp;&lt;>)]))" endRegion="expression"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeUnary" fallthroughContext="#pop!ExprBracketValue">
+ <RegExpr attribute="Expression" context="#pop#pop!ExprBracketParam2" String="&unary_operators;"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeBinary" fallthroughContext="#pop!ExprBracketValue">
+ <RegExpr attribute="Expression" context="#pop" String="&binary_operators;"/>
+ </context>
+
+
+ <!-- ExprDblBracket consumes an expression till ]] -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracket" fallthroughContext="#pop!ExprDblBracketNot">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <DetectChar attribute="Comment" context="Comment" char="#"/>
+ <IncludeRules context="FindExprDblBracketEnd"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketNot" fallthroughContext="#pop!ExprDblBracketParam1">
+ <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketParam1"/>
+ <DetectChar context="ExprDblBracketTestMaybeNot" char="!" lookAhead="1"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketTestMaybeNot" fallthroughContext="#pop#pop!ExprDblBracketParam1">
+ <RegExpr attribute="Expression" context="#pop" String="!(?=$|[ &tab;(])"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam1" fallthroughContext="ExprDblBracketValueText">
+ <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketParam2"/>
+ <DetectChar context="TestMaybeUnary2" char="-" lookAhead="1"/>
+ <AnyChar attribute="Expression" context="#pop!ExprDblBracketParam3Spe" String="&lt;>"/>
+ <IncludeRules context="FindExprDblBracketEnd"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeUnary2" fallthroughContext="#pop!ExprDblBracketValueText">
+ <RegExpr attribute="Expression" context="#pop!ExprDblBracketUnary" String="&unary_operators;(?!\s+(?:=~|&binary_operators;))"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketUnary">
+ <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketValueText"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValueText" fallthroughContext="#pop!ExprDblBracketValueText2">
+ <Detect2Chars context="#pop!ExprDblBracketValueTextMaybeEnd" char="]" char1="]" lookAhead="1"/>
+ <DetectChar attribute="Error" context="#pop!Comment" char="#"/>
+ <IncludeRules context="FindExprDblBracketValueTextPath"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="FindExprDblBracketValueTextPath">
+ <RegExpr context="#pop!ExprDblBracketValueTextPath" String="&path_with_sep;|" lookAhead="1"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValueTextMaybeEnd">
+ <RegExpr attribute="Keyword" context="#pop#pop" String="&dblbracket_close;" endRegion="expression"/>
+ <IncludeRules context="FindExprDblBracketValueTextPath"/>
+ <Detect2Chars context="#pop!ExprDblBracketValueText2" char="]" char1="]" lookAhead="1"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValueText2">
+ <DetectIdentifier/>
+ <AnyChar String="*?+!@~^:%+-/,"/>
+ <IncludeRules context="ExprDblBracketValueCommon"/>
+ </context>
+ <context attribute="Path" lineEndContext="#pop" name="ExprDblBracketValueTextPath">
+ <IncludeRules context="ExprDblBracketValueText2"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValuePattern" fallthroughContext="#pop!ExprDblBracketValuePattern2">
+ <RegExpr context="PathThenPop" String="&path_with_sep;|" lookAhead="1"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValuePattern2">
+ <DetectIdentifier attribute="Normal Text"/>
+ <IncludeRules context="ExprDblBracketValueCommon"/>
+ <IncludeRules context="FindExprDblBracketValueExtGlob"/>
+ <AnyChar attribute="Glob" String="?*"/>
+ </context>
+ <context attribute="Glob" lineEndContext="#stay" name="FindExprDblBracketValueExtGlob">
+ <Detect2Chars attribute="Glob" context="ExprDblBracketValueExtGlob" char="?" char1="("/>
+ <Detect2Chars attribute="Glob" context="ExprDblBracketValueExtGlob" char="*" char1="("/>
+ <Detect2Chars attribute="Glob" context="ExprDblBracketValueExtGlob" char="+" char1="("/>
+ <Detect2Chars attribute="Glob" context="ExprDblBracketValueExtGlob" char="@" char1="("/>
+ <Detect2Chars attribute="Glob" context="ExprDblBracketValueExtGlob" char="!" char1="("/>
+ <DetectChar context="ExprDblBracketValueMaybeGlobAny" char="[" lookAhead="1"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketValueMaybeGlobAny" fallthroughContext="#pop">
+ <IncludeRules context="FindGlobAny"/>
+ <DetectChar attribute="Normal Text" context="#pop" char="["/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop#pop" name="ExprDblBracketValueExtGlob">
+ <DetectIdentifier attribute="Normal Text"/>
+ <DetectChar attribute="Glob" context="#pop" char=")"/>
+ <DetectChar attribute="Normal Text" context="ExprDblBracketValueExtGlobNormal" char="("/>
+ <IncludeRules context="FindExprDblBracketValueExtGlob"/>
+ <AnyChar attribute="Glob" String="|?*"/>
+ <IncludeRules context="FindWord"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop#pop" name="ExprDblBracketValueExtGlobNormal">
+ <DetectIdentifier attribute="Normal Text"/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ <DetectChar attribute="Normal Text" context="ExprDblBracketValueExtGlobNormal" char="("/>
+ <IncludeRules context="FindExprDblBracketValueExtGlob"/>
+ <AnyChar attribute="Glob" String="?*"/>
+ <IncludeRules context="FindWord"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValueCommon">
+ <Detect2Chars context="ExprDblBracketDblParentOrSubValue" char="(" char1="(" lookAhead="1"/>
+ <DetectChar context="ExprDblBracketSubValue" char="(" lookAhead="1"/>
+ <DetectChar attribute="Operator" context="#pop#pop" char=")"/>
+ <Detect2Chars attribute="Control" context="#pop#pop!ExprDblBracket" char="&amp;" char1="&amp;"/>
+ <Detect2Chars attribute="Control" context="#pop#pop!ExprDblBracket" char="|" char1="|"/>
+ <AnyChar attribute="Error" context="#stay" String="|&amp;;"/>
+ <AnyChar context="#pop" String=" &tab;&lt;>" lookAhead="1"/>
+ <IncludeRules context="FindWord"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketSubValue" fallthroughContext="#pop">
+ <DetectChar attribute="Operator" context="ExprDblBracketNot" char="("/>
+ <Detect2Chars context="#pop#pop" char="]" char1="]" lookAhead="1"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketDblParentOrSubValue">
+ <RegExpr context="#pop!ExprDblBracketSubValue" String="\((?=&arithmetic_as_subshell;)|" lookAhead="1"/>
+ <Detect2Chars attribute="Keyword" context="#pop!ExprDblBracketExprDblParen" char="(" char1="(" beginRegion="expression"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketExprDblParen">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <Detect2Chars attribute="Keyword" context="#pop" char=")" char1=")" endRegion="expression"/>
+ <IncludeRules context="FindExprDblParen"/>
+ <!-- ((cmd
+ ) # jump to ExprDblBracketValuePattern context -->
+ <DetectChar attribute="Operator" context="ExprDblBracketValuePattern" char=")" endRegion="expression" beginRegion="subshell"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam2" fallthroughContext="ExprDblBracketValuePattern">
+ <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketParam3"/>
+ <AnyChar context="TestMaybeBinary2" String="-=!" lookAhead="1"/>
+ <AnyChar attribute="Expression" context="#pop!ExprDblBracketParam3Spe" String="&lt;>"/>
+ <IncludeRules context="FindExprDblBracketEnd"/>
+ <DetectChar attribute="Comment" context="Comment" char="#"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeBinary2" fallthroughContext="#pop!ExprDblBracketValuePattern">
+ <IncludeRules context="TestMaybeBinary"/>
+ <RegExpr attribute="Expression" context="#pop!ExprDblBracketRegex" String="=~(?=[ &tab;(])"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam3Spe" fallthroughContext="#pop!ExprDblBracketParam3">
+ <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketParam3"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam3" fallthroughContext="ExprDblBracketValuePattern">
+ <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketFinal"/>
+ <IncludeRules context="FindExprDblBracketEnd"/>
+ <AnyChar attribute="Error" context="#stay" String="&lt;>"/>
+ <DetectChar attribute="Comment" context="Comment" char="#"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketFinal" fallthroughContext="ExprDblBracketValuePattern">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <IncludeRules context="FindExprDblBracketEnd"/>
+ <DetectChar attribute="Comment" context="Comment" char="#"/>
+ <DetectChar attribute="Operator" context="#pop" char=")"/>
+ <RegExpr attribute="Error" context="#pop" String="(?:[^] &tab;]++|\](?:[^]]|\][^ &tab;]))++" endRegion="expression"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="FindExprDblBracketEnd">
+ <LineContinue attribute="Escape" context="#stay"/>
+ <Detect2Chars attribute="Control" context="#pop!ExprDblBracket" char="&amp;" char1="&amp;"/>
+ <Detect2Chars attribute="Control" context="#pop!ExprDblBracket" char="|" char1="|"/>
+ <RegExpr attribute="Keyword" context="#pop" String="&dblbracket_close;" endRegion="expression"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketRegex" fallthroughContext="#pop!ExprDblBracketRegexCheck">
+ <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketRegexCheck"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketRegexCheck" fallthroughContext="#pop#pop!Regex">
+ <DetectChar attribute="Error" context="Comment" char="#"/>
+ </context>
+ <context attribute="Pattern" lineEndContext="#stay" name="Regex">
+ <DetectIdentifier attribute="Pattern"/>
+ <DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketFinal"/>
+ <DetectChar attribute="Operator" context="#pop" char=")"/>
+ <Detect2Chars attribute="Operator" context="RegexChar" char="[" char1="^"/>
+ <DetectChar attribute="Operator" context="RegexChar" char="["/>
+ <IncludeRules context="FindRegex"/>
+ </context>
+ <context attribute="Pattern" lineEndContext="#stay" name="ExprDblBracketSubRegex">
+ <DetectIdentifier attribute="Pattern"/>
+ <DetectSpaces attribute="Pattern" context="#stay"/>
+ <DetectChar attribute="Operator" context="#pop" char=")"/>
+ <Detect2Chars attribute="Operator" context="RegexSubChar" char="[" char1="^"/>
+ <DetectChar attribute="Operator" context="RegexSubChar" char="["/>
+ <IncludeRules context="FindRegex"/>
+ </context>
+
+ <context attribute="Pattern" lineEndContext="#stay" name="FindRegex">
+ <DetectChar attribute="Operator" context="ExprDblBracketSubRegex" char="("/>
+ <DetectChar attribute="Escape" context="RegexEscape" char="\"/>
+ <DetectChar attribute="Parameter Expansion" context="RegexDup" char="{"/>
+ <AnyChar attribute="Glob" context="#stay" String="^?+*.|"/>
+ <IncludeRules context="FindStrings"/>
+ <DetectChar context="RegexDispatchVariables" char="$" lookAhead="1"/>
+ <DetectChar attribute="Backquote" context="RegularBackq" char="`"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="RegexDispatchVariables">
+ <IncludeRules context="DispatchVariables"/>
+ <DetectChar attribute="Operator" context="#pop" char="$"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="RegexEscape">
+ <RegExpr attribute="Escape" context="#pop" String="x[0-9a-fA-F]{1,2}|[0-7]{1,3}|."/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="RegexDup">
+ <Int attribute="Decimal" additionalDeliminator="{"/>
+ <DetectChar attribute="Parameter Expansion Operator" context="#stay" char=","/>
+ <DetectChar attribute="Parameter Expansion" context="#pop" char="}"/>
+ </context>
+
+ <context attribute="Pattern" lineEndContext="#pop" name="RegexSubChar" fallthroughContext="#pop!RegexSubInChar">
+ <AnyChar attribute="Pattern" context="#pop!RegexSubInChar" String="-]"/>
+ </context>
+ <context attribute="Pattern" lineEndContext="#pop" name="RegexSubInChar">
+ <DetectSpaces attribute="Pattern" context="#stay"/>
+ <IncludeRules context="RegexInChar"/>
+ </context>
+
+ <context attribute="Pattern" lineEndContext="#pop" name="RegexChar" fallthroughContext="#pop!RegexInChar">
+ <AnyChar attribute="Pattern" context="#pop!RegexInChar" String="-]"/>
+ </context>
+ <context attribute="Pattern" lineEndContext="#pop" name="RegexInChar">
+ <Detect2Chars context="RegexInCharEnd" char="-" char1="]" lookAhead="1"/>
+ <DetectChar attribute="Operator" context="#stay" char="-"/>
+ <DetectChar attribute="Escape" context="RegexEscape" char="\"/>
+ <DetectChar context="RegexCharClassSelect" char="[" lookAhead="1"/>
+ <DetectChar attribute="Operator" context="#pop" char="]"/>
+ <AnyChar context="#pop" String="() &tab;" lookAhead="1"/>
+ <IncludeRules context="FindStrings"/>
+ </context>
+ <context attribute="Operator" lineEndContext="#stay" name="RegexInCharEnd">
+ <DetectChar attribute="Pattern" context="#stay" char="-"/>
+ <DetectChar attribute="Operator" context="#pop#pop" char="]"/>
+ </context>
+ <context attribute="Parameter Expansion" lineEndContext="#pop#pop#pop" name="RegexCharClassSelect">
+ <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!RegexCharClass" char="[" char1=":"/>
+ <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!RegexCollatingSymbols" char="[" char1="."/>
+ <Detect2Chars attribute="Parameter Expansion Operator" context="#pop!RegexEquivalenceClass" char="[" char1="="/>
+ <DetectChar attribute="Pattern" context="#pop" char="["/>
+ </context>
+
+ <context attribute="Parameter Expansion" lineEndContext="#pop#pop#pop" name="RegexCharClass">
+ <DetectIdentifier attribute="Parameter Expansion"/>
+ <Detect2Chars attribute="Parameter Expansion Operator" context="#pop" char=":" char1="]"/>
+ <DetectChar attribute="Error" context="#pop" char="]"/>
+ </context>
+ <context attribute="Parameter Expansion" lineEndContext="#pop#pop#pop" name="RegexCollatingSymbols">
+ <DetectIdentifier attribute="Parameter Expansion"/>
+ <Detect2Chars attribute="Parameter Expansion Operator" context="#pop" char="." char1="]"/>
+ <DetectChar attribute="Error" context="#pop" char="]"/>
+ </context>
+ <context attribute="Parameter Expansion" lineEndContext="#pop#pop#pop" name="RegexEquivalenceClass">
+ <DetectIdentifier attribute="Parameter Expansion"/>
+ <Detect2Chars attribute="Parameter Expansion Operator" context="#pop" char="=" char1="]"/>
+ <DetectChar attribute="Error" context="#pop" char="]"/>
+ </context>
+
+ <!-- SubShell consumes shell input till ) -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="SubShell" fallthroughContext="Command">
+ <DetectChar attribute="Keyword" context="#pop" char=")" endRegion="subshell"/>
+ <IncludeRules context="Start"/>
+ </context>
+
+ <!-- Assign consumes an expression till EOL or whitespace -->
+ <context attribute="Normal Text" lineEndContext="#pop" name="Assign" fallthroughContext="#pop!Assign2">
+ <DetectChar attribute="Variable" context="#pop!AssignArray" char="("/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="Assign2" fallthroughContext="#pop">
+ <DetectChar attribute="Backquote" context="RegularBackq" char="`"/>
+ <IncludeRules context="NormalOption"/>
+ </context>
+
+ <!-- AssignArray consumes everything till ), marking assignments -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="AssignArray" fallthroughContext="NormalOption">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <DetectChar attribute="Comment" context="Comment" char="#"/>
+ <DetectChar attribute="Variable" context="#pop!Assign2" char=")"/>
+ <DetectChar context="AssignArrayKey" char="[" lookAhead="1"/>
+ <DetectChar attribute="Backquote" context="AssignArrayBackq" char="`"/>
+ <AnyChar attribute="Error" context="#stay" String="&symbolseps;"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="AssignArrayKey" fallthroughContext="#pop">
+ <DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/>
+ <DetectChar attribute="Variable" context="#pop" char="="/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="AssignArrayBackq" fallthroughContext="Command">
+ <DetectChar attribute="Backquote" context="#pop!NormalOption" char="`"/>
+ <DetectChar attribute="Comment" context="CommentBackq" char="#"/>
+ <IncludeRules context="Start"/>
+ </context>
+
+ <!-- Subscript consumes anything till ], marks as Variable -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="Subscript" fallthroughContext="#pop!Subscript2">
+ <DetectChar attribute="Parameter Expansion Operator" context="#pop" char="]"/>
+ <AnyChar attribute="Decimal" context="#stay" String="0123456789"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="Subscript2">
+ <DetectIdentifier attribute="Normal Text"/>
+ <DetectChar attribute="Parameter Expansion Operator" context="#pop" char="]"/>
+ <IncludeRules context="FindWord"/>
+ <IncludeRules context="FindPattern"/>
+ </context>
+
+ <!-- FunctionDef consumes a name, possibly with (), marks as Function -->
+ <context attribute="Function" lineEndContext="#pop" name="FunctionDef" fallthroughContext="#pop">
+ <RegExpr attribute="Function" context="#pop" String="[ &tab;]+&funcname;(?:[ &tab;]*\(\))?"/>
+ </context>
+
+ <!-- Case is called after the case keyword is encoutered. We handle this because of
+ the lonely closing parentheses that would otherwise disturb the expr matching -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="Case">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <WordDetect attribute="Keyword" context="#pop!CaseIn" String="in"/>
+ <IncludeRules context="FindWord"/>
+ <DetectIdentifier attribute="Normal Text" context="#stay"/>
+ </context>
+
+ <!-- CaseIn is called when the construct 'case ... in' has been found. -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="CaseIn" fallthroughContext="CasePattern">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <DetectChar attribute="Keyword" context="CasePattern" char="("/>
+ <DetectChar attribute="Comment" context="Comment" char="#"/>
+ </context>
+ <context attribute="Pattern" lineEndContext="#stay" name="CasePattern">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <DetectChar attribute="Keyword" context="#pop!CaseExpr" char=")" beginRegion="caseexpr"/>
+ <DetectChar context="AssumeEscape" char="\" lookAhead="1"/>
+ <DetectChar attribute="Keyword" context="#stay" char="|"/>
+ <IncludeRules context="FindWord"/>
+ <IncludeRules context="FindPattern"/>
+ <WordDetect attribute="Control Flow" context="#pop#pop" String="esac" endRegion="case"/>
+ <DetectIdentifier attribute="Pattern" context="#stay"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="HereDocINQ" dynamic="true">
- <RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
- <RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%2\b" dynamic="true" column="0"/>
- <IncludeRules context="FindSubstitutions" />
+ <!-- CaseExpr eats shell input till ;; / ;& / ;;& -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="CaseExpr" fallthroughContext="Command">
+ <StringDetect attribute="Control Flow" context="#pop" String=";;&amp;" endRegion="caseexpr"/>
+ <Detect2Chars attribute="Control Flow" context="#pop" char=";" char1=";" endRegion="caseexpr"/>
+ <Detect2Chars attribute="Control Flow" context="#pop" char=";" char1="&amp;" endRegion="caseexpr"/>
+ <WordDetect context="#pop" String="esac" endRegion="caseexpr" lookAhead="1"/>
+ <IncludeRules context="Start"/>
</context>
</contexts>
<itemDatas>
- <itemData name="Normal Text" defStyleNum="dsNormal" />
- <itemData name="Comment" defStyleNum="dsComment" />
- <itemData name="Keyword" defStyleNum="dsKeyword" />
- <itemData name="Control" defStyleNum="dsKeyword" />
- <itemData name="Builtin" defStyleNum="dsBuiltIn" />
- <itemData name="Command" defStyleNum="dsFunction" />
- <itemData name="OtherCommand" defStyleNum="dsExtension" />
- <itemData name="Redirection" defStyleNum="dsOperator" />
- <itemData name="Escape" defStyleNum="dsDataType" />
- <itemData name="String SingleQ" defStyleNum="dsString" />
- <itemData name="String DoubleQ" defStyleNum="dsString" />
- <itemData name="Backquote" defStyleNum="dsKeyword" />
- <itemData name="String Transl." defStyleNum="dsString" />
- <itemData name="String Escape" defStyleNum="dsDataType" />
- <itemData name="Variable" defStyleNum="dsVariable" />
- <itemData name="Expression" defStyleNum="dsOthers" />
- <itemData name="Function" defStyleNum="dsFunction" />
- <itemData name="Path" defStyleNum="dsNormal" />
- <itemData name="Option" defStyleNum="dsNormal" />
- <itemData name="Error" defStyleNum="dsError" />
+ <itemData name="Normal Text" defStyleNum="dsNormal"/>
+ <itemData name="Comment" defStyleNum="dsComment"/>
+ <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
+ <itemData name="Control" defStyleNum="dsKeyword" spellChecking="false"/>
+ <itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="false"/>
+ <itemData name="Builtin" defStyleNum="dsBuiltIn" spellChecking="false"/>
+ <itemData name="Command" defStyleNum="dsFunction" spellChecking="false"/>
+ <itemData name="OtherCommand" defStyleNum="dsExtension" spellChecking="false"/>
+ <itemData name="Redirection" defStyleNum="dsOperator" spellChecking="false"/>
+ <itemData name="Escape" defStyleNum="dsDataType" spellChecking="false"/>
+ <itemData name="String SingleQ" defStyleNum="dsString"/>
+ <itemData name="String DoubleQ" defStyleNum="dsString"/>
+ <itemData name="Here Doc" defStyleNum="dsString"/>
+ <itemData name="Backquote" defStyleNum="dsKeyword" spellChecking="false"/>
+ <itemData name="String Transl." defStyleNum="dsString"/>
+ <itemData name="String Escape" defStyleNum="dsDataType"/>
+ <itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/>
+ <itemData name="Dollar Prefix" defStyleNum="dsVariable" spellChecking="false"/>
+ <itemData name="Expression" defStyleNum="dsOthers" spellChecking="false"/>
+ <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/>
+ <itemData name="Pattern" defStyleNum="dsSpecialString" spellChecking="false"/>
+ <itemData name="Path" defStyleNum="dsNormal" spellChecking="false"/>
+ <itemData name="Glob" defStyleNum="dsPreprocessor" spellChecking="false"/>
+ <itemData name="Option" defStyleNum="dsAttribute" spellChecking="false"/>
+ <itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/>
+ <itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false"/>
+ <itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false"/>
+ <itemData name="Base" defStyleNum="dsDataType" spellChecking="false"/>
+ <itemData name="BaseN" defStyleNum="dsBaseN" spellChecking="false"/>
+ <itemData name="File Descriptor" defStyleNum="dsDecVal" spellChecking="false"/>
+ <itemData name="Parameter Expansion" defStyleNum="dsVariable" spellChecking="false"/>
+ <itemData name="Parameter Expansion Operator" defStyleNum="dsOperator" spellChecking="false"/>
+ <itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/>
+ <itemData name="Error" defStyleNum="dsError" spellChecking="false"/>
+ <itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="#"/>
</comments>
- <keywords casesensitive="1" weakDeliminator="^%#[]$._{}:-/" additionalDeliminator="`"/>
+ <keywords casesensitive="1" weakDeliminator="_&weakDeliminatorSymbols;" additionalDeliminator="`"/>
</general>
</language>
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/cmake.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/cmake.xml
index 6d170e4eaa..256619d3ff 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/cmake.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/cmake.xml
@@ -1,38 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd"
+<!DOCTYPE language
[
- <!ENTITY id_re "[_A-Za-z][\-_0-9A-Za-z]*">
+ <!-- NOTE See https://cmake.org/cmake/help/latest/manual/cmake-language.7.html#variable-references -->
+ <!ENTITY var_ref_re "[/\.\+\-_0-9A-Za-z]+">
+ <!-- NOTE See `cmGeneratorExpression::IsValidTargetName` -->
+ <!ENTITY tgt_name_re "[A-Za-z0-9_\.\+\-]+">
]>
<!--
- This file is part of KDE's kate project.
+ This file is part of KDE's kate project.
- Copyright 2004 Alexander Neundorf (neundorf@kde.org)
- Copyright 2005 Dominik Haumann (dhdev@gmx.de)
- Copyright 2007,2008,2013,2014 Matthew Woehlke (mw_triad@users.sourceforge.net)
- Copyright 2013-2015,2017-2018 Alex Turbov (i.zaufi@gmail.com)
+ SPDX-FileCopyrightText: 2004 Alexander Neundorf <neundorf@kde.org>
+ SPDX-FileCopyrightText: 2005 Dominik Haumann <dhdev@gmx.de>
+ SPDX-FileCopyrightText: 2007, 2008, 2013, 2014 Matthew Woehlke <mw_triad@users.sourceforge.net>
+ SPDX-FileCopyrightText: 2013-2015, 2017-2023 Alex Turbov <i.zaufi@gmail.com>
- **********************************************************************
- * This library is free software; you can redistribute it and/or *
- * modify it under the terms of the GNU Lesser General Public *
- * License as published by the Free Software Foundation; either *
- * version 2 of the License, or (at your option) any later version. *
- * *
- * This library is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this library; if not, write to the *
- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
- * Boston, MA 02110-1301, USA. *
- **********************************************************************
+ SPDX-License-Identifier: LGPL-2.0-or-later
-->
+<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT *****
+ cd data/generators
+ # increase version of cmake.xml.tpl then
+ ./generate-cmake-syntax.py cmake.yaml > ../syntax/cmake.xml
+-->
+
<language
name="CMake"
- version="12"
- kateversion="2.4"
+ version="50"
+ kateversion="5.62"
section="Other"
extensions="CMakeLists.txt;*.cmake;*.cmake.in"
style="CMake"
@@ -43,15 +37,19 @@
<highlighting>
<list name="commands">
+ <item>block</item>
<item>break</item>
<item>cmake_host_system_information</item>
+ <item>cmake_language</item>
<item>cmake_minimum_required</item>
<item>cmake_parse_arguments</item>
+ <item>cmake_path</item>
<item>cmake_policy</item>
<item>configure_file</item>
<item>continue</item>
<item>elseif</item>
<item>else</item>
+ <item>endblock</item>
<item>endforeach</item>
<item>endfunction</item>
<item>endif</item>
@@ -102,6 +100,7 @@
<item>add_test</item>
<item>aux_source_directory</item>
<item>build_command</item>
+ <item>cmake_file_api</item>
<item>create_test_sourcelist</item>
<item>define_property</item>
<item>enable_language</item>
@@ -133,6 +132,7 @@
<item>target_link_directories</item>
<item>target_link_libraries</item>
<item>target_link_options</item>
+ <item>target_precompile_headers</item>
<item>target_sources</item>
<item>try_compile</item>
<item>try_run</item>
@@ -150,14 +150,34 @@
<item>ctest_update</item>
<item>ctest_upload</item>
</list>
-
+ <list name="block_nargs">
+ <item>PROPAGATE</item>
+ <item>SCOPE_FOR</item>
+ </list>
+ <list name="block_sargs">
+ <item>POLICIES</item>
+ <item>VARIABLES</item>
+ </list>
<list name="cmake_host_system_information_nargs">
+ <item>ERROR_VARIABLE</item>
<item>QUERY</item>
<item>RESULT</item>
+ <item>SEPARATOR</item>
+ <item>SUBKEYS</item>
+ <item>VALUE</item>
+ <item>VALUE_NAMES</item>
+ <item>VIEW</item>
+ <item>WINDOWS_REGISTRY</item>
</list>
<list name="cmake_host_system_information_sargs">
+ <item>32</item>
+ <item>32_64</item>
+ <item>64</item>
+ <item>64_32</item>
<item>AVAILABLE_PHYSICAL_MEMORY</item>
<item>AVAILABLE_VIRTUAL_MEMORY</item>
+ <item>BOTH</item>
+ <item>DISTRIB_INFO</item>
<item>FQDN</item>
<item>HAS_AMD_3DNOW</item>
<item>HAS_AMD_3DNOW_PLUS</item>
@@ -170,8 +190,10 @@
<item>HAS_SSE2</item>
<item>HAS_SSE_FP</item>
<item>HAS_SSE_MMX</item>
+ <item>HOST</item>
<item>HOSTNAME</item>
<item>IS_64BIT</item>
+ <item>MSYSTEM_PREFIX</item>
<item>NUMBER_OF_LOGICAL_CORES</item>
<item>NUMBER_OF_PHYSICAL_CORES</item>
<item>OS_NAME</item>
@@ -181,9 +203,29 @@
<item>PROCESSOR_DESCRIPTION</item>
<item>PROCESSOR_NAME</item>
<item>PROCESSOR_SERIAL_NUMBER</item>
+ <item>TARGET</item>
<item>TOTAL_PHYSICAL_MEMORY</item>
<item>TOTAL_VIRTUAL_MEMORY</item>
</list>
+ <list name="cmake_language_nargs">
+ <item>CALL</item>
+ <item>CANCEL_CALL</item>
+ <item>CODE</item>
+ <item>DEFER</item>
+ <item>DIRECTORY</item>
+ <item>EVAL</item>
+ <item>GET_CALL</item>
+ <item>GET_CALL_IDS</item>
+ <item>GET_MESSAGE_LOG_LEVEL</item>
+ <item>ID</item>
+ <item>ID_VAR</item>
+ <item>SET_DEPENDENCY_PROVIDER</item>
+ <item>SUPPORTED_METHODS</item>
+ </list>
+ <list name="cmake_language_sargs">
+ <item>FETCHCONTENT_MAKEAVAILABLE_SERIAL</item>
+ <item>FIND_PACKAGE</item>
+ </list>
<list name="cmake_minimum_required_nargs">
<item>FATAL_ERROR</item>
<item>VERSION</item>
@@ -191,6 +233,50 @@
<list name="cmake_parse_arguments_nargs">
<item>PARSE_ARGV</item>
</list>
+ <list name="cmake_path_nargs">
+ <item>ABSOLUTE_PATH</item>
+ <item>APPEND</item>
+ <item>APPEND_STRING</item>
+ <item>BASE_DIRECTORY</item>
+ <item>COMPARE</item>
+ <item>CONVERT</item>
+ <item>EQUAL</item>
+ <item>EXTENSION</item>
+ <item>FILENAME</item>
+ <item>GET</item>
+ <item>HASH</item>
+ <item>HAS_EXTENSION</item>
+ <item>HAS_FILENAME</item>
+ <item>HAS_PARENT_PATH</item>
+ <item>HAS_RELATIVE_PART</item>
+ <item>HAS_ROOT_DIRECTORY</item>
+ <item>HAS_ROOT_NAME</item>
+ <item>HAS_ROOT_PATH</item>
+ <item>HAS_STEM</item>
+ <item>IS_ABSOLUTE</item>
+ <item>IS_PREFIX</item>
+ <item>IS_RELATIVE</item>
+ <item>LAST_ONLY</item>
+ <item>NATIVE_PATH</item>
+ <item>NORMALIZE</item>
+ <item>NORMAL_PATH</item>
+ <item>NOT_EQUAL</item>
+ <item>OUTPUT_VARIABLE</item>
+ <item>PARENT_PATH</item>
+ <item>RELATIVE_PART</item>
+ <item>RELATIVE_PATH</item>
+ <item>REMOVE_EXTENSION</item>
+ <item>REMOVE_FILENAME</item>
+ <item>REPLACE_EXTENSION</item>
+ <item>REPLACE_FILENAME</item>
+ <item>ROOT_DIRECTORY</item>
+ <item>ROOT_NAME</item>
+ <item>ROOT_PATH</item>
+ <item>SET</item>
+ <item>STEM</item>
+ <item>TO_CMAKE_PATH_LIST</item>
+ <item>TO_NATIVE_PATH_LIST</item>
+ </list>
<list name="cmake_policy_nargs">
<item>GET</item>
<item>POP</item>
@@ -206,7 +292,10 @@
<item>@ONLY</item>
<item>COPYONLY</item>
<item>ESCAPE_QUOTES</item>
+ <item>FILE_PERMISSIONS</item>
<item>NEWLINE_STYLE</item>
+ <item>NO_SOURCE_PERMISSIONS</item>
+ <item>USE_SOURCE_PERMISSIONS</item>
</list>
<list name="configure_file_sargs">
<item>CRLF</item>
@@ -217,6 +306,7 @@
</list>
<list name="elseif_nargs">
<item>AND</item>
+ <item>COMMAND</item>
<item>DEFINED</item>
<item>EQUAL</item>
<item>EXISTS</item>
@@ -232,6 +322,7 @@
<item>MATCHES</item>
<item>NOT</item>
<item>OR</item>
+ <item>PATH_EQUAL</item>
<item>POLICY</item>
<item>STREQUAL</item>
<item>STRGREATER</item>
@@ -248,6 +339,10 @@
</list>
<list name="execute_process_nargs">
<item>COMMAND</item>
+ <item>COMMAND_ECHO</item>
+ <item>COMMAND_ERROR_IS_FATAL</item>
+ <item>ECHO_ERROR_VARIABLE</item>
+ <item>ECHO_OUTPUT_VARIABLE</item>
<item>ENCODING</item>
<item>ERROR_FILE</item>
<item>ERROR_QUIET</item>
@@ -265,29 +360,52 @@
</list>
<list name="execute_process_sargs">
<item>ANSI</item>
+ <item>ANY</item>
<item>AUTO</item>
+ <item>LAST</item>
<item>NONE</item>
<item>OEM</item>
+ <item>STDERR</item>
+ <item>STDOUT</item>
<item>UTF8</item>
</list>
<list name="file_nargs">
+ <item>@ONLY</item>
<item>APPEND</item>
+ <item>ARCHIVE_CREATE</item>
+ <item>ARCHIVE_EXTRACT</item>
+ <item>BASE_DIRECTORY</item>
+ <item>BUNDLE_EXECUTABLE</item>
+ <item>CHMOD</item>
+ <item>CHMOD_RECURSE</item>
+ <item>COMPRESSION</item>
+ <item>COMPRESSION_LEVEL</item>
<item>CONDITION</item>
+ <item>CONFIGURE</item>
<item>CONFIGURE_DEPENDS</item>
<item>CONTENT</item>
<item>COPY</item>
+ <item>COPY_FILE</item>
<item>DESTINATION</item>
+ <item>DIRECTORIES</item>
<item>DIRECTORY</item>
<item>DIRECTORY_PERMISSIONS</item>
<item>DOWNLOAD</item>
<item>ENCODING</item>
+ <item>ESCAPE_QUOTES</item>
<item>EXCLUDE</item>
+ <item>EXECUTABLES</item>
+ <item>EXPAND_TILDE</item>
<item>EXPECTED_HASH</item>
<item>EXPECTED_MD5</item>
+ <item>FILES</item>
<item>FILES_MATCHING</item>
<item>FILE_PERMISSIONS</item>
<item>FOLLOW_SYMLINKS</item>
+ <item>FOLLOW_SYMLINK_CHAIN</item>
+ <item>FORMAT</item>
<item>GENERATE</item>
+ <item>GET_RUNTIME_DEPENDENCIES</item>
<item>GLOB</item>
<item>GLOB_RECURSE</item>
<item>GUARD</item>
@@ -298,26 +416,42 @@
<item>INSTALL</item>
<item>LENGTH_MAXIMUM</item>
<item>LENGTH_MINIMUM</item>
+ <item>LIBRARIES</item>
<item>LIMIT</item>
<item>LIMIT_COUNT</item>
<item>LIMIT_INPUT</item>
<item>LIMIT_OUTPUT</item>
<item>LIST_DIRECTORIES</item>
+ <item>LIST_ONLY</item>
<item>LOCK</item>
<item>LOG</item>
<item>MAKE_DIRECTORY</item>
<item>MD5</item>
+ <item>MODULES</item>
+ <item>MTIME</item>
<item>NETRC</item>
<item>NETRC_FILE</item>
<item>NEWLINE_CONSUME</item>
+ <item>NEWLINE_STYLE</item>
<item>NO_HEX_CONVERSION</item>
+ <item>NO_REPLACE</item>
<item>NO_SOURCE_PERMISSIONS</item>
<item>OFFSET</item>
+ <item>ONLY_IF_DIFFERENT</item>
<item>OUTPUT</item>
<item>PATTERN</item>
<item>PERMISSIONS</item>
+ <item>POST_EXCLUDE_FILES</item>
+ <item>POST_EXCLUDE_REGEXES</item>
+ <item>POST_INCLUDE_FILES</item>
+ <item>POST_INCLUDE_REGEXES</item>
+ <item>PRE_EXCLUDE_REGEXES</item>
+ <item>PRE_INCLUDE_REGEXES</item>
+ <item>RANGE_END</item>
+ <item>RANGE_START</item>
<item>READ</item>
<item>READ_SYMLINK</item>
+ <item>REAL_PATH</item>
<item>REGEX</item>
<item>RELATIVE</item>
<item>RELATIVE_PATH</item>
@@ -325,6 +459,8 @@
<item>REMOVE</item>
<item>REMOVE_RECURSE</item>
<item>RENAME</item>
+ <item>RESOLVED_DEPENDENCIES_VAR</item>
+ <item>RESULT</item>
<item>RESULT_VARIABLE</item>
<item>SHA1</item>
<item>SHA224</item>
@@ -339,6 +475,7 @@
<item>SIZE</item>
<item>STATUS</item>
<item>STRINGS</item>
+ <item>TARGET</item>
<item>TIMEOUT</item>
<item>TIMESTAMP</item>
<item>TLS_CAINFO</item>
@@ -347,19 +484,28 @@
<item>TOUCH_NOCREATE</item>
<item>TO_CMAKE_PATH</item>
<item>TO_NATIVE_PATH</item>
+ <item>UNRESOLVED_DEPENDENCIES_VAR</item>
<item>UPLOAD</item>
<item>USERPWD</item>
<item>USE_SOURCE_PERMISSIONS</item>
<item>UTC</item>
+ <item>VERBOSE</item>
<item>WRITE</item>
</list>
<list name="file_sargs">
+ <item>7zip</item>
+ <item>BZip2</item>
+ <item>CRLF</item>
+ <item>DOS</item>
<item>FILE</item>
<item>FUNCTION</item>
<item>GROUP_EXECUTE</item>
<item>GROUP_READ</item>
<item>GROUP_WRITE</item>
+ <item>GZip</item>
<item>IGNORED</item>
+ <item>LF</item>
+ <item>None</item>
<item>OPTIONAL</item>
<item>OWNER_EXECUTE</item>
<item>OWNER_READ</item>
@@ -368,22 +514,33 @@
<item>REQUIRED</item>
<item>SETGID</item>
<item>SETUID</item>
+ <item>UNIX</item>
<item>UTF-16BE</item>
<item>UTF-16LE</item>
<item>UTF-32B</item>
<item>UTF-32LE</item>
<item>UTF-8</item>
+ <item>WIN32</item>
<item>WORLD_EXECUTE</item>
<item>WORLD_READ</item>
<item>WORLD_WRITE</item>
+ <item>XZ</item>
+ <item>Zstd</item>
+ <item>gnutar</item>
+ <item>pax</item>
+ <item>paxr</item>
+ <item>raw</item>
+ <item>zip</item>
</list>
<list name="find_file_nargs">
<item>CMAKE_FIND_ROOT_PATH_BOTH</item>
<item>DOC</item>
<item>HINTS</item>
<item>NAMES</item>
+ <item>NO_CACHE</item>
<item>NO_CMAKE_ENVIRONMENT_PATH</item>
<item>NO_CMAKE_FIND_ROOT_PATH</item>
+ <item>NO_CMAKE_INSTALL_PREFIX</item>
<item>NO_CMAKE_PATH</item>
<item>NO_CMAKE_SYSTEM_PATH</item>
<item>NO_DEFAULT_PATH</item>
@@ -392,6 +549,18 @@
<item>ONLY_CMAKE_FIND_ROOT_PATH</item>
<item>PATHS</item>
<item>PATH_SUFFIXES</item>
+ <item>REGISTRY_VIEW</item>
+ <item>REQUIRED</item>
+ <item>VALIDATOR</item>
+ </list>
+ <list name="find_file_sargs">
+ <item>32</item>
+ <item>32_64</item>
+ <item>64</item>
+ <item>64_32</item>
+ <item>BOTH</item>
+ <item>HOST</item>
+ <item>TARGET</item>
</list>
<list name="find_library_nargs">
<item>CMAKE_FIND_ROOT_PATH_BOTH</item>
@@ -399,8 +568,10 @@
<item>HINTS</item>
<item>NAMES</item>
<item>NAMES_PER_DIR</item>
+ <item>NO_CACHE</item>
<item>NO_CMAKE_ENVIRONMENT_PATH</item>
<item>NO_CMAKE_FIND_ROOT_PATH</item>
+ <item>NO_CMAKE_INSTALL_PREFIX</item>
<item>NO_CMAKE_PATH</item>
<item>NO_CMAKE_SYSTEM_PATH</item>
<item>NO_DEFAULT_PATH</item>
@@ -409,18 +580,24 @@
<item>ONLY_CMAKE_FIND_ROOT_PATH</item>
<item>PATHS</item>
<item>PATH_SUFFIXES</item>
+ <item>REGISTRY_VIEW</item>
+ <item>REQUIRED</item>
+ <item>VALIDATOR</item>
</list>
<list name="find_package_nargs">
+ <item>BYPASS_PROVIDER</item>
<item>CMAKE_FIND_ROOT_PATH_BOTH</item>
<item>COMPONENTS</item>
<item>CONFIG</item>
<item>CONFIGS</item>
<item>EXACT</item>
+ <item>GLOBAL</item>
<item>HINTS</item>
<item>MODULE</item>
<item>NAMES</item>
<item>NO_CMAKE_ENVIRONMENT_PATH</item>
<item>NO_CMAKE_FIND_ROOT_PATH</item>
+ <item>NO_CMAKE_INSTALL_PREFIX</item>
<item>NO_CMAKE_PACKAGE_REGISTRY</item>
<item>NO_CMAKE_PATH</item>
<item>NO_CMAKE_SYSTEM_PACKAGE_REGISTRY</item>
@@ -435,46 +612,22 @@
<item>PATHS</item>
<item>PATH_SUFFIXES</item>
<item>QUIET</item>
+ <item>REGISTRY_VIEW</item>
<item>REQUIRED</item>
</list>
- <list name="find_path_nargs">
- <item>CMAKE_FIND_ROOT_PATH_BOTH</item>
- <item>DOC</item>
- <item>HINTS</item>
- <item>NAMES</item>
- <item>NO_CMAKE_ENVIRONMENT_PATH</item>
- <item>NO_CMAKE_FIND_ROOT_PATH</item>
- <item>NO_CMAKE_PATH</item>
- <item>NO_CMAKE_SYSTEM_PATH</item>
- <item>NO_DEFAULT_PATH</item>
- <item>NO_PACKAGE_ROOT_PATH</item>
- <item>NO_SYSTEM_ENVIRONMENT_PATH</item>
- <item>ONLY_CMAKE_FIND_ROOT_PATH</item>
- <item>PATHS</item>
- <item>PATH_SUFFIXES</item>
- </list>
- <list name="find_program_nargs">
- <item>CMAKE_FIND_ROOT_PATH_BOTH</item>
- <item>DOC</item>
- <item>HINTS</item>
- <item>NAMES</item>
- <item>NAMES_PER_DIR</item>
- <item>NO_CMAKE_ENVIRONMENT_PATH</item>
- <item>NO_CMAKE_FIND_ROOT_PATH</item>
- <item>NO_CMAKE_PATH</item>
- <item>NO_CMAKE_SYSTEM_PATH</item>
- <item>NO_DEFAULT_PATH</item>
- <item>NO_PACKAGE_ROOT_PATH</item>
- <item>NO_SYSTEM_ENVIRONMENT_PATH</item>
- <item>ONLY_CMAKE_FIND_ROOT_PATH</item>
- <item>PATHS</item>
- <item>PATH_SUFFIXES</item>
- </list>
<list name="foreach_nargs">
<item>IN</item>
<item>ITEMS</item>
<item>LISTS</item>
<item>RANGE</item>
+ <item>ZIP_LISTS</item>
+ </list>
+ <list name="get_cmake_property_sargs">
+ <item>CACHE_VARIABLES</item>
+ <item>COMMANDS</item>
+ <item>COMPONENTS</item>
+ <item>MACROS</item>
+ <item>VARIABLES</item>
</list>
<list name="get_directory_property_nargs">
<item>DEFINITION</item>
@@ -507,40 +660,10 @@
<item>SET</item>
<item>SOURCE</item>
<item>TARGET</item>
+ <item>TARGET_DIRECTORY</item>
<item>TEST</item>
<item>VARIABLE</item>
</list>
- <list name="if_nargs">
- <item>AND</item>
- <item>DEFINED</item>
- <item>EQUAL</item>
- <item>EXISTS</item>
- <item>GREATER</item>
- <item>GREATER_EQUAL</item>
- <item>IN_LIST</item>
- <item>IS_ABSOLUTE</item>
- <item>IS_DIRECTORY</item>
- <item>IS_NEWER_THAN</item>
- <item>IS_SYMLINK</item>
- <item>LESS</item>
- <item>LESS_EQUAL</item>
- <item>MATCHES</item>
- <item>NOT</item>
- <item>OR</item>
- <item>POLICY</item>
- <item>STREQUAL</item>
- <item>STRGREATER</item>
- <item>STRGREATER_EQUAL</item>
- <item>STRLESS</item>
- <item>STRLESS_EQUAL</item>
- <item>TARGET</item>
- <item>TEST</item>
- <item>VERSION_EQUAL</item>
- <item>VERSION_GREATER</item>
- <item>VERSION_GREATER_EQUAL</item>
- <item>VERSION_LESS</item>
- <item>VERSION_LESS_EQUAL</item>
- </list>
<list name="include_nargs">
<item>NO_POLICY_SCOPE</item>
<item>OPTIONAL</item>
@@ -567,6 +690,8 @@
<item>LENGTH</item>
<item>ORDER</item>
<item>OUTPUT_VARIABLE</item>
+ <item>POP_BACK</item>
+ <item>POP_FRONT</item>
<item>PREPEND</item>
<item>REGEX</item>
<item>REMOVE_AT</item>
@@ -585,6 +710,7 @@
<item>DESCENDING</item>
<item>FILE_BASENAME</item>
<item>INSENSITIVE</item>
+ <item>NATURAL</item>
<item>SENSITIVE</item>
<item>STRING</item>
</list>
@@ -602,14 +728,27 @@
</list>
<list name="message_nargs">
<item>AUTHOR_WARNING</item>
+ <item>CHECK_FAIL</item>
+ <item>CHECK_PASS</item>
+ <item>CHECK_START</item>
+ <item>CONFIGURE_LOG</item>
+ <item>DEBUG</item>
<item>DEPRECATION</item>
<item>FATAL_ERROR</item>
+ <item>NOTICE</item>
<item>SEND_ERROR</item>
<item>STATUS</item>
+ <item>TRACE</item>
+ <item>VERBOSE</item>
<item>WARNING</item>
</list>
+ <list name="return_nargs">
+ <item>PROPAGATE</item>
+ </list>
<list name="separate_arguments_nargs">
<item>NATIVE_COMMAND</item>
+ <item>PROGRAM</item>
+ <item>SEPARATE_ARGS</item>
<item>UNIX_COMMAND</item>
<item>WINDOWS_COMMAND</item>
</list>
@@ -626,6 +765,7 @@
<item>PROPERTY</item>
<item>SOURCE</item>
<item>TARGET</item>
+ <item>TARGET_DIRECTORY</item>
<item>TEST</item>
<item>VARIABLE</item>
</list>
@@ -651,12 +791,16 @@
<item>CONCAT</item>
<item>CONFIGURE</item>
<item>EQUAL</item>
+ <item>ERROR_VARIABLE</item>
<item>ESCAPE_QUOTES</item>
<item>FIND</item>
<item>GENEX_STRIP</item>
+ <item>GET</item>
<item>GREATER</item>
<item>GREATER_EQUAL</item>
+ <item>HEX</item>
<item>JOIN</item>
+ <item>JSON</item>
<item>LENGTH</item>
<item>LESS</item>
<item>LESS_EQUAL</item>
@@ -664,6 +808,7 @@
<item>MATCH</item>
<item>MATCHALL</item>
<item>MD5</item>
+ <item>MEMBER</item>
<item>NAME</item>
<item>NAMESPACE</item>
<item>NOTEQUAL</item>
@@ -671,8 +816,11 @@
<item>RANDOM</item>
<item>RANDOM_SEED</item>
<item>REGEX</item>
+ <item>REMOVE</item>
+ <item>REPEAT</item>
<item>REPLACE</item>
<item>REVERSE</item>
+ <item>SET</item>
<item>SHA1</item>
<item>SHA224</item>
<item>SHA256</item>
@@ -696,37 +844,6 @@
<item>CACHE</item>
<item>PARENT_SCOPE</item>
</list>
- <list name="while_nargs">
- <item>AND</item>
- <item>DEFINED</item>
- <item>EQUAL</item>
- <item>EXISTS</item>
- <item>GREATER</item>
- <item>GREATER_EQUAL</item>
- <item>IN_LIST</item>
- <item>IS_ABSOLUTE</item>
- <item>IS_DIRECTORY</item>
- <item>IS_NEWER_THAN</item>
- <item>IS_SYMLINK</item>
- <item>LESS</item>
- <item>LESS_EQUAL</item>
- <item>MATCHES</item>
- <item>NOT</item>
- <item>OR</item>
- <item>POLICY</item>
- <item>STREQUAL</item>
- <item>STRGREATER</item>
- <item>STRGREATER_EQUAL</item>
- <item>STRLESS</item>
- <item>STRLESS_EQUAL</item>
- <item>TARGET</item>
- <item>TEST</item>
- <item>VERSION_EQUAL</item>
- <item>VERSION_GREATER</item>
- <item>VERSION_GREATER_EQUAL</item>
- <item>VERSION_LESS</item>
- <item>VERSION_LESS_EQUAL</item>
- </list>
<list name="add_custom_command_nargs">
<item>APPEND</item>
<item>ARGS</item>
@@ -735,8 +852,11 @@
<item>COMMAND_EXPAND_LISTS</item>
<item>COMMENT</item>
<item>DEPENDS</item>
+ <item>DEPENDS_EXPLICIT_ONLY</item>
<item>DEPFILE</item>
<item>IMPLICIT_DEPENDS</item>
+ <item>JOB_POOL</item>
+ <item>JOB_SERVER_AWARE</item>
<item>MAIN_DEPENDENCY</item>
<item>OUTPUT</item>
<item>POST_BUILD</item>
@@ -757,6 +877,8 @@
<item>DEPENDS</item>
<item>DEPFILE</item>
<item>IMPLICIT_DEPENDS</item>
+ <item>JOB_POOL</item>
+ <item>JOB_SERVER_AWARE</item>
<item>SOURCES</item>
<item>USES_TERMINAL</item>
<item>VERBATIM</item>
@@ -784,17 +906,28 @@
</list>
<list name="add_subdirectory_nargs">
<item>EXCLUDE_FROM_ALL</item>
+ <item>SYSTEM</item>
</list>
<list name="add_test_nargs">
<item>COMMAND</item>
+ <item>COMMAND_EXPAND_LISTS</item>
<item>CONFIGURATIONS</item>
<item>NAME</item>
<item>WORKING_DIRECTORY</item>
</list>
<list name="build_command_nargs">
<item>CONFIGURATION</item>
+ <item>PARALLEL_LEVEL</item>
<item>TARGET</item>
</list>
+ <list name="cmake_file_api_nargs">
+ <item>API_VERSION</item>
+ <item>CACHE</item>
+ <item>CMAKEFILES</item>
+ <item>CODEMODEL</item>
+ <item>QUERY</item>
+ <item>TOOLCHAINS</item>
+ </list>
<list name="create_test_sourcelist_nargs">
<item>EXTRA_INCLUDE</item>
<item>FUNCTION</item>
@@ -806,6 +939,7 @@
<item>FULL_DOCS</item>
<item>GLOBAL</item>
<item>INHERITED</item>
+ <item>INITIALIZE_FROM_VARIABLE</item>
<item>PROPERTY</item>
<item>SOURCE</item>
<item>TEST</item>
@@ -815,10 +949,23 @@
<item>OPTIONAL</item>
</list>
<list name="enable_language_sargs">
+ <item>ASM</item>
+ <item>ASM-ATT</item>
+ <item>ASM_MARMASM</item>
+ <item>ASM_MASM</item>
+ <item>ASM_NASM</item>
<item>C</item>
+ <item>CSharp</item>
+ <item>CUDA</item>
<item>CXX</item>
<item>Fortran</item>
+ <item>HIP</item>
+ <item>ISPC</item>
+ <item>Java</item>
+ <item>OBJC</item>
+ <item>OBJCXX</item>
<item>RC</item>
+ <item>Swift</item>
</list>
<list name="export_nargs">
<item>ANDROID_MK</item>
@@ -829,6 +976,13 @@
<item>NAMESPACE</item>
<item>TARGETS</item>
</list>
+ <list name="get_source_file_property_nargs">
+ <item>DIRECTORY</item>
+ <item>TARGET_DIRECTORY</item>
+ </list>
+ <list name="get_test_property_nargs">
+ <item>DIRECTORY</item>
+ </list>
<list name="include_directories_nargs">
<item>AFTER</item>
<item>BEFORE</item>
@@ -846,6 +1000,7 @@
<item>COMPONENT</item>
<item>CONFIGURATIONS</item>
<item>DESTINATION</item>
+ <item>DIRECTORIES</item>
<item>DIRECTORY</item>
<item>DIRECTORY_PERMISSIONS</item>
<item>EXCLUDE</item>
@@ -857,7 +1012,9 @@
<item>FILES</item>
<item>FILES_MATCHING</item>
<item>FILE_PERMISSIONS</item>
+ <item>FILE_SET</item>
<item>FRAMEWORK</item>
+ <item>IMPORTED_RUNTIME_ARTIFACTS</item>
<item>INCLUDES</item>
<item>LIBRARY</item>
<item>MESSAGE_NEVER</item>
@@ -869,6 +1026,12 @@
<item>OPTIONAL</item>
<item>PATTERN</item>
<item>PERMISSIONS</item>
+ <item>POST_EXCLUDE_FILES</item>
+ <item>POST_EXCLUDE_REGEXES</item>
+ <item>POST_INCLUDE_FILES</item>
+ <item>POST_INCLUDE_REGEXES</item>
+ <item>PRE_EXCLUDE_REGEXES</item>
+ <item>PRE_INCLUDE_REGEXES</item>
<item>PRIVATE_HEADER</item>
<item>PROGRAMS</item>
<item>PUBLIC_HEADER</item>
@@ -876,8 +1039,11 @@
<item>RENAME</item>
<item>RESOURCE</item>
<item>RUNTIME</item>
+ <item>RUNTIME_DEPENDENCIES</item>
+ <item>RUNTIME_DEPENDENCY_SET</item>
<item>SCRIPT</item>
<item>TARGETS</item>
+ <item>TYPE</item>
<item>USE_SOURCE_PERMISSIONS</item>
</list>
<list name="install_sargs">
@@ -897,7 +1063,7 @@
<item>AFTER</item>
<item>BEFORE</item>
</list>
- <list name="link_libraries_nargs">
+ <list name="link_libraries_sargs">
<item>debug</item>
<item>general</item>
<item>optimized</item>
@@ -915,20 +1081,30 @@
</list>
<list name="project_sargs">
<item>ASM</item>
+ <item>ASM-ATT</item>
+ <item>ASM_MASM</item>
+ <item>ASM_NASM</item>
<item>C</item>
+ <item>CSharp</item>
<item>CUDA</item>
<item>CXX</item>
<item>Fortran</item>
+ <item>HIP</item>
+ <item>ISPC</item>
+ <item>Java</item>
<item>NONE</item>
+ <item>OBJC</item>
+ <item>OBJCXX</item>
<item>RC</item>
+ <item>Swift</item>
</list>
<list name="set_source_files_properties_nargs">
+ <item>DIRECTORY</item>
<item>PROPERTIES</item>
- </list>
- <list name="set_target_properties_nargs">
- <item>PROPERTIES</item>
+ <item>TARGET_DIRECTORY</item>
</list>
<list name="set_tests_properties_nargs">
+ <item>DIRECTORY</item>
<item>PROPERTIES</item>
</list>
<list name="source_group_nargs">
@@ -942,19 +1118,23 @@
<item>PRIVATE</item>
<item>PUBLIC</item>
</list>
- <list name="target_compile_features_nargs">
- <item>INTERFACE</item>
- <item>PRIVATE</item>
- <item>PUBLIC</item>
- </list>
<list name="target_compile_features_sargs">
<item>c_function_prototypes</item>
<item>c_restrict</item>
<item>c_static_assert</item>
<item>c_std_11</item>
+ <item>c_std_17</item>
+ <item>c_std_23</item>
<item>c_std_90</item>
<item>c_std_99</item>
<item>c_variadic_macros</item>
+ <item>cuda_std_03</item>
+ <item>cuda_std_11</item>
+ <item>cuda_std_14</item>
+ <item>cuda_std_17</item>
+ <item>cuda_std_20</item>
+ <item>cuda_std_23</item>
+ <item>cuda_std_26</item>
<item>cxx_aggregate_default_initializers</item>
<item>cxx_alias_templates</item>
<item>cxx_alignas</item>
@@ -1005,6 +1185,8 @@
<item>cxx_std_14</item>
<item>cxx_std_17</item>
<item>cxx_std_20</item>
+ <item>cxx_std_23</item>
+ <item>cxx_std_26</item>
<item>cxx_std_98</item>
<item>cxx_strong_enums</item>
<item>cxx_template_template_parameters</item>
@@ -1025,43 +1207,51 @@
<item>PUBLIC</item>
</list>
<list name="target_include_directories_nargs">
+ <item>AFTER</item>
<item>BEFORE</item>
<item>INTERFACE</item>
<item>PRIVATE</item>
<item>PUBLIC</item>
<item>SYSTEM</item>
</list>
- <list name="target_link_directories_nargs">
- <item>BEFORE</item>
- <item>INTERFACE</item>
- <item>PRIVATE</item>
- <item>PUBLIC</item>
- </list>
- <list name="target_link_libraries_nargs">
- <item>INTERFACE</item>
- <item>PRIVATE</item>
- <item>PUBLIC</item>
- </list>
- <list name="target_link_options_nargs">
+ <list name="target_precompile_headers_nargs">
<item>INTERFACE</item>
<item>PRIVATE</item>
<item>PUBLIC</item>
+ <item>REUSE_FROM</item>
</list>
<list name="target_sources_nargs">
+ <item>BASE_DIRS</item>
+ <item>FILES</item>
+ <item>FILE_SET</item>
<item>INTERFACE</item>
<item>PRIVATE</item>
<item>PUBLIC</item>
+ <item>TYPE</item>
+ </list>
+ <list name="target_sources_sargs">
+ <item>CXX_MODULES</item>
+ <item>HEADERS</item>
</list>
<list name="try_compile_nargs">
+ <item>BINARY_DIR</item>
<item>CMAKE_FLAGS</item>
<item>COMPILE_DEFINITIONS</item>
<item>COPY_FILE</item>
<item>COPY_FILE_ERROR</item>
<item>LINK_LIBRARIES</item>
<item>LINK_OPTIONS</item>
+ <item>LOG_DESCRIPTION</item>
+ <item>NO_CACHE</item>
+ <item>NO_LOG</item>
<item>OUTPUT_VARIABLE</item>
- <item>RESULT_VAR</item>
+ <item>PROJECT</item>
<item>SOURCES</item>
+ <item>SOURCE_DIR</item>
+ <item>SOURCE_FROM_CONTENT</item>
+ <item>SOURCE_FROM_FILE</item>
+ <item>SOURCE_FROM_VAR</item>
+ <item>TARGET</item>
</list>
<list name="try_run_nargs">
<item>ARGS</item>
@@ -1069,11 +1259,23 @@
<item>COMPILE_DEFINITIONS</item>
<item>COMPILE_OUTPUT_VARIABLE</item>
<item>COMPILE_RESULT_VAR</item>
+ <item>COPY_FILE</item>
+ <item>COPY_FILE_ERROR</item>
<item>LINK_LIBRARIES</item>
<item>LINK_OPTIONS</item>
+ <item>LOG_DESCRIPTION</item>
+ <item>NO_CACHE</item>
+ <item>NO_LOG</item>
<item>OUTPUT_VARIABLE</item>
+ <item>RUN_OUTPUT_STDERR_VARIABLE</item>
+ <item>RUN_OUTPUT_STDOUT_VARIABLE</item>
<item>RUN_OUTPUT_VARIABLE</item>
<item>RUN_RESULT_VAR</item>
+ <item>SOURCES</item>
+ <item>SOURCE_FROM_CONTENT</item>
+ <item>SOURCE_FROM_FILE</item>
+ <item>SOURCE_FROM_VAR</item>
+ <item>WORKING_DIRECTORY</item>
</list>
<list name="ctest_build_nargs">
<item>APPEND</item>
@@ -1135,6 +1337,7 @@
<item>TRACK</item>
</list>
<list name="ctest_submit_nargs">
+ <item>BUILD_ID</item>
<item>CDASH_UPLOAD</item>
<item>CDASH_UPLOAD_TYPE</item>
<item>FILES</item>
@@ -1144,6 +1347,7 @@
<item>RETRY_COUNT</item>
<item>RETRY_DELAY</item>
<item>RETURN_VALUE</item>
+ <item>SUBMIT_URL</item>
</list>
<list name="ctest_test_nargs">
<item>APPEND</item>
@@ -1159,13 +1363,20 @@
<item>INCLUDE_LABEL</item>
<item>PARALLEL_LEVEL</item>
<item>QUIET</item>
+ <item>REPEAT</item>
<item>RETURN_VALUE</item>
<item>SCHEDULE_RANDOM</item>
<item>START</item>
+ <item>STOP_ON_FAILURE</item>
<item>STOP_TIME</item>
<item>STRIDE</item>
<item>TEST_LOAD</item>
</list>
+ <list name="ctest_test_sargs">
+ <item>AFTER_TIMEOUT</item>
+ <item>UNTIL_FAIL</item>
+ <item>UNTIL_PASS</item>
+ </list>
<list name="ctest_update_nargs">
<item>QUIET</item>
<item>RETURN_VALUE</item>
@@ -1176,14 +1387,743 @@
<item>FILES</item>
<item>QUIET</item>
</list>
+ <list name="android_add_test_data_nargs">
+ <item>DEVICE_OBJECT_STORE</item>
+ <item>DEVICE_TEST_DIR</item>
+ <item>FILES</item>
+ <item>FILES_DEST</item>
+ <item>LIBS</item>
+ <item>LIBS_DEST</item>
+ <item>NO_LINK_REGEX</item>
+ </list>
+ <list name="check_c_source_compiles_nargs">
+ <item>FAIL_REGEX</item>
+ </list>
+ <list name="check_fortran_source_compiles_nargs">
+ <item>FAIL_REGEX</item>
+ <item>SRC_EXT</item>
+ </list>
+ <list name="check_fortran_source_runs_nargs">
+ <item>SRC_EXT</item>
+ </list>
+ <list name="check_include_files_nargs">
+ <item>LANGUAGE</item>
+ </list>
+ <list name="check_include_files_sargs">
+ <item>C</item>
+ <item>CXX</item>
+ </list>
+ <list name="check_ipo_supported_nargs">
+ <item>LANGUAGES</item>
+ <item>OUTPUT</item>
+ <item>RESULT</item>
+ </list>
+ <list name="check_ipo_supported_sargs">
+ <item>C</item>
+ <item>CXX</item>
+ <item>Fortran</item>
+ </list>
+ <list name="check_pie_supported_nargs">
+ <item>LANGUAGES</item>
+ <item>OUTPUT_VARIABLE</item>
+ </list>
+ <list name="check_pie_supported_sargs">
+ <item>C</item>
+ <item>CUDA</item>
+ <item>CXX</item>
+ <item>Fortran</item>
+ <item>HIP</item>
+ <item>OBJC</item>
+ <item>OBJCXX</item>
+ </list>
+ <list name="check_type_size_nargs">
+ <item>BUILTIN_TYPES_ONLY</item>
+ <item>LANGUAGE</item>
+ </list>
+ <list name="cmake_add_fortran_subdirectory_nargs">
+ <item>ARCHIVE_DIR</item>
+ <item>CMAKE_COMMAND_LINE</item>
+ <item>LIBRARIES</item>
+ <item>LINK_LIBRARIES</item>
+ <item>LINK_LIBS</item>
+ <item>NO_EXTERNAL_INSTALL</item>
+ <item>PROJECT</item>
+ <item>RUNTIME_DIR</item>
+ </list>
+ <list name="configure_package_config_file_nargs">
+ <item>INSTALL_DESTINATION</item>
+ <item>INSTALL_PREFIX</item>
+ <item>NO_CHECK_REQUIRED_COMPONENTS_MACRO</item>
+ <item>NO_SET_AND_CHECK_MACRO</item>
+ <item>PATH_VARS</item>
+ </list>
+ <list name="write_basic_package_version_file_nargs">
+ <item>ARCH_INDEPENDENT</item>
+ <item>COMPATIBILITY</item>
+ <item>VERSION</item>
+ </list>
+ <list name="write_basic_package_version_file_sargs">
+ <item>AnyNewerVersion</item>
+ <item>ExactVersion</item>
+ <item>SameMajorVersion</item>
+ <item>SameMinorVersion</item>
+ </list>
+ <list name="cmake_print_properties_nargs">
+ <item>CACHE_ENTRIES</item>
+ <item>DIRECTORIES</item>
+ <item>PROPERTIES</item>
+ <item>SOURCES</item>
+ <item>TARGETS</item>
+ <item>TESTS</item>
+ </list>
+ <list name="cmake_push_check_state_nargs">
+ <item>RESET</item>
+ </list>
+ <list name="cpack_add_component_nargs">
+ <item>ARCHIVE_FILE</item>
+ <item>DEPENDS</item>
+ <item>DESCRIPTION</item>
+ <item>DISABLED</item>
+ <item>DISPLAY_NAME</item>
+ <item>DOWNLOADED</item>
+ <item>GROUP</item>
+ <item>HIDDEN</item>
+ <item>INSTALL_TYPES</item>
+ <item>PLIST</item>
+ <item>REQUIRED</item>
+ </list>
+ <list name="cpack_add_component_group_nargs">
+ <item>BOLD_TITLE</item>
+ <item>DESCRIPTION</item>
+ <item>DISPLAY_NAME</item>
+ <item>EXPANDED</item>
+ <item>PARENT_GROUP</item>
+ </list>
+ <list name="cpack_add_install_type_nargs">
+ <item>DISPLAY_NAME</item>
+ </list>
+ <list name="cpack_configure_downloads_nargs">
+ <item>ADD_REMOVE</item>
+ <item>ALL</item>
+ <item>NO_ADD_REMOVE</item>
+ <item>UPLOAD_DIRECTORY</item>
+ </list>
+ <list name="cpack_ifw_configure_component_nargs">
+ <item>AUTO_DEPEND_ON</item>
+ <item>CHECKABLE</item>
+ <item>COMMON</item>
+ <item>DEFAULT</item>
+ <item>DEPENDENCIES</item>
+ <item>DEPENDS</item>
+ <item>DESCRIPTION</item>
+ <item>DISPLAY_NAME</item>
+ <item>ESSENTIAL</item>
+ <item>FORCED_INSTALLATION</item>
+ <item>LICENSES</item>
+ <item>NAME</item>
+ <item>PRIORITY</item>
+ <item>RELEASE_DATE</item>
+ <item>REPLACES</item>
+ <item>REQUIRES_ADMIN_RIGHTS]</item>
+ <item>SCRIPT</item>
+ <item>SORTING_PRIORITY</item>
+ <item>TRANSLATIONS</item>
+ <item>UPDATE_TEXT</item>
+ <item>USER_INTERFACES</item>
+ <item>VERSION</item>
+ <item>VIRTUAL</item>
+ </list>
+ <list name="cpack_ifw_configure_component_group_nargs">
+ <item>AUTO_DEPEND_ON</item>
+ <item>CHECKABLE</item>
+ <item>DEFAULT</item>
+ <item>DEPENDENCIES</item>
+ <item>DEPENDS</item>
+ <item>DESCRIPTION</item>
+ <item>DISPLAY_NAME</item>
+ <item>FORCED_INSTALLATION</item>
+ <item>LICENSES</item>
+ <item>NAME</item>
+ <item>PRIORITY</item>
+ <item>RELEASE_DATE</item>
+ <item>REPLACES</item>
+ <item>REQUIRES_ADMIN_RIGHTS</item>
+ <item>SCRIPT</item>
+ <item>SORTING_PRIORITY</item>
+ <item>TRANSLATIONS</item>
+ <item>UPDATE_TEXT</item>
+ <item>USER_INTERFACES</item>
+ <item>VERSION</item>
+ <item>VIRTUAL</item>
+ </list>
+ <list name="cpack_ifw_add_repository_nargs">
+ <item>DISABLED</item>
+ <item>DISPLAY_NAME</item>
+ <item>PASSWORD</item>
+ <item>URL</item>
+ <item>USERNAME</item>
+ </list>
+ <list name="cpack_ifw_update_repository_nargs">
+ <item>ADD</item>
+ <item>DISPLAY_NAME</item>
+ <item>NEW_URL</item>
+ <item>OLD_URL</item>
+ <item>PASSWORD</item>
+ <item>REMOVE</item>
+ <item>REPLACE</item>
+ <item>URL</item>
+ <item>USERNAME</item>
+ </list>
+ <list name="ctest_coverage_collect_gcov_nargs">
+ <item>BUILD</item>
+ <item>DELETE</item>
+ <item>GCOV_COMMAND</item>
+ <item>GCOV_OPTIONS</item>
+ <item>GLOB</item>
+ <item>QUIET</item>
+ <item>SOURCE</item>
+ <item>TARBALL</item>
+ <item>TARBALL_COMPRESSION</item>
+ </list>
+ <list name="ExternalData_Add_Target_nargs">
+ <item>SHOW_PROGRESS</item>
+ </list>
+ <list name="ExternalProject_Add_nargs">
+ <item>BINARY_DIR</item>
+ <item>BUILD_ALWAYS</item>
+ <item>BUILD_BYPRODUCTS</item>
+ <item>BUILD_COMMAND</item>
+ <item>BUILD_IN_SOURCE</item>
+ <item>BUILD_JOB_SERVER_AWARE</item>
+ <item>CMAKE_ARGS</item>
+ <item>CMAKE_CACHE_ARGS</item>
+ <item>CMAKE_CACHE_DEFAULT_ARGS</item>
+ <item>CMAKE_COMMAND</item>
+ <item>CMAKE_GENERATOR</item>
+ <item>CMAKE_GENERATOR_INSTANCE</item>
+ <item>CMAKE_GENERATOR_PLATFORM</item>
+ <item>CMAKE_GENERATOR_TOOLSET</item>
+ <item>COMMAND</item>
+ <item>CONFIGURE_COMMAND</item>
+ <item>CONFIGURE_HANDLED_BY_BUILD</item>
+ <item>CVS_MODULE</item>
+ <item>CVS_REPOSITORY</item>
+ <item>CVS_TAG</item>
+ <item>DEPENDS</item>
+ <item>DOWNLOAD_COMMAND</item>
+ <item>DOWNLOAD_DIR</item>
+ <item>DOWNLOAD_EXTRACT_TIMESTAMP</item>
+ <item>DOWNLOAD_NAME</item>
+ <item>DOWNLOAD_NO_EXTRACT</item>
+ <item>DOWNLOAD_NO_PROGRESS</item>
+ <item>EXCLUDE_FROM_ALL</item>
+ <item>GIT_CONFIG</item>
+ <item>GIT_PROGRESS</item>
+ <item>GIT_REMOTE_NAME</item>
+ <item>GIT_REMOTE_UPDATE_STRATEGY</item>
+ <item>GIT_REPOSITORY</item>
+ <item>GIT_SHALLOW</item>
+ <item>GIT_SUBMODULES</item>
+ <item>GIT_SUBMODULES_RECURSE</item>
+ <item>GIT_TAG</item>
+ <item>HG_REPOSITORY</item>
+ <item>HG_TAG</item>
+ <item>HTTP_HEADER</item>
+ <item>HTTP_PASSWORD</item>
+ <item>HTTP_USERNAME</item>
+ <item>INACTIVITY_TIMEOUT</item>
+ <item>INDEPENDENT_STEP_TARGETS</item>
+ <item>INSTALL_BYPRODUCTS</item>
+ <item>INSTALL_COMMAND</item>
+ <item>INSTALL_DIR</item>
+ <item>LIST_SEPARATOR</item>
+ <item>LOG_BUILD</item>
+ <item>LOG_CONFIGURE</item>
+ <item>LOG_DIR</item>
+ <item>LOG_DOWNLOAD</item>
+ <item>LOG_INSTALL</item>
+ <item>LOG_MERGED_STDOUTERR</item>
+ <item>LOG_OUTPUT_ON_FAILURE</item>
+ <item>LOG_PATCH</item>
+ <item>LOG_TEST</item>
+ <item>LOG_UPDATE</item>
+ <item>NETRC</item>
+ <item>NETRC_FILE</item>
+ <item>PATCH_COMMAND</item>
+ <item>PREFIX</item>
+ <item>SOURCE_DIR</item>
+ <item>SOURCE_SUBDIR</item>
+ <item>STAMP_DIR</item>
+ <item>STEP_TARGETS</item>
+ <item>SVN_PASSWORD</item>
+ <item>SVN_REPOSITORY</item>
+ <item>SVN_REVISION</item>
+ <item>SVN_TRUST_CERT</item>
+ <item>SVN_USERNAME</item>
+ <item>TEST_AFTER_INSTALL</item>
+ <item>TEST_BEFORE_INSTALL</item>
+ <item>TEST_COMMAND</item>
+ <item>TEST_EXCLUDE_FROM_MAIN</item>
+ <item>TIMEOUT</item>
+ <item>TLS_CAINFO</item>
+ <item>TLS_VERIFY</item>
+ <item>TMP_DIR</item>
+ <item>UPDATE_COMMAND</item>
+ <item>UPDATE_DISCONNECTED</item>
+ <item>URL</item>
+ <item>URL_HASH</item>
+ <item>URL_MD5</item>
+ <item>USES_TERMINAL_BUILD</item>
+ <item>USES_TERMINAL_CONFIGURE</item>
+ <item>USES_TERMINAL_DOWNLOAD</item>
+ <item>USES_TERMINAL_INSTALL</item>
+ <item>USES_TERMINAL_PATCH</item>
+ <item>USES_TERMINAL_TEST</item>
+ <item>USES_TERMINAL_UPDATE</item>
+ </list>
+ <list name="ExternalProject_Add_sargs">
+ <item>CHECKOUT</item>
+ <item>IGNORED</item>
+ <item>OPTIONAL</item>
+ <item>REBASE</item>
+ <item>REBASE_CHECKOUT</item>
+ <item>REQUIRED</item>
+ </list>
+ <list name="ExternalProject_Add_Step_nargs">
+ <item>ALWAYS</item>
+ <item>BYPRODUCTS</item>
+ <item>COMMAND</item>
+ <item>COMMENT</item>
+ <item>DEPENDEES</item>
+ <item>DEPENDERS</item>
+ <item>DEPENDS</item>
+ <item>EXCLUDE_FROM_MAIN</item>
+ <item>INDEPENDENT</item>
+ <item>JOB_SERVER_AWARE</item>
+ <item>LOG</item>
+ <item>USES_TERMINAL</item>
+ <item>WORKING_DIRECTORY</item>
+ </list>
+ <list name="ExternalProject_Add_StepTargets_nargs">
+ <item>NO_DEPENDS</item>
+ </list>
+ <list name="feature_summary_nargs">
+ <item>ALL</item>
+ <item>APPEND</item>
+ <item>DEFAULT_DESCRIPTION</item>
+ <item>DESCRIPTION</item>
+ <item>DISABLED_FEATURES</item>
+ <item>ENABLED_FEATURES</item>
+ <item>FATAL_ON_MISSING_REQUIRED_PACKAGES</item>
+ <item>FILENAME</item>
+ <item>INCLUDE_QUIET_PACKAGES</item>
+ <item>PACKAGES_FOUND</item>
+ <item>PACKAGES_NOT_FOUND</item>
+ <item>QUIET_ON_EMPTY</item>
+ <item>VAR</item>
+ <item>WHAT</item>
+ </list>
+ <list name="set_package_properties_nargs">
+ <item>DESCRIPTION</item>
+ <item>OPTIONAL</item>
+ <item>PROPERTIES</item>
+ <item>PURPOSE</item>
+ <item>RECOMMENDED</item>
+ <item>REQUIRED</item>
+ <item>RUNTIME</item>
+ <item>TYPE</item>
+ <item>URL</item>
+ </list>
+ <list name="FetchContent_Declare_nargs">
+ <item>CVS_MODULE</item>
+ <item>CVS_REPOSITORY</item>
+ <item>CVS_TAG</item>
+ <item>DOWNLOAD_COMMAND</item>
+ <item>DOWNLOAD_NAME</item>
+ <item>DOWNLOAD_NO_EXTRACT</item>
+ <item>DOWNLOAD_NO_PROGRESS</item>
+ <item>EXCLUDE_FROM_ALL</item>
+ <item>FIND_PACKAGE_ARGS</item>
+ <item>GIT_CONFIG</item>
+ <item>GIT_PROGRESS</item>
+ <item>GIT_REMOTE_NAME</item>
+ <item>GIT_REMOTE_UPDATE_STRATEGY</item>
+ <item>GIT_REPOSITORY</item>
+ <item>GIT_SHALLOW</item>
+ <item>GIT_SUBMODULES</item>
+ <item>GIT_SUBMODULES_RECURSE</item>
+ <item>GIT_TAG</item>
+ <item>HG_REPOSITORY</item>
+ <item>HG_TAG</item>
+ <item>HTTP_HEADER</item>
+ <item>HTTP_PASSWORD</item>
+ <item>HTTP_USERNAME</item>
+ <item>INACTIVITY_TIMEOUT</item>
+ <item>NETRC</item>
+ <item>NETRC_FILE</item>
+ <item>OVERRIDE_FIND_PACKAGE</item>
+ <item>PATCH_COMMAND</item>
+ <item>SOURCE_SUBDIR</item>
+ <item>SVN_PASSWORD</item>
+ <item>SVN_REPOSITORY</item>
+ <item>SVN_REVISION</item>
+ <item>SVN_TRUST_CERT</item>
+ <item>SVN_USERNAME</item>
+ <item>SYSTEM</item>
+ <item>TIMEOUT</item>
+ <item>TLS_CAINFO</item>
+ <item>TLS_VERIFY</item>
+ <item>UPDATE_COMMAND</item>
+ <item>UPDATE_DISCONNECTED</item>
+ <item>URL</item>
+ <item>URL_HASH</item>
+ <item>URL_MD5</item>
+ </list>
+ <list name="FetchContent_Populate_nargs">
+ <item>BINARY_DIR</item>
+ <item>CVS_MODULE</item>
+ <item>CVS_REPOSITORY</item>
+ <item>CVS_TAG</item>
+ <item>DOWNLOAD_COMMAND</item>
+ <item>DOWNLOAD_NAME</item>
+ <item>DOWNLOAD_NO_EXTRACT</item>
+ <item>DOWNLOAD_NO_PROGRESS</item>
+ <item>GIT_CONFIG</item>
+ <item>GIT_PROGRESS</item>
+ <item>GIT_REMOTE_NAME</item>
+ <item>GIT_REMOTE_UPDATE_STRATEGY</item>
+ <item>GIT_REPOSITORY</item>
+ <item>GIT_SHALLOW</item>
+ <item>GIT_SUBMODULES</item>
+ <item>GIT_SUBMODULES_RECURSE</item>
+ <item>GIT_TAG</item>
+ <item>HG_REPOSITORY</item>
+ <item>HG_TAG</item>
+ <item>HTTP_HEADER</item>
+ <item>HTTP_PASSWORD</item>
+ <item>HTTP_USERNAME</item>
+ <item>INACTIVITY_TIMEOUT</item>
+ <item>NETRC</item>
+ <item>NETRC_FILE</item>
+ <item>PATCH_COMMAND</item>
+ <item>QUIET</item>
+ <item>SOURCE_DIR</item>
+ <item>SOURCE_SUBDIR</item>
+ <item>SUBBUILD_DIR</item>
+ <item>SVN_PASSWORD</item>
+ <item>SVN_REPOSITORY</item>
+ <item>SVN_REVISION</item>
+ <item>SVN_TRUST_CERT</item>
+ <item>SVN_USERNAME</item>
+ <item>TIMEOUT</item>
+ <item>TLS_CAINFO</item>
+ <item>TLS_VERIFY</item>
+ <item>UPDATE_COMMAND</item>
+ <item>UPDATE_DISCONNECTED</item>
+ <item>URL</item>
+ <item>URL_HASH</item>
+ <item>URL_MD5</item>
+ </list>
+ <list name="FetchContent_GetProperties_nargs">
+ <item>BINARY_DIR</item>
+ <item>POPULATED</item>
+ <item>SOURCE_DIR</item>
+ </list>
+ <list name="find_package_handle_standard_args_nargs">
+ <item>CONFIG_MODE</item>
+ <item>DEFAULT_MSG</item>
+ <item>FAIL_MESSAGE</item>
+ <item>FOUND_VAR</item>
+ <item>HANDLE_COMPONENTS</item>
+ <item>HANDLE_VERSION_RANGE</item>
+ <item>NAME_MISMATCHED</item>
+ <item>REASON_FAILURE_MESSAGE</item>
+ <item>REQUIRED_VARS</item>
+ <item>VERSION_VAR</item>
+ </list>
+ <list name="find_package_check_version_nargs">
+ <item>HANDLE_VERSION_RANGE</item>
+ <item>RESULT_MESSAGE_VARIABLE</item>
+ </list>
+ <list name="FortranCInterface_HEADER_nargs">
+ <item>MACRO_NAMESPACE</item>
+ <item>SYMBOLS</item>
+ <item>SYMBOL_NAMESPACE</item>
+ </list>
+ <list name="FortranCInterface_VERIFY_nargs">
+ <item>CXX</item>
+ <item>QUIET</item>
+ </list>
+ <list name="generate_export_header_nargs">
+ <item>BASE_NAME</item>
+ <item>CUSTOM_CONTENT_FROM_VARIABLE</item>
+ <item>DEFINE_NO_DEPRECATED</item>
+ <item>DEPRECATED_MACRO_NAME</item>
+ <item>EXPORT_FILE_NAME</item>
+ <item>EXPORT_MACRO_NAME</item>
+ <item>INCLUDE_GUARD_NAME</item>
+ <item>NO_DEPRECATED_MACRO_NAME</item>
+ <item>NO_EXPORT_MACRO_NAME</item>
+ <item>PREFIX_NAME</item>
+ <item>STATIC_DEFINE</item>
+ </list>
+ <list name="gtest_add_tests_nargs">
+ <item>EXTRA_ARGS</item>
+ <item>SKIP_DEPENDENCY</item>
+ <item>SOURCES</item>
+ <item>TARGET</item>
+ <item>TEST_LIST</item>
+ <item>TEST_PREFIX</item>
+ <item>TEST_SUFFIX</item>
+ <item>WORKING_DIRECTORY</item>
+ </list>
+ <list name="gtest_discover_tests_nargs">
+ <item>DISCOVERY_MODE</item>
+ <item>DISCOVERY_TIMEOUT</item>
+ <item>EXTRA_ARGS</item>
+ <item>NO_PRETTY_TYPES</item>
+ <item>NO_PRETTY_VALUES</item>
+ <item>PROPERTIES</item>
+ <item>TEST_FILTER</item>
+ <item>TEST_LIST</item>
+ <item>TEST_PREFIX</item>
+ <item>TEST_SUFFIX</item>
+ <item>WORKING_DIRECTORY</item>
+ <item>XML_OUTPUT_DIR</item>
+ </list>
+ <list name="gtest_discover_tests_sargs">
+ <item>POST_BUILD</item>
+ <item>PRE_TEST</item>
+ </list>
+ <list name="add_jar_nargs">
+ <item>BUILD</item>
+ <item>DESTINATION</item>
+ <item>ENTRY_POINT</item>
+ <item>GENERATE_NATIVE_HEADERS</item>
+ <item>INCLUDE_JARS</item>
+ <item>INSTALL</item>
+ <item>MANIFEST</item>
+ <item>NAMESPACE</item>
+ <item>OUTPUT_DIR</item>
+ <item>OUTPUT_NAME</item>
+ <item>RESOURCES</item>
+ <item>SOURCES</item>
+ <item>VERSION</item>
+ </list>
+ <list name="install_jar_nargs">
+ <item>COMPONENT</item>
+ <item>DESTINATION</item>
+ </list>
+ <list name="create_javah_nargs">
+ <item>CLASSES</item>
+ <item>CLASSPATH</item>
+ <item>DEPENDS</item>
+ <item>GENERATED_FILES</item>
+ <item>OUTPUT_DIR</item>
+ <item>OUTPUT_NAME</item>
+ <item>TARGET</item>
+ </list>
+ <list name="install_jar_exports_nargs">
+ <item>COMPONENT</item>
+ <item>DESTINATION</item>
+ <item>FILE</item>
+ <item>NAMESPACE</item>
+ <item>TARGETS</item>
+ </list>
+ <list name="export_jars_nargs">
+ <item>FILE</item>
+ <item>NAMESPACE</item>
+ <item>TARGETS</item>
+ </list>
+ <list name="find_jar_nargs">
+ <item>DOC</item>
+ <item>ENV</item>
+ <item>NAMES</item>
+ <item>PATHS</item>
+ <item>VERSIONS</item>
+ </list>
+ <list name="create_javadoc_nargs">
+ <item>AUTHOR</item>
+ <item>CLASSPATH</item>
+ <item>DOCTITLE</item>
+ <item>FILES</item>
+ <item>INSTALLPATH</item>
+ <item>PACKAGES</item>
+ <item>SOURCEPATH</item>
+ <item>USE</item>
+ <item>VERSION</item>
+ <item>WINDOWTITLE</item>
+ </list>
+ <list name="swig_add_library_nargs">
+ <item>LANGUAGE</item>
+ <item>MODULE</item>
+ <item>NO_PROXY</item>
+ <item>OUTFILE_DIR</item>
+ <item>OUTPUT_DIR</item>
+ <item>SHARED</item>
+ <item>SOURCES</item>
+ <item>STATIC</item>
+ <item>TYPE</item>
+ <item>USE_BUILD_SHARED_LIBS</item>
+ </list>
+ <list name="squish_add_test_nargs">
+ <item>AUT</item>
+ <item>POST_COMMAND</item>
+ <item>PRE_COMMAND</item>
+ <item>SETTINGSGROUP</item>
+ <item>SUITE</item>
+ <item>TEST</item>
+ </list>
+ <list name="bison_target_nargs">
+ <item>COMPILE_FLAGS</item>
+ <item>DEFINES_FILE</item>
+ <item>REPORT_FILE</item>
+ <item>VERBOSE</item>
+ </list>
+ <list name="doxygen_add_docs_nargs">
+ <item>ALL</item>
+ <item>COMMENT</item>
+ <item>CONFIG_FILE</item>
+ <item>USE_STAMP_FILE</item>
+ <item>WORKING_DIRECTORY</item>
+ </list>
+ <list name="env_module_nargs">
+ <item>COMMAND</item>
+ <item>OUTPUT_VARIABLE</item>
+ <item>RESULT_VARIABLE</item>
+ </list>
+ <list name="env_module_swap_nargs">
+ <item>OUTPUT_VARIABLE</item>
+ <item>RESULT_VARIABLE</item>
+ </list>
+ <list name="flex_target_nargs">
+ <item>COMPILE_FLAGS</item>
+ <item>DEFINES_FILE</item>
+ </list>
+ <list name="gettext_create_translations_nargs">
+ <item>ALL</item>
+ </list>
+ <list name="gettext_process_pot_file_nargs">
+ <item>ALL</item>
+ <item>INSTALL_DESTINATION</item>
+ <item>LANGUAGES</item>
+ </list>
+ <list name="gettext_process_po_files_nargs">
+ <item>ALL</item>
+ <item>INSTALL_DESTINATION</item>
+ <item>PO_FILES</item>
+ </list>
+ <list name="matlab_add_unit_test_nargs">
+ <item>ADDITIONAL_PATH</item>
+ <item>CUSTOM_TEST_COMMAND</item>
+ <item>MATLAB_ADDITIONAL_STARTUP_OPTIONS</item>
+ <item>NAME</item>
+ <item>NO_UNITTEST_FRAMEWORK</item>
+ <item>TEST_ARGS</item>
+ <item>TIMEOUT</item>
+ <item>UNITTEST_FILE</item>
+ <item>UNITTEST_PRECOMMAND</item>
+ </list>
+ <list name="matlab_add_mex_nargs">
+ <item>DOCUMENTATION</item>
+ <item>EXCLUDE_FROM_ALL</item>
+ <item>EXECUTABLE</item>
+ <item>LINK_TO</item>
+ <item>MODULE</item>
+ <item>NAME</item>
+ <item>NO_IMPLICIT_LINK_TO_MATLAB_LIBRARIES</item>
+ <item>OUTPUT_NAME</item>
+ <item>R2017b</item>
+ <item>R2018a</item>
+ <item>SHARED</item>
+ <item>SRC</item>
+ </list>
+ <list name="pkg_check_modules_nargs">
+ <item>GLOBAL</item>
+ <item>IMPORTED_TARGET</item>
+ <item>NO_CMAKE_ENVIRONMENT_PATH</item>
+ <item>NO_CMAKE_PATH</item>
+ <item>QUIET</item>
+ <item>REQUIRED</item>
+ <item>STATIC_TARGET</item>
+ </list>
+ <list name="pkg_get_variable_nargs">
+ <item>DEFINE_VARIABLES</item>
+ </list>
+ <list name="protobuf_generate_cpp_nargs">
+ <item>DESCRIPTORS</item>
+ <item>EXPORT_MACRO</item>
+ </list>
+ <list name="Python_add_library_nargs">
+ <item>MODULE</item>
+ <item>SHARED</item>
+ <item>STATIC</item>
+ <item>WITH_SOABI</item>
+ </list>
+ <list name="Subversion_WC_INFO_nargs">
+ <item>IGNORE_SVN_FAILURE</item>
+ </list>
<list name="variables">
+ <item>ALSA_LIBRARY</item>
<item>ANDROID</item>
<item>APPLE</item>
+ <item>ARGC</item>
+ <item>ARGN</item>
+ <item>ARGV</item>
+ <item>ASPELL_DEFINITIONS</item>
+ <item>ASPELL_EXECUTABLE</item>
+ <item>AVIFILE_DEFINITIONS</item>
+ <item>BIBER_COMPILER</item>
+ <item>BIBTEX_COMPILER</item>
+ <item>BISON_EXECUTABLE</item>
+ <item>BLAS_LINKER_FLAGS</item>
+ <item>BLA_F95</item>
+ <item>BLA_PREFER_PKGCONFIG</item>
+ <item>BLA_SIZEOF_INTEGER</item>
+ <item>BLA_STATIC</item>
+ <item>BLA_VENDOR</item>
+ <item>BOOSTROOT</item>
+ <item>BOOST_INCLUDEDIR</item>
+ <item>BOOST_LIBRARYDIR</item>
<item>BORLAND</item>
+ <item>BSD</item>
<item>BUILD_SHARED_LIBS</item>
<item>BUILD_TESTING</item>
+ <item>BU_CHMOD_BUNDLE_ITEMS</item>
+ <item>BZIP2_INCLUDE_DIR</item>
+ <item>BZIP2_NEED_PREFIX</item>
+ <item>Backtrace_HEADER</item>
+ <item>Backtrace_LIBRARY</item>
+ <item>Boost_ADDITIONAL_VERSIONS</item>
+ <item>Boost_ARCHITECTURE</item>
+ <item>Boost_COMPILER</item>
+ <item>Boost_DEBUG</item>
+ <item>Boost_INCLUDE_DIR</item>
+ <item>Boost_LIBRARY_DIR_DEBUG</item>
+ <item>Boost_LIBRARY_DIR_RELEASE</item>
+ <item>Boost_LIB_PREFIX</item>
+ <item>Boost_NAMESPACE</item>
+ <item>Boost_NO_SYSTEM_PATHS</item>
+ <item>Boost_NO_WARN_NEW_VERSIONS</item>
+ <item>Boost_REALPATH</item>
+ <item>Boost_THREADAPI</item>
+ <item>Boost_USE_DEBUG_LIBS</item>
+ <item>Boost_USE_DEBUG_PYTHON</item>
+ <item>Boost_USE_DEBUG_RUNTIME</item>
+ <item>Boost_USE_MULTITHREADED</item>
+ <item>Boost_USE_RELEASE_LIBS</item>
+ <item>Boost_USE_STATIC_LIBS</item>
+ <item>Boost_USE_STLPORT</item>
+ <item>Boost_USE_STLPORT_DEPRECATED_NATIVE_IOSTREAMS</item>
+ <item>Boost_VERSION_COUNT</item>
+ <item>Boost_VERSION_MACRO</item>
+ <item>CABLE</item>
+ <item>CABLE_INCLUDE_DIR</item>
+ <item>CABLE_TCL_LIBRARY</item>
<item>CMAKE_ABSOLUTE_DESTINATION_FILES</item>
+ <item>CMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY</item>
+ <item>CMAKE_AIX_EXPORT_ALL_SYMBOLS</item>
<item>CMAKE_ANDROID_ANT_ADDITIONAL_OPTIONS</item>
<item>CMAKE_ANDROID_API</item>
<item>CMAKE_ANDROID_API_MIN</item>
@@ -1202,6 +2142,7 @@
<item>CMAKE_ANDROID_NDK_DEPRECATED_HEADERS</item>
<item>CMAKE_ANDROID_NDK_TOOLCHAIN_HOST_TAG</item>
<item>CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION</item>
+ <item>CMAKE_ANDROID_NDK_VERSION</item>
<item>CMAKE_ANDROID_PROCESS_MAX</item>
<item>CMAKE_ANDROID_PROGUARD</item>
<item>CMAKE_ANDROID_PROGUARD_CONFIG_PATH</item>
@@ -1211,20 +2152,25 @@
<item>CMAKE_ANDROID_STL_TYPE</item>
<item>CMAKE_ANSI_CXXFLAGS</item>
<item>CMAKE_APPBUNDLE_PATH</item>
+ <item>CMAKE_APPLE_SILICON_PROCESSOR</item>
<item>CMAKE_AR</item>
<item>CMAKE_ARCHIVE_OUTPUT_DIRECTORY</item>
<item>CMAKE_ARGC</item>
- <item>CMAKE_ARGV0</item>
<item>CMAKE_AUTOGEN_ORIGIN_DEPENDS</item>
<item>CMAKE_AUTOGEN_PARALLEL</item>
+ <item>CMAKE_AUTOGEN_USE_SYSTEM_INCLUDE</item>
<item>CMAKE_AUTOGEN_VERBOSE</item>
<item>CMAKE_AUTOMOC</item>
<item>CMAKE_AUTOMOC_DEPEND_FILTERS</item>
+ <item>CMAKE_AUTOMOC_EXECUTABLE</item>
<item>CMAKE_AUTOMOC_MOC_OPTIONS</item>
+ <item>CMAKE_AUTOMOC_PATH_PREFIX</item>
<item>CMAKE_AUTOMOC_RELAXED_MODE</item>
<item>CMAKE_AUTORCC</item>
+ <item>CMAKE_AUTORCC_EXECUTABLE</item>
<item>CMAKE_AUTORCC_OPTIONS</item>
<item>CMAKE_AUTOUIC</item>
+ <item>CMAKE_AUTOUIC_EXECUTABLE</item>
<item>CMAKE_AUTOUIC_OPTIONS</item>
<item>CMAKE_AUTOUIC_SEARCH_PATHS</item>
<item>CMAKE_BACKWARDS_COMPATIBILITY</item>
@@ -1240,10 +2186,12 @@
<item>CMAKE_CACHE_MINOR_VERSION</item>
<item>CMAKE_CACHE_PATCH_VERSION</item>
<item>CMAKE_CFG_INTDIR</item>
+ <item>CMAKE_CLANG_VFS_OVERLAY</item>
<item>CMAKE_CL_64</item>
<item>CMAKE_CODEBLOCKS_COMPILER_ID</item>
<item>CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES</item>
<item>CMAKE_CODELITE_USE_TARGETS</item>
+ <item>CMAKE_COLOR_DIAGNOSTICS</item>
<item>CMAKE_COLOR_MAKEFILE</item>
<item>CMAKE_COMMAND</item>
<item>CMAKE_COMPILER_2005</item>
@@ -1251,51 +2199,80 @@
<item>CMAKE_COMPILER_IS_GNUCXX</item>
<item>CMAKE_COMPILER_IS_GNUG77</item>
<item>CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY</item>
+ <item>CMAKE_COMPILE_WARNING_AS_ERROR</item>
<item>CMAKE_CONFIGURATION_TYPES</item>
<item>CMAKE_CROSSCOMPILING</item>
<item>CMAKE_CROSSCOMPILING_EMULATOR</item>
+ <item>CMAKE_CROSS_CONFIGS</item>
+ <item>CMAKE_CTEST_ARGUMENTS</item>
<item>CMAKE_CTEST_COMMAND</item>
+ <item>CMAKE_CUDA_ARCHITECTURES</item>
+ <item>CMAKE_CUDA_COMPILE_FEATURES</item>
<item>CMAKE_CUDA_EXTENSIONS</item>
+ <item>CMAKE_CUDA_HOST_COMPILER</item>
+ <item>CMAKE_CUDA_LINK_NO_PIE_SUPPORTED</item>
+ <item>CMAKE_CUDA_LINK_PIE_SUPPORTED</item>
+ <item>CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS</item>
+ <item>CMAKE_CUDA_RUNTIME_LIBRARY</item>
<item>CMAKE_CUDA_SEPARABLE_COMPILATION</item>
<item>CMAKE_CUDA_STANDARD</item>
<item>CMAKE_CUDA_STANDARD_REQUIRED</item>
<item>CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES</item>
<item>CMAKE_CURRENT_BINARY_DIR</item>
+ <item>CMAKE_CURRENT_FUNCTION</item>
+ <item>CMAKE_CURRENT_FUNCTION_LIST_DIR</item>
+ <item>CMAKE_CURRENT_FUNCTION_LIST_FILE</item>
+ <item>CMAKE_CURRENT_FUNCTION_LIST_LINE</item>
<item>CMAKE_CURRENT_LIST_DIR</item>
<item>CMAKE_CURRENT_LIST_FILE</item>
<item>CMAKE_CURRENT_LIST_LINE</item>
<item>CMAKE_CURRENT_SOURCE_DIR</item>
<item>CMAKE_CXX_COMPILE_FEATURES</item>
<item>CMAKE_CXX_EXTENSIONS</item>
+ <item>CMAKE_CXX_LINK_NO_PIE_SUPPORTED</item>
+ <item>CMAKE_CXX_LINK_PIE_SUPPORTED</item>
+ <item>CMAKE_CXX_SCAN_FOR_MODULES</item>
<item>CMAKE_CXX_STANDARD</item>
<item>CMAKE_CXX_STANDARD_REQUIRED</item>
<item>CMAKE_C_COMPILE_FEATURES</item>
<item>CMAKE_C_EXTENSIONS</item>
+ <item>CMAKE_C_LINK_NO_PIE_SUPPORTED</item>
+ <item>CMAKE_C_LINK_PIE_SUPPORTED</item>
<item>CMAKE_C_STANDARD</item>
<item>CMAKE_C_STANDARD_REQUIRED</item>
<item>CMAKE_DEBUG_POSTFIX</item>
<item>CMAKE_DEBUG_TARGET_PROPERTIES</item>
+ <item>CMAKE_DEFAULT_BUILD_TYPE</item>
+ <item>CMAKE_DEFAULT_CONFIGS</item>
<item>CMAKE_DEPENDS_IN_PROJECT_ONLY</item>
<item>CMAKE_DIRECTORY_LABELS</item>
+ <item>CMAKE_DISABLE_PRECOMPILE_HEADERS</item>
+ <item>CMAKE_DLL_NAME_WITH_SOVERSION</item>
<item>CMAKE_DL_LIBS</item>
+ <item>CMAKE_DOTNET_SDK</item>
+ <item>CMAKE_DOTNET_TARGET_FRAMEWORK</item>
<item>CMAKE_DOTNET_TARGET_FRAMEWORK_VERSION</item>
<item>CMAKE_ECLIPSE_GENERATE_LINKED_RESOURCES</item>
<item>CMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT</item>
<item>CMAKE_ECLIPSE_MAKE_ARGUMENTS</item>
+ <item>CMAKE_ECLIPSE_RESOURCE_ENCODING</item>
<item>CMAKE_ECLIPSE_VERSION</item>
<item>CMAKE_EDIT_COMMAND</item>
- <item>CMAKE_ENABLE_EXPORTS</item>
<item>CMAKE_ERROR_DEPRECATED</item>
<item>CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION</item>
+ <item>CMAKE_EXECUTABLE_ENABLE_EXPORTS</item>
<item>CMAKE_EXECUTABLE_SUFFIX</item>
+ <item>CMAKE_EXECUTE_PROCESS_COMMAND_ECHO</item>
<item>CMAKE_EXE_LINKER_FLAGS</item>
<item>CMAKE_EXE_LINKER_FLAGS_INIT</item>
<item>CMAKE_EXPORT_COMPILE_COMMANDS</item>
<item>CMAKE_EXPORT_NO_PACKAGE_REGISTRY</item>
+ <item>CMAKE_EXPORT_PACKAGE_REGISTRY</item>
<item>CMAKE_EXTRA_GENERATOR</item>
<item>CMAKE_EXTRA_INCLUDE_FILES</item>
<item>CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES</item>
<item>CMAKE_FIND_APPBUNDLE</item>
+ <item>CMAKE_FIND_DEBUG_MODE</item>
<item>CMAKE_FIND_FRAMEWORK</item>
<item>CMAKE_FIND_FRAMEWORK_EXTRA_LOCATIONS</item>
<item>CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX</item>
@@ -1305,34 +2282,64 @@
<item>CMAKE_FIND_PACKAGE_NAME</item>
<item>CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY</item>
<item>CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY</item>
+ <item>CMAKE_FIND_PACKAGE_PREFER_CONFIG</item>
+ <item>CMAKE_FIND_PACKAGE_REDIRECTS_DIR</item>
<item>CMAKE_FIND_PACKAGE_RESOLVE_SYMLINKS</item>
<item>CMAKE_FIND_PACKAGE_SORT_DIRECTION</item>
<item>CMAKE_FIND_PACKAGE_SORT_ORDER</item>
+ <item>CMAKE_FIND_PACKAGE_TARGETS_GLOBAL</item>
<item>CMAKE_FIND_PACKAGE_WARN_NO_MODULE</item>
<item>CMAKE_FIND_ROOT_PATH</item>
<item>CMAKE_FIND_ROOT_PATH_MODE_INCLUDE</item>
<item>CMAKE_FIND_ROOT_PATH_MODE_LIBRARY</item>
<item>CMAKE_FIND_ROOT_PATH_MODE_PACKAGE</item>
<item>CMAKE_FIND_ROOT_PATH_MODE_PROGRAM</item>
+ <item>CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH</item>
+ <item>CMAKE_FIND_USE_CMAKE_PATH</item>
+ <item>CMAKE_FIND_USE_CMAKE_SYSTEM_PATH</item>
+ <item>CMAKE_FIND_USE_INSTALL_PREFIX</item>
+ <item>CMAKE_FIND_USE_PACKAGE_REGISTRY</item>
+ <item>CMAKE_FIND_USE_PACKAGE_ROOT_PATH</item>
+ <item>CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH</item>
+ <item>CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY</item>
<item>CMAKE_FOLDER</item>
+ <item>CMAKE_FRAMEWORK</item>
<item>CMAKE_FRAMEWORK_PATH</item>
<item>CMAKE_Fortran_FORMAT</item>
+ <item>CMAKE_Fortran_LINK_NO_PIE_SUPPORTED</item>
+ <item>CMAKE_Fortran_LINK_PIE_SUPPORTED</item>
<item>CMAKE_Fortran_MODDIR_DEFAULT</item>
<item>CMAKE_Fortran_MODDIR_FLAG</item>
<item>CMAKE_Fortran_MODOUT_FLAG</item>
<item>CMAKE_Fortran_MODULE_DIRECTORY</item>
+ <item>CMAKE_Fortran_PREPROCESS</item>
<item>CMAKE_GENERATOR</item>
<item>CMAKE_GENERATOR_INSTANCE</item>
+ <item>CMAKE_GENERATOR_NO_COMPILER_ENV</item>
<item>CMAKE_GENERATOR_PLATFORM</item>
<item>CMAKE_GENERATOR_TOOLSET</item>
+ <item>CMAKE_GET_OS_RELEASE_FALLBACK_RESULT</item>
+ <item>CMAKE_GET_OS_RELEASE_FALLBACK_SCRIPTS</item>
+ <item>CMAKE_GET_RUNTIME_DEPENDENCIES_COMMAND</item>
+ <item>CMAKE_GET_RUNTIME_DEPENDENCIES_PLATFORM</item>
+ <item>CMAKE_GET_RUNTIME_DEPENDENCIES_TOOL</item>
<item>CMAKE_GLOBAL_AUTOGEN_TARGET</item>
<item>CMAKE_GLOBAL_AUTOGEN_TARGET_NAME</item>
<item>CMAKE_GLOBAL_AUTORCC_TARGET</item>
<item>CMAKE_GLOBAL_AUTORCC_TARGET_NAME</item>
<item>CMAKE_GNUtoMS</item>
+ <item>CMAKE_GTEST_DISCOVER_TESTS_DISCOVERY_MODE</item>
<item>CMAKE_HAS_ANSI_STRING_STREAM</item>
- <item>CMAKE_HOME_DIRECTORY</item>
+ <item>CMAKE_HIP_ARCHITECTURES</item>
+ <item>CMAKE_HIP_EXTENSIONS</item>
+ <item>CMAKE_HIP_LINK_NO_PIE_SUPPORTED</item>
+ <item>CMAKE_HIP_LINK_PIE_SUPPORTED</item>
+ <item>CMAKE_HIP_PLATFORM</item>
+ <item>CMAKE_HIP_STANDARD</item>
+ <item>CMAKE_HIP_STANDARD_REQUIRED</item>
<item>CMAKE_HOST_APPLE</item>
+ <item>CMAKE_HOST_BSD</item>
+ <item>CMAKE_HOST_LINUX</item>
<item>CMAKE_HOST_SOLARIS</item>
<item>CMAKE_HOST_SYSTEM</item>
<item>CMAKE_HOST_SYSTEM_NAME</item>
@@ -1342,6 +2349,7 @@
<item>CMAKE_HOST_WIN32</item>
<item>CMAKE_HP_PTHREADS_INIT</item>
<item>CMAKE_IGNORE_PATH</item>
+ <item>CMAKE_IGNORE_PREFIX_PATH</item>
<item>CMAKE_IMPORT_LIBRARY_PREFIX</item>
<item>CMAKE_IMPORT_LIBRARY_SUFFIX</item>
<item>CMAKE_INCLUDE_CURRENT_DIR</item>
@@ -1387,6 +2395,7 @@
<item>CMAKE_INSTALL_OPENMP_LIBRARIES</item>
<item>CMAKE_INSTALL_PREFIX</item>
<item>CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT</item>
+ <item>CMAKE_INSTALL_REMOVE_ENVIRONMENT_RPATH</item>
<item>CMAKE_INSTALL_RPATH</item>
<item>CMAKE_INSTALL_RPATH_USE_LINK_PATH</item>
<item>CMAKE_INSTALL_RUNSTATEDIR</item>
@@ -1399,9 +2408,14 @@
<item>CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS</item>
<item>CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP</item>
<item>CMAKE_INSTALL_UCRT_LIBRARIES</item>
- <item>CMAKE_INTERNAL_PLATFORM_ABI</item>
<item>CMAKE_INTERPROCEDURAL_OPTIMIZATION</item>
- <item>CMAKE_IOS_INSTALL_COMBINED</item>
+ <item>CMAKE_ISPC_HEADER_DIRECTORY</item>
+ <item>CMAKE_ISPC_HEADER_SUFFIX</item>
+ <item>CMAKE_ISPC_INSTRUCTION_SETS</item>
+ <item>CMAKE_JAR_CLASSES_PREFIX</item>
+ <item>CMAKE_JAVA_COMPILE_FLAGS</item>
+ <item>CMAKE_JAVA_INCLUDE_PATH</item>
+ <item>CMAKE_JNI_TARGET</item>
<item>CMAKE_JOB_POOLS</item>
<item>CMAKE_JOB_POOL_COMPILE</item>
<item>CMAKE_JOB_POOL_LINK</item>
@@ -1412,49 +2426,75 @@
<item>CMAKE_LIBRARY_PATH_FLAG</item>
<item>CMAKE_LINK_DEF_FILE_FLAG</item>
<item>CMAKE_LINK_DEPENDS_NO_SHARED</item>
+ <item>CMAKE_LINK_DEPENDS_USE_LINKER</item>
<item>CMAKE_LINK_DIRECTORIES_BEFORE</item>
<item>CMAKE_LINK_INTERFACE_LIBRARIES</item>
+ <item>CMAKE_LINK_LIBRARIES_ONLY_TARGETS</item>
<item>CMAKE_LINK_LIBRARY_FILE_FLAG</item>
<item>CMAKE_LINK_LIBRARY_FLAG</item>
<item>CMAKE_LINK_LIBRARY_SUFFIX</item>
<item>CMAKE_LINK_SEARCH_END_STATIC</item>
<item>CMAKE_LINK_SEARCH_START_STATIC</item>
<item>CMAKE_LINK_WHAT_YOU_USE</item>
+ <item>CMAKE_LINK_WHAT_YOU_USE_CHECK</item>
<item>CMAKE_MACOSX_BUNDLE</item>
<item>CMAKE_MACOSX_RPATH</item>
<item>CMAKE_MAJOR_VERSION</item>
<item>CMAKE_MAKE_PROGRAM</item>
<item>CMAKE_MATCH_COUNT</item>
<item>CMAKE_MAXIMUM_RECURSION_DEPTH</item>
+ <item>CMAKE_MESSAGE_CONTEXT</item>
+ <item>CMAKE_MESSAGE_CONTEXT_SHOW</item>
+ <item>CMAKE_MESSAGE_INDENT</item>
+ <item>CMAKE_MESSAGE_LOG_LEVEL</item>
<item>CMAKE_MFC_FLAG</item>
<item>CMAKE_MINIMUM_REQUIRED_VERSION</item>
<item>CMAKE_MINOR_VERSION</item>
<item>CMAKE_MODULE_LINKER_FLAGS</item>
<item>CMAKE_MODULE_LINKER_FLAGS_INIT</item>
<item>CMAKE_MODULE_PATH</item>
+ <item>CMAKE_MSVCIDE_RUN_PATH</item>
+ <item>CMAKE_MSVC_DEBUG_INFORMATION_FORMAT</item>
+ <item>CMAKE_MSVC_RUNTIME_LIBRARY</item>
<item>CMAKE_NETRC</item>
<item>CMAKE_NETRC_FILE</item>
<item>CMAKE_NINJA_OUTPUT_PATH_PREFIX</item>
- <item>CMAKE_NOT_USING_CONFIG_FLAGS</item>
<item>CMAKE_NO_ANSI_FOR_SCOPE</item>
<item>CMAKE_NO_ANSI_STREAM_HEADERS</item>
<item>CMAKE_NO_ANSI_STRING_STREAM</item>
<item>CMAKE_NO_BUILTIN_CHRPATH</item>
<item>CMAKE_NO_STD_NAMESPACE</item>
<item>CMAKE_NO_SYSTEM_FROM_IMPORTED</item>
+ <item>CMAKE_OBJCXX_EXTENSIONS</item>
+ <item>CMAKE_OBJCXX_LINK_NO_PIE_SUPPORTED</item>
+ <item>CMAKE_OBJCXX_LINK_PIE_SUPPORTED</item>
+ <item>CMAKE_OBJCXX_STANDARD</item>
+ <item>CMAKE_OBJCXX_STANDARD_REQUIRED</item>
+ <item>CMAKE_OBJC_EXTENSIONS</item>
+ <item>CMAKE_OBJC_LINK_NO_PIE_SUPPORTED</item>
+ <item>CMAKE_OBJC_LINK_PIE_SUPPORTED</item>
+ <item>CMAKE_OBJC_STANDARD</item>
+ <item>CMAKE_OBJC_STANDARD_REQUIRED</item>
<item>CMAKE_OBJECT_PATH_MAX</item>
+ <item>CMAKE_OPTIMIZE_DEPENDENCIES</item>
<item>CMAKE_OSX_ARCHITECTURES</item>
<item>CMAKE_OSX_DEPLOYMENT_TARGET</item>
<item>CMAKE_OSX_SYSROOT</item>
<item>CMAKE_PARENT_LIST_FILE</item>
<item>CMAKE_PATCH_VERSION</item>
+ <item>CMAKE_PCH_INSTANTIATE_TEMPLATES</item>
+ <item>CMAKE_PCH_WARN_INVALID</item>
<item>CMAKE_PDB_OUTPUT_DIRECTORY</item>
+ <item>CMAKE_PLATFORM_NO_VERSIONED_SONAME</item>
<item>CMAKE_POSITION_INDEPENDENT_CODE</item>
<item>CMAKE_PREFIX_PATH</item>
<item>CMAKE_PROGRAM_PATH</item>
<item>CMAKE_PROJECT_DESCRIPTION</item>
<item>CMAKE_PROJECT_HOMEPAGE_URL</item>
+ <item>CMAKE_PROJECT_INCLUDE</item>
+ <item>CMAKE_PROJECT_INCLUDE_BEFORE</item>
<item>CMAKE_PROJECT_NAME</item>
+ <item>CMAKE_PROJECT_TOP_LEVEL_INCLUDES</item>
<item>CMAKE_PROJECT_VERSION</item>
<item>CMAKE_PROJECT_VERSION_MAJOR</item>
<item>CMAKE_PROJECT_VERSION_MINOR</item>
@@ -1465,10 +2505,12 @@
<item>CMAKE_REQUIRED_FLAGS</item>
<item>CMAKE_REQUIRED_INCLUDES</item>
<item>CMAKE_REQUIRED_LIBRARIES</item>
+ <item>CMAKE_REQUIRED_LINK_OPTIONS</item>
<item>CMAKE_REQUIRED_QUIET</item>
<item>CMAKE_ROOT</item>
<item>CMAKE_RUNTIME_OUTPUT_DIRECTORY</item>
<item>CMAKE_SCRIPT_MODE_FILE</item>
+ <item>CMAKE_SHARED_LIBRARY_ENABLE_EXPORTS</item>
<item>CMAKE_SHARED_LIBRARY_PREFIX</item>
<item>CMAKE_SHARED_LIBRARY_SUFFIX</item>
<item>CMAKE_SHARED_LINKER_FLAGS</item>
@@ -1489,8 +2531,6 @@
<item>CMAKE_STATIC_LINKER_FLAGS_INIT</item>
<item>CMAKE_SUBLIME_TEXT_2_ENV_SETTINGS</item>
<item>CMAKE_SUBLIME_TEXT_2_EXCLUDE_BUILD_TREE</item>
- <item>CMAKE_SUPPRESS_DEVELOPER_ERRORS</item>
- <item>CMAKE_SUPPRESS_DEVELOPER_WARNINGS</item>
<item>CMAKE_SUPPRESS_REGENERATION</item>
<item>CMAKE_SWIG_FLAGS</item>
<item>CMAKE_SWIG_OUTDIR</item>
@@ -1501,6 +2541,7 @@
<item>CMAKE_SYSTEM_APPBUNDLE_PATH</item>
<item>CMAKE_SYSTEM_FRAMEWORK_PATH</item>
<item>CMAKE_SYSTEM_IGNORE_PATH</item>
+ <item>CMAKE_SYSTEM_IGNORE_PREFIX_PATH</item>
<item>CMAKE_SYSTEM_INCLUDE_PATH</item>
<item>CMAKE_SYSTEM_LIBRARY_PATH</item>
<item>CMAKE_SYSTEM_NAME</item>
@@ -1509,32 +2550,46 @@
<item>CMAKE_SYSTEM_PROGRAM_PATH</item>
<item>CMAKE_SYSTEM_VERSION</item>
<item>CMAKE_Swift_LANGUAGE_VERSION</item>
+ <item>CMAKE_Swift_MODULE_DIRECTORY</item>
+ <item>CMAKE_TASKING_TOOLSET</item>
<item>CMAKE_THREAD_LIBS_INIT</item>
<item>CMAKE_THREAD_PREFER_PTHREAD</item>
<item>CMAKE_TOOLCHAIN_FILE</item>
<item>CMAKE_TRY_COMPILE_CONFIGURATION</item>
+ <item>CMAKE_TRY_COMPILE_NO_PLATFORM_VARIABLES</item>
<item>CMAKE_TRY_COMPILE_PLATFORM_VARIABLES</item>
<item>CMAKE_TRY_COMPILE_TARGET_TYPE</item>
<item>CMAKE_TWEAK_VERSION</item>
+ <item>CMAKE_UNITY_BUILD</item>
+ <item>CMAKE_UNITY_BUILD_BATCH_SIZE</item>
<item>CMAKE_USER_MAKE_RULES_OVERRIDE</item>
<item>CMAKE_USE_PTHREADS_INIT</item>
<item>CMAKE_USE_RELATIVE_PATHS</item>
<item>CMAKE_USE_SPROC_INIT</item>
<item>CMAKE_USE_WIN32_THREADS_INIT</item>
<item>CMAKE_VERBOSE_MAKEFILE</item>
+ <item>CMAKE_VERIFY_INTERFACE_HEADER_SETS</item>
<item>CMAKE_VERSION</item>
<item>CMAKE_VISIBILITY_INLINES_HIDDEN</item>
+ <item>CMAKE_VS_DEBUGGER_COMMAND</item>
+ <item>CMAKE_VS_DEBUGGER_COMMAND_ARGUMENTS</item>
+ <item>CMAKE_VS_DEBUGGER_ENVIRONMENT</item>
+ <item>CMAKE_VS_DEBUGGER_WORKING_DIRECTORY</item>
<item>CMAKE_VS_DEVENV_COMMAND</item>
<item>CMAKE_VS_GLOBALS</item>
<item>CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD</item>
<item>CMAKE_VS_INCLUDE_PACKAGE_TO_DEFAULT_BUILD</item>
- <item>CMAKE_VS_INTEL_Fortran_PROJECT_VERSION</item>
+ <item>CMAKE_VS_JUST_MY_CODE_DEBUGGING</item>
<item>CMAKE_VS_MSBUILD_COMMAND</item>
+ <item>CMAKE_VS_NUGET_PACKAGE_RESTORE</item>
<item>CMAKE_VS_NsightTegra_VERSION</item>
<item>CMAKE_VS_PLATFORM_NAME</item>
+ <item>CMAKE_VS_PLATFORM_NAME_DEFAULT</item>
<item>CMAKE_VS_PLATFORM_TOOLSET</item>
<item>CMAKE_VS_PLATFORM_TOOLSET_CUDA</item>
+ <item>CMAKE_VS_PLATFORM_TOOLSET_CUDA_CUSTOM_DIR</item>
<item>CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE</item>
+ <item>CMAKE_VS_PLATFORM_TOOLSET_VERSION</item>
<item>CMAKE_VS_SDK_EXCLUDE_DIRECTORIES</item>
<item>CMAKE_VS_SDK_EXECUTABLE_DIRECTORIES</item>
<item>CMAKE_VS_SDK_INCLUDE_DIRECTORIES</item>
@@ -1542,20 +2597,37 @@
<item>CMAKE_VS_SDK_LIBRARY_WINRT_DIRECTORIES</item>
<item>CMAKE_VS_SDK_REFERENCE_DIRECTORIES</item>
<item>CMAKE_VS_SDK_SOURCE_DIRECTORIES</item>
+ <item>CMAKE_VS_TARGET_FRAMEWORK_IDENTIFIER</item>
+ <item>CMAKE_VS_TARGET_FRAMEWORK_TARGETS_VERSION</item>
+ <item>CMAKE_VS_TARGET_FRAMEWORK_VERSION</item>
+ <item>CMAKE_VS_VERSION_BUILD_NUMBER</item>
+ <item>CMAKE_VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION</item>
<item>CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION</item>
+ <item>CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION_MAXIMUM</item>
+ <item>CMAKE_VS_WINRT_BY_DEFAULT</item>
<item>CMAKE_WARN_DEPRECATED</item>
<item>CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION</item>
+ <item>CMAKE_WATCOM_RUNTIME_LIBRARY</item>
<item>CMAKE_WIN32_EXECUTABLE</item>
<item>CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS</item>
+ <item>CMAKE_XCODE_BUILD_SYSTEM</item>
<item>CMAKE_XCODE_GENERATE_SCHEME</item>
<item>CMAKE_XCODE_GENERATE_TOP_LEVEL_PROJECT_ONLY</item>
+ <item>CMAKE_XCODE_LINK_BUILD_PHASE_MODE</item>
<item>CMAKE_XCODE_PLATFORM_TOOLSET</item>
<item>CMAKE_XCODE_SCHEME_ADDRESS_SANITIZER</item>
<item>CMAKE_XCODE_SCHEME_ADDRESS_SANITIZER_USE_AFTER_RETURN</item>
+ <item>CMAKE_XCODE_SCHEME_DEBUG_DOCUMENT_VERSIONING</item>
<item>CMAKE_XCODE_SCHEME_DISABLE_MAIN_THREAD_CHECKER</item>
<item>CMAKE_XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS</item>
<item>CMAKE_XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE</item>
+ <item>CMAKE_XCODE_SCHEME_ENABLE_GPU_API_VALIDATION</item>
+ <item>CMAKE_XCODE_SCHEME_ENABLE_GPU_FRAME_CAPTURE_MODE</item>
+ <item>CMAKE_XCODE_SCHEME_ENABLE_GPU_SHADER_VALIDATION</item>
+ <item>CMAKE_XCODE_SCHEME_ENVIRONMENT</item>
<item>CMAKE_XCODE_SCHEME_GUARD_MALLOC</item>
+ <item>CMAKE_XCODE_SCHEME_LAUNCH_CONFIGURATION</item>
+ <item>CMAKE_XCODE_SCHEME_LAUNCH_MODE</item>
<item>CMAKE_XCODE_SCHEME_MAIN_THREAD_CHECKER_STOP</item>
<item>CMAKE_XCODE_SCHEME_MALLOC_GUARD_EDGES</item>
<item>CMAKE_XCODE_SCHEME_MALLOC_SCRIBBLE</item>
@@ -1564,10 +2636,14 @@
<item>CMAKE_XCODE_SCHEME_THREAD_SANITIZER_STOP</item>
<item>CMAKE_XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER</item>
<item>CMAKE_XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER_STOP</item>
+ <item>CMAKE_XCODE_SCHEME_WORKING_DIRECTORY</item>
<item>CMAKE_XCODE_SCHEME_ZOMBIE_OBJECTS</item>
+ <item>CMAKE_XCODE_XCCONFIG</item>
<item>CPACK_ABSOLUTE_DESTINATION_FILES</item>
<item>CPACK_ARCHIVE_COMPONENT_INSTALL</item>
+ <item>CPACK_ARCHIVE_FILE_EXTENSION</item>
<item>CPACK_ARCHIVE_FILE_NAME</item>
+ <item>CPACK_ARCHIVE_THREADS</item>
<item>CPACK_BUILD_SOURCE_DIRS</item>
<item>CPACK_BUNDLE_APPLE_CERT_APP</item>
<item>CPACK_BUNDLE_APPLE_CODESIGN_FILES</item>
@@ -1588,6 +2664,7 @@
<item>CPACK_COMPONENTS_GROUPING</item>
<item>CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY</item>
<item>CPACK_CREATE_DESKTOP_LINKS</item>
+ <item>CPACK_CUSTOM_INSTALL_VARIABLES</item>
<item>CPACK_CYGWIN_BUILD_SCRIPT</item>
<item>CPACK_CYGWIN_PATCH_FILE</item>
<item>CPACK_CYGWIN_PATCH_NUMBER</item>
@@ -1619,6 +2696,7 @@
<item>CPACK_DEBIAN_PACKAGE_REPLACES</item>
<item>CPACK_DEBIAN_PACKAGE_SECTION</item>
<item>CPACK_DEBIAN_PACKAGE_SHLIBDEPS</item>
+ <item>CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS</item>
<item>CPACK_DEBIAN_PACKAGE_SOURCE</item>
<item>CPACK_DEBIAN_PACKAGE_SUGGESTS</item>
<item>CPACK_DEBIAN_PACKAGE_VERSION</item>
@@ -1627,16 +2705,31 @@
<item>CPACK_DMG_DISABLE_APPLICATIONS_SYMLINK</item>
<item>CPACK_DMG_DS_STORE</item>
<item>CPACK_DMG_DS_STORE_SETUP_SCRIPT</item>
+ <item>CPACK_DMG_FILESYSTEM</item>
<item>CPACK_DMG_FORMAT</item>
<item>CPACK_DMG_SLA_DIR</item>
<item>CPACK_DMG_SLA_LANGUAGES</item>
+ <item>CPACK_DMG_SLA_USE_RESOURCE_FILE_LICENSE</item>
<item>CPACK_DMG_VOLUME_NAME</item>
<item>CPACK_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION</item>
- <item>CPACK_EXT_ENABLE_STAGING</item>
- <item>CPACK_EXT_PACKAGE_SCRIPT</item>
- <item>CPACK_EXT_REQUESTED_VERSIONS</item>
+ <item>CPACK_EXTERNAL_BUILT_PACKAGES</item>
+ <item>CPACK_EXTERNAL_ENABLE_STAGING</item>
+ <item>CPACK_EXTERNAL_PACKAGE_SCRIPT</item>
+ <item>CPACK_EXTERNAL_REQUESTED_VERSIONS</item>
+ <item>CPACK_FREEBSD_PACKAGE_CATEGORIES</item>
+ <item>CPACK_FREEBSD_PACKAGE_COMMENT</item>
+ <item>CPACK_FREEBSD_PACKAGE_DEPS</item>
+ <item>CPACK_FREEBSD_PACKAGE_DESCRIPTION</item>
+ <item>CPACK_FREEBSD_PACKAGE_LICENSE</item>
+ <item>CPACK_FREEBSD_PACKAGE_LICENSE_LOGIC</item>
+ <item>CPACK_FREEBSD_PACKAGE_MAINTAINER</item>
+ <item>CPACK_FREEBSD_PACKAGE_NAME</item>
+ <item>CPACK_FREEBSD_PACKAGE_ORIGIN</item>
+ <item>CPACK_FREEBSD_PACKAGE_WWW</item>
<item>CPACK_GENERATOR</item>
<item>CPACK_IFW_ADMIN_TARGET_DIRECTORY</item>
+ <item>CPACK_IFW_ARCHIVE_COMPRESSION</item>
+ <item>CPACK_IFW_ARCHIVE_FORMAT</item>
<item>CPACK_IFW_BINARYCREATOR_EXECUTABLE</item>
<item>CPACK_IFW_DEVTOOL_EXECUTABLE</item>
<item>CPACK_IFW_DOWNLOAD_ALL</item>
@@ -1648,22 +2741,30 @@
<item>CPACK_IFW_PACKAGE_BACKGROUND</item>
<item>CPACK_IFW_PACKAGE_BANNER</item>
<item>CPACK_IFW_PACKAGE_CONTROL_SCRIPT</item>
+ <item>CPACK_IFW_PACKAGE_DISABLE_COMMAND_LINE_INTERFACE</item>
<item>CPACK_IFW_PACKAGE_GROUP</item>
<item>CPACK_IFW_PACKAGE_ICON</item>
<item>CPACK_IFW_PACKAGE_LOGO</item>
<item>CPACK_IFW_PACKAGE_MAINTENANCE_TOOL_INI_FILE</item>
<item>CPACK_IFW_PACKAGE_MAINTENANCE_TOOL_NAME</item>
<item>CPACK_IFW_PACKAGE_NAME</item>
+ <item>CPACK_IFW_PACKAGE_PRODUCT_IMAGES</item>
<item>CPACK_IFW_PACKAGE_PUBLISHER</item>
<item>CPACK_IFW_PACKAGE_REMOVE_TARGET_DIR</item>
<item>CPACK_IFW_PACKAGE_RESOURCES</item>
+ <item>CPACK_IFW_PACKAGE_RUN_PROGRAM</item>
+ <item>CPACK_IFW_PACKAGE_RUN_PROGRAM_ARGUMENTS</item>
+ <item>CPACK_IFW_PACKAGE_RUN_PROGRAM_DESCRIPTION</item>
+ <item>CPACK_IFW_PACKAGE_SIGNING_IDENTITY</item>
<item>CPACK_IFW_PACKAGE_START_MENU_DIRECTORY</item>
+ <item>CPACK_IFW_PACKAGE_STYLE_SHEET</item>
<item>CPACK_IFW_PACKAGE_TITLE</item>
<item>CPACK_IFW_PACKAGE_TITLE_COLOR</item>
<item>CPACK_IFW_PACKAGE_WATERMARK</item>
<item>CPACK_IFW_PACKAGE_WINDOW_ICON</item>
<item>CPACK_IFW_PACKAGE_WIZARD_DEFAULT_HEIGHT</item>
<item>CPACK_IFW_PACKAGE_WIZARD_DEFAULT_WIDTH</item>
+ <item>CPACK_IFW_PACKAGE_WIZARD_SHOW_PAGE_LIST</item>
<item>CPACK_IFW_PACKAGE_WIZARD_STYLE</item>
<item>CPACK_IFW_PRODUCT_URL</item>
<item>CPACK_IFW_REPOGEN_EXECUTABLE</item>
@@ -1673,35 +2774,68 @@
<item>CPACK_IFW_TARGET_DIRECTORY</item>
<item>CPACK_IFW_VERBOSE</item>
<item>CPACK_INCLUDE_TOPLEVEL_DIRECTORY</item>
+ <item>CPACK_INNOSETUP_ALLOW_CUSTOM_DIRECTORY</item>
+ <item>CPACK_INNOSETUP_ARCHITECTURE</item>
+ <item>CPACK_INNOSETUP_CODE_FILES</item>
+ <item>CPACK_INNOSETUP_CREATE_UNINSTALL_LINK</item>
+ <item>CPACK_INNOSETUP_CUSTOM_INSTALL_INSTRUCTIONS</item>
+ <item>CPACK_INNOSETUP_EXECUTABLE</item>
+ <item>CPACK_INNOSETUP_EXECUTABLE_ARGUMENTS</item>
+ <item>CPACK_INNOSETUP_EXTRA_SCRIPTS</item>
+ <item>CPACK_INNOSETUP_ICON_FILE</item>
+ <item>CPACK_INNOSETUP_IGNORE_LICENSE_PAGE</item>
+ <item>CPACK_INNOSETUP_IGNORE_README_PAGE</item>
+ <item>CPACK_INNOSETUP_INSTALL_ROOT</item>
+ <item>CPACK_INNOSETUP_LANGUAGES</item>
+ <item>CPACK_INNOSETUP_MENU_LINKS</item>
+ <item>CPACK_INNOSETUP_PASSWORD</item>
+ <item>CPACK_INNOSETUP_PROGRAM_MENU_FOLDER</item>
+ <item>CPACK_INNOSETUP_RUN_EXECUTABLES</item>
+ <item>CPACK_INNOSETUP_USE_CMAKE_BOOL_FORMAT</item>
+ <item>CPACK_INNOSETUP_USE_MODERN_WIZARD</item>
+ <item>CPACK_INNOSETUP_VERIFY_DOWNLOADS</item>
<item>CPACK_INSTALLED_DIRECTORIES</item>
<item>CPACK_INSTALL_CMAKE_PROJECTS</item>
<item>CPACK_INSTALL_COMMANDS</item>
<item>CPACK_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS</item>
- <item>CPACK_INSTALL_SCRIPT</item>
+ <item>CPACK_INSTALL_SCRIPTS</item>
<item>CPACK_MONOLITHIC_INSTALL</item>
+ <item>CPACK_NSIS_BRANDING_TEXT</item>
+ <item>CPACK_NSIS_BRANDING_TEXT_TRIM_POSITION</item>
<item>CPACK_NSIS_COMPRESSOR</item>
<item>CPACK_NSIS_CONTACT</item>
<item>CPACK_NSIS_CREATE_ICONS_EXTRA</item>
<item>CPACK_NSIS_DELETE_ICONS_EXTRA</item>
<item>CPACK_NSIS_DISPLAY_NAME</item>
<item>CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL</item>
+ <item>CPACK_NSIS_EXECUTABLE</item>
<item>CPACK_NSIS_EXECUTABLES_DIRECTORY</item>
+ <item>CPACK_NSIS_EXECUTABLE_POST_ARGUMENTS</item>
+ <item>CPACK_NSIS_EXECUTABLE_PRE_ARGUMENTS</item>
<item>CPACK_NSIS_EXTRA_INSTALL_COMMANDS</item>
<item>CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS</item>
<item>CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS</item>
+ <item>CPACK_NSIS_FINISH_TITLE</item>
+ <item>CPACK_NSIS_FINISH_TITLE_3LINES</item>
<item>CPACK_NSIS_HELP_LINK</item>
+ <item>CPACK_NSIS_IGNORE_LICENSE_PAGE</item>
<item>CPACK_NSIS_INSTALLED_ICON_NAME</item>
<item>CPACK_NSIS_INSTALLER_MUI_ICON_CODE</item>
<item>CPACK_NSIS_INSTALL_ROOT</item>
+ <item>CPACK_NSIS_MANIFEST_DPI_AWARE</item>
<item>CPACK_NSIS_MENU_LINKS</item>
<item>CPACK_NSIS_MODIFY_PATH</item>
<item>CPACK_NSIS_MUI_FINISHPAGE_RUN</item>
+ <item>CPACK_NSIS_MUI_HEADERIMAGE</item>
<item>CPACK_NSIS_MUI_ICON</item>
<item>CPACK_NSIS_MUI_UNIICON</item>
<item>CPACK_NSIS_MUI_UNWELCOMEFINISHPAGE_BITMAP</item>
<item>CPACK_NSIS_MUI_WELCOMEFINISHPAGE_BITMAP</item>
<item>CPACK_NSIS_PACKAGE_NAME</item>
+ <item>CPACK_NSIS_UNINSTALL_NAME</item>
<item>CPACK_NSIS_URL_INFO_ABOUT</item>
+ <item>CPACK_NSIS_WELCOME_TITLE</item>
+ <item>CPACK_NSIS_WELCOME_TITLE_3LINES</item>
<item>CPACK_NUGET_COMPONENT_INSTALL</item>
<item>CPACK_NUGET_PACKAGE_AUTHORS</item>
<item>CPACK_NUGET_PACKAGE_COPYRIGHT</item>
@@ -1710,23 +2844,28 @@
<item>CPACK_NUGET_PACKAGE_DESCRIPTION</item>
<item>CPACK_NUGET_PACKAGE_DESCRIPTION_SUMMARY</item>
<item>CPACK_NUGET_PACKAGE_HOMEPAGE_URL</item>
+ <item>CPACK_NUGET_PACKAGE_ICON</item>
<item>CPACK_NUGET_PACKAGE_ICONURL</item>
+ <item>CPACK_NUGET_PACKAGE_LANGUAGE</item>
<item>CPACK_NUGET_PACKAGE_LICENSEURL</item>
+ <item>CPACK_NUGET_PACKAGE_LICENSE_EXPRESSION</item>
+ <item>CPACK_NUGET_PACKAGE_LICENSE_FILE_NAME</item>
<item>CPACK_NUGET_PACKAGE_NAME</item>
<item>CPACK_NUGET_PACKAGE_OWNERS</item>
<item>CPACK_NUGET_PACKAGE_RELEASE_NOTES</item>
<item>CPACK_NUGET_PACKAGE_TAGS</item>
<item>CPACK_NUGET_PACKAGE_TITLE</item>
<item>CPACK_NUGET_PACKAGE_VERSION</item>
- <item>CPACK_OSX_PACKAGE_VERSION</item>
+ <item>CPACK_OBJCOPY_EXECUTABLE</item>
+ <item>CPACK_OBJDUMP_EXECUTABLE</item>
<item>CPACK_OUTPUT_CONFIG_FILE</item>
<item>CPACK_PACKAGE_CHECKSUM</item>
- <item>CPACK_PACKAGE_CONTACT</item>
<item>CPACK_PACKAGE_DESCRIPTION</item>
<item>CPACK_PACKAGE_DESCRIPTION_FILE</item>
<item>CPACK_PACKAGE_DESCRIPTION_SUMMARY</item>
<item>CPACK_PACKAGE_DIRECTORY</item>
<item>CPACK_PACKAGE_EXECUTABLES</item>
+ <item>CPACK_PACKAGE_FILES</item>
<item>CPACK_PACKAGE_FILE_NAME</item>
<item>CPACK_PACKAGE_HOMEPAGE_URL</item>
<item>CPACK_PACKAGE_ICON</item>
@@ -1741,10 +2880,28 @@
<item>CPACK_PACKAGING_INSTALL_PREFIX</item>
<item>CPACK_PKGBUILD_IDENTITY_NAME</item>
<item>CPACK_PKGBUILD_KEYCHAIN_PATH</item>
+ <item>CPACK_POST_BUILD_SCRIPTS</item>
+ <item>CPACK_PRE_BUILD_SCRIPTS</item>
+ <item>CPACK_PRODUCTBUILD_BACKGROUND</item>
+ <item>CPACK_PRODUCTBUILD_BACKGROUND_ALIGNMENT</item>
+ <item>CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA</item>
+ <item>CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_ALIGNMENT</item>
+ <item>CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_MIME_TYPE</item>
+ <item>CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_SCALING</item>
+ <item>CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_UTI</item>
+ <item>CPACK_PRODUCTBUILD_BACKGROUND_MIME_TYPE</item>
+ <item>CPACK_PRODUCTBUILD_BACKGROUND_SCALING</item>
+ <item>CPACK_PRODUCTBUILD_BACKGROUND_UTI</item>
+ <item>CPACK_PRODUCTBUILD_DOMAINS</item>
+ <item>CPACK_PRODUCTBUILD_DOMAINS_ANYWHERE</item>
+ <item>CPACK_PRODUCTBUILD_DOMAINS_ROOT</item>
+ <item>CPACK_PRODUCTBUILD_DOMAINS_USER</item>
+ <item>CPACK_PRODUCTBUILD_IDENTIFIER</item>
<item>CPACK_PRODUCTBUILD_IDENTITY_NAME</item>
<item>CPACK_PRODUCTBUILD_KEYCHAIN_PATH</item>
<item>CPACK_PRODUCTBUILD_RESOURCES_DIR</item>
<item>CPACK_PROJECT_CONFIG_FILE</item>
+ <item>CPACK_READELF_EXECUTABLE</item>
<item>CPACK_RESOURCE_FILE_LICENSE</item>
<item>CPACK_RESOURCE_FILE_README</item>
<item>CPACK_RESOURCE_FILE_WELCOME</item>
@@ -1798,10 +2955,13 @@
<item>CPACK_RPM_PACKAGE_VENDOR</item>
<item>CPACK_RPM_PACKAGE_VERSION</item>
<item>CPACK_RPM_POST_INSTALL_SCRIPT_FILE</item>
+ <item>CPACK_RPM_POST_TRANS_SCRIPT_FILE</item>
<item>CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE</item>
<item>CPACK_RPM_PRE_INSTALL_SCRIPT_FILE</item>
+ <item>CPACK_RPM_PRE_TRANS_SCRIPT_FILE</item>
<item>CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE</item>
<item>CPACK_RPM_RELOCATION_PATHS</item>
+ <item>CPACK_RPM_REQUIRES_EXCLUDE_FROM</item>
<item>CPACK_RPM_SOURCE_PKG_BUILD_PARAMS</item>
<item>CPACK_RPM_SOURCE_PKG_PACKAGING_INSTALL_PREFIX</item>
<item>CPACK_RPM_SPEC_INSTALL_POST</item>
@@ -1816,11 +2976,14 @@
<item>CPACK_SOURCE_STRIP_FILES</item>
<item>CPACK_STRIP_FILES</item>
<item>CPACK_SYSTEM_NAME</item>
+ <item>CPACK_THREADS</item>
<item>CPACK_TOPLEVEL_TAG</item>
<item>CPACK_VERBATIM_VARIABLES</item>
<item>CPACK_WARN_ON_ABSOLUTE_INSTALL_DESTINATION</item>
+ <item>CPACK_WIX_ARCHITECTURE</item>
<item>CPACK_WIX_CMAKE_PACKAGE_REGISTRY</item>
<item>CPACK_WIX_CULTURES</item>
+ <item>CPACK_WIX_CUSTOM_XMLNS</item>
<item>CPACK_WIX_EXTENSIONS</item>
<item>CPACK_WIX_EXTRA_OBJECTS</item>
<item>CPACK_WIX_EXTRA_SOURCES</item>
@@ -1834,6 +2997,7 @@
<item>CPACK_WIX_ROOT_FEATURE_TITLE</item>
<item>CPACK_WIX_ROOT_FOLDER_ID</item>
<item>CPACK_WIX_SKIP_PROGRAM_FOLDER</item>
+ <item>CPACK_WIX_SKIP_WIX_UI_EXTENSION</item>
<item>CPACK_WIX_TEMPLATE</item>
<item>CPACK_WIX_UI_BANNER</item>
<item>CPACK_WIX_UI_DIALOG</item>
@@ -1866,6 +3030,7 @@
<item>CTEST_CUSTOM_PRE_MEMCHECK</item>
<item>CTEST_CUSTOM_PRE_TEST</item>
<item>CTEST_CUSTOM_TEST_IGNORE</item>
+ <item>CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION</item>
<item>CTEST_CUSTOM_WARNING_EXCEPTION</item>
<item>CTEST_CUSTOM_WARNING_MATCH</item>
<item>CTEST_CVS_CHECKOUT</item>
@@ -1895,9 +3060,12 @@
<item>CTEST_P4_COMMAND</item>
<item>CTEST_P4_OPTIONS</item>
<item>CTEST_P4_UPDATE_OPTIONS</item>
+ <item>CTEST_RESOURCE_SPEC_FILE</item>
+ <item>CTEST_RUN_CURRENT_SCRIPT</item>
<item>CTEST_SCP_COMMAND</item>
<item>CTEST_SITE</item>
<item>CTEST_SOURCE_DIRECTORY</item>
+ <item>CTEST_SUBMIT_INACTIVITY_TIMEOUT</item>
<item>CTEST_SUBMIT_URL</item>
<item>CTEST_SVN_COMMAND</item>
<item>CTEST_SVN_OPTIONS</item>
@@ -1908,9 +3076,32 @@
<item>CTEST_UPDATE_COMMAND</item>
<item>CTEST_UPDATE_OPTIONS</item>
<item>CTEST_UPDATE_VERSION_ONLY</item>
+ <item>CTEST_UPDATE_VERSION_OVERRIDE</item>
<item>CTEST_USE_LAUNCHERS</item>
+ <item>CUDAToolkit_NVCC_EXECUTABLE</item>
+ <item>CUPS_INCLUDE_DIR</item>
+ <item>CURL_NO_CURL_CMAKE</item>
+ <item>CURL_USE_STATIC_LIBS</item>
+ <item>CURSES_CFLAGS</item>
+ <item>CURSES_HAVE_CURSES_H</item>
+ <item>CURSES_HAVE_NCURSES_CURSES_H</item>
+ <item>CURSES_HAVE_NCURSES_H</item>
+ <item>CURSES_HAVE_NCURSES_NCURSES_H</item>
+ <item>CURSES_NEED_NCURSES</item>
+ <item>CURSES_NEED_WIDE</item>
+ <item>CVS_EXECUTABLE</item>
+ <item>CXXTEST_PERL_TESTGEN_EXECUTABLE</item>
+ <item>CXXTEST_PYTHON_TESTGEN_EXECUTABLE</item>
+ <item>CXXTEST_TESTGEN_ARGS</item>
+ <item>CXXTEST_TESTGEN_EXECUTABLE</item>
+ <item>CXXTEST_TESTGEN_INTERPRETER</item>
+ <item>CXXTEST_USE_PYTHON</item>
<item>CYGWIN</item>
+ <item>DVIPDF_CONVERTER</item>
+ <item>DVIPS_CONVERTER</item>
<item>EXECUTABLE_OUTPUT_PATH</item>
+ <item>EXPAT_USE_STATIC_LIBS</item>
+ <item>EnvModules_COMMAND</item>
<item>ExternalData_BINARY_ROOT</item>
<item>ExternalData_CUSTOM_ERROR</item>
<item>ExternalData_CUSTOM_FILE</item>
@@ -1927,7 +3118,67 @@
<item>ExternalData_TIMEOUT_ABSOLUTE</item>
<item>ExternalData_TIMEOUT_INACTIVITY</item>
<item>ExternalData_URL_TEMPLATES</item>
- <item>GHS-MULTI</item>
+ <item>FETCHCONTENT_FULLY_DISCONNECTED</item>
+ <item>FETCHCONTENT_QUIET</item>
+ <item>FETCHCONTENT_TRY_FIND_PACKAGE_MODE</item>
+ <item>FETCHCONTENT_UPDATES_DISCONNECTED</item>
+ <item>FLEX_EXECUTABLE</item>
+ <item>FLTK2_BASE_LIBRARY</item>
+ <item>FLTK2_FLUID_EXECUTABLE</item>
+ <item>FLTK2_GL_LIBRARY</item>
+ <item>FLTK2_IMAGES_LIBRARY</item>
+ <item>FLTK2_WRAP_UI</item>
+ <item>FLTK_BASE_LIBRARY_DEBUG</item>
+ <item>FLTK_BASE_LIBRARY_RELEASE</item>
+ <item>FLTK_FLUID_EXECUTABLE</item>
+ <item>FLTK_FORMS_LIBRARY_DEBUG</item>
+ <item>FLTK_FORMS_LIBRARY_RELEASE</item>
+ <item>FLTK_GL_LIBRARY_DEBUG</item>
+ <item>FLTK_GL_LIBRARY_RELEASE</item>
+ <item>FLTK_IMAGES_LIBRARY_DEBUG</item>
+ <item>FLTK_IMAGES_LIBRARY_RELEASE</item>
+ <item>FLTK_SKIP_FLUID</item>
+ <item>FLTK_SKIP_FORMS</item>
+ <item>FLTK_SKIP_IMAGES</item>
+ <item>FLTK_SKIP_OPENGL</item>
+ <item>FLTK_WRAP_UI</item>
+ <item>FREETYPE_INCLUDE_DIR_freetype2</item>
+ <item>FREETYPE_INCLUDE_DIR_ft2build</item>
+ <item>FindGDAL_SKIP_GDAL_CONFIG</item>
+ <item>Fontconfig_COMPILE_OPTIONS</item>
+ <item>FortranCInterface_GLOBAL_CASE</item>
+ <item>FortranCInterface_GLOBAL_PREFIX</item>
+ <item>FortranCInterface_GLOBAL_SUFFIX</item>
+ <item>FortranCInterface_GLOBAL_SYMBOLS</item>
+ <item>FortranCInterface_GLOBAL__CASE</item>
+ <item>FortranCInterface_GLOBAL__PREFIX</item>
+ <item>FortranCInterface_GLOBAL__SUFFIX</item>
+ <item>FortranCInterface_MODULE_CASE</item>
+ <item>FortranCInterface_MODULE_MIDDLE</item>
+ <item>FortranCInterface_MODULE_PREFIX</item>
+ <item>FortranCInterface_MODULE_SUFFIX</item>
+ <item>FortranCInterface_MODULE_SYMBOLS</item>
+ <item>FortranCInterface_MODULE__CASE</item>
+ <item>FortranCInterface_MODULE__MIDDLE</item>
+ <item>FortranCInterface_MODULE__PREFIX</item>
+ <item>FortranCInterface_MODULE__SUFFIX</item>
+ <item>FortranCInterface_VERIFIED_C</item>
+ <item>FortranCInterface_VERIFIED_CXX</item>
+ <item>GCCXML</item>
+ <item>GDAL_ADDITIONAL_LIBRARY_VERSIONS</item>
+ <item>GDAL_LIBRARY</item>
+ <item>GETTEXT_MSGFMT_EXECUTABLE</item>
+ <item>GETTEXT_MSGMERGE_EXECUTABLE</item>
+ <item>GHSMULTI</item>
+ <item>GIF_LIBRARY</item>
+ <item>GIT_EXECUTABLE</item>
+ <item>GLEW_USE_STATIC_LIBS</item>
+ <item>GLEW_VERBOSE</item>
+ <item>GLUT_Xi_LIBRARY</item>
+ <item>GLUT_Xmu_LIBRARY</item>
+ <item>GLUT_glut_LIBRARY</item>
+ <item>GNUPLOT_EXECUTABLE</item>
+ <item>GNUTLS_DEFINITIONS</item>
<item>GRAPHVIZ_EXECUTABLES</item>
<item>GRAPHVIZ_EXTERNAL_LIBS</item>
<item>GRAPHVIZ_GENERATE_PER_TARGET</item>
@@ -1939,8 +3190,112 @@
<item>GRAPHVIZ_NODE_PREFIX</item>
<item>GRAPHVIZ_SHARED_LIBS</item>
<item>GRAPHVIZ_STATIC_LIBS</item>
+ <item>GSL_CBLAS_LIBRARY</item>
+ <item>GSL_CBLAS_LIBRARY_DEBUG</item>
+ <item>GSL_CONFIG_EXECUTABLE</item>
+ <item>GSL_LIBRARY</item>
+ <item>GSL_LIBRARY_DEBUG</item>
+ <item>GTEST_MSVC_SEARCH</item>
+ <item>GTK2_ADDITIONAL_SUFFIXES</item>
+ <item>GTK2_DEBUG</item>
+ <item>GTK2_DEFINITIONS</item>
+ <item>GTK2_TARGETS</item>
+ <item>GTK2_USE_IMPORTED_TARGETS</item>
+ <item>HDF5_CXX_COMPILER_EXECUTABLE</item>
+ <item>HDF5_CXX_COMPILER_EXECUTABLE_NO_INTERROGATE</item>
+ <item>HDF5_CXX_DEFINITIONS</item>
+ <item>HDF5_C_COMPILER_EXECUTABLE</item>
+ <item>HDF5_C_COMPILER_EXECUTABLE_NO_INTERROGATE</item>
+ <item>HDF5_C_DEFINITIONS</item>
+ <item>HDF5_DEFINITIONS</item>
+ <item>HDF5_DIFF_EXECUTABLE</item>
+ <item>HDF5_FIND_DEBUG</item>
+ <item>HDF5_Fortran_COMPILER_EXECUTABLE</item>
+ <item>HDF5_Fortran_COMPILER_EXECUTABLE_NO_INTERROGATE</item>
+ <item>HDF5_Fortran_DEFINITIONS</item>
+ <item>HDF5_IS_PARALLEL</item>
+ <item>HDF5_NO_FIND_PACKAGE_CONFIG_FILE</item>
+ <item>HDF5_PREFER_PARALLEL</item>
+ <item>HG_EXECUTABLE</item>
+ <item>HTLATEX_COMPILER</item>
+ <item>HTML_HELP_COMPILER</item>
+ <item>HTML_HELP_LIBRARY</item>
+ <item>ICOTOOL_EXECUTABLE</item>
+ <item>ICU_DEBUG</item>
+ <item>ICU_MAKEFILE_INC</item>
+ <item>ICU_PKGDATA_INC</item>
+ <item>IOS</item>
+ <item>Iconv_IS_BUILT_IN</item>
+ <item>Iconv_LIBRARY</item>
+ <item>Intl_IS_BUILT_IN</item>
+ <item>Intl_LIBRARY</item>
+ <item>JASPER_LIBARRY_DEBUG</item>
+ <item>JASPER_LIBRARY_RELEASE</item>
+ <item>JAVA_AWT_INCLUDE_PATH</item>
+ <item>JAVA_AWT_LIBRARY</item>
+ <item>JAVA_INCLUDE_PATH</item>
+ <item>JAVA_INCLUDE_PATH2</item>
+ <item>JAVA_JVM_LIBRARY</item>
+ <item>JPEG_LIBRARY</item>
+ <item>JPEG_LIBRARY_DEBUG</item>
+ <item>JPEG_LIBRARY_RELEASE</item>
+ <item>Java_IDLJ_EXECUTABLE</item>
+ <item>Java_JARSIGNER_EXECUTABLE</item>
+ <item>Java_JAR_EXECUTABLE</item>
+ <item>Java_JAVAC_EXECUTABLE</item>
+ <item>Java_JAVADOC_EXECUTABLE</item>
+ <item>Java_JAVAH_EXECUTABLE</item>
+ <item>Java_JAVA_EXECUTABLE</item>
+ <item>LAPACK_LINKER_FLAGS</item>
+ <item>LATEX2HTML_CONVERTER</item>
+ <item>LATEX_COMPILER</item>
+ <item>LIBLZMA_HAS_AUTO_DECODER</item>
+ <item>LIBLZMA_HAS_EASY_ENCODER</item>
+ <item>LIBLZMA_HAS_LZMA_PRESET</item>
<item>LIBRARY_OUTPUT_PATH</item>
+ <item>LIBXML2_DEFINITIONS</item>
+ <item>LIBXML2_LIBRARY</item>
+ <item>LIBXML2_XMLLINT_EXECUTABLE</item>
+ <item>LIBXSLT_DEFINITIONS</item>
+ <item>LIBXSLT_XSLTPROC_EXECUTABLE</item>
+ <item>LINUX</item>
+ <item>LTTNGUST_HAS_TRACEF</item>
+ <item>LTTNGUST_HAS_TRACELOG</item>
+ <item>LUALATEX_COMPILER</item>
+ <item>Libinput_COMPILE_OPTIONS</item>
+ <item>MAKEINDEX_COMPILER</item>
+ <item>MATLAB_ADDITIONAL_VERSIONS</item>
+ <item>MATLAB_FIND_DEBUG</item>
<item>MINGW</item>
+ <item>MPEG2_mpeg2_LIBRARY</item>
+ <item>MPEG2_vo_LIBRARY</item>
+ <item>MPEG_mpeg2_LIBRARY</item>
+ <item>MPEG_vo_LIBRARY</item>
+ <item>MPIEXEC_EXECUTABLE</item>
+ <item>MPIEXEC_MAX_NUMPROCS</item>
+ <item>MPIEXEC_NUMPROC_FLAG</item>
+ <item>MPIEXEC_POSTFLAGS</item>
+ <item>MPIEXEC_PREFLAGS</item>
+ <item>MPI_ASSUME_NO_BUILTIN_MPI</item>
+ <item>MPI_ASYNC_PROTECTS_NONBLOCKING</item>
+ <item>MPI_COMPILER_FLAGS</item>
+ <item>MPI_CXX_SKIP_MPICXX</item>
+ <item>MPI_DETERMINE_Fortran_CAPABILITIES</item>
+ <item>MPI_EXECUTABLE_SUFFIX</item>
+ <item>MPI_Fortran_F08_MODULE_ASYNCPROT</item>
+ <item>MPI_Fortran_F08_MODULE_SUBARRAYS</item>
+ <item>MPI_Fortran_F77_HEADER_ASYNCPROT</item>
+ <item>MPI_Fortran_F77_HEADER_SUBARRAYS</item>
+ <item>MPI_Fortran_F90_MODULE_ASYNCPROT</item>
+ <item>MPI_Fortran_F90_MODULE_SUBARRAYS</item>
+ <item>MPI_Fortran_HAVE_F08_MODULE</item>
+ <item>MPI_Fortran_HAVE_F77_HEADER</item>
+ <item>MPI_Fortran_HAVE_F90_MODULE</item>
+ <item>MPI_GUESS_LIBRARY_NAME</item>
+ <item>MPI_HOME</item>
+ <item>MPI_SKIP_COMPILER_WRAPPER</item>
+ <item>MPI_SKIP_GUESSING</item>
+ <item>MPI_SUBARRAYS_SUPPORTED</item>
<item>MSVC</item>
<item>MSVC10</item>
<item>MSVC11</item>
@@ -1954,23 +3309,83 @@
<item>MSVC_IDE</item>
<item>MSVC_TOOLSET_VERSION</item>
<item>MSVC_VERSION</item>
+ <item>Matlab_DATAARRAY_LIBRARY</item>
+ <item>Matlab_ENGINE_LIBRARY</item>
+ <item>Matlab_ENG_LIBRARY</item>
+ <item>Matlab_MAIN_PROGRAM</item>
+ <item>Matlab_MAT_LIBRARY</item>
+ <item>Matlab_MCC_COMPILER</item>
+ <item>Matlab_MEX_COMPILER</item>
+ <item>Matlab_MEX_EXTENSION</item>
+ <item>Matlab_MEX_LIBRARY</item>
+ <item>Matlab_MX_LIBRARY</item>
+ <item>ODBC_CONFIG</item>
+ <item>ODBC_LIBRARY</item>
+ <item>OPENAL_LIBRARY</item>
+ <item>OPENGL_egl_LIBRARY</item>
+ <item>OPENGL_gl_LIBRARY</item>
+ <item>OPENGL_glu_LIBRARY</item>
+ <item>OPENGL_glx_LIBRARY</item>
+ <item>OPENGL_opengl_LIBRARY</item>
+ <item>OPENSSL_APPLINK_SOURCE</item>
+ <item>OPENSSL_CRYPTO_LIBRARY</item>
+ <item>OPENSSL_MSVC_STATIC_RT</item>
+ <item>OPENSSL_SSL_LIBRARY</item>
+ <item>OPENSSL_USE_STATIC_LIBS</item>
+ <item>OpenACC_ACCEL_TARGET</item>
+ <item>OpenCL_LIBRARY</item>
+ <item>OpenGL_GL_PREFERENCE</item>
+ <item>OpenMP_Fortran_HAVE_OMPLIB_HEADER</item>
+ <item>OpenMP_Fortran_HAVE_OMPLIB_MODULE</item>
<item>PACKAGE_FIND_NAME</item>
- <item>PACKAGE_FIND_VERSION</item>
+ <item>PACKAGE_FIND_VERSION_COMPLETE</item>
<item>PACKAGE_FIND_VERSION_COUNT</item>
- <item>PACKAGE_FIND_VERSION_MAJOR</item>
- <item>PACKAGE_FIND_VERSION_MINOR</item>
- <item>PACKAGE_FIND_VERSION_PATCH</item>
- <item>PACKAGE_FIND_VERSION_TWEAK</item>
+ <item>PACKAGE_FIND_VERSION_MAX</item>
+ <item>PACKAGE_FIND_VERSION_MAX_COUNT</item>
+ <item>PACKAGE_FIND_VERSION_MAX_MAJOR</item>
+ <item>PACKAGE_FIND_VERSION_MAX_MINOR</item>
+ <item>PACKAGE_FIND_VERSION_MAX_PATCH</item>
+ <item>PACKAGE_FIND_VERSION_MAX_TWEAK</item>
+ <item>PACKAGE_FIND_VERSION_MIN</item>
+ <item>PACKAGE_FIND_VERSION_MIN_COUNT</item>
+ <item>PACKAGE_FIND_VERSION_MIN_MAJOR</item>
+ <item>PACKAGE_FIND_VERSION_MIN_MINOR</item>
+ <item>PACKAGE_FIND_VERSION_MIN_PATCH</item>
+ <item>PACKAGE_FIND_VERSION_MIN_TWEAK</item>
+ <item>PACKAGE_FIND_VERSION_RANGE</item>
+ <item>PACKAGE_FIND_VERSION_RANGE_MAX</item>
+ <item>PACKAGE_FIND_VERSION_RANGE_MIN</item>
<item>PACKAGE_VERSION</item>
<item>PACKAGE_VERSION_COMPATIBLE</item>
<item>PACKAGE_VERSION_EXACT</item>
<item>PACKAGE_VERSION_UNSUITABLE</item>
+ <item>PDFLATEX_COMPILER</item>
+ <item>PDFTOPS_CONVERTER</item>
+ <item>PERL_ARCHLIB</item>
+ <item>PERL_EXECUTABLE</item>
+ <item>PERL_EXTRA_C_FLAGS</item>
+ <item>PERL_PRIVLIB</item>
+ <item>PERL_SITEARCH</item>
+ <item>PERL_SITELIB</item>
+ <item>PERL_SITESEARCH</item>
+ <item>PERL_UPDATE_ARCHLIB</item>
+ <item>PERL_UPDATE_PRIVLIB</item>
+ <item>PERL_VENDORARCH</item>
+ <item>PERL_VENDORLIB</item>
+ <item>PHP4_EXECUTABLE</item>
+ <item>PHP4_INCLUDE_PATH</item>
+ <item>PHYSFS_LIBRARY</item>
+ <item>PIKE_EXECUTABLE</item>
+ <item>PIKE_INCLUDE_PATH</item>
<item>PKG_CONFIG_EXECUTABLE</item>
<item>PKG_CONFIG_USE_CMAKE_PREFIX_PATH</item>
<item>PKG_CONFIG_VERSION_STRING</item>
+ <item>PNG_DEFINITIONS</item>
+ <item>PNG_LIBRARY</item>
<item>PROJECT_BINARY_DIR</item>
<item>PROJECT_DESCRIPTION</item>
<item>PROJECT_HOMEPAGE_URL</item>
+ <item>PROJECT_IS_TOP_LEVEL</item>
<item>PROJECT_NAME</item>
<item>PROJECT_SOURCE_DIR</item>
<item>PROJECT_VERSION</item>
@@ -1978,17 +3393,220 @@
<item>PROJECT_VERSION_MINOR</item>
<item>PROJECT_VERSION_PATCH</item>
<item>PROJECT_VERSION_TWEAK</item>
+ <item>PS2PDF_CONVERTER</item>
+ <item>Patch_EXECUTABLE</item>
+ <item>Protobuf_DEBUG</item>
+ <item>Protobuf_IMPORT_DIRS</item>
+ <item>Protobuf_LIBRARY</item>
+ <item>Protobuf_LIBRARY_DEBUG</item>
+ <item>Protobuf_LITE_LIBRARY</item>
+ <item>Protobuf_LITE_LIBRARY_DEBUG</item>
+ <item>Protobuf_PROTOC_EXECUTABLE</item>
+ <item>Protobuf_PROTOC_LIBRARY</item>
+ <item>Protobuf_PROTOC_LIBRARY_DEBUG</item>
+ <item>Protobuf_SRC_ROOT_FOLDER</item>
+ <item>Protobuf_USE_STATIC_LIBS</item>
+ <item>Python2_ARTIFACTS_INTERACTIVE</item>
+ <item>Python2_COMPILER</item>
+ <item>Python2_COMPILER_ID</item>
+ <item>Python2_DOTNET_LAUNCHER</item>
+ <item>Python2_EXECUTABLE</item>
+ <item>Python2_FIND_ABI</item>
+ <item>Python2_FIND_FRAMEWORK</item>
+ <item>Python2_FIND_IMPLEMENTATIONS</item>
+ <item>Python2_FIND_REGISTRY</item>
+ <item>Python2_FIND_STRATEGY</item>
+ <item>Python2_FIND_UNVERSIONED_NAMES</item>
+ <item>Python2_FIND_VIRTUALENV</item>
+ <item>Python2_INTERPRETER_ID</item>
+ <item>Python2_LINK_OPTIONS</item>
+ <item>Python2_SITEARCH</item>
+ <item>Python2_SITELIB</item>
+ <item>Python2_SOABI</item>
+ <item>Python2_STDARCH</item>
+ <item>Python2_STDLIB</item>
+ <item>Python2_USE_STATIC_LIBS</item>
+ <item>Python3_ARTIFACTS_INTERACTIVE</item>
+ <item>Python3_COMPILER</item>
+ <item>Python3_COMPILER_ID</item>
+ <item>Python3_DOTNET_LAUNCHER</item>
+ <item>Python3_EXECUTABLE</item>
+ <item>Python3_FIND_ABI</item>
+ <item>Python3_FIND_FRAMEWORK</item>
+ <item>Python3_FIND_IMPLEMENTATIONS</item>
+ <item>Python3_FIND_REGISTRY</item>
+ <item>Python3_FIND_STRATEGY</item>
+ <item>Python3_FIND_UNVERSIONED_NAMES</item>
+ <item>Python3_FIND_VIRTUALENV</item>
+ <item>Python3_INTERPRETER_ID</item>
+ <item>Python3_LINK_OPTIONS</item>
+ <item>Python3_SITEARCH</item>
+ <item>Python3_SITELIB</item>
+ <item>Python3_SOABI</item>
+ <item>Python3_STDARCH</item>
+ <item>Python3_STDLIB</item>
+ <item>Python3_USE_STATIC_LIBS</item>
+ <item>Python_ARTIFACTS_INTERACTIVE</item>
+ <item>Python_COMPILER</item>
+ <item>Python_COMPILER_ID</item>
+ <item>Python_DOTNET_LAUNCHER</item>
+ <item>Python_EXECUTABLE</item>
+ <item>Python_FIND_ABI</item>
+ <item>Python_FIND_FRAMEWORK</item>
+ <item>Python_FIND_IMPLEMENTATIONS</item>
+ <item>Python_FIND_REGISTRY</item>
+ <item>Python_FIND_STRATEGY</item>
+ <item>Python_FIND_UNVERSIONED_NAMES</item>
+ <item>Python_FIND_VIRTUALENV</item>
+ <item>Python_INTERPRETER_ID</item>
+ <item>Python_LINK_OPTIONS</item>
+ <item>Python_SITEARCH</item>
+ <item>Python_SITELIB</item>
+ <item>Python_SOABI</item>
+ <item>Python_STDARCH</item>
+ <item>Python_STDLIB</item>
+ <item>Python_USE_STATIC_LIBS</item>
<item>QTIFWDIR</item>
+ <item>RTI_DEFINITIONS</item>
+ <item>Ruby_EXECUTABLE</item>
+ <item>Ruby_FIND_VIRTUALENV</item>
+ <item>SDLIMAGE_LIBRARY</item>
+ <item>SDLMIXER_LIBRARY</item>
+ <item>SDLNET_LIBRARY</item>
+ <item>SDLTTF_LIBRARY</item>
+ <item>SDL_BUILDING_LIBRARY</item>
+ <item>SDL_LIBRARY</item>
+ <item>SDL_SOUND_LIBRARY</item>
+ <item>SQUISH_CLIENT_EXECUTABLE</item>
+ <item>SQUISH_SERVER_EXECUTABLE</item>
+ <item>SWIG_EXECUTABLE</item>
<item>SWIG_OUTFILE_DIR</item>
<item>SWIG_SOURCE_FILE_EXTENSIONS</item>
+ <item>SWIG_USE_SWIG_DEPENDENCIES</item>
+ <item>Subversion_SVN_EXECUTABLE</item>
+ <item>Subversion_VERSION_SVN</item>
+ <item>TCL_INCLUDE_PATH</item>
+ <item>TCL_STUB_LIBRARY</item>
+ <item>TCL_TCLSH</item>
<item>THREADS_PREFER_PTHREAD_FLAG</item>
+ <item>TIFFXX_LIBRARY_DEBUG</item>
+ <item>TIFFXX_LIBRARY_RELEASE</item>
+ <item>TIFF_LIBRARY_DEBUG</item>
+ <item>TIFF_LIBRARY_RELEASE</item>
+ <item>TK_INCLUDE_PATH</item>
+ <item>TK_LIBRARY</item>
+ <item>TK_STUB_LIBRARY</item>
+ <item>TK_WISH</item>
+ <item>TTK_STUB_LIBRARY</item>
<item>UNIX</item>
+ <item>UseSWIG_MODULE_VERSION</item>
+ <item>Vulkan_GLSLANG_VALIDATOR_EXECUTABLE</item>
+ <item>Vulkan_GLSLC_EXECUTABLE</item>
+ <item>Vulkan_LIBRARY</item>
+ <item>WGET_EXECUTABLE</item>
<item>WIN32</item>
<item>WINCE</item>
<item>WINDOWS_PHONE</item>
<item>WINDOWS_STORE</item>
<item>XCODE</item>
<item>XCODE_VERSION</item>
+ <item>XCTest_EXECUTABLE</item>
+ <item>XELATEX_COMPILER</item>
+ <item>XINDY_COMPILER</item>
+ <item>XalanC_LIBRARY</item>
+ <item>XercesC_LIBRARY</item>
+ <item>ZLIB_USE_STATIC_LIBS</item>
+ <item>wxWidgets_CONFIGURATION</item>
+ <item>wxWidgets_CXX_FLAGS</item>
+ <item>wxWidgets_DEFINITIONS</item>
+ <item>wxWidgets_DEFINITIONS_DEBUG</item>
+ <item>wxWidgets_EXCLUDE_COMMON_LIBRARIES</item>
+ <item>wxWidgets_USE_DEBUG</item>
+ <item>wxWidgets_USE_FILE</item>
+ <item>wxWidgets_USE_STATIC</item>
+ <item>wxWidgets_USE_UNICODE</item>
+ <item>wxWidgets_USE_UNIVERSAL</item>
+ </list>
+
+ <list name="deprecated-or-internal-variables">
+ <item>CMAKE_ENABLE_EXPORTS</item>
+ <item>CMAKE_FILES_DIRECTORY</item>
+ <item>CMAKE_HOME_DIRECTORY</item>
+ <item>CMAKE_INTERNAL_PLATFORM_ABI</item>
+ <item>CMAKE_IOS_INSTALL_COMBINED</item>
+ <item>CMAKE_NOT_USING_CONFIG_FLAGS</item>
+ <item>CMAKE_OBJDUMP</item>
+ <item>CMAKE_SUPPRESS_DEVELOPER_ERRORS</item>
+ <item>CMAKE_SUPPRESS_DEVELOPER_WARNINGS</item>
+ <item>CMAKE_SYSTEM_ARCH</item>
+ <item>CMAKE_VS_INTEL_Fortran_PROJECT_VERSION</item>
+ <item>CPACK_INSTALL_PREFIX</item>
+ <item>CPACK_INSTALL_SCRIPT</item>
+ <item>CPACK_PACKAGE_CONTACT</item>
+ <item>CPACK_PACKAGE_RELOCATABLE</item>
+ <item>CPACK_TEMPORARY_DIRECTORY</item>
+ <item>CPACK_TOPLEVEL_DIRECTORY</item>
+ </list>
+
+ <list name="environment-variables">
+ <item>ADSP_ROOT</item>
+ <item>CC</item>
+ <item>CCMAKE_COLORS</item>
+ <item>CFLAGS</item>
+ <item>CMAKE_APPBUNDLE_PATH</item>
+ <item>CMAKE_APPLE_SILICON_PROCESSOR</item>
+ <item>CMAKE_BUILD_PARALLEL_LEVEL</item>
+ <item>CMAKE_BUILD_TYPE</item>
+ <item>CMAKE_COLOR_DIAGNOSTICS</item>
+ <item>CMAKE_CONFIGURATION_TYPES</item>
+ <item>CMAKE_CONFIG_TYPE</item>
+ <item>CMAKE_CROSSCOMPILING_EMULATOR</item>
+ <item>CMAKE_EXPORT_COMPILE_COMMANDS</item>
+ <item>CMAKE_FRAMEWORK_PATH</item>
+ <item>CMAKE_GENERATOR</item>
+ <item>CMAKE_GENERATOR_INSTANCE</item>
+ <item>CMAKE_GENERATOR_PLATFORM</item>
+ <item>CMAKE_GENERATOR_TOOLSET</item>
+ <item>CMAKE_INSTALL_MODE</item>
+ <item>CMAKE_MSVCIDE_RUN_PATH</item>
+ <item>CMAKE_NO_VERBOSE</item>
+ <item>CMAKE_OSX_ARCHITECTURES</item>
+ <item>CMAKE_PREFIX_PATH</item>
+ <item>CMAKE_TOOLCHAIN_FILE</item>
+ <item>CSFLAGS</item>
+ <item>CTEST_INTERACTIVE_DEBUG_MODE</item>
+ <item>CTEST_NO_TESTS_ACTION</item>
+ <item>CTEST_OUTPUT_ON_FAILURE</item>
+ <item>CTEST_PARALLEL_LEVEL</item>
+ <item>CTEST_PROGRESS_OUTPUT</item>
+ <item>CTEST_USE_LAUNCHERS_DEFAULT</item>
+ <item>CUDAARCHS</item>
+ <item>CUDACXX</item>
+ <item>CUDAFLAGS</item>
+ <item>CUDAHOSTCXX</item>
+ <item>CUDA_PATH</item>
+ <item>CXX</item>
+ <item>CXXFLAGS</item>
+ <item>DASHBOARD_TEST_FROM_CTEST</item>
+ <item>DESTDIR</item>
+ <item>FC</item>
+ <item>FFLAGS</item>
+ <item>HIPCXX</item>
+ <item>HIPFLAGS</item>
+ <item>ISPC</item>
+ <item>ISPCFLAGS</item>
+ <item>LDFLAGS</item>
+ <item>MACOSX_DEPLOYMENT_TARGET</item>
+ <item>OBJC</item>
+ <item>OBJCXX</item>
+ <item>PATH</item>
+ <item>QTIFWDIR</item>
+ <item>RC</item>
+ <item>RCFLAGS</item>
+ <item>SSL_CERT_DIR</item>
+ <item>SSL_CERT_FILE</item>
+ <item>SWIFTC</item>
+ <item>VERBOSE</item>
</list>
<list name="global-properties">
<item>ALLOW_DUPLICATE_CUSTOM_TARGETS</item>
@@ -1997,6 +3615,7 @@
<item>AUTOMOC_SOURCE_GROUP</item>
<item>AUTOMOC_TARGETS_FOLDER</item>
<item>AUTORCC_SOURCE_GROUP</item>
+ <item>CMAKE_CUDA_KNOWN_FEATURES</item>
<item>CMAKE_CXX_KNOWN_FEATURES</item>
<item>CMAKE_C_KNOWN_FEATURES</item>
<item>CMAKE_ROLE</item>
@@ -2032,6 +3651,7 @@
<item>XCODE_EMIT_EFFECTIVE_PLATFORM_NAME</item>
</list>
<list name="directory-properties">
+ <item>ADDITIONAL_CLEAN_FILES</item>
<item>ADDITIONAL_MAKE_CLEAN_FILES</item>
<item>BINARY_DIR</item>
<item>BUILDSYSTEM_TARGETS</item>
@@ -2043,6 +3663,7 @@
<item>DEFINITIONS</item>
<item>EXCLUDE_FROM_ALL</item>
<item>IMPLICIT_DEPENDS_INCLUDE_TRANSFORM</item>
+ <item>IMPORTED_TARGETS</item>
<item>INCLUDE_DIRECTORIES</item>
<item>INCLUDE_REGULAR_EXPRESSION</item>
<item>INTERPROCEDURAL_OPTIMIZATION</item>
@@ -2057,6 +3678,7 @@
<item>RULE_LAUNCH_LINK</item>
<item>SOURCE_DIR</item>
<item>SUBDIRECTORIES</item>
+ <item>SYSTEM</item>
<item>TESTS</item>
<item>TEST_INCLUDE_FILE</item>
<item>TEST_INCLUDE_FILES</item>
@@ -2064,6 +3686,8 @@
<item>VS_STARTUP_PROJECT</item>
</list>
<list name="target-properties">
+ <item>ADDITIONAL_CLEAN_FILES</item>
+ <item>AIX_EXPORT_ALL_SYMBOLS</item>
<item>ALIASED_TARGET</item>
<item>ANDROID_ANT_ADDITIONAL_OPTIONS</item>
<item>ANDROID_API</item>
@@ -2087,12 +3711,14 @@
<item>AUTOGEN_BUILD_DIR</item>
<item>AUTOGEN_ORIGIN_DEPENDS</item>
<item>AUTOGEN_TARGET_DEPENDS</item>
+ <item>AUTOGEN_USE_SYSTEM_INCLUDE</item>
<item>AUTOMOC</item>
<item>AUTOMOC_COMPILER_PREDEFINES</item>
<item>AUTOMOC_DEPEND_FILTERS</item>
<item>AUTOMOC_EXECUTABLE</item>
<item>AUTOMOC_MACRO_NAMES</item>
<item>AUTOMOC_MOC_OPTIONS</item>
+ <item>AUTOMOC_PATH_PREFIX</item>
<item>AUTORCC</item>
<item>AUTORCC_EXECUTABLE</item>
<item>AUTORCC_OPTIONS</item>
@@ -2118,14 +3744,24 @@
<item>COMPILE_OPTIONS</item>
<item>COMPILE_PDB_NAME</item>
<item>COMPILE_PDB_OUTPUT_DIRECTORY</item>
+ <item>COMPILE_WARNING_AS_ERROR</item>
<item>CROSSCOMPILING_EMULATOR</item>
+ <item>CUDA_ARCHITECTURES</item>
+ <item>CUDA_CUBIN_COMPILATION</item>
<item>CUDA_EXTENSIONS</item>
+ <item>CUDA_FATBIN_COMPILATION</item>
+ <item>CUDA_OPTIX_COMPILATION</item>
<item>CUDA_PTX_COMPILATION</item>
<item>CUDA_RESOLVE_DEVICE_SYMBOLS</item>
+ <item>CUDA_RUNTIME_LIBRARY</item>
<item>CUDA_SEPARABLE_COMPILATION</item>
<item>CUDA_STANDARD</item>
<item>CUDA_STANDARD_REQUIRED</item>
<item>CXX_EXTENSIONS</item>
+ <item>CXX_MODULE_DIRS</item>
+ <item>CXX_MODULE_SET</item>
+ <item>CXX_MODULE_SETS</item>
+ <item>CXX_SCAN_FOR_MODULES</item>
<item>CXX_STANDARD</item>
<item>CXX_STANDARD_REQUIRED</item>
<item>C_EXTENSIONS</item>
@@ -2134,11 +3770,18 @@
<item>DEFINE_SYMBOL</item>
<item>DEPLOYMENT_ADDITIONAL_FILES</item>
<item>DEPLOYMENT_REMOTE_DIRECTORY</item>
+ <item>DEPRECATION</item>
+ <item>DISABLE_PRECOMPILE_HEADERS</item>
+ <item>DLL_NAME_WITH_SOVERSION</item>
+ <item>DOTNET_SDK</item>
+ <item>DOTNET_TARGET_FRAMEWORK</item>
<item>DOTNET_TARGET_FRAMEWORK_VERSION</item>
<item>ENABLE_EXPORTS</item>
<item>EXCLUDE_FROM_ALL</item>
<item>EXCLUDE_FROM_DEFAULT_BUILD</item>
+ <item>EXPORT_COMPILE_COMMANDS</item>
<item>EXPORT_NAME</item>
+ <item>EXPORT_NO_SYSTEM</item>
<item>EXPORT_PROPERTIES</item>
<item>EchoString</item>
<item>FOLDER</item>
@@ -2146,9 +3789,17 @@
<item>FRAMEWORK_VERSION</item>
<item>Fortran_FORMAT</item>
<item>Fortran_MODULE_DIRECTORY</item>
+ <item>Fortran_PREPROCESS</item>
<item>GENERATOR_FILE_NAME</item>
<item>GNUtoMS</item>
<item>HAS_CXX</item>
+ <item>HEADER_DIRS</item>
+ <item>HEADER_SET</item>
+ <item>HEADER_SETS</item>
+ <item>HIP_ARCHITECTURES</item>
+ <item>HIP_EXTENSIONS</item>
+ <item>HIP_STANDARD</item>
+ <item>HIP_STANDARD_REQUIRED</item>
<item>IMPLICIT_DEPENDS_INCLUDE_TRANSFORM</item>
<item>IMPORTED</item>
<item>IMPORTED_COMMON_LANGUAGE_RUNTIME</item>
@@ -2162,28 +3813,40 @@
<item>IMPORTED_LINK_INTERFACE_MULTIPLICITY</item>
<item>IMPORTED_LOCATION</item>
<item>IMPORTED_NO_SONAME</item>
+ <item>IMPORTED_NO_SYSTEM</item>
<item>IMPORTED_OBJECTS</item>
<item>IMPORTED_SONAME</item>
<item>IMPORT_PREFIX</item>
<item>IMPORT_SUFFIX</item>
<item>INCLUDE_DIRECTORIES</item>
<item>INSTALL_NAME_DIR</item>
+ <item>INSTALL_REMOVE_ENVIRONMENT_RPATH</item>
<item>INSTALL_RPATH</item>
<item>INSTALL_RPATH_USE_LINK_PATH</item>
+ <item>INTERFACE_AUTOMOC_MACRO_NAMES</item>
<item>INTERFACE_AUTOUIC_OPTIONS</item>
<item>INTERFACE_COMPILE_DEFINITIONS</item>
<item>INTERFACE_COMPILE_FEATURES</item>
<item>INTERFACE_COMPILE_OPTIONS</item>
+ <item>INTERFACE_CXX_MODULE_SETS</item>
+ <item>INTERFACE_HEADER_SETS</item>
+ <item>INTERFACE_HEADER_SETS_TO_VERIFY</item>
<item>INTERFACE_INCLUDE_DIRECTORIES</item>
<item>INTERFACE_LINK_DEPENDS</item>
<item>INTERFACE_LINK_DIRECTORIES</item>
<item>INTERFACE_LINK_LIBRARIES</item>
+ <item>INTERFACE_LINK_LIBRARIES_DIRECT</item>
+ <item>INTERFACE_LINK_LIBRARIES_DIRECT_EXCLUDE</item>
<item>INTERFACE_LINK_OPTIONS</item>
<item>INTERFACE_POSITION_INDEPENDENT_CODE</item>
+ <item>INTERFACE_PRECOMPILE_HEADERS</item>
<item>INTERFACE_SOURCES</item>
<item>INTERFACE_SYSTEM_INCLUDE_DIRECTORIES</item>
<item>INTERPROCEDURAL_OPTIMIZATION</item>
<item>IOS_INSTALL_COMBINED</item>
+ <item>ISPC_HEADER_DIRECTORY</item>
+ <item>ISPC_HEADER_SUFFIX</item>
+ <item>ISPC_INSTRUCTION_SETS</item>
<item>JOB_POOL_COMPILE</item>
<item>JOB_POOL_LINK</item>
<item>LABELS</item>
@@ -2197,24 +3860,42 @@
<item>LINK_INTERFACE_LIBRARIES</item>
<item>LINK_INTERFACE_MULTIPLICITY</item>
<item>LINK_LIBRARIES</item>
+ <item>LINK_LIBRARIES_ONLY_TARGETS</item>
<item>LINK_OPTIONS</item>
<item>LINK_SEARCH_END_STATIC</item>
<item>LINK_SEARCH_START_STATIC</item>
<item>LINK_WHAT_YOU_USE</item>
<item>LOCATION</item>
+ <item>MACHO_COMPATIBILITY_VERSION</item>
+ <item>MACHO_CURRENT_VERSION</item>
<item>MACOSX_BUNDLE</item>
<item>MACOSX_BUNDLE_INFO_PLIST</item>
<item>MACOSX_FRAMEWORK_INFO_PLIST</item>
<item>MACOSX_RPATH</item>
<item>MANUALLY_ADDED_DEPENDENCIES</item>
+ <item>MSVC_DEBUG_INFORMATION_FORMAT</item>
+ <item>MSVC_RUNTIME_LIBRARY</item>
<item>NAME</item>
<item>NO_SONAME</item>
<item>NO_SYSTEM_FROM_IMPORTED</item>
+ <item>OBJCXX_EXTENSIONS</item>
+ <item>OBJCXX_STANDARD</item>
+ <item>OBJCXX_STANDARD_REQUIRED</item>
+ <item>OBJC_EXTENSIONS</item>
+ <item>OBJC_STANDARD</item>
+ <item>OBJC_STANDARD_REQUIRED</item>
+ <item>OPTIMIZE_DEPENDENCIES</item>
<item>OSX_ARCHITECTURES</item>
+ <item>OSX_COMPATIBILITY_VERSION</item>
+ <item>OSX_CURRENT_VERSION</item>
<item>OUTPUT_NAME</item>
+ <item>PCH_INSTANTIATE_TEMPLATES</item>
+ <item>PCH_WARN_INVALID</item>
<item>PDB_NAME</item>
<item>PDB_OUTPUT_DIRECTORY</item>
<item>POSITION_INDEPENDENT_CODE</item>
+ <item>PRECOMPILE_HEADERS</item>
+ <item>PRECOMPILE_HEADERS_REUSE_FROM</item>
<item>PREFIX</item>
<item>PRIVATE_HEADER</item>
<item>PROJECT_LABEL</item>
@@ -2232,7 +3913,18 @@
<item>STATIC_LIBRARY_FLAGS</item>
<item>STATIC_LIBRARY_OPTIONS</item>
<item>SUFFIX</item>
+ <item>SYSTEM</item>
+ <item>Swift_DEPENDENCIES_FILE</item>
+ <item>Swift_MODULE_DIRECTORY</item>
+ <item>Swift_MODULE_NAME</item>
<item>TYPE</item>
+ <item>UNITY_BUILD</item>
+ <item>UNITY_BUILD_BATCH_SIZE</item>
+ <item>UNITY_BUILD_CODE_AFTER_INCLUDE</item>
+ <item>UNITY_BUILD_CODE_BEFORE_INCLUDE</item>
+ <item>UNITY_BUILD_MODE</item>
+ <item>UNITY_BUILD_UNIQUE_ID</item>
+ <item>VERIFY_INTERFACE_HEADER_SETS</item>
<item>VERSION</item>
<item>VISIBILITY_INLINES_HIDDEN</item>
<item>VS_CONFIGURATION_TYPE</item>
@@ -2241,39 +3933,59 @@
<item>VS_DEBUGGER_ENVIRONMENT</item>
<item>VS_DEBUGGER_WORKING_DIRECTORY</item>
<item>VS_DESKTOP_EXTENSIONS_VERSION</item>
+ <item>VS_DOTNET_DOCUMENTATION_FILE</item>
<item>VS_DOTNET_REFERENCES</item>
<item>VS_DOTNET_REFERENCES_COPY_LOCAL</item>
+ <item>VS_DOTNET_STARTUP_OBJECT</item>
<item>VS_DOTNET_TARGET_FRAMEWORK_VERSION</item>
+ <item>VS_DPI_AWARE</item>
<item>VS_GLOBAL_KEYWORD</item>
<item>VS_GLOBAL_PROJECT_TYPES</item>
<item>VS_GLOBAL_ROOTNAMESPACE</item>
<item>VS_IOT_EXTENSIONS_VERSION</item>
<item>VS_IOT_STARTUP_TASK</item>
+ <item>VS_JUST_MY_CODE_DEBUGGING</item>
<item>VS_KEYWORD</item>
<item>VS_MOBILE_EXTENSIONS_VERSION</item>
+ <item>VS_NO_COMPILE_BATCHING</item>
+ <item>VS_NO_SOLUTION_DEPLOY</item>
+ <item>VS_PACKAGE_REFERENCES</item>
+ <item>VS_PLATFORM_TOOLSET</item>
+ <item>VS_PROJECT_IMPORT</item>
<item>VS_SCC_AUXPATH</item>
<item>VS_SCC_LOCALPATH</item>
<item>VS_SCC_PROJECTNAME</item>
<item>VS_SCC_PROVIDER</item>
<item>VS_SDK_REFERENCES</item>
+ <item>VS_SOLUTION_DEPLOY</item>
<item>VS_USER_PROPS</item>
<item>VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION</item>
<item>VS_WINRT_COMPONENT</item>
<item>VS_WINRT_EXTENSIONS</item>
<item>VS_WINRT_REFERENCES</item>
+ <item>WATCOM_RUNTIME_LIBRARY</item>
<item>WIN32_EXECUTABLE</item>
<item>WINDOWS_EXPORT_ALL_SYMBOLS</item>
<item>XCODE_EXPLICIT_FILE_TYPE</item>
+ <item>XCODE_GENERATE_SCHEME</item>
+ <item>XCODE_LINK_BUILD_PHASE_MODE</item>
<item>XCODE_PRODUCT_TYPE</item>
<item>XCODE_SCHEME_ADDRESS_SANITIZER</item>
<item>XCODE_SCHEME_ADDRESS_SANITIZER_USE_AFTER_RETURN</item>
<item>XCODE_SCHEME_ARGUMENTS</item>
+ <item>XCODE_SCHEME_DEBUG_AS_ROOT</item>
+ <item>XCODE_SCHEME_DEBUG_DOCUMENT_VERSIONING</item>
<item>XCODE_SCHEME_DISABLE_MAIN_THREAD_CHECKER</item>
<item>XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS</item>
<item>XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE</item>
+ <item>XCODE_SCHEME_ENABLE_GPU_API_VALIDATION</item>
+ <item>XCODE_SCHEME_ENABLE_GPU_FRAME_CAPTURE_MODE</item>
+ <item>XCODE_SCHEME_ENABLE_GPU_SHADER_VALIDATION</item>
<item>XCODE_SCHEME_ENVIRONMENT</item>
<item>XCODE_SCHEME_EXECUTABLE</item>
<item>XCODE_SCHEME_GUARD_MALLOC</item>
+ <item>XCODE_SCHEME_LAUNCH_CONFIGURATION</item>
+ <item>XCODE_SCHEME_LAUNCH_MODE</item>
<item>XCODE_SCHEME_MAIN_THREAD_CHECKER_STOP</item>
<item>XCODE_SCHEME_MALLOC_GUARD_EDGES</item>
<item>XCODE_SCHEME_MALLOC_SCRIBBLE</item>
@@ -2282,7 +3994,9 @@
<item>XCODE_SCHEME_THREAD_SANITIZER_STOP</item>
<item>XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER</item>
<item>XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER_STOP</item>
+ <item>XCODE_SCHEME_WORKING_DIRECTORY</item>
<item>XCODE_SCHEME_ZOMBIE_OBJECTS</item>
+ <item>XCODE_XCCONFIG</item>
<item>XCTEST</item>
</list>
<list name="source-properties">
@@ -2292,8 +4006,10 @@
<item>COMPILE_DEFINITIONS</item>
<item>COMPILE_FLAGS</item>
<item>COMPILE_OPTIONS</item>
+ <item>CXX_SCAN_FOR_MODULES</item>
<item>EXTERNAL_OBJECT</item>
<item>Fortran_FORMAT</item>
+ <item>Fortran_PREPROCESS</item>
<item>GENERATED</item>
<item>HEADER_FILE_ONLY</item>
<item>INCLUDE_DIRECTORIES</item>
@@ -2308,12 +4024,18 @@
<item>SKIP_AUTOMOC</item>
<item>SKIP_AUTORCC</item>
<item>SKIP_AUTOUIC</item>
+ <item>SKIP_LINTING</item>
+ <item>SKIP_PRECOMPILE_HEADERS</item>
+ <item>SKIP_UNITY_BUILD_INCLUSION</item>
<item>SYMBOLIC</item>
+ <item>Swift_DEPENDENCIES_FILE</item>
+ <item>Swift_DIAGNOSTICS_FILE</item>
<item>VS_COPY_TO_OUT_DIR</item>
<item>VS_DEPLOYMENT_CONTENT</item>
<item>VS_DEPLOYMENT_LOCATION</item>
<item>VS_INCLUDE_IN_VSIX</item>
<item>VS_RESOURCE_GENERATOR</item>
+ <item>VS_SETTINGS</item>
<item>VS_SHADER_DISABLE_OPTIMIZATIONS</item>
<item>VS_SHADER_ENABLE_DEBUG</item>
<item>VS_SHADER_ENTRYPOINT</item>
@@ -2337,21 +4059,27 @@
<item>DEPENDS</item>
<item>DISABLED</item>
<item>ENVIRONMENT</item>
+ <item>ENVIRONMENT_MODIFICATION</item>
<item>FAIL_REGULAR_EXPRESSION</item>
<item>FIXTURES_CLEANUP</item>
<item>FIXTURES_REQUIRED</item>
<item>FIXTURES_SETUP</item>
+ <item>GENERATED_RESOURCE_SPEC_FILE</item>
<item>LABELS</item>
<item>MEASUREMENT</item>
<item>PASS_REGULAR_EXPRESSION</item>
<item>PROCESSORS</item>
<item>PROCESSOR_AFFINITY</item>
<item>REQUIRED_FILES</item>
+ <item>RESOURCE_GROUPS</item>
<item>RESOURCE_LOCK</item>
<item>RUN_SERIAL</item>
+ <item>SKIP_REGULAR_EXPRESSION</item>
<item>SKIP_RETURN_CODE</item>
<item>TIMEOUT</item>
<item>TIMEOUT_AFTER_MATCH</item>
+ <item>TIMEOUT_SIGNAL_GRACE_PERIOD</item>
+ <item>TIMEOUT_SIGNAL_NAME</item>
<item>WILL_FAIL</item>
<item>WORKING_DIRECTORY</item>
</list>
@@ -2373,1482 +4101,2737 @@
</list>
<list name="generator-expressions">
+ <item>IF</item>
<item>0</item>
<item>1</item>
- <item>AND</item>
- <item>ANGLE-R</item>
<item>BOOL</item>
- <item>BUILD_INTERFACE</item>
- <item>COMMA</item>
- <item>COMPILE_FEATURES</item>
- <item>COMPILE_LANGUAGE</item>
- <item>CONFIG</item>
- <item>CXX_COMPILER_ID</item>
- <item>CXX_COMPILER_VERSION</item>
- <item>C_COMPILER_ID</item>
- <item>C_COMPILER_VERSION</item>
+ <item>AND</item>
+ <item>OR</item>
+ <item>NOT</item>
+ <item>STREQUAL</item>
<item>EQUAL</item>
- <item>GENEX_EVAL</item>
- <item>IF</item>
- <item>INSTALL_INTERFACE</item>
- <item>INSTALL_PREFIX</item>
- <item>IN_LIST</item>
- <item>JOIN</item>
- <item>LINK_ONLY</item>
+ <item>VERSION_LESS</item>
+ <item>VERSION_GREATER</item>
+ <item>VERSION_EQUAL</item>
+ <item>VERSION_LESS_EQUAL</item>
+ <item>VERSION_GREATER_EQUAL</item>
<item>LOWER_CASE</item>
+ <item>UPPER_CASE</item>
<item>MAKE_C_IDENTIFIER</item>
- <item>NOT</item>
- <item>OR</item>
- <item>PLATFORM_ID</item>
- <item>SEMICOLON</item>
+ <item>IN_LIST</item>
+ <item>JOIN</item>
+ <item>REMOVE_DUPLICATES</item>
+ <item>FILTER</item>
+ <item>PATH_EQUAL</item>
<item>SHELL_PATH</item>
- <item>STREQUAL</item>
- <item>TARGET_BUNDLE_CONTENT_DIR</item>
- <item>TARGET_BUNDLE_DIR</item>
+ <item>CONFIG</item>
+ <item>OUTPUT_CONFIG</item>
+ <item>COMMAND_CONFIG</item>
+ <item>PLATFORM_ID</item>
+ <item>C_COMPILER_VERSION</item>
+ <item>CXX_COMPILER_VERSION</item>
+ <item>CUDA_COMPILER_VERSION</item>
+ <item>OBJC_COMPILER_VERSION</item>
+ <item>OBJCXX_COMPILER_VERSION</item>
+ <item>Fortran_COMPILER_VERSION</item>
+ <item>HIP_COMPILER_VERSION</item>
+ <item>ISPC_COMPILER_VERSION</item>
+ <item>C_COMPILER_ID</item>
+ <item>CXX_COMPILER_ID</item>
+ <item>CUDA_COMPILER_ID</item>
+ <item>OBJC_COMPILER_ID</item>
+ <item>OBJCXX_COMPILER_ID</item>
+ <item>Fortran_COMPILER_ID</item>
+ <item>HIP_COMPILER_ID</item>
+ <item>ISPC_COMPILER_ID</item>
+ <item>COMPILE_LANGUAGE</item>
+ <item>COMPILE_LANG_AND_ID</item>
+ <item>COMPILE_FEATURES</item>
+ <item>COMPILE_ONLY</item>
+ <item>LINK_LANGUAGE</item>
+ <item>LINK_LANG_AND_ID</item>
+ <item>LINK_LIBRARY</item>
+ <item>LINK_GROUP</item>
+ <item>LINK_ONLY</item>
+ <item>DEVICE_LINK</item>
+ <item>HOST_LINK</item>
<item>TARGET_EXISTS</item>
+ <item>TARGET_NAME_IF_EXISTS</item>
+ <item>TARGET_NAME</item>
+ <item>TARGET_PROPERTY</item>
+ <item>TARGET_OBJECTS</item>
+ <item>TARGET_POLICY</item>
<item>TARGET_FILE</item>
- <item>TARGET_FILE_DIR</item>
+ <item>TARGET_FILE_BASE_NAME</item>
+ <item>TARGET_FILE_PREFIX</item>
+ <item>TARGET_FILE_SUFFIX</item>
<item>TARGET_FILE_NAME</item>
- <item>TARGET_GENEX_EVAL</item>
+ <item>TARGET_FILE_DIR</item>
+ <item>TARGET_IMPORT_FILE</item>
+ <item>TARGET_IMPORT_FILE_BASE_NAME</item>
+ <item>TARGET_IMPORT_FILE_PREFIX</item>
+ <item>TARGET_IMPORT_FILE_SUFFIX</item>
+ <item>TARGET_IMPORT_FILE_NAME</item>
+ <item>TARGET_IMPORT_FILE_DIR</item>
<item>TARGET_LINKER_FILE</item>
- <item>TARGET_LINKER_FILE_DIR</item>
+ <item>TARGET_LINKER_FILE_BASE_NAME</item>
+ <item>TARGET_LINKER_FILE_PREFIX</item>
+ <item>TARGET_LINKER_FILE_SUFFIX</item>
<item>TARGET_LINKER_FILE_NAME</item>
- <item>TARGET_NAME</item>
- <item>TARGET_NAME_IF_EXISTS</item>
- <item>TARGET_OBJECTS</item>
- <item>TARGET_PDB_FILE</item>
- <item>TARGET_PDB_FILE_DIR</item>
- <item>TARGET_PDB_FILE_NAME</item>
- <item>TARGET_POLICY</item>
- <item>TARGET_PROPERTY</item>
+ <item>TARGET_LINKER_FILE_DIR</item>
<item>TARGET_SONAME_FILE</item>
- <item>TARGET_SONAME_FILE_DIR</item>
<item>TARGET_SONAME_FILE_NAME</item>
- <item>UPPER_CASE</item>
- <item>VERSION_EQUAL</item>
- <item>VERSION_GREATER</item>
- <item>VERSION_GREATER_EQUAL</item>
- <item>VERSION_LESS</item>
- <item>VERSION_LESS_EQUAL</item>
+ <item>TARGET_SONAME_FILE_DIR</item>
+ <item>TARGET_PDB_FILE</item>
+ <item>TARGET_PDB_FILE_BASE_NAME</item>
+ <item>TARGET_PDB_FILE_NAME</item>
+ <item>TARGET_PDB_FILE_DIR</item>
+ <item>TARGET_BUNDLE_DIR_NAME</item>
+ <item>TARGET_BUNDLE_DIR</item>
+ <item>TARGET_BUNDLE_CONTENT_DIR</item>
+ <item>TARGET_RUNTIME_DLLS</item>
+ <item>TARGET_RUNTIME_DLL_DIRS</item>
+ <item>INSTALL_INTERFACE</item>
+ <item>BUILD_INTERFACE</item>
+ <item>BUILD_LOCAL_INTERFACE</item>
+ <item>INSTALL_PREFIX</item>
+ <item>GENEX_EVAL</item>
+ <item>TARGET_GENEX_EVAL</item>
+ <item>ANGLE-R</item>
+ <item>COMMA</item>
+ <item>SEMICOLON</item>
+ </list>
+ <list name="genex-LIST-subcommands">
+ <item>LENGTH</item>
+ <item>GET</item>
+ <item>SUBLIST</item>
+ <item>FIND</item>
+ <item>JOIN</item>
+ <item>APPEND</item>
+ <item>PREPEND</item>
+ <item>INSERT</item>
+ <item>POP_BACK</item>
+ <item>POP_FRONT</item>
+ <item>REMOVE_ITEM</item>
+ <item>REMOVE_AT</item>
+ <item>REMOVE_DUPLICATES</item>
+ <item>FILTER</item>
+ <item>TRANSFORM</item>
+ <item>FRANSFORM</item>
+ <item>REVERSE</item>
+ <item>SORT</item>
+ </list>
+ <list name="genex-PATH-subcommands">
+ <item>HAS_ROOT_NAME</item>
+ <item>HAS_ROOT_DIRECTORY</item>
+ <item>HAS_ROOT_PATH</item>
+ <item>HAS_FILENAME</item>
+ <item>HAS_EXTENSION</item>
+ <item>HAS_STEM</item>
+ <item>HAS_RELATIVE_PART</item>
+ <item>HAS_PARENT_PATH</item>
+ <item>IS_ABSOLUTE</item>
+ <item>IS_RELATIVE</item>
+ <item>IS_PREFIX</item>
+ <item>GET_ROOT_NAME</item>
+ <item>GET_ROOT_DIRECTORY</item>
+ <item>GET_ROOT_PATH</item>
+ <item>GET_FILENAME</item>
+ <item>GET_EXTENSION</item>
+ <item>GET_STEM</item>
+ <item>GET_RELATIVE_PART</item>
+ <item>GET_PARENT_PATH</item>
+ <item>CMAKE_PATH</item>
+ <item>APPEND</item>
+ <item>REMOVE_FILENAME</item>
+ <item>REPLACE_FILENAME</item>
+ <item>REMOVE_EXTENSION</item>
+ <item>REPLACE_EXTENSION</item>
+ <item>NORMAL_PATH</item>
+ <item>RELATIVE_PATH</item>
+ <item>ABSOLUTE_PATH</item>
+ </list>
+
+ <list name="standard-modules">
+ <item>AndroidTestUtilities</item>
+ <item>BundleUtilities</item>
+ <item>CheckCCompilerFlag</item>
+ <item>CheckCompilerFlag</item>
+ <item>CheckCSourceCompiles</item>
+ <item>CheckCSourceRuns</item>
+ <item>CheckCXXCompilerFlag</item>
+ <item>CheckCXXSourceCompiles</item>
+ <item>CheckCXXSourceRuns</item>
+ <item>CheckCXXSymbolExists</item>
+ <item>CheckFortranCompilerFlag</item>
+ <item>CheckFortranFunctionExists</item>
+ <item>CheckFortranSourceCompiles</item>
+ <item>CheckFortranSourceRuns</item>
+ <item>CheckFunctionExists</item>
+ <item>CheckIncludeFileCXX</item>
+ <item>CheckIncludeFile</item>
+ <item>CheckIncludeFiles</item>
+ <item>CheckIPOSupported</item>
+ <item>CheckLanguage</item>
+ <item>CheckLibraryExists</item>
+ <item>CheckLinkerFlag</item>
+ <item>CheckOBJCCompilerFlag</item>
+ <item>CheckOBJCSourceCompiles</item>
+ <item>CheckOBJCSourceRuns</item>
+ <item>CheckOBJCXXCompilerFlag</item>
+ <item>CheckOBJCXXSourceCompiles</item>
+ <item>CheckOBJCXXSourceRuns</item>
+ <item>CheckPIESupported</item>
+ <item>CheckPrototypeDefinition</item>
+ <item>CheckSourceCompiles</item>
+ <item>CheckSourceRuns</item>
+ <item>CheckStructHasMember</item>
+ <item>CheckSymbolExists</item>
+ <item>CheckTypeSize</item>
+ <item>CheckVariableExists</item>
+ <item>CMakeAddFortranSubdirectory</item>
+ <item>CMakeBackwardCompatibilityCXX</item>
+ <item>CMakeDependentOption</item>
+ <item>CMakeFindDependencyMacro</item>
+ <item>CMakeFindFrameworks</item>
+ <item>CMakePackageConfigHelpers</item>
+ <item>CMakePrintHelpers</item>
+ <item>CMakePrintSystemInformation</item>
+ <item>CMakePushCheckState</item>
+ <item>CPack</item>
+ <item>CPackComponent</item>
+ <item>CPackIFW</item>
+ <item>CPackIFWConfigureFile</item>
+ <item>CSharpUtilities</item>
+ <item>CTest</item>
+ <item>CTestCoverageCollectGCOV</item>
+ <item>CTestScriptMode</item>
+ <item>CTestUseLaunchers</item>
+ <item>DeployQt4</item>
+ <item>ExternalData</item>
+ <item>ExternalProject</item>
+ <item>FeatureSummary</item>
+ <item>FetchContent</item>
+ <item>FindPackageHandleStandardArgs</item>
+ <item>FindPackageMessage</item>
+ <item>FortranCInterface</item>
+ <item>GenerateExportHeader</item>
+ <item>GNUInstallDirs</item>
+ <item>GoogleTest</item>
+ <item>InstallRequiredSystemLibraries</item>
+ <item>ProcessorCount</item>
+ <item>SelectLibraryConfigurations</item>
+ <item>TestForANSIForScope</item>
+ <item>TestForANSIStreamHeaders</item>
+ <item>TestForSSTREAM</item>
+ <item>TestForSTDNamespace</item>
+ <item>UseEcos</item>
+ <item>UseJava</item>
+ <item>UseSWIG</item>
+ <item>UsewxWidgets</item>
+ </list>
+
+ <list name="standard-finder-modules">
+ <item>ALSA</item>
+ <item>Armadillo</item>
+ <item>ASPELL</item>
+ <item>AVIFile</item>
+ <item>Backtrace</item>
+ <item>BISON</item>
+ <item>BLAS</item>
+ <item>Boost</item>
+ <item>Bullet</item>
+ <item>BZip2</item>
+ <item>CABLE</item>
+ <item>Coin3D</item>
+ <item>CUDAToolkit</item>
+ <item>Cups</item>
+ <item>CURL</item>
+ <item>Curses</item>
+ <item>CVS</item>
+ <item>CxxTest</item>
+ <item>Cygwin</item>
+ <item>DCMTK</item>
+ <item>DevIL</item>
+ <item>Doxygen</item>
+ <item>EnvModules</item>
+ <item>EXPAT</item>
+ <item>FLEX</item>
+ <item>FLTK</item>
+ <item>FLTK2</item>
+ <item>Fontconfig</item>
+ <item>Freetype</item>
+ <item>GCCXML</item>
+ <item>GDAL</item>
+ <item>Gettext</item>
+ <item>GIF</item>
+ <item>Git</item>
+ <item>GLEW</item>
+ <item>GLUT</item>
+ <item>Gnuplot</item>
+ <item>GnuTLS</item>
+ <item>GSL</item>
+ <item>GTest</item>
+ <item>GTK</item>
+ <item>GTK2</item>
+ <item>HDF5</item>
+ <item>Hg</item>
+ <item>HSPELL</item>
+ <item>HTMLHelp</item>
+ <item>Ice</item>
+ <item>Iconv</item>
+ <item>Icotool</item>
+ <item>ICU</item>
+ <item>ImageMagick</item>
+ <item>Intl</item>
+ <item>ITK</item>
+ <item>Jasper</item>
+ <item>Java</item>
+ <item>JNI</item>
+ <item>JPEG</item>
+ <item>KDE3</item>
+ <item>KDE4</item>
+ <item>LAPACK</item>
+ <item>LATEX</item>
+ <item>LibArchive</item>
+ <item>Libinput</item>
+ <item>LibLZMA</item>
+ <item>LibXml2</item>
+ <item>LibXslt</item>
+ <item>LTTngUST</item>
+ <item>Lua</item>
+ <item>Lua50</item>
+ <item>Lua51</item>
+ <item>Matlab</item>
+ <item>MFC</item>
+ <item>Motif</item>
+ <item>MPEG</item>
+ <item>MPEG2</item>
+ <item>MPI</item>
+ <item>Msys</item>
+ <item>ODBC</item>
+ <item>OpenACC</item>
+ <item>OpenAL</item>
+ <item>OpenCL</item>
+ <item>OpenGL</item>
+ <item>OpenMP</item>
+ <item>OpenSceneGraph</item>
+ <item>OpenSSL</item>
+ <item>OpenThreads</item>
+ <item>osg</item>
+ <item>osg_functions</item>
+ <item>osgAnimation</item>
+ <item>osgDB</item>
+ <item>osgFX</item>
+ <item>osgGA</item>
+ <item>osgIntrospection</item>
+ <item>osgManipulator</item>
+ <item>osgParticle</item>
+ <item>osgPresentation</item>
+ <item>osgProducer</item>
+ <item>osgQt</item>
+ <item>osgShadow</item>
+ <item>osgSim</item>
+ <item>osgTerrain</item>
+ <item>osgText</item>
+ <item>osgUtil</item>
+ <item>osgViewer</item>
+ <item>osgVolume</item>
+ <item>osgWidget</item>
+ <item>Patch</item>
+ <item>Perl</item>
+ <item>PerlLibs</item>
+ <item>PHP4</item>
+ <item>PhysFS</item>
+ <item>Pike</item>
+ <item>PkgConfig</item>
+ <item>PNG</item>
+ <item>PostgreSQL</item>
+ <item>Producer</item>
+ <item>Protobuf</item>
+ <item>Python</item>
+ <item>Python2</item>
+ <item>Python3</item>
+ <item>Qt3</item>
+ <item>Qt4</item>
+ <item>QuickTime</item>
+ <item>RTI</item>
+ <item>Ruby</item>
+ <item>SDL</item>
+ <item>SDL_image</item>
+ <item>SDL_mixer</item>
+ <item>SDL_net</item>
+ <item>SDL_sound</item>
+ <item>SDL_ttf</item>
+ <item>SelfPackers</item>
+ <item>Squish</item>
+ <item>SQLite3</item>
+ <item>Subversion</item>
+ <item>SWIG</item>
+ <item>TCL</item>
+ <item>Tclsh</item>
+ <item>TclStub</item>
+ <item>Threads</item>
+ <item>TIFF</item>
+ <item>UnixCommands</item>
+ <item>VTK</item>
+ <item>Vulkan</item>
+ <item>Wget</item>
+ <item>Wish</item>
+ <item>wxWidgets</item>
+ <item>X11</item>
+ <item>XalanC</item>
+ <item>XCTest</item>
+ <item>XercesC</item>
+ <item>XMLRPC</item>
+ <item>ZLIB</item>
+ </list>
+
+ <list name="deprecated-modules">
+ <item>AddFileDependencies</item>
+ <item>CMakeDetermineVSServicePack</item>
+ <item>CMakeExpandImportedTargets</item>
+ <item>CMakeForceCompiler</item>
+ <item>CMakeParseArguments</item>
+ <item>Dart</item>
+ <item>Documentation</item>
+ <item>MacroAddFileDependencies</item>
+ <item>TestCXXAcceptsFlag</item>
+ <item>UseJavaClassFilelist</item>
+ <item>UseJavaSymlinks</item>
+ <item>UsePkgConfig</item>
+ <item>Use_wxWindows</item>
+ <item>WriteBasicConfigVersionFile</item>
+ <item>WriteCompilerDetectionHeader</item>
+ <item>FindCUDA</item>
+ <item>FindDart</item>
+ <item>FindPythonInterp</item>
+ <item>FindPythonLibs</item>
+ <item>FindQt</item>
+ <item>FindwxWindows</item>
+ <item>CPackArchive</item>
+ <item>CPackBundle</item>
+ <item>CPackCygwin</item>
+ <item>CPackDeb</item>
+ <item>CPackDMG</item>
+ <item>CPackFreeBSD</item>
+ <item>CPackNSIS</item>
+ <item>CPackNuGet</item>
+ <item>CPackPackageMaker</item>
+ <item>CPackProductBuild</item>
+ <item>CPackRPM</item>
+ <item>CPackWIX</item>
+ <item>GetPrerequisites</item>
+ <item>TestBigEndian</item>
+ </list>
+
+
+<!-- Source/cmStringAlgorithms.cxx: bool cmIsOff(cm::string_view val) -->
+ <list name="true_special_arg">
+ <item>TRUE</item>
+ <item>ON</item>
+ <item>YES</item>
+ <item>Y</item>
+ <item>0</item>
+ </list>
+
+
+<!-- Source/cmStringAlgorithms.cxx: bool cmIsOff(cm::string_view val) -->
+ <list name="false_special_arg">
+ <item>FALSE</item>
+ <item>OFF</item>
+ <item>NO</item>
+ <item>IGNORE</item>
+ <item>N</item>
+ <item>0</item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal Text">
<DetectSpaces/>
- <WordDetect String="break" insensitive="true" attribute="Command" context="break_ctx" />
- <WordDetect String="cmake_host_system_information" insensitive="true" attribute="Command" context="cmake_host_system_information_ctx" />
- <WordDetect String="cmake_minimum_required" insensitive="true" attribute="Command" context="cmake_minimum_required_ctx" />
- <WordDetect String="cmake_parse_arguments" insensitive="true" attribute="Command" context="cmake_parse_arguments_ctx" />
- <WordDetect String="cmake_policy" insensitive="true" attribute="Command" context="cmake_policy_ctx" />
- <WordDetect String="configure_file" insensitive="true" attribute="Command" context="configure_file_ctx" />
- <WordDetect String="continue" insensitive="true" attribute="Command" context="continue_ctx" />
- <WordDetect String="elseif" insensitive="true" attribute="Command" context="elseif_ctx" />
- <WordDetect String="else" insensitive="true" attribute="Command" context="else_ctx" />
- <WordDetect String="endforeach" insensitive="true" attribute="Command" context="endforeach_ctx" />
- <WordDetect String="endfunction" insensitive="true" attribute="Command" context="endfunction_ctx" />
- <WordDetect String="endif" insensitive="true" attribute="Command" context="endif_ctx" />
- <WordDetect String="endmacro" insensitive="true" attribute="Command" context="endmacro_ctx" />
- <WordDetect String="endwhile" insensitive="true" attribute="Command" context="endwhile_ctx" />
- <WordDetect String="execute_process" insensitive="true" attribute="Command" context="execute_process_ctx" />
- <WordDetect String="file" insensitive="true" attribute="Command" context="file_ctx" />
- <WordDetect String="find_file" insensitive="true" attribute="Command" context="find_file_ctx" />
- <WordDetect String="find_library" insensitive="true" attribute="Command" context="find_library_ctx" />
- <WordDetect String="find_package" insensitive="true" attribute="Command" context="find_package_ctx" />
- <WordDetect String="find_path" insensitive="true" attribute="Command" context="find_path_ctx" />
- <WordDetect String="find_program" insensitive="true" attribute="Command" context="find_program_ctx" />
- <WordDetect String="foreach" insensitive="true" attribute="Command" context="foreach_ctx" />
- <WordDetect String="function" insensitive="true" attribute="Command" context="function_ctx" />
- <WordDetect String="get_cmake_property" insensitive="true" attribute="Command" context="get_cmake_property_ctx" />
- <WordDetect String="get_directory_property" insensitive="true" attribute="Command" context="get_directory_property_ctx" />
- <WordDetect String="get_filename_component" insensitive="true" attribute="Command" context="get_filename_component_ctx" />
- <WordDetect String="get_property" insensitive="true" attribute="Command" context="get_property_ctx" />
- <WordDetect String="if" insensitive="true" attribute="Command" context="if_ctx" />
- <WordDetect String="include" insensitive="true" attribute="Command" context="include_ctx" />
- <WordDetect String="include_guard" insensitive="true" attribute="Command" context="include_guard_ctx" />
- <WordDetect String="list" insensitive="true" attribute="Command" context="list_ctx" />
- <WordDetect String="macro" insensitive="true" attribute="Command" context="macro_ctx" />
- <WordDetect String="mark_as_advanced" insensitive="true" attribute="Command" context="mark_as_advanced_ctx" />
- <WordDetect String="math" insensitive="true" attribute="Command" context="math_ctx" />
- <WordDetect String="message" insensitive="true" attribute="Command" context="message_ctx" />
- <WordDetect String="option" insensitive="true" attribute="Command" context="option_ctx" />
- <WordDetect String="return" insensitive="true" attribute="Command" context="return_ctx" />
- <WordDetect String="separate_arguments" insensitive="true" attribute="Command" context="separate_arguments_ctx" />
- <WordDetect String="set_directory_properties" insensitive="true" attribute="Command" context="set_directory_properties_ctx" />
- <WordDetect String="set_property" insensitive="true" attribute="Command" context="set_property_ctx" />
- <WordDetect String="set" insensitive="true" attribute="Command" context="set_ctx" />
- <WordDetect String="site_name" insensitive="true" attribute="Command" context="site_name_ctx" />
- <WordDetect String="string" insensitive="true" attribute="Command" context="string_ctx" />
- <WordDetect String="unset" insensitive="true" attribute="Command" context="unset_ctx" />
- <WordDetect String="variable_watch" insensitive="true" attribute="Command" context="variable_watch_ctx" />
- <WordDetect String="while" insensitive="true" attribute="Command" context="while_ctx" />
- <WordDetect String="add_compile_definitions" insensitive="true" attribute="Command" context="add_compile_definitions_ctx" />
- <WordDetect String="add_compile_options" insensitive="true" attribute="Command" context="add_compile_options_ctx" />
- <WordDetect String="add_custom_command" insensitive="true" attribute="Command" context="add_custom_command_ctx" />
- <WordDetect String="add_custom_target" insensitive="true" attribute="Command" context="add_custom_target_ctx" />
- <WordDetect String="add_definitions" insensitive="true" attribute="Command" context="add_definitions_ctx" />
- <WordDetect String="add_dependencies" insensitive="true" attribute="Command" context="add_dependencies_ctx" />
- <WordDetect String="add_executable" insensitive="true" attribute="Command" context="add_executable_ctx" />
- <WordDetect String="add_library" insensitive="true" attribute="Command" context="add_library_ctx" />
- <WordDetect String="add_link_options" insensitive="true" attribute="Command" context="add_link_options_ctx" />
- <WordDetect String="add_subdirectory" insensitive="true" attribute="Command" context="add_subdirectory_ctx" />
- <WordDetect String="add_test" insensitive="true" attribute="Command" context="add_test_ctx" />
- <WordDetect String="aux_source_directory" insensitive="true" attribute="Command" context="aux_source_directory_ctx" />
- <WordDetect String="build_command" insensitive="true" attribute="Command" context="build_command_ctx" />
- <WordDetect String="create_test_sourcelist" insensitive="true" attribute="Command" context="create_test_sourcelist_ctx" />
- <WordDetect String="define_property" insensitive="true" attribute="Command" context="define_property_ctx" />
- <WordDetect String="enable_language" insensitive="true" attribute="Command" context="enable_language_ctx" />
- <WordDetect String="enable_testing" insensitive="true" attribute="Command" context="enable_testing_ctx" />
- <WordDetect String="export" insensitive="true" attribute="Command" context="export_ctx" />
- <WordDetect String="fltk_wrap_ui" insensitive="true" attribute="Command" context="fltk_wrap_ui_ctx" />
- <WordDetect String="get_source_file_property" insensitive="true" attribute="Command" context="get_source_file_property_ctx" />
- <WordDetect String="get_target_property" insensitive="true" attribute="Command" context="get_target_property_ctx" />
- <WordDetect String="get_test_property" insensitive="true" attribute="Command" context="get_test_property_ctx" />
- <WordDetect String="include_directories" insensitive="true" attribute="Command" context="include_directories_ctx" />
- <WordDetect String="include_external_msproject" insensitive="true" attribute="Command" context="include_external_msproject_ctx" />
- <WordDetect String="include_regular_expression" insensitive="true" attribute="Command" context="include_regular_expression_ctx" />
- <WordDetect String="install" insensitive="true" attribute="Command" context="install_ctx" />
- <WordDetect String="link_directories" insensitive="true" attribute="Command" context="link_directories_ctx" />
- <WordDetect String="link_libraries" insensitive="true" attribute="Command" context="link_libraries_ctx" />
- <WordDetect String="load_cache" insensitive="true" attribute="Command" context="load_cache_ctx" />
- <WordDetect String="project" insensitive="true" attribute="Command" context="project_ctx" />
- <WordDetect String="qt_wrap_cpp" insensitive="true" attribute="Command" context="qt_wrap_cpp_ctx" />
- <WordDetect String="qt_wrap_ui" insensitive="true" attribute="Command" context="qt_wrap_ui_ctx" />
- <WordDetect String="remove_definitions" insensitive="true" attribute="Command" context="remove_definitions_ctx" />
- <WordDetect String="set_source_files_properties" insensitive="true" attribute="Command" context="set_source_files_properties_ctx" />
- <WordDetect String="set_target_properties" insensitive="true" attribute="Command" context="set_target_properties_ctx" />
- <WordDetect String="set_tests_properties" insensitive="true" attribute="Command" context="set_tests_properties_ctx" />
- <WordDetect String="source_group" insensitive="true" attribute="Command" context="source_group_ctx" />
- <WordDetect String="target_compile_definitions" insensitive="true" attribute="Command" context="target_compile_definitions_ctx" />
- <WordDetect String="target_compile_features" insensitive="true" attribute="Command" context="target_compile_features_ctx" />
- <WordDetect String="target_compile_options" insensitive="true" attribute="Command" context="target_compile_options_ctx" />
- <WordDetect String="target_include_directories" insensitive="true" attribute="Command" context="target_include_directories_ctx" />
- <WordDetect String="target_link_directories" insensitive="true" attribute="Command" context="target_link_directories_ctx" />
- <WordDetect String="target_link_libraries" insensitive="true" attribute="Command" context="target_link_libraries_ctx" />
- <WordDetect String="target_link_options" insensitive="true" attribute="Command" context="target_link_options_ctx" />
- <WordDetect String="target_sources" insensitive="true" attribute="Command" context="target_sources_ctx" />
- <WordDetect String="try_compile" insensitive="true" attribute="Command" context="try_compile_ctx" />
- <WordDetect String="try_run" insensitive="true" attribute="Command" context="try_run_ctx" />
- <WordDetect String="ctest_build" insensitive="true" attribute="Command" context="ctest_build_ctx" />
- <WordDetect String="ctest_configure" insensitive="true" attribute="Command" context="ctest_configure_ctx" />
- <WordDetect String="ctest_coverage" insensitive="true" attribute="Command" context="ctest_coverage_ctx" />
- <WordDetect String="ctest_empty_binary_directory" insensitive="true" attribute="Command" context="ctest_empty_binary_directory_ctx" />
- <WordDetect String="ctest_memcheck" insensitive="true" attribute="Command" context="ctest_memcheck_ctx" />
- <WordDetect String="ctest_read_custom_files" insensitive="true" attribute="Command" context="ctest_read_custom_files_ctx" />
- <WordDetect String="ctest_run_script" insensitive="true" attribute="Command" context="ctest_run_script_ctx" />
- <WordDetect String="ctest_sleep" insensitive="true" attribute="Command" context="ctest_sleep_ctx" />
- <WordDetect String="ctest_start" insensitive="true" attribute="Command" context="ctest_start_ctx" />
- <WordDetect String="ctest_submit" insensitive="true" attribute="Command" context="ctest_submit_ctx" />
- <WordDetect String="ctest_test" insensitive="true" attribute="Command" context="ctest_test_ctx" />
- <WordDetect String="ctest_update" insensitive="true" attribute="Command" context="ctest_update_ctx" />
- <WordDetect String="ctest_upload" insensitive="true" attribute="Command" context="ctest_upload_ctx" />
- <RegExpr attribute="Region Marker" context="RST Documentation" String="^#\[(=*)\[\.rst:" column="0" />
- <RegExpr attribute="Comment" context="Bracketed Comment" String="#\[(=*)\[" />
- <DetectChar attribute="Comment" context="Comment" char="#" />
- <DetectIdentifier attribute="User Function/Macro" context="User Function" />
- <RegExpr attribute="@Variable Substitution" context="@VarSubst" String="@&id_re;@" lookAhead="true" />
- <!-- Include keywords matching for language autocompleter work -->
- <keyword attribute="Command" context="#stay" String="commands" />
+ <WordDetect String="block" insensitive="true" attribute="Command" context="block_ctx" beginRegion="block"/>
+ <WordDetect String="break" insensitive="true" attribute="Control Flow" context="break_ctx"/>
+ <WordDetect String="cmake_host_system_information" insensitive="true" attribute="Command" context="cmake_host_system_information_ctx"/>
+ <WordDetect String="cmake_language" insensitive="true" attribute="Command" context="cmake_language_ctx"/>
+ <WordDetect String="cmake_minimum_required" insensitive="true" attribute="Command" context="cmake_minimum_required_ctx"/>
+ <WordDetect String="cmake_parse_arguments" insensitive="true" attribute="Command" context="cmake_parse_arguments_ctx"/>
+ <WordDetect String="cmake_path" insensitive="true" attribute="Command" context="cmake_path_ctx"/>
+ <WordDetect String="cmake_policy" insensitive="true" attribute="Command" context="cmake_policy_ctx"/>
+ <WordDetect String="configure_file" insensitive="true" attribute="Command" context="configure_file_ctx"/>
+ <WordDetect String="continue" insensitive="true" attribute="Control Flow" context="break_ctx"/>
+ <WordDetect String="elseif" insensitive="true" attribute="Control Flow" context="elseif_ctx"/>
+ <WordDetect String="else" insensitive="true" attribute="Control Flow" context="break_ctx"/>
+ <WordDetect String="endblock" insensitive="true" attribute="Command" context="break_ctx" endRegion="block"/>
+ <WordDetect String="endforeach" insensitive="true" attribute="Control Flow" context="break_ctx" endRegion="foreach"/>
+ <WordDetect String="endfunction" insensitive="true" attribute="Command" context="break_ctx" endRegion="function"/>
+ <WordDetect String="endif" insensitive="true" attribute="Control Flow" context="break_ctx" endRegion="if"/>
+ <WordDetect String="endmacro" insensitive="true" attribute="Command" context="break_ctx" endRegion="macro"/>
+ <WordDetect String="endwhile" insensitive="true" attribute="Control Flow" context="break_ctx" endRegion="while"/>
+ <WordDetect String="execute_process" insensitive="true" attribute="Command" context="execute_process_ctx"/>
+ <WordDetect String="file" insensitive="true" attribute="Command" context="file_ctx"/>
+ <WordDetect String="find_file" insensitive="true" attribute="Command" context="find_file_ctx"/>
+ <WordDetect String="find_library" insensitive="true" attribute="Command" context="find_library_ctx"/>
+ <WordDetect String="find_package" insensitive="true" attribute="Command" context="find_package_ctx"/>
+ <WordDetect String="find_path" insensitive="true" attribute="Command" context="find_file_ctx"/>
+ <WordDetect String="find_program" insensitive="true" attribute="Command" context="find_library_ctx"/>
+ <WordDetect String="foreach" insensitive="true" attribute="Control Flow" context="foreach_ctx" beginRegion="foreach"/>
+ <WordDetect String="function" insensitive="true" attribute="Command" context="function_ctx" beginRegion="function"/>
+ <WordDetect String="get_cmake_property" insensitive="true" attribute="Command" context="get_cmake_property_ctx"/>
+ <WordDetect String="get_directory_property" insensitive="true" attribute="Command" context="get_directory_property_ctx"/>
+ <WordDetect String="get_filename_component" insensitive="true" attribute="Command" context="get_filename_component_ctx"/>
+ <WordDetect String="get_property" insensitive="true" attribute="Command" context="get_property_ctx"/>
+ <WordDetect String="if" insensitive="true" attribute="Control Flow" context="if_ctx" beginRegion="if"/>
+ <WordDetect String="include" insensitive="true" attribute="Command" context="include_ctx"/>
+ <WordDetect String="include_guard" insensitive="true" attribute="Command" context="include_guard_ctx"/>
+ <WordDetect String="list" insensitive="true" attribute="Command" context="list_ctx"/>
+ <WordDetect String="macro" insensitive="true" attribute="Command" context="function_ctx" beginRegion="macro"/>
+ <WordDetect String="mark_as_advanced" insensitive="true" attribute="Command" context="mark_as_advanced_ctx"/>
+ <WordDetect String="math" insensitive="true" attribute="Command" context="math_ctx"/>
+ <WordDetect String="message" insensitive="true" attribute="Command" context="message_ctx"/>
+ <WordDetect String="option" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="return" insensitive="true" attribute="Control Flow" context="return_ctx"/>
+ <WordDetect String="separate_arguments" insensitive="true" attribute="Command" context="separate_arguments_ctx"/>
+ <WordDetect String="set_directory_properties" insensitive="true" attribute="Command" context="set_directory_properties_ctx"/>
+ <WordDetect String="set_property" insensitive="true" attribute="Command" context="set_property_ctx"/>
+ <WordDetect String="set" insensitive="true" attribute="Command" context="set_ctx"/>
+ <WordDetect String="site_name" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="string" insensitive="true" attribute="Command" context="string_ctx"/>
+ <WordDetect String="unset" insensitive="true" attribute="Command" context="unset_ctx"/>
+ <WordDetect String="variable_watch" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="while" insensitive="true" attribute="Control Flow" context="while_ctx" beginRegion="while"/>
+ <WordDetect String="add_compile_definitions" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="add_compile_options" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="add_custom_command" insensitive="true" attribute="Command" context="add_custom_command_ctx"/>
+ <WordDetect String="add_custom_target" insensitive="true" attribute="Command" context="add_custom_target_ctx"/>
+ <WordDetect String="add_definitions" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="add_dependencies" insensitive="true" attribute="Command" context="add_dependencies_ctx"/>
+ <WordDetect String="add_executable" insensitive="true" attribute="Command" context="add_executable_ctx"/>
+ <WordDetect String="add_library" insensitive="true" attribute="Command" context="add_library_ctx"/>
+ <WordDetect String="add_link_options" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="add_subdirectory" insensitive="true" attribute="Command" context="add_subdirectory_ctx"/>
+ <WordDetect String="add_test" insensitive="true" attribute="Command" context="add_test_ctx"/>
+ <WordDetect String="aux_source_directory" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="build_command" insensitive="true" attribute="Command" context="build_command_ctx"/>
+ <WordDetect String="cmake_file_api" insensitive="true" attribute="Command" context="cmake_file_api_ctx"/>
+ <WordDetect String="create_test_sourcelist" insensitive="true" attribute="Command" context="create_test_sourcelist_ctx"/>
+ <WordDetect String="define_property" insensitive="true" attribute="Command" context="define_property_ctx"/>
+ <WordDetect String="enable_language" insensitive="true" attribute="Command" context="enable_language_ctx"/>
+ <WordDetect String="enable_testing" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="export" insensitive="true" attribute="Command" context="export_ctx"/>
+ <WordDetect String="fltk_wrap_ui" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="get_source_file_property" insensitive="true" attribute="Command" context="get_source_file_property_ctx"/>
+ <WordDetect String="get_target_property" insensitive="true" attribute="Command" context="get_target_property_ctx"/>
+ <WordDetect String="get_test_property" insensitive="true" attribute="Command" context="get_test_property_ctx"/>
+ <WordDetect String="include_directories" insensitive="true" attribute="Command" context="include_directories_ctx"/>
+ <WordDetect String="include_external_msproject" insensitive="true" attribute="Command" context="include_external_msproject_ctx"/>
+ <WordDetect String="include_regular_expression" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="install" insensitive="true" attribute="Command" context="install_ctx"/>
+ <WordDetect String="link_directories" insensitive="true" attribute="Command" context="link_directories_ctx"/>
+ <WordDetect String="link_libraries" insensitive="true" attribute="Command" context="link_libraries_ctx"/>
+ <WordDetect String="load_cache" insensitive="true" attribute="Command" context="load_cache_ctx"/>
+ <WordDetect String="project" insensitive="true" attribute="Command" context="project_ctx"/>
+ <WordDetect String="qt_wrap_cpp" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="qt_wrap_ui" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="remove_definitions" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="set_source_files_properties" insensitive="true" attribute="Command" context="set_source_files_properties_ctx"/>
+ <WordDetect String="set_target_properties" insensitive="true" attribute="Command" context="set_target_properties_ctx"/>
+ <WordDetect String="set_tests_properties" insensitive="true" attribute="Command" context="set_tests_properties_ctx"/>
+ <WordDetect String="source_group" insensitive="true" attribute="Command" context="source_group_ctx"/>
+ <WordDetect String="target_compile_definitions" insensitive="true" attribute="Command" context="target_compile_definitions_ctx"/>
+ <WordDetect String="target_compile_features" insensitive="true" attribute="Command" context="target_compile_features_ctx"/>
+ <WordDetect String="target_compile_options" insensitive="true" attribute="Command" context="target_compile_options_ctx"/>
+ <WordDetect String="target_include_directories" insensitive="true" attribute="Command" context="target_include_directories_ctx"/>
+ <WordDetect String="target_link_directories" insensitive="true" attribute="Command" context="target_compile_options_ctx"/>
+ <WordDetect String="target_link_libraries" insensitive="true" attribute="Command" context="target_link_libraries_ctx"/>
+ <WordDetect String="target_link_options" insensitive="true" attribute="Command" context="target_compile_definitions_ctx"/>
+ <WordDetect String="target_precompile_headers" insensitive="true" attribute="Command" context="target_precompile_headers_ctx"/>
+ <WordDetect String="target_sources" insensitive="true" attribute="Command" context="target_sources_ctx"/>
+ <WordDetect String="try_compile" insensitive="true" attribute="Command" context="try_compile_ctx"/>
+ <WordDetect String="try_run" insensitive="true" attribute="Command" context="try_run_ctx"/>
+ <WordDetect String="ctest_build" insensitive="true" attribute="Command" context="ctest_build_ctx"/>
+ <WordDetect String="ctest_configure" insensitive="true" attribute="Command" context="ctest_configure_ctx"/>
+ <WordDetect String="ctest_coverage" insensitive="true" attribute="Command" context="ctest_coverage_ctx"/>
+ <WordDetect String="ctest_empty_binary_directory" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="ctest_memcheck" insensitive="true" attribute="Command" context="ctest_memcheck_ctx"/>
+ <WordDetect String="ctest_read_custom_files" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="ctest_run_script" insensitive="true" attribute="Command" context="ctest_run_script_ctx"/>
+ <WordDetect String="ctest_sleep" insensitive="true" attribute="Command" context="function_ctx"/>
+ <WordDetect String="ctest_start" insensitive="true" attribute="Command" context="ctest_start_ctx"/>
+ <WordDetect String="ctest_submit" insensitive="true" attribute="Command" context="ctest_submit_ctx"/>
+ <WordDetect String="ctest_test" insensitive="true" attribute="Command" context="ctest_test_ctx"/>
+ <WordDetect String="ctest_update" insensitive="true" attribute="Command" context="ctest_update_ctx"/>
+ <WordDetect String="ctest_upload" insensitive="true" attribute="Command" context="ctest_upload_ctx"/>
+ <WordDetect String="android_add_test_data" insensitive="true" attribute="CMake Provided Function/Macro" context="android_add_test_data_ctx"/>
+ <WordDetect String="fixup_bundle" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="copy_and_fixup_bundle" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="verify_app" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="get_bundle_main_executable" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="get_dotapp_dir" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="get_bundle_and_executable" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="get_bundle_all_executables" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="get_item_key" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="get_item_rpaths" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="clear_bundle_keys" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="set_bundle_key_values" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="get_bundle_keys" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="copy_resolved_item_into_bundle" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="copy_resolved_framework_into_bundle" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="fixup_bundle_item" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="verify_bundle_prerequisites" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="verify_bundle_symlinks" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_c_compiler_flag" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_compiler_flag" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_c_source_compiles" insensitive="true" attribute="CMake Provided Function/Macro" context="check_c_source_compiles_ctx"/>
+ <WordDetect String="check_c_source_runs" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_cxx_compiler_flag" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_cxx_source_compiles" insensitive="true" attribute="CMake Provided Function/Macro" context="check_c_source_compiles_ctx"/>
+ <WordDetect String="check_cxx_source_runs" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_cxx_symbol_exists" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_fortran_compiler_flag" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_fortran_function_exists" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_fortran_source_compiles" insensitive="true" attribute="CMake Provided Function/Macro" context="check_fortran_source_compiles_ctx"/>
+ <WordDetect String="check_fortran_source_runs" insensitive="true" attribute="CMake Provided Function/Macro" context="check_fortran_source_runs_ctx"/>
+ <WordDetect String="check_function_exists" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_include_file_cxx" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_include_file" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_include_files" insensitive="true" attribute="CMake Provided Function/Macro" context="check_include_files_ctx"/>
+ <WordDetect String="check_ipo_supported" insensitive="true" attribute="CMake Provided Function/Macro" context="check_ipo_supported_ctx"/>
+ <WordDetect String="check_language" insensitive="true" attribute="CMake Provided Function/Macro" context="check_language_ctx"/>
+ <WordDetect String="check_library_exists" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_linker_flag" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_objc_compiler_flag" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_objc_source_compiles" insensitive="true" attribute="CMake Provided Function/Macro" context="check_c_source_compiles_ctx"/>
+ <WordDetect String="check_objc_source_runs" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_objcxx_compiler_flag" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_objcxx_source_compiles" insensitive="true" attribute="CMake Provided Function/Macro" context="check_c_source_compiles_ctx"/>
+ <WordDetect String="check_objcxx_source_runs" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_pie_supported" insensitive="true" attribute="CMake Provided Function/Macro" context="check_pie_supported_ctx"/>
+ <WordDetect String="check_prototype_definition" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_source_compiles" insensitive="true" attribute="CMake Provided Function/Macro" context="check_fortran_source_compiles_ctx"/>
+ <WordDetect String="check_source_runs" insensitive="true" attribute="CMake Provided Function/Macro" context="check_fortran_source_runs_ctx"/>
+ <WordDetect String="check_struct_has_member" insensitive="true" attribute="CMake Provided Function/Macro" context="check_include_files_ctx"/>
+ <WordDetect String="check_symbol_exists" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="check_type_size" insensitive="true" attribute="CMake Provided Function/Macro" context="check_type_size_ctx"/>
+ <WordDetect String="check_variable_exists" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="cmake_add_fortran_subdirectory" insensitive="true" attribute="CMake Provided Function/Macro" context="cmake_add_fortran_subdirectory_ctx"/>
+ <WordDetect String="cmake_dependent_option" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="find_dependency" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="configure_package_config_file" insensitive="true" attribute="CMake Provided Function/Macro" context="configure_package_config_file_ctx"/>
+ <WordDetect String="write_basic_package_version_file" insensitive="true" attribute="CMake Provided Function/Macro" context="write_basic_package_version_file_ctx"/>
+ <WordDetect String="cmake_print_properties" insensitive="true" attribute="CMake Provided Function/Macro" context="cmake_print_properties_ctx"/>
+ <WordDetect String="cmake_push_check_state" insensitive="true" attribute="CMake Provided Function/Macro" context="cmake_push_check_state_ctx"/>
+ <WordDetect String="cmake_pop_check_state" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="cmake_reset_check_state" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="cpack_add_component" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_add_component_ctx"/>
+ <WordDetect String="cpack_add_component_group" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_add_component_group_ctx"/>
+ <WordDetect String="cpack_add_install_type" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_add_install_type_ctx"/>
+ <WordDetect String="cpack_configure_downloads" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_configure_downloads_ctx"/>
+ <WordDetect String="cpack_ifw_configure_component" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_ifw_configure_component_ctx"/>
+ <WordDetect String="cpack_ifw_configure_component_group" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_ifw_configure_component_group_ctx"/>
+ <WordDetect String="cpack_ifw_add_repository" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_ifw_add_repository_ctx"/>
+ <WordDetect String="cpack_ifw_update_repository" insensitive="true" attribute="CMake Provided Function/Macro" context="cpack_ifw_update_repository_ctx"/>
+ <WordDetect String="cpack_ifw_add_package_resources" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="cpack_ifw_configure_file" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="csharp_set_windows_forms_properties" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="csharp_set_designer_cs_properties" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="csharp_set_xaml_cs_properties" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="csharp_get_filename_keys" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="csharp_get_filename_key_base" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="csharp_get_dependentupon_name" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="ctest_coverage_collect_gcov" insensitive="true" attribute="CMake Provided Function/Macro" context="ctest_coverage_collect_gcov_ctx"/>
+ <WordDetect String="write_qt4_conf" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="resolve_qt4_paths" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="fixup_qt4_executable" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="install_qt4_plugin_path" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="install_qt4_plugin" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="install_qt4_executable" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="ExternalData_Expand_Arguments" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="ExternalData_Add_Test" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="ExternalData_Add_Target" insensitive="true" attribute="CMake Provided Function/Macro" context="ExternalData_Add_Target_ctx"/>
+ <WordDetect String="ExternalProject_Add" insensitive="true" attribute="CMake Provided Function/Macro" context="ExternalProject_Add_ctx"/>
+ <WordDetect String="ExternalProject_Get_Property" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="ExternalProject_Add_Step" insensitive="true" attribute="CMake Provided Function/Macro" context="ExternalProject_Add_Step_ctx"/>
+ <WordDetect String="ExternalProject_Add_StepTargets" insensitive="true" attribute="CMake Provided Function/Macro" context="ExternalProject_Add_StepTargets_ctx"/>
+ <WordDetect String="ExternalProject_Add_StepDependencies" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="feature_summary" insensitive="true" attribute="CMake Provided Function/Macro" context="feature_summary_ctx"/>
+ <WordDetect String="set_package_properties" insensitive="true" attribute="CMake Provided Function/Macro" context="set_package_properties_ctx"/>
+ <WordDetect String="add_feature_info" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="set_package_info" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="set_feature_info" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="print_enabled_features" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="print_disabled_features" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="FetchContent_Declare" insensitive="true" attribute="CMake Provided Function/Macro" context="FetchContent_Declare_ctx"/>
+ <WordDetect String="FetchContent_Populate" insensitive="true" attribute="CMake Provided Function/Macro" context="FetchContent_Populate_ctx"/>
+ <WordDetect String="FetchContent_GetProperties" insensitive="true" attribute="CMake Provided Function/Macro" context="FetchContent_GetProperties_ctx"/>
+ <WordDetect String="FetchContent_MakeAvailable" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="find_package_handle_standard_args" insensitive="true" attribute="CMake Provided Function/Macro" context="find_package_handle_standard_args_ctx"/>
+ <WordDetect String="find_package_check_version" insensitive="true" attribute="CMake Provided Function/Macro" context="find_package_check_version_ctx"/>
+ <WordDetect String="find_package_message" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="FortranCInterface_HEADER" insensitive="true" attribute="CMake Provided Function/Macro" context="FortranCInterface_HEADER_ctx"/>
+ <WordDetect String="FortranCInterface_VERIFY" insensitive="true" attribute="CMake Provided Function/Macro" context="FortranCInterface_VERIFY_ctx"/>
+ <WordDetect String="generate_export_header" insensitive="true" attribute="CMake Provided Function/Macro" context="generate_export_header_ctx"/>
+ <WordDetect String="GNUInstallDirs_get_absolute_install_dir" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="gtest_add_tests" insensitive="true" attribute="CMake Provided Function/Macro" context="gtest_add_tests_ctx"/>
+ <WordDetect String="gtest_discover_tests" insensitive="true" attribute="CMake Provided Function/Macro" context="gtest_discover_tests_ctx"/>
+ <WordDetect String="processorcount" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="select_library_configurations" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="test_big_endian" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="ecos_add_include_directories" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="ecos_add_executable" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="ecos_add_target_lib" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="ecos_adjust_directory" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="ecos_use_arm_elf_tools" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="ecos_use_i386_elf_tools" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="ecos_use_ppc_eabi_tools" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="add_jar" insensitive="true" attribute="CMake Provided Function/Macro" context="add_jar_ctx"/>
+ <WordDetect String="install_jar" insensitive="true" attribute="CMake Provided Function/Macro" context="install_jar_ctx"/>
+ <WordDetect String="install_jni_symlink" insensitive="true" attribute="CMake Provided Function/Macro" context="install_jar_ctx"/>
+ <WordDetect String="create_javah" insensitive="true" attribute="CMake Provided Function/Macro" context="create_javah_ctx"/>
+ <WordDetect String="install_jar_exports" insensitive="true" attribute="CMake Provided Function/Macro" context="install_jar_exports_ctx"/>
+ <WordDetect String="export_jars" insensitive="true" attribute="CMake Provided Function/Macro" context="export_jars_ctx"/>
+ <WordDetect String="find_jar" insensitive="true" attribute="CMake Provided Function/Macro" context="find_jar_ctx"/>
+ <WordDetect String="create_javadoc" insensitive="true" attribute="CMake Provided Function/Macro" context="create_javadoc_ctx"/>
+ <WordDetect String="swig_add_library" insensitive="true" attribute="CMake Provided Function/Macro" context="swig_add_library_ctx"/>
+ <WordDetect String="swig_link_libraries" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="squish_add_test" insensitive="true" attribute="CMake Provided Function/Macro" context="squish_add_test_ctx"/>
+ <WordDetect String="bison_target" insensitive="true" attribute="CMake Provided Function/Macro" context="bison_target_ctx"/>
+ <WordDetect String="cxxtest_add_test" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="doxygen_add_docs" insensitive="true" attribute="CMake Provided Function/Macro" context="doxygen_add_docs_ctx"/>
+ <WordDetect String="env_module" insensitive="true" attribute="CMake Provided Function/Macro" context="env_module_ctx"/>
+ <WordDetect String="env_module_swap" insensitive="true" attribute="CMake Provided Function/Macro" context="env_module_swap_ctx"/>
+ <WordDetect String="env_module_list" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="env_module_avail" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="flex_target" insensitive="true" attribute="CMake Provided Function/Macro" context="flex_target_ctx"/>
+ <WordDetect String="add_flex_bison_dependency" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="gettext_create_translations" insensitive="true" attribute="CMake Provided Function/Macro" context="gettext_create_translations_ctx"/>
+ <WordDetect String="gettext_process_pot_file" insensitive="true" attribute="CMake Provided Function/Macro" context="gettext_process_pot_file_ctx"/>
+ <WordDetect String="gettext_process_po_files" insensitive="true" attribute="CMake Provided Function/Macro" context="gettext_process_po_files_ctx"/>
+ <WordDetect String="hg_wc_info" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="matlab_get_version_from_release_name" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="matlab_get_release_name_from_version" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="matlab_extract_all_installed_versions_from_registry" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="matlab_get_all_valid_matlab_roots_from_registry" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="matlab_get_mex_suffix" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="matlab_get_version_from_matlab_run" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="matlab_add_unit_test" insensitive="true" attribute="CMake Provided Function/Macro" context="matlab_add_unit_test_ctx"/>
+ <WordDetect String="matlab_add_mex" insensitive="true" attribute="CMake Provided Function/Macro" context="matlab_add_mex_ctx"/>
+ <WordDetect String="pkg_check_modules" insensitive="true" attribute="CMake Provided Function/Macro" context="pkg_check_modules_ctx"/>
+ <WordDetect String="pkg_search_module" insensitive="true" attribute="CMake Provided Function/Macro" context="pkg_check_modules_ctx"/>
+ <WordDetect String="pkg_get_variable" insensitive="true" attribute="CMake Provided Function/Macro" context="pkg_get_variable_ctx"/>
+ <WordDetect String="protobuf_generate_cpp" insensitive="true" attribute="CMake Provided Function/Macro" context="protobuf_generate_cpp_ctx"/>
+ <WordDetect String="protobuf_generate_python" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="Python_add_library" insensitive="true" attribute="CMake Provided Function/Macro" context="Python_add_library_ctx"/>
+ <WordDetect String="Subversion_WC_INFO" insensitive="true" attribute="CMake Provided Function/Macro" context="Subversion_WC_INFO_ctx"/>
+ <WordDetect String="Subversion_WC_LOG" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="xctest_add_bundle" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <WordDetect String="xctest_add_test" insensitive="true" attribute="CMake Provided Function/Macro" context="function_ctx"/>
+ <DetectChar attribute="Comment" context="Match Comments and Docs" char="#" lookAhead="true"/>
+ <DetectIdentifier attribute="User Function/Macro" context="User Function"/>
+ <RegExpr attribute="@Variable Substitution" context="@VarSubst" String="@&var_ref_re;@" lookAhead="true"/>
+ <IncludeRules context="LineError"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="block_ctx">
+ <DetectChar attribute="Normal Text" context="block_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="block_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="block_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="block_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
-
<context attribute="Normal Text" lineEndContext="#stay" name="break_ctx">
- <DetectChar attribute="Normal Text" context="break_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="break_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="break_ctx_op">
- <IncludeRules context="EndCmdPop2" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="cmake_host_system_information_ctx">
- <DetectChar attribute="Normal Text" context="cmake_host_system_information_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="cmake_host_system_information_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="cmake_host_system_information_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="cmake_host_system_information_nargs" />
- <keyword attribute="Special Args" context="#stay" String="cmake_host_system_information_sargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cmake_host_system_information_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="cmake_host_system_information_sargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cmake_language_ctx">
+ <DetectChar attribute="Normal Text" context="cmake_language_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cmake_language_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cmake_language_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="cmake_language_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="cmake_minimum_required_ctx">
- <DetectChar attribute="Normal Text" context="cmake_minimum_required_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="cmake_minimum_required_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="cmake_minimum_required_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="cmake_minimum_required_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cmake_minimum_required_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="cmake_parse_arguments_ctx">
- <DetectChar attribute="Normal Text" context="cmake_parse_arguments_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="cmake_parse_arguments_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="cmake_parse_arguments_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="cmake_parse_arguments_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cmake_parse_arguments_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cmake_path_ctx">
+ <DetectChar attribute="Normal Text" context="cmake_path_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cmake_path_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cmake_path_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="cmake_policy_ctx">
- <DetectChar attribute="Normal Text" context="cmake_policy_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="cmake_policy_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="cmake_policy_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="cmake_policy_nargs" />
- <keyword attribute="Special Args" context="#stay" String="cmake_policy_sargs" />
- <IncludeRules context="User Function Args" />
- <!-- NOTE Handle CMP<NNN> as a special arg of `cmake_policy` command -->
- <RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9]+\b" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cmake_policy_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="cmake_policy_sargs"/>
+ <IncludeRules context="User Function Args"/>
+
+<!-- NOTE Handle CMP<NNN> as a special arg of `cmake_policy` command -->
+ <RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9]+\b"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="configure_file_ctx">
- <DetectChar attribute="Normal Text" context="configure_file_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="configure_file_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="configure_file_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="configure_file_nargs" />
- <keyword attribute="Special Args" context="#stay" String="configure_file_sargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="continue_ctx">
- <DetectChar attribute="Normal Text" context="continue_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="continue_ctx_op">
- <IncludeRules context="EndCmdPop2" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="configure_file_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="configure_file_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="elseif_ctx">
- <DetectChar attribute="Normal Text" context="elseif_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="elseif_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="elseif_ctx_op">
- <DetectChar attribute="Normal Text" context="elseif_ctx_op_nested" char="(" />
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="elseif_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="elseif_ctx_op_nested" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <WordDetect String="TARGET" attribute="Named Args" context="Target Name"/>
+ <keyword attribute="Named Args" context="#stay" String="elseif_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="elseif_ctx_op_nested">
- <IncludeRules context="EndCmdPop" />
- <keyword attribute="Named Args" context="#stay" String="elseif_nargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="else_ctx">
- <DetectChar attribute="Normal Text" context="else_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="else_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="endforeach_ctx">
- <DetectChar attribute="Normal Text" context="endforeach_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="endforeach_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="endfunction_ctx">
- <DetectChar attribute="Normal Text" context="endfunction_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="endfunction_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="endif_ctx">
- <DetectChar attribute="Normal Text" context="endif_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="endif_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="endmacro_ctx">
- <DetectChar attribute="Normal Text" context="endmacro_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="endmacro_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="endwhile_ctx">
- <DetectChar attribute="Normal Text" context="endwhile_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="endwhile_ctx_op">
- <IncludeRules context="EndCmdPop2" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ <DetectChar attribute="Normal Text" context="elseif_ctx_op_nested" char="("/>
+ <keyword attribute="Named Args" context="#stay" String="elseif_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="execute_process_ctx">
- <DetectChar attribute="Normal Text" context="execute_process_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="execute_process_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="execute_process_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="execute_process_nargs" />
- <keyword attribute="Special Args" context="#stay" String="execute_process_sargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="execute_process_ctx_op_nested" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="execute_process_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="execute_process_sargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="execute_process_ctx_op_nested">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ <DetectChar attribute="Normal Text" context="execute_process_ctx_op_nested" char="("/>
+ <keyword attribute="Named Args" context="#stay" String="execute_process_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="execute_process_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="file_ctx">
- <DetectChar attribute="Normal Text" context="file_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="file_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="file_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="file_nargs" />
- <keyword attribute="Special Args" context="#stay" String="file_sargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="file_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="file_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="find_file_ctx">
- <DetectChar attribute="Normal Text" context="find_file_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="find_file_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="find_file_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="find_file_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="find_file_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="find_file_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="find_library_ctx">
- <DetectChar attribute="Normal Text" context="find_library_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="find_library_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="find_library_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="find_library_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="find_library_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="find_file_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="find_package_ctx">
- <DetectChar attribute="Normal Text" context="find_package_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="find_package_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="find_package_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="find_package_nargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="find_path_ctx">
- <DetectChar attribute="Normal Text" context="find_path_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="find_path_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="find_path_nargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="find_program_ctx">
- <DetectChar attribute="Normal Text" context="find_program_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="find_program_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="find_program_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="find_package_nargs"/>
+ <keyword attribute="Standard Module" context="#stay" String="standard-finder-modules"/>
+ <keyword attribute="Special Args" context="#stay" String="find_file_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="foreach_ctx">
- <DetectChar attribute="Normal Text" context="foreach_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="foreach_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="foreach_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="foreach_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="foreach_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="function_ctx">
- <DetectChar attribute="Normal Text" context="function_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="function_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="function_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="get_cmake_property_ctx">
- <DetectChar attribute="Normal Text" context="get_cmake_property_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="get_cmake_property_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="get_cmake_property_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Property" context="#stay" String="global-properties" />
- <IncludeRules context="Detect More global-properties" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Special Args" context="#stay" String="get_cmake_property_sargs"/>
+ <keyword attribute="Property" context="#stay" String="global-properties"/>
+ <IncludeRules context="Detect More global-properties"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="get_directory_property_ctx">
- <DetectChar attribute="Normal Text" context="get_directory_property_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="get_directory_property_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="get_directory_property_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="get_directory_property_nargs" />
- <keyword attribute="Property" context="#stay" String="directory-properties" />
- <IncludeRules context="Detect More directory-properties" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="get_directory_property_nargs"/>
+ <keyword attribute="Property" context="#stay" String="directory-properties"/>
+ <IncludeRules context="Detect More directory-properties"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="get_filename_component_ctx">
- <DetectChar attribute="Normal Text" context="get_filename_component_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="get_filename_component_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="get_filename_component_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="get_filename_component_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="get_filename_component_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="get_property_ctx">
- <DetectChar attribute="Normal Text" context="get_property_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="get_property_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="get_property_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="get_property_nargs" />
- <keyword attribute="Property" context="#stay" String="cache-properties" />
- <keyword attribute="Property" context="#stay" String="directory-properties" />
- <IncludeRules context="Detect More directory-properties" />
- <keyword attribute="Property" context="#stay" String="global-properties" />
- <IncludeRules context="Detect More global-properties" />
- <keyword attribute="Property" context="#stay" String="install-properties" />
- <keyword attribute="Property" context="#stay" String="source-properties" />
- <IncludeRules context="Detect More source-properties" />
- <keyword attribute="Property" context="#stay" String="target-properties" />
- <IncludeRules context="Detect More target-properties" />
- <keyword attribute="Property" context="#stay" String="test-properties" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="get_property_nargs"/>
+ <keyword attribute="Property" context="#stay" String="cache-properties"/>
+ <keyword attribute="Property" context="#stay" String="directory-properties"/>
+ <IncludeRules context="Detect More directory-properties"/>
+ <keyword attribute="Property" context="#stay" String="global-properties"/>
+ <IncludeRules context="Detect More global-properties"/>
+ <keyword attribute="Property" context="#stay" String="install-properties"/>
+ <keyword attribute="Property" context="#stay" String="source-properties"/>
+ <IncludeRules context="Detect More source-properties"/>
+ <keyword attribute="Property" context="#stay" String="target-properties"/>
+ <IncludeRules context="Detect More target-properties"/>
+ <keyword attribute="Property" context="#stay" String="test-properties"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="if_ctx">
- <DetectChar attribute="Normal Text" context="if_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="if_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="if_ctx_op">
- <DetectChar attribute="Normal Text" context="if_ctx_op_nested" char="(" />
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="if_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="if_ctx_op_nested" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <WordDetect String="TARGET" attribute="Named Args" context="Target Name"/>
+ <keyword attribute="Named Args" context="#stay" String="elseif_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="if_ctx_op_nested">
- <IncludeRules context="EndCmdPop" />
- <keyword attribute="Named Args" context="#stay" String="if_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ <DetectChar attribute="Normal Text" context="if_ctx_op_nested" char="("/>
+ <keyword attribute="Named Args" context="#stay" String="elseif_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="include_ctx">
- <DetectChar attribute="Normal Text" context="include_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="include_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="include_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="include_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="include_nargs"/>
+ <keyword attribute="Standard Module" context="#stay" String="standard-modules"/>
+ <keyword attribute="Deprecated Module" context="#stay" String="deprecated-modules"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="include_guard_ctx">
- <DetectChar attribute="Normal Text" context="include_guard_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="include_guard_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="include_guard_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="include_guard_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="include_guard_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="list_ctx">
- <DetectChar attribute="Normal Text" context="list_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="list_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="list_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="list_nargs" />
- <keyword attribute="Special Args" context="#stay" String="list_sargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="macro_ctx">
- <DetectChar attribute="Normal Text" context="macro_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="macro_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="list_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="list_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="mark_as_advanced_ctx">
- <DetectChar attribute="Normal Text" context="mark_as_advanced_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="mark_as_advanced_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="mark_as_advanced_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="mark_as_advanced_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="mark_as_advanced_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="math_ctx">
- <DetectChar attribute="Normal Text" context="math_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="math_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="math_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="math_nargs" />
- <keyword attribute="Special Args" context="#stay" String="math_sargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="math_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="math_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="message_ctx">
- <DetectChar attribute="Normal Text" context="message_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="message_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="message_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="message_nargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="option_ctx">
- <DetectChar attribute="Normal Text" context="option_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="option_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="message_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="return_ctx">
- <DetectChar attribute="Normal Text" context="return_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="return_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="return_ctx_op">
- <IncludeRules context="EndCmdPop2" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="return_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="separate_arguments_ctx">
- <DetectChar attribute="Normal Text" context="separate_arguments_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="separate_arguments_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="separate_arguments_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="separate_arguments_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="separate_arguments_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="set_directory_properties_ctx">
- <DetectChar attribute="Normal Text" context="set_directory_properties_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="set_directory_properties_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="set_directory_properties_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="set_directory_properties_nargs" />
- <keyword attribute="Property" context="#stay" String="cache-properties" />
- <keyword attribute="Property" context="#stay" String="directory-properties" />
- <IncludeRules context="Detect More directory-properties" />
- <keyword attribute="Property" context="#stay" String="global-properties" />
- <IncludeRules context="Detect More global-properties" />
- <keyword attribute="Property" context="#stay" String="install-properties" />
- <keyword attribute="Property" context="#stay" String="source-properties" />
- <IncludeRules context="Detect More source-properties" />
- <keyword attribute="Property" context="#stay" String="target-properties" />
- <IncludeRules context="Detect More target-properties" />
- <keyword attribute="Property" context="#stay" String="test-properties" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="set_directory_properties_nargs"/>
+ <keyword attribute="Property" context="#stay" String="cache-properties"/>
+ <keyword attribute="Property" context="#stay" String="directory-properties"/>
+ <IncludeRules context="Detect More directory-properties"/>
+ <keyword attribute="Property" context="#stay" String="global-properties"/>
+ <IncludeRules context="Detect More global-properties"/>
+ <keyword attribute="Property" context="#stay" String="install-properties"/>
+ <keyword attribute="Property" context="#stay" String="source-properties"/>
+ <IncludeRules context="Detect More source-properties"/>
+ <keyword attribute="Property" context="#stay" String="target-properties"/>
+ <IncludeRules context="Detect More target-properties"/>
+ <keyword attribute="Property" context="#stay" String="test-properties"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="set_property_ctx">
- <DetectChar attribute="Normal Text" context="set_property_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="set_property_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="set_property_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="set_property_nargs" />
- <keyword attribute="Property" context="#stay" String="cache-properties" />
- <keyword attribute="Property" context="#stay" String="directory-properties" />
- <IncludeRules context="Detect More directory-properties" />
- <keyword attribute="Property" context="#stay" String="global-properties" />
- <IncludeRules context="Detect More global-properties" />
- <keyword attribute="Property" context="#stay" String="install-properties" />
- <keyword attribute="Property" context="#stay" String="source-properties" />
- <IncludeRules context="Detect More source-properties" />
- <keyword attribute="Property" context="#stay" String="target-properties" />
- <IncludeRules context="Detect More target-properties" />
- <keyword attribute="Property" context="#stay" String="test-properties" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="set_property_nargs"/>
+ <keyword attribute="Property" context="#stay" String="cache-properties"/>
+ <keyword attribute="Property" context="#stay" String="directory-properties"/>
+ <IncludeRules context="Detect More directory-properties"/>
+ <keyword attribute="Property" context="#stay" String="global-properties"/>
+ <IncludeRules context="Detect More global-properties"/>
+ <keyword attribute="Property" context="#stay" String="install-properties"/>
+ <keyword attribute="Property" context="#stay" String="source-properties"/>
+ <IncludeRules context="Detect More source-properties"/>
+ <keyword attribute="Property" context="#stay" String="target-properties"/>
+ <IncludeRules context="Detect More target-properties"/>
+ <keyword attribute="Property" context="#stay" String="test-properties"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="set_ctx">
- <DetectChar attribute="Normal Text" context="set_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="set_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="set_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="set_nargs" />
- <keyword attribute="Special Args" context="#stay" String="set_sargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="site_name_ctx">
- <DetectChar attribute="Normal Text" context="site_name_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="site_name_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="set_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="set_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="string_ctx">
- <DetectChar attribute="Normal Text" context="string_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="string_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="string_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="string_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="string_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="unset_ctx">
- <DetectChar attribute="Normal Text" context="unset_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="unset_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="unset_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="unset_nargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="variable_watch_ctx">
- <DetectChar attribute="Normal Text" context="variable_watch_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="variable_watch_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="unset_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="while_ctx">
- <DetectChar attribute="Normal Text" context="while_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="while_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="while_ctx_op">
- <DetectChar attribute="Normal Text" context="while_ctx_op_nested" char="(" />
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="while_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="while_ctx_op_nested" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <WordDetect String="TARGET" attribute="Named Args" context="Target Name"/>
+ <keyword attribute="Named Args" context="#stay" String="elseif_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="while_ctx_op_nested">
- <IncludeRules context="EndCmdPop" />
- <keyword attribute="Named Args" context="#stay" String="while_nargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="add_compile_definitions_ctx">
- <DetectChar attribute="Normal Text" context="add_compile_definitions_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="add_compile_definitions_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="add_compile_options_ctx">
- <DetectChar attribute="Normal Text" context="add_compile_options_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="add_compile_options_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ <DetectChar attribute="Normal Text" context="while_ctx_op_nested" char="("/>
+ <keyword attribute="Named Args" context="#stay" String="elseif_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="add_custom_command_ctx">
- <DetectChar attribute="Normal Text" context="add_custom_command_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="add_custom_command_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="add_custom_command_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="add_custom_command_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="add_custom_command_ctx_op_nested" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <WordDetect String="TARGET" attribute="Named Args" context="Target Name"/>
+ <keyword attribute="Named Args" context="#stay" String="add_custom_command_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="add_custom_command_ctx_op_nested">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ <DetectChar attribute="Normal Text" context="add_custom_command_ctx_op_nested" char="("/>
+ <keyword attribute="Named Args" context="#stay" String="add_custom_command_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="add_custom_target_ctx">
- <DetectChar attribute="Normal Text" context="add_custom_target_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="add_custom_target_ctx_op_tgt_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="add_custom_target_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="add_custom_target_nargs" />
- <IncludeRules context="User Function Args" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="add_custom_target_ctx_op_tgt_first">
+ <DetectSpaces/>
+ <RegExpr attribute="Aliased Targets" context="add_custom_target_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ <RegExpr attribute="Targets" context="add_custom_target_ctx_op" String="&tgt_name_re;"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="add_definitions_ctx">
- <DetectChar attribute="Normal Text" context="add_definitions_ctx_op" char="(" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="add_custom_target_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="add_custom_target_ctx_op_nested" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="add_custom_target_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="add_definitions_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="add_custom_target_ctx_op_nested">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ <DetectChar attribute="Normal Text" context="add_custom_target_ctx_op_nested" char="("/>
+ <keyword attribute="Named Args" context="#stay" String="add_custom_target_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="add_dependencies_ctx">
- <DetectChar attribute="Normal Text" context="add_dependencies_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="add_dependencies_ctx_op_tgts_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="add_dependencies_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="add_dependencies_ctx_op_tgts_first">
+ <DetectSpaces/>
+ <IncludeRules context="Detect Aliased Targets"/>
+ <IncludeRules context="Detect Targets"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="add_executable_ctx">
- <DetectChar attribute="Normal Text" context="add_executable_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="add_executable_ctx_op_tgt_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="add_executable_ctx_op_tgt_first">
+ <DetectSpaces/>
+ <RegExpr attribute="Aliased Targets" context="add_executable_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ <RegExpr attribute="Targets" context="add_executable_ctx_op" String="&tgt_name_re;"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="add_executable_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="add_executable_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="add_executable_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="add_library_ctx">
- <DetectChar attribute="Normal Text" context="add_library_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="add_library_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="add_library_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectChar attribute="Normal Text" context="add_library_ctx_op_tgt_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="add_link_options_ctx">
- <DetectChar attribute="Normal Text" context="add_link_options_ctx_op" char="(" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="add_library_ctx_op_tgt_first">
+ <DetectSpaces/>
+ <RegExpr attribute="Aliased Targets" context="add_library_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ <RegExpr attribute="Targets" context="add_library_ctx_op" String="&tgt_name_re;"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="add_link_options_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="add_library_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <WordDetect String="ALIAS" attribute="Named Args" context="Target Name"/>
+ <keyword attribute="Named Args" context="#stay" String="add_library_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="add_subdirectory_ctx">
- <DetectChar attribute="Normal Text" context="add_subdirectory_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="add_subdirectory_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="add_subdirectory_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="add_subdirectory_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="add_subdirectory_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="add_test_ctx">
- <DetectChar attribute="Normal Text" context="add_test_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="add_test_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="add_test_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="add_test_nargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="aux_source_directory_ctx">
- <DetectChar attribute="Normal Text" context="aux_source_directory_ctx_op" char="(" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="add_test_ctx_op_nested" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="add_test_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="aux_source_directory_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="add_test_ctx_op_nested">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ <DetectChar attribute="Normal Text" context="add_test_ctx_op_nested" char="("/>
+ <keyword attribute="Named Args" context="#stay" String="add_test_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="build_command_ctx">
- <DetectChar attribute="Normal Text" context="build_command_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="build_command_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="build_command_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="build_command_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <WordDetect String="TARGET" attribute="Named Args" context="Target Name"/>
+ <keyword attribute="Named Args" context="#stay" String="build_command_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cmake_file_api_ctx">
+ <DetectChar attribute="Normal Text" context="cmake_file_api_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cmake_file_api_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cmake_file_api_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="create_test_sourcelist_ctx">
- <DetectChar attribute="Normal Text" context="create_test_sourcelist_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="create_test_sourcelist_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="create_test_sourcelist_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="create_test_sourcelist_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="create_test_sourcelist_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="define_property_ctx">
- <DetectChar attribute="Normal Text" context="define_property_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="define_property_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="define_property_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="define_property_nargs" />
- <keyword attribute="Property" context="#stay" String="cache-properties" />
- <keyword attribute="Property" context="#stay" String="directory-properties" />
- <IncludeRules context="Detect More directory-properties" />
- <keyword attribute="Property" context="#stay" String="global-properties" />
- <IncludeRules context="Detect More global-properties" />
- <keyword attribute="Property" context="#stay" String="install-properties" />
- <keyword attribute="Property" context="#stay" String="source-properties" />
- <IncludeRules context="Detect More source-properties" />
- <keyword attribute="Property" context="#stay" String="target-properties" />
- <IncludeRules context="Detect More target-properties" />
- <keyword attribute="Property" context="#stay" String="test-properties" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="define_property_nargs"/>
+ <keyword attribute="Property" context="#stay" String="cache-properties"/>
+ <keyword attribute="Property" context="#stay" String="directory-properties"/>
+ <IncludeRules context="Detect More directory-properties"/>
+ <keyword attribute="Property" context="#stay" String="global-properties"/>
+ <IncludeRules context="Detect More global-properties"/>
+ <keyword attribute="Property" context="#stay" String="install-properties"/>
+ <keyword attribute="Property" context="#stay" String="source-properties"/>
+ <IncludeRules context="Detect More source-properties"/>
+ <keyword attribute="Property" context="#stay" String="target-properties"/>
+ <IncludeRules context="Detect More target-properties"/>
+ <keyword attribute="Property" context="#stay" String="test-properties"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="enable_language_ctx">
- <DetectChar attribute="Normal Text" context="enable_language_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="enable_language_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="enable_language_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="enable_language_nargs" />
- <keyword attribute="Special Args" context="#stay" String="enable_language_sargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="enable_testing_ctx">
- <DetectChar attribute="Normal Text" context="enable_testing_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="enable_testing_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="enable_language_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="enable_language_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="export_ctx">
- <DetectChar attribute="Normal Text" context="export_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="export_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="export_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="export_nargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="fltk_wrap_ui_ctx">
- <DetectChar attribute="Normal Text" context="fltk_wrap_ui_ctx_op" char="(" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <WordDetect String="TARGETS" attribute="Named Args" context="export_tgts"/>
+ <keyword attribute="Named Args" context="#stay" String="export_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="fltk_wrap_ui_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="export_tgts">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#pop" String="export_nargs"/>
+ <IncludeRules context="Detect Aliased Targets"/>
+ <IncludeRules context="Detect Targets"/>
+ <IncludeRules context="User Function Args"/>
+ <IncludeRules context="LineError"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="get_source_file_property_ctx">
- <DetectChar attribute="Normal Text" context="get_source_file_property_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="get_source_file_property_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="get_source_file_property_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Property" context="#stay" String="source-properties" />
- <IncludeRules context="Detect More source-properties" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="get_source_file_property_nargs"/>
+ <keyword attribute="Property" context="#stay" String="source-properties"/>
+ <IncludeRules context="Detect More source-properties"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="get_target_property_ctx">
- <DetectChar attribute="Normal Text" context="get_target_property_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="get_target_property_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="get_target_property_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Property" context="#stay" String="target-properties" />
- <IncludeRules context="Detect More target-properties" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Property" context="#stay" String="target-properties"/>
+ <IncludeRules context="Detect More target-properties"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="get_test_property_ctx">
- <DetectChar attribute="Normal Text" context="get_test_property_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="get_test_property_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="get_test_property_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Property" context="#stay" String="test-properties" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="get_test_property_nargs"/>
+ <keyword attribute="Property" context="#stay" String="test-properties"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="include_directories_ctx">
- <DetectChar attribute="Normal Text" context="include_directories_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="include_directories_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="include_directories_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="include_directories_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="include_directories_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="include_external_msproject_ctx">
- <DetectChar attribute="Normal Text" context="include_external_msproject_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="include_external_msproject_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="include_external_msproject_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="include_external_msproject_nargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="include_regular_expression_ctx">
- <DetectChar attribute="Normal Text" context="include_regular_expression_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="include_regular_expression_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="include_external_msproject_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="install_ctx">
- <DetectChar attribute="Normal Text" context="install_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="install_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="install_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="install_nargs" />
- <keyword attribute="Special Args" context="#stay" String="install_sargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <WordDetect String="TARGETS" attribute="Named Args" context="install_tgts"/>
+ <keyword attribute="Named Args" context="#stay" String="install_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="install_sargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="install_tgts">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#pop" String="install_nargs"/>
+ <IncludeRules context="Detect Aliased Targets"/>
+ <IncludeRules context="Detect Targets"/>
+ <IncludeRules context="User Function Args"/>
+ <IncludeRules context="LineError"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="link_directories_ctx">
- <DetectChar attribute="Normal Text" context="link_directories_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="link_directories_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="link_directories_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="link_directories_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="link_directories_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="link_libraries_ctx">
- <DetectChar attribute="Normal Text" context="link_libraries_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="link_libraries_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="link_libraries_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="link_libraries_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Special Args" context="#stay" String="link_libraries_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="load_cache_ctx">
- <DetectChar attribute="Normal Text" context="load_cache_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="load_cache_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="load_cache_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="load_cache_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="load_cache_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="project_ctx">
- <DetectChar attribute="Normal Text" context="project_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="project_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="project_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="project_nargs" />
- <keyword attribute="Special Args" context="#stay" String="project_sargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="qt_wrap_cpp_ctx">
- <DetectChar attribute="Normal Text" context="qt_wrap_cpp_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="qt_wrap_cpp_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="qt_wrap_ui_ctx">
- <DetectChar attribute="Normal Text" context="qt_wrap_ui_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="qt_wrap_ui_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="remove_definitions_ctx">
- <DetectChar attribute="Normal Text" context="remove_definitions_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="remove_definitions_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="project_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="project_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="set_source_files_properties_ctx">
- <DetectChar attribute="Normal Text" context="set_source_files_properties_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="set_source_files_properties_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="set_source_files_properties_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="set_source_files_properties_nargs" />
- <keyword attribute="Property" context="#stay" String="source-properties" />
- <IncludeRules context="Detect More source-properties" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="set_source_files_properties_nargs"/>
+ <keyword attribute="Property" context="#stay" String="source-properties"/>
+ <IncludeRules context="Detect More source-properties"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="set_target_properties_ctx">
- <DetectChar attribute="Normal Text" context="set_target_properties_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="set_target_properties_ctx_op_tgts_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="set_target_properties_ctx_op_tgts_first">
+ <DetectSpaces/>
+
+<!-- NOTE Handle the only case in CMake nowadays:
+ 1. `set_target_properties` have a named keyword (`PROPERTIES`) after targets list
+ -->
+ <keyword context="set_target_properties_ctx_op" String="set_directory_properties_nargs" lookAhead="true"/>
+ <IncludeRules context="Detect Aliased Targets"/>
+ <IncludeRules context="Detect Targets"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="set_target_properties_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="set_target_properties_nargs" />
- <keyword attribute="Property" context="#stay" String="target-properties" />
- <IncludeRules context="Detect More target-properties" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="set_directory_properties_nargs"/>
+ <keyword attribute="Property" context="#stay" String="target-properties"/>
+ <IncludeRules context="Detect More target-properties"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="set_tests_properties_ctx">
- <DetectChar attribute="Normal Text" context="set_tests_properties_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="set_tests_properties_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="set_tests_properties_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="set_tests_properties_nargs" />
- <keyword attribute="Property" context="#stay" String="test-properties" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="set_tests_properties_nargs"/>
+ <keyword attribute="Property" context="#stay" String="test-properties"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="source_group_ctx">
- <DetectChar attribute="Normal Text" context="source_group_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="source_group_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="source_group_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="source_group_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="source_group_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="target_compile_definitions_ctx">
- <DetectChar attribute="Normal Text" context="target_compile_definitions_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="target_compile_definitions_ctx_op_tgt_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="target_compile_definitions_ctx_op_tgt_first">
+ <DetectSpaces/>
+ <RegExpr attribute="Aliased Targets" context="target_compile_definitions_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ <RegExpr attribute="Targets" context="target_compile_definitions_ctx_op" String="&tgt_name_re;"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="target_compile_definitions_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="target_compile_definitions_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="target_compile_definitions_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="target_compile_features_ctx">
- <DetectChar attribute="Normal Text" context="target_compile_features_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="target_compile_features_ctx_op_tgt_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="target_compile_features_ctx_op_tgt_first">
+ <DetectSpaces/>
+ <RegExpr attribute="Aliased Targets" context="target_compile_features_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ <RegExpr attribute="Targets" context="target_compile_features_ctx_op" String="&tgt_name_re;"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="target_compile_features_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="target_compile_features_nargs" />
- <keyword attribute="Special Args" context="#stay" String="target_compile_features_sargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="target_compile_definitions_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="target_compile_features_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="target_compile_options_ctx">
- <DetectChar attribute="Normal Text" context="target_compile_options_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="target_compile_options_ctx_op_tgt_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="target_compile_options_ctx_op_tgt_first">
+ <DetectSpaces/>
+ <RegExpr attribute="Aliased Targets" context="target_compile_options_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ <RegExpr attribute="Targets" context="target_compile_options_ctx_op" String="&tgt_name_re;"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="target_compile_options_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="target_compile_options_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="target_compile_options_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="target_include_directories_ctx">
- <DetectChar attribute="Normal Text" context="target_include_directories_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="target_include_directories_ctx_op_tgt_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="target_include_directories_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="target_include_directories_nargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="target_link_directories_ctx">
- <DetectChar attribute="Normal Text" context="target_link_directories_ctx_op" char="(" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="target_include_directories_ctx_op_tgt_first">
+ <DetectSpaces/>
+ <RegExpr attribute="Aliased Targets" context="target_include_directories_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ <RegExpr attribute="Targets" context="target_include_directories_ctx_op" String="&tgt_name_re;"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="target_link_directories_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="target_link_directories_nargs" />
- <IncludeRules context="User Function Args" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="target_include_directories_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="target_include_directories_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="target_link_libraries_ctx">
- <DetectChar attribute="Normal Text" context="target_link_libraries_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="target_link_libraries_ctx_op_tgt_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="target_link_libraries_ctx_op_tgt_first">
+ <DetectSpaces/>
+ <RegExpr attribute="Aliased Targets" context="target_link_libraries_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ <RegExpr attribute="Targets" context="target_link_libraries_ctx_op" String="&tgt_name_re;"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="target_link_libraries_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="target_link_libraries_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="target_compile_definitions_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="link_libraries_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="target_link_options_ctx">
- <DetectChar attribute="Normal Text" context="target_link_options_ctx_op" char="(" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="target_precompile_headers_ctx">
+ <DetectChar attribute="Normal Text" context="target_precompile_headers_ctx_op_tgt_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="target_link_options_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="target_link_options_nargs" />
- <IncludeRules context="User Function Args" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="target_precompile_headers_ctx_op_tgt_first">
+ <DetectSpaces/>
+ <RegExpr attribute="Aliased Targets" context="target_precompile_headers_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ <RegExpr attribute="Targets" context="target_precompile_headers_ctx_op" String="&tgt_name_re;"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="target_precompile_headers_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="target_precompile_headers_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="target_sources_ctx">
- <DetectChar attribute="Normal Text" context="target_sources_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="target_sources_ctx_op_tgt_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="target_sources_ctx_op_tgt_first">
+ <DetectSpaces/>
+ <RegExpr attribute="Aliased Targets" context="target_sources_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ <RegExpr attribute="Targets" context="target_sources_ctx_op" String="&tgt_name_re;"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="target_sources_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="target_sources_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="target_sources_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="target_sources_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="try_compile_ctx">
- <DetectChar attribute="Normal Text" context="try_compile_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="try_compile_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="try_compile_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="try_compile_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="try_compile_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="try_run_ctx">
- <DetectChar attribute="Normal Text" context="try_run_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="try_run_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="try_run_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="try_run_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="try_run_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_build_ctx">
- <DetectChar attribute="Normal Text" context="ctest_build_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="ctest_build_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_build_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="ctest_build_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="ctest_build_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_configure_ctx">
- <DetectChar attribute="Normal Text" context="ctest_configure_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="ctest_configure_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_configure_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="ctest_configure_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="ctest_configure_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_coverage_ctx">
- <DetectChar attribute="Normal Text" context="ctest_coverage_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="ctest_coverage_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_coverage_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="ctest_coverage_nargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="ctest_empty_binary_directory_ctx">
- <DetectChar attribute="Normal Text" context="ctest_empty_binary_directory_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="ctest_empty_binary_directory_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="ctest_coverage_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_memcheck_ctx">
- <DetectChar attribute="Normal Text" context="ctest_memcheck_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="ctest_memcheck_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_memcheck_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="ctest_memcheck_nargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="ctest_read_custom_files_ctx">
- <DetectChar attribute="Normal Text" context="ctest_read_custom_files_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="ctest_read_custom_files_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="ctest_memcheck_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_run_script_ctx">
- <DetectChar attribute="Normal Text" context="ctest_run_script_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="ctest_run_script_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_run_script_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="ctest_run_script_nargs" />
- <IncludeRules context="User Function Args" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="ctest_sleep_ctx">
- <DetectChar attribute="Normal Text" context="ctest_sleep_ctx_op" char="(" />
- </context>
- <context attribute="Normal Text" lineEndContext="#stay" name="ctest_sleep_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="ctest_run_script_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_start_ctx">
- <DetectChar attribute="Normal Text" context="ctest_start_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="ctest_start_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_start_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="ctest_start_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="ctest_start_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_submit_ctx">
- <DetectChar attribute="Normal Text" context="ctest_submit_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="ctest_submit_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_submit_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="ctest_submit_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="ctest_submit_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_test_ctx">
- <DetectChar attribute="Normal Text" context="ctest_test_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="ctest_test_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_test_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="ctest_test_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="ctest_test_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="ctest_test_sargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_update_ctx">
- <DetectChar attribute="Normal Text" context="ctest_update_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="ctest_update_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_update_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="ctest_update_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="ctest_update_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_upload_ctx">
- <DetectChar attribute="Normal Text" context="ctest_upload_ctx_op" char="(" />
+ <DetectChar attribute="Normal Text" context="ctest_upload_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ctest_upload_ctx_op">
- <IncludeRules context="EndCmdPop2" />
- <keyword attribute="Named Args" context="#stay" String="ctest_upload_nargs" />
- <IncludeRules context="User Function Args" />
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="ctest_upload_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="android_add_test_data_ctx">
+ <DetectChar attribute="Normal Text" context="android_add_test_data_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="android_add_test_data_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="android_add_test_data_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_c_source_compiles_ctx">
+ <DetectChar attribute="Normal Text" context="check_c_source_compiles_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_c_source_compiles_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="check_c_source_compiles_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_fortran_source_compiles_ctx">
+ <DetectChar attribute="Normal Text" context="check_fortran_source_compiles_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_fortran_source_compiles_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="check_fortran_source_compiles_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_fortran_source_runs_ctx">
+ <DetectChar attribute="Normal Text" context="check_fortran_source_runs_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_fortran_source_runs_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="check_fortran_source_runs_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_include_files_ctx">
+ <DetectChar attribute="Normal Text" context="check_include_files_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_include_files_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="check_include_files_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="check_include_files_sargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_ipo_supported_ctx">
+ <DetectChar attribute="Normal Text" context="check_ipo_supported_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_ipo_supported_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="check_ipo_supported_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="check_ipo_supported_sargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_language_ctx">
+ <DetectChar attribute="Normal Text" context="check_language_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_language_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Special Args" context="#stay" String="enable_language_sargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_pie_supported_ctx">
+ <DetectChar attribute="Normal Text" context="check_pie_supported_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_pie_supported_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="check_pie_supported_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="check_pie_supported_sargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_type_size_ctx">
+ <DetectChar attribute="Normal Text" context="check_type_size_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="check_type_size_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="check_type_size_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="check_include_files_sargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cmake_add_fortran_subdirectory_ctx">
+ <DetectChar attribute="Normal Text" context="cmake_add_fortran_subdirectory_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cmake_add_fortran_subdirectory_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cmake_add_fortran_subdirectory_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="configure_package_config_file_ctx">
+ <DetectChar attribute="Normal Text" context="configure_package_config_file_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="configure_package_config_file_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="configure_package_config_file_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="write_basic_package_version_file_ctx">
+ <DetectChar attribute="Normal Text" context="write_basic_package_version_file_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="write_basic_package_version_file_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="write_basic_package_version_file_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="write_basic_package_version_file_sargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cmake_print_properties_ctx">
+ <DetectChar attribute="Normal Text" context="cmake_print_properties_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cmake_print_properties_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <WordDetect String="TARGETS" attribute="Named Args" context="cmake_print_properties_tgts"/>
+ <keyword attribute="Named Args" context="#stay" String="cmake_print_properties_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cmake_print_properties_tgts">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#pop" String="cmake_print_properties_nargs"/>
+ <IncludeRules context="Detect Aliased Targets"/>
+ <IncludeRules context="Detect Targets"/>
+ <IncludeRules context="User Function Args"/>
+ <IncludeRules context="LineError"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cmake_push_check_state_ctx">
+ <DetectChar attribute="Normal Text" context="cmake_push_check_state_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cmake_push_check_state_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cmake_push_check_state_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_add_component_ctx">
+ <DetectChar attribute="Normal Text" context="cpack_add_component_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_add_component_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cpack_add_component_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_add_component_group_ctx">
+ <DetectChar attribute="Normal Text" context="cpack_add_component_group_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_add_component_group_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cpack_add_component_group_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_add_install_type_ctx">
+ <DetectChar attribute="Normal Text" context="cpack_add_install_type_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_add_install_type_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cpack_add_install_type_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_configure_downloads_ctx">
+ <DetectChar attribute="Normal Text" context="cpack_configure_downloads_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_configure_downloads_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cpack_configure_downloads_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_configure_component_ctx">
+ <DetectChar attribute="Normal Text" context="cpack_ifw_configure_component_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_configure_component_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cpack_ifw_configure_component_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_configure_component_group_ctx">
+ <DetectChar attribute="Normal Text" context="cpack_ifw_configure_component_group_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_configure_component_group_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cpack_ifw_configure_component_group_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_add_repository_ctx">
+ <DetectChar attribute="Normal Text" context="cpack_ifw_add_repository_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_add_repository_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cpack_ifw_add_repository_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_update_repository_ctx">
+ <DetectChar attribute="Normal Text" context="cpack_ifw_update_repository_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpack_ifw_update_repository_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="cpack_ifw_update_repository_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="ctest_coverage_collect_gcov_ctx">
+ <DetectChar attribute="Normal Text" context="ctest_coverage_collect_gcov_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="ctest_coverage_collect_gcov_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="ctest_coverage_collect_gcov_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExternalData_Add_Target_ctx">
+ <DetectChar attribute="Normal Text" context="ExternalData_Add_Target_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExternalData_Add_Target_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="ExternalData_Add_Target_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExternalProject_Add_ctx">
+ <DetectChar attribute="Normal Text" context="ExternalProject_Add_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExternalProject_Add_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="ExternalProject_Add_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="ExternalProject_Add_sargs"/>
+ <keyword attribute="Property" context="#stay" String="target-properties"/>
+ <IncludeRules context="Detect More target-properties"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExternalProject_Add_Step_ctx">
+ <DetectChar attribute="Normal Text" context="ExternalProject_Add_Step_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExternalProject_Add_Step_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="ExternalProject_Add_Step_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExternalProject_Add_StepTargets_ctx">
+ <DetectChar attribute="Normal Text" context="ExternalProject_Add_StepTargets_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="ExternalProject_Add_StepTargets_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="ExternalProject_Add_StepTargets_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="feature_summary_ctx">
+ <DetectChar attribute="Normal Text" context="feature_summary_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="feature_summary_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="feature_summary_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="set_package_properties_ctx">
+ <DetectChar attribute="Normal Text" context="set_package_properties_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="set_package_properties_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="set_package_properties_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="FetchContent_Declare_ctx">
+ <DetectChar attribute="Normal Text" context="FetchContent_Declare_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="FetchContent_Declare_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="FetchContent_Declare_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="FetchContent_Populate_ctx">
+ <DetectChar attribute="Normal Text" context="FetchContent_Populate_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="FetchContent_Populate_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="FetchContent_Populate_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="FetchContent_GetProperties_ctx">
+ <DetectChar attribute="Normal Text" context="FetchContent_GetProperties_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="FetchContent_GetProperties_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="FetchContent_GetProperties_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="find_package_handle_standard_args_ctx">
+ <DetectChar attribute="Normal Text" context="find_package_handle_standard_args_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="find_package_handle_standard_args_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="find_package_handle_standard_args_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="find_package_check_version_ctx">
+ <DetectChar attribute="Normal Text" context="find_package_check_version_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="find_package_check_version_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="find_package_check_version_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="FortranCInterface_HEADER_ctx">
+ <DetectChar attribute="Normal Text" context="FortranCInterface_HEADER_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="FortranCInterface_HEADER_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="FortranCInterface_HEADER_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="FortranCInterface_VERIFY_ctx">
+ <DetectChar attribute="Normal Text" context="FortranCInterface_VERIFY_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="FortranCInterface_VERIFY_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="FortranCInterface_VERIFY_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="generate_export_header_ctx">
+ <DetectChar attribute="Normal Text" context="generate_export_header_ctx_op_tgt_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="generate_export_header_ctx_op_tgt_first">
+ <DetectSpaces/>
+ <RegExpr attribute="Aliased Targets" context="generate_export_header_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ <RegExpr attribute="Targets" context="generate_export_header_ctx_op" String="&tgt_name_re;"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="generate_export_header_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="generate_export_header_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="gtest_add_tests_ctx">
+ <DetectChar attribute="Normal Text" context="gtest_add_tests_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="gtest_add_tests_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <WordDetect String="TARGET" attribute="Named Args" context="Target Name"/>
+ <keyword attribute="Named Args" context="#stay" String="gtest_add_tests_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="gtest_discover_tests_ctx">
+ <DetectChar attribute="Normal Text" context="gtest_discover_tests_ctx_op_tgt_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="gtest_discover_tests_ctx_op_tgt_first">
+ <DetectSpaces/>
+ <RegExpr attribute="Aliased Targets" context="gtest_discover_tests_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ <RegExpr attribute="Targets" context="gtest_discover_tests_ctx_op" String="&tgt_name_re;"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="gtest_discover_tests_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="gtest_discover_tests_nargs"/>
+ <keyword attribute="Special Args" context="#stay" String="gtest_discover_tests_sargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="add_jar_ctx">
+ <DetectChar attribute="Normal Text" context="add_jar_ctx_op_tgt_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="add_jar_ctx_op_tgt_first">
+ <DetectSpaces/>
+ <RegExpr attribute="Aliased Targets" context="add_jar_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ <RegExpr attribute="Targets" context="add_jar_ctx_op" String="&tgt_name_re;"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="add_jar_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="add_jar_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="install_jar_ctx">
+ <DetectChar attribute="Normal Text" context="install_jar_ctx_op_tgt_first" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="install_jar_ctx_op_tgt_first">
+ <DetectSpaces/>
+ <RegExpr attribute="Aliased Targets" context="install_jar_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ <RegExpr attribute="Targets" context="install_jar_ctx_op" String="&tgt_name_re;"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="install_jar_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="install_jar_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="create_javah_ctx">
+ <DetectChar attribute="Normal Text" context="create_javah_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="create_javah_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <WordDetect String="TARGET" attribute="Named Args" context="Target Name"/>
+ <keyword attribute="Named Args" context="#stay" String="create_javah_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="install_jar_exports_ctx">
+ <DetectChar attribute="Normal Text" context="install_jar_exports_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="install_jar_exports_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <WordDetect String="TARGETS" attribute="Named Args" context="install_jar_exports_tgts"/>
+ <keyword attribute="Named Args" context="#stay" String="install_jar_exports_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="install_jar_exports_tgts">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#pop" String="install_jar_exports_nargs"/>
+ <IncludeRules context="Detect Aliased Targets"/>
+ <IncludeRules context="Detect Targets"/>
+ <IncludeRules context="User Function Args"/>
+ <IncludeRules context="LineError"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="export_jars_ctx">
+ <DetectChar attribute="Normal Text" context="export_jars_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="export_jars_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <WordDetect String="TARGETS" attribute="Named Args" context="export_jars_tgts"/>
+ <keyword attribute="Named Args" context="#stay" String="export_jars_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="export_jars_tgts">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#pop" String="export_jars_nargs"/>
+ <IncludeRules context="Detect Aliased Targets"/>
+ <IncludeRules context="Detect Targets"/>
+ <IncludeRules context="User Function Args"/>
+ <IncludeRules context="LineError"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="find_jar_ctx">
+ <DetectChar attribute="Normal Text" context="find_jar_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="find_jar_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="find_jar_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="create_javadoc_ctx">
+ <DetectChar attribute="Normal Text" context="create_javadoc_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="create_javadoc_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="create_javadoc_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="swig_add_library_ctx">
+ <DetectChar attribute="Normal Text" context="swig_add_library_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="swig_add_library_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="swig_add_library_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="squish_add_test_ctx">
+ <DetectChar attribute="Normal Text" context="squish_add_test_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="squish_add_test_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="squish_add_test_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="bison_target_ctx">
+ <DetectChar attribute="Normal Text" context="bison_target_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="bison_target_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="bison_target_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="doxygen_add_docs_ctx">
+ <DetectChar attribute="Normal Text" context="doxygen_add_docs_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="doxygen_add_docs_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="doxygen_add_docs_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="env_module_ctx">
+ <DetectChar attribute="Normal Text" context="env_module_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="env_module_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="env_module_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="env_module_swap_ctx">
+ <DetectChar attribute="Normal Text" context="env_module_swap_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="env_module_swap_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="env_module_swap_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="flex_target_ctx">
+ <DetectChar attribute="Normal Text" context="flex_target_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="flex_target_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="flex_target_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="gettext_create_translations_ctx">
+ <DetectChar attribute="Normal Text" context="gettext_create_translations_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="gettext_create_translations_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="gettext_create_translations_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="gettext_process_pot_file_ctx">
+ <DetectChar attribute="Normal Text" context="gettext_process_pot_file_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="gettext_process_pot_file_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="gettext_process_pot_file_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="gettext_process_po_files_ctx">
+ <DetectChar attribute="Normal Text" context="gettext_process_po_files_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="gettext_process_po_files_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="gettext_process_po_files_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="matlab_add_unit_test_ctx">
+ <DetectChar attribute="Normal Text" context="matlab_add_unit_test_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="matlab_add_unit_test_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="matlab_add_unit_test_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="matlab_add_mex_ctx">
+ <DetectChar attribute="Normal Text" context="matlab_add_mex_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="matlab_add_mex_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="matlab_add_mex_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="pkg_check_modules_ctx">
+ <DetectChar attribute="Normal Text" context="pkg_check_modules_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="pkg_check_modules_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="pkg_check_modules_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="pkg_get_variable_ctx">
+ <DetectChar attribute="Normal Text" context="pkg_get_variable_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="pkg_get_variable_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="pkg_get_variable_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="protobuf_generate_cpp_ctx">
+ <DetectChar attribute="Normal Text" context="protobuf_generate_cpp_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="protobuf_generate_cpp_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="protobuf_generate_cpp_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="Python_add_library_ctx">
+ <DetectChar attribute="Normal Text" context="Python_add_library_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="Python_add_library_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="Python_add_library_nargs"/>
+ <IncludeRules context="User Function Args"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="Subversion_WC_INFO_ctx">
+ <DetectChar attribute="Normal Text" context="Subversion_WC_INFO_ctx_op" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="Subversion_WC_INFO_ctx_op">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <keyword attribute="Named Args" context="#stay" String="Subversion_WC_INFO_nargs"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect More global-properties">
- <RegExpr attribute="Property" context="#stay" String="\bFeatureSummary_&id_re;_DESCRIPTION\b" />
+ <RegExpr attribute="Property" context="#stay" String="\b(?:FeatureSummary_&var_ref_re;_DESCRIPTION)\b"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect More directory-properties">
- <RegExpr attribute="Property" context="#stay" String="\bINTERPROCEDURAL_OPTIMIZATION_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bVS_GLOBAL_SECTION_POST_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bVS_GLOBAL_SECTION_PRE_&id_re;\b" />
+ <RegExpr attribute="Property" context="#stay" String="\b(?:(INTERPROCEDURAL_OPTIMIZATION|VS_GLOBAL_SECTION_(POST|PRE))_&var_ref_re;)\b"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect More target-properties">
- <RegExpr attribute="Property" context="#stay" String="\bARCHIVE_OUTPUT_DIRECTORY_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bARCHIVE_OUTPUT_NAME_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bCOMPILE_PDB_NAME_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bCOMPILE_PDB_OUTPUT_DIRECTORY_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\b&id_re;_OUTPUT_NAME\b" />
- <RegExpr attribute="Property" context="#stay" String="\b&id_re;_POSTFIX\b" />
- <RegExpr attribute="Property" context="#stay" String="\bEXCLUDE_FROM_DEFAULT_BUILD_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_IMPLIB_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_LIBNAME_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_LINK_DEPENDENT_LIBRARIES_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_LINK_INTERFACE_LANGUAGES_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_LINK_INTERFACE_LIBRARIES_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_LINK_INTERFACE_MULTIPLICITY_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_LOCATION_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_NO_SONAME_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_OBJECTS_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bIMPORTED_SONAME_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bINTERPROCEDURAL_OPTIMIZATION_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\b&id_re;_CLANG_TIDY\b" />
- <RegExpr attribute="Property" context="#stay" String="\b&id_re;_COMPILER_LAUNCHER\b" />
- <RegExpr attribute="Property" context="#stay" String="\b&id_re;_CPPCHECK\b" />
- <RegExpr attribute="Property" context="#stay" String="\b&id_re;_CPPLINT\b" />
- <RegExpr attribute="Property" context="#stay" String="\b&id_re;_INCLUDE_WHAT_YOU_USE\b" />
- <RegExpr attribute="Property" context="#stay" String="\b&id_re;_VISIBILITY_PRESET\b" />
- <RegExpr attribute="Property" context="#stay" String="\bLIBRARY_OUTPUT_DIRECTORY_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bLIBRARY_OUTPUT_NAME_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bLINK_FLAGS_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bLINK_INTERFACE_LIBRARIES_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bLINK_INTERFACE_MULTIPLICITY_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bLOCATION_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bMAP_IMPORTED_CONFIG_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bOSX_ARCHITECTURES_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bOUTPUT_NAME_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bPDB_NAME_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bPDB_OUTPUT_DIRECTORY_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bRUNTIME_OUTPUT_DIRECTORY_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bRUNTIME_OUTPUT_NAME_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bSTATIC_LIBRARY_FLAGS_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bVS_DOTNET_REFERENCE_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bVS_DOTNET_REFERENCEPROP_&id_re;_TAG_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bVS_GLOBAL_&id_re;\b" />
- <RegExpr attribute="Property" context="#stay" String="\bXCODE_ATTRIBUTE_&id_re;\b" />
+ <RegExpr attribute="Property" context="#stay" String="\b(?:&var_ref_re;_((COMPIL|LINK)ER_LAUNCHER|CLANG_TIDY(_EXPORT_FIXES_DIR)?|CPP(CHECK|LINT)|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|((ARCHIVE|LIBRARY|RUNTIME)_OUTPUT_(DIRECTORY|NAME)|COMPILE_PDB_(NAME|OUTPUT_DIRECTORY)|CXX_MODULE_(DIRS|SET)|EXCLUDE_FROM_DEFAULT_BUILD|FRAMEWORK_MULTI_CONFIG_POSTFIX|HEADER_(DIRS|SET)|IMPORTED_((NO_)?SONAME|IMPLIB|LIBNAME|LINK_(DEPENDENT_LIBRARIES|INTERFACE_(LANGUAGES|LIBRARIES|MULTIPLICITY))|LOCATION|OBJECTS)|INTERPROCEDURAL_OPTIMIZATION|LINK_(FLAGS|INTERFACE_(LIBRARIES|MULTIPLICITY))|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_(NAME|OUTPUT_DIRECTORY)|STATIC_LIBRARY_FLAGS|VS_(DOTNET_REFERENCE(PROP_&var_ref_re;_TAG)?|GLOBAL|SOURCE_SETTINGS))_&var_ref_re;|XCODE_(ATTRIBUTE_&var_ref_re;|EMBED_&var_ref_re;(_((CODE_SIGN|REMOVE_HEADERS)_ON_COPY|PATH))?))\b"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect More source-properties">
- <RegExpr attribute="Property" context="#stay" String="\bVS_CSHARP_&id_re;\b" />
- </context>
-
- <context attribute="Normal Text" lineEndContext="#stay" name="EndCmdPop">
- <DetectChar attribute="Normal Text" context="#pop" char=")" />
- </context>
-
- <context attribute="Normal Text" lineEndContext="#stay" name="EndCmdPop2">
- <DetectChar attribute="Normal Text" context="#pop#pop" char=")" />
+ <RegExpr attribute="Property" context="#stay" String="\b(?:VS_CSHARP_&var_ref_re;)\b"/>
</context>
<context attribute="User Function/Macro" lineEndContext="#stay" name="User Function">
- <DetectChar attribute="Normal Text" context="User Function Opened" char="(" />
- <IncludeRules context="EndCmdPop2" />
+ <DetectChar attribute="Normal Text" context="User Function Opened" char="("/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="User Function Opened">
- <IncludeRules context="EndCmdPop2" />
- <IncludeRules context="User Function Args" />
+ <DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true"/>
+ <IncludeRules context="User Function Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Builtin Variables">
- <keyword attribute="Builtin Variable" context="#stay" String="variables" insensitive="false" />
- <IncludeRules context="Detect More Builtin Variables" />
- <RegExpr attribute="Internal Name" context="#stay" String="\b_&id_re;\b" />
+ <RegExpr attribute="Internal Name" context="#stay" String="\b_&var_ref_re;\b"/>
+ <keyword attribute="CMake Internal Variable" context="#stay" String="deprecated-or-internal-variables" insensitive="false"/>
+ <keyword attribute="Builtin Variable" context="#stay" String="variables" insensitive="false"/>
+ <IncludeRules context="Detect More Builtin Variables"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect More Builtin Variables">
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_BINARY_DIR\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_SOURCE_DIR\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_VERSION\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_VERSION_MAJOR\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_VERSION_MINOR\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_VERSION_PATCH\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_VERSION_TWEAK\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_ROOT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;__TRYRUN_OUTPUT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_CONSIDERED_CONFIGS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_CONSIDERED_VERSIONS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_COMPONENTS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_QUIETLY\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_REQUIRED\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_REQUIRED_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_VERSION\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_VERSION_COUNT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_VERSION_EXACT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_VERSION_MAJOR\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_VERSION_MINOR\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_VERSION_PATCH\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FIND_VERSION_TWEAK\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_FOUND\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_INCLUDE_DIRS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_LIBRARIES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_LIBRARY_DIRS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_VERSION_COUNT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\b&id_re;_VERSION_STRING\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_POSTFIX\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_ANDROID_TOOLCHAIN_MACHINE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_ANDROID_TOOLCHAIN_PREFIX\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_ANDROID_TOOLCHAIN_SUFFIX\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_ARCHIVE_APPEND\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_ARCHIVE_CREATE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_ARCHIVE_FINISH\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_CLANG_TIDY\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_ABI\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_AR\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_EXTERNAL_TOOLCHAIN\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_ID\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_LAUNCHER\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_LOADED\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_RANLIB\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_TARGET\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILER_VERSION\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_COMPILE_OBJECT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_CPPCHECK\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_CPPLINT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_CREATE_SHARED_LIBRARY\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_CREATE_SHARED_MODULE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_CREATE_STATIC_LIBRARY\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_DEBUG\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_DEBUG_INIT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_INIT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_MINSIZEREL\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_MINSIZEREL_INIT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_RELEASE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_RELEASE_INIT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_RELWITHDEBINFO\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_FLAGS_RELWITHDEBINFO_INIT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_GHS_KERNEL_FLAGS_DEBUG\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_GHS_KERNEL_FLAGS_MINSIZEREL\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_GHS_KERNEL_FLAGS_RELEASE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_GHS_KERNEL_FLAGS_RELWITHDEBINFO\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_IGNORE_EXTENSIONS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_IMPLICIT_INCLUDE_DIRECTORIES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_IMPLICIT_LINK_DIRECTORIES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_IMPLICIT_LINK_LIBRARIES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_INCLUDE_WHAT_YOU_USE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_LIBRARY_ARCHITECTURE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_LINKER_PREFERENCE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_LINKER_PREFERENCE_PROPAGATES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_LINKER_WRAPPER_FLAG\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_LINKER_WRAPPER_FLAG_SEP\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_LINK_EXECUTABLE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_OUTPUT_EXTENSION\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_PLATFORM_ID\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_SIMULATE_ID\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_SIMULATE_VERSION\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_SIZEOF_DATA_PTR\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_SOURCE_FILE_EXTENSIONS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_STANDARD_INCLUDE_DIRECTORIES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_STANDARD_LIBRARIES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_&id_re;_VISIBILITY_PRESET\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_ARCHIVE_OUTPUT_DIRECTORY_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_DISABLE_FIND_PACKAGE_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_EXE_LINKER_FLAGS_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_EXE_LINKER_FLAGS_&id_re;_INIT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_INTERPROCEDURAL_OPTIMIZATION_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_LIBRARY_OUTPUT_DIRECTORY_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_MAP_IMPORTED_CONFIG_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_MATCH_[0-9]+\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_MODULE_LINKER_FLAGS_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_MODULE_LINKER_FLAGS_&id_re;_INIT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_PDB_OUTPUT_DIRECTORY_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_POLICY_DEFAULT_CMP&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_POLICY_WARNING_CMP&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_PROJECT_&id_re;_INCLUDE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_RUNTIME_OUTPUT_DIRECTORY_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_SHARED_LINKER_FLAGS_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_SHARED_LINKER_FLAGS_&id_re;_INIT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_STATIC_LINKER_FLAGS_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_STATIC_LINKER_FLAGS_&id_re;_INIT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_USER_MAKE_RULES_OVERRIDE_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCMAKE_XCODE_ATTRIBUTE_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_&id_re;_COMPONENT_INSTALL\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_ARCHIVE_&id_re;_FILE_NAME\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_BINARY_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_DEPENDS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_DESCRIPTION\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_DISABLED\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_DISPLAY_NAME\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_GROUP\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_HIDDEN\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_REQUIRED\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_COMPONENT_&id_re;_DESCRIPTION\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_FILE_NAME\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_ARCHITECTURE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_BREAKS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_CONFLICTS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_CONTROL_EXTRA\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_CONTROL_STRICT_PERMISSION\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_DEPENDS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_ENHANCES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_NAME\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_PREDEPENDS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_PRIORITY\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_PROVIDES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_RECOMMENDS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_REPLACES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_SECTION\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_SHLIBDEPS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_SOURCE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_PACKAGE_SUGGESTS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_DEBIAN_&id_re;_DEBUGINFO_PACKAGE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NSIS_&id_re;_INSTALL_DIRECTORY\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_AUTHORS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_COPYRIGHT\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_DEPENDENCIES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_DEPENDENCIES_&id_re;_VERSION\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_DESCRIPTION\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_DESCRIPTION_SUMMARY\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_HOMEPAGE_URL\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_ICONURL\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_LICENSEURL\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_NAME\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_OWNERS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_RELEASE_NOTES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_TAGS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_TITLE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_&id_re;_PACKAGE_VERSION\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_NUGET_PACKAGE_DEPENDENCIES_&id_re;_VERSION\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_DEFAULT_DIR_PERMISSIONS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_DEFAULT_FILE_PERMISSIONS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_DEFAULT_GROUP\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_DEFAULT_USER\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_BUILD_SOURCE_DIRS_PREFIX\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_DEBUGINFO_FILE_NAME\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_DEBUGINFO_PACKAGE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_FILE_NAME\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_ARCHITECTURE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_AUTOPROV\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_AUTOREQ\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_AUTOREQPROV\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_CONFLICTS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_DESCRIPTION\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_GROUP\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_NAME\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_OBSOLETES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_PREFIX\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_PROVIDES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_REQUIRES\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_REQUIRES_POST\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_REQUIRES_POSTUN\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_REQUIRES_PRE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_REQUIRES_PREUN\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_SUGGESTS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_SUMMARY\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_PACKAGE_URL\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_USER_FILELIST\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_&id_re;_USER_BINARY_SPECFILE\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_RPM_NO_&id_re;_INSTALL_PREFIX_RELOCATION\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_WIX_&id_re;_EXTENSIONS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_WIX_&id_re;_EXTRA_FLAGS\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bCPACK_WIX_PROPERTY_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bDOXYGEN_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bExternalData_CUSTOM_SCRIPT_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bExternalData_URL_ALGO_&id_re;_&id_re;\b" />
- <RegExpr attribute="Builtin Variable" context="#stay" String="\bSWIG_MODULE_&id_re;_EXTRA_DEPS\b" />
+ <RegExpr attribute="CMake Internal Variable" context="#stay" String="\b(?:CMAKE_&var_ref_re;_(COMPILER_(ABI|ARCHITECTURE_ID|VERSION_INTERNAL)|PLATFORM_ID))\b"/>
+ <RegExpr attribute="Builtin Variable" context="#stay" String="\b(?:&var_ref_re;_(((STATIC_)?LINK_)?LIBRARIES|(BINARY|SOURCE)_DIR|(C|LD)FLAGS(_OTHER)?|(INCLUDE|LIBRARY)_DIRS|CONFIG|CONSIDERED_(CONFIGS|VERSIONS)|DESCRIPTION|FIND_(COMPONENTS|REQUIRED(_&var_ref_re;)?|VERSION_(COMPLETE|COUNT|EXACT|M(AX|IN)(_(COUNT|MAJOR|MINOR|PATCH|TWEAK))?|RANGE(_(MAX|MIN))?)|QUIETLY)|FOUND|HOMEPAGE_URL|IS_TOP_LEVEL|KEYWORDS_MISSING_VALUES|MODULE_NAME|ROOT|UNPARSED_ARGUMENTS|VERSION(_(MAJOR|MINOR|PATCH|TWEAK|COUNT|STRING))?)|&var_ref_re;__TRYRUN_OUTPUT|(DOXYGEN|ExternalData_(CUSTOM_SCRIPT|URL_ALGO)|FETCHCONTENT_(SOURCE_DIR|UPDATES_DISCONNECTED))_&var_ref_re;|ARGV[0-9]+|BISON_&var_ref_re;_(COMPILE_FLAGS|DEFINED|INPUT|OUTPUT(S|_(HEADER|SOURCE)))|Boost_&var_ref_re;_LIBRARY(_(DEBUG|RELEASE))?|CMAKE_(&var_ref_re;_(ANDROID_TOOLCHAIN_((PRE|SUF)FIX|MACHINE)|ARCHIVE_(APPEND|CREATE|FINISH)|BYTE_ORDER|CLANG_TIDY(_EXPORT_FIXES_DIR)?|COMPILER(_(AR|EXTERNAL_TOOLCHAIN|FRONTEND_VARIANT|ID|LAUNCHER|LOADED|RANLIB|TARGET|VERSION))?|COMPILE_OBJECT|CPP(CHECK|LINT)|CREATE_(SHARED_(LIBRARY|MODULE)|STATIC_LIBRARY)|EXTENSIONS(_DEFAULT)?|FLAGS(_((DEBUG|MINSIZEREL|REL(EASE|WITHDEBINFO)|&var_ref_re;)(_INIT)?|INIT))?|GHS_KERNEL_FLAGS_(DEBUG|MINSIZEREL|REL(EASE|WITHDEBINFO))|IGNORE_EXTENSIONS|IMPLICIT_(INCLUDE_DIRECTORIES|LINK_((FRAMEWORK_)?DIRECTORIES|LIBRARIES))|INCLUDE_WHAT_YOU_USE|LIBRARY_ARCHITECTURE|LINKER_(LAUNCHER|PREFERENCE(_PROPAGATES)?|WRAPPER_FLAG(_SEP)?)|LINK_(EXECUTABLE|GROUP_USING_&var_ref_re;(_SUPPORTED)?|LIBRARY_(FILE_FLAG|FLAG|USING_&var_ref_re;(_SUPPORTED)?)|WHAT_YOU_USE_FLAG)|OUTPUT_EXTENSION|POSTFIX|SIMULATE_(ID|VERSION)|SIZEOF_DATA_PTR|SOURCE_FILE_EXTENSIONS|STANDARD_(INCLUDE_DIRECTO|LIBRA)RIES|VISIBILITY_PRESET)|((ARCHIVE|(COMPILE_)?PDB|LIBRARY|RUNTIME)_OUTPUT_DIRECTORY|(DISABLE|REQUIRE)_FIND_PACKAGE|FRAMEWORK_MULTI_CONFIG_POSTFIX|GET_OS_RELEASE_FALLBACK_RESULT|INTERPROCEDURAL_OPTIMIZATION|MAP_IMPORTED_CONFIG|USER_MAKE_RULES_OVERRIDE|XCODE_ATTRIBUTE)_&var_ref_re;|(EXE|MODULE|SHARED|STATIC)_LINKER_FLAGS_&var_ref_re;(_INIT)?|LINK_(GROUP|LIBRARY)_USING_&var_ref_re;(_SUPPORTED)?|PROJECT_&var_ref_re;_INCLUDE(_BEFORE)?)|CMAKE_(ARGV|MATCH_)[0-9]+|CMAKE_POLICY_(DEFAULT|WARNING)_CMP[0-9]{4}|CPACK_(&var_ref_re;_COMPONENT_INSTALL|ARCHIVE_&var_ref_re;_FILE_NAME|BINARY_&var_ref_re;|COMPONENT_&var_ref_re;_(DEPENDS|DESCRIPTION|DIS(ABLED|PLAY_NAME)|GROUP|HIDDEN|REQUIRED)|DEBIAN_&var_ref_re;_(DESCRIPTION|FILE_NAME|PACKAGE_((PRE)?DEPENDS|ARCHITECTURE|BREAKS|CONFLICTS|CONTROL_(EXTRA|STRICT_PERMISSION)|ENHANCES|NAME|PRIORITY|PROVIDES|RECOMMENDS|REPLACES|SECTION|SHLIBDEPS|SOURCE|SUGGESTS)|DEBUGINFO_PACKAGE)|DMG_&var_ref_re;_FILE_NAME|INNOSETUP_(&var_ref_re;_INSTALL_DIRECTORY|(DEFINE|SETUP)_&var_ref_re;)|NSIS_&var_ref_re;_INSTALL_DIRECTORY|NUGET_(&var_ref_re;_PACKAGE_(AUTHORS|COPYRIGHT|DEPENDENCIES(_&var_ref_re;_VERSION)?|DESCRIPTION(_SUMMARY)?|HOMEPAGE_URL|ICON(URL)?|LANGUAGE|LICENSE(URL|_(EXPRESSION|FILE_NAME))|NAME|OWNERS|RELEASE_NOTES|TAGS|TITLE|VERSION)|PACKAGE_DEPENDENCIES_&var_ref_re;_VERSION)|P(RE|OST)FLIGHT_&var_ref_re;_SCRIPT|RPM_(&var_ref_re;_(DEFAULT_((DIR|FILE)_PERMISSIONS|GROUP|USER)|BUILD_SOURCE_DIRS_PREFIX|DEBUGINFO_(FILE_NAME|PACKAGE)|FILE_NAME|PACKAGE_(ARCHITECTURE|AUTO(PROV|REQ(PROV)?)|CONFLICTS|DESCRIPTION|GROUP|NAME|OBSOLETES|PREFIX|PROVIDES|REQUIRES(_P(RE|OST)(UN)?)?|SUGGESTS|SUMMARY|URL)|USER_(FILELIST|BINARY_SPECFILE))|NO_&var_ref_re;_INSTALL_PREFIX_RELOCATION)|WIX_(&var_ref_re;_EXT(ENSIONS|RA_FLAGS)|PROPERTY_&var_ref_re;))|ICU_&var_ref_re;_(LIBRARY|EXECUTABLE)|MPI_&var_ref_re;_(ADDITIONAL_INCLUDE_VARS|COMPILE(R|_(DEFINI|OP)TIONS)|LIB(_NAMES|RARY))|OpenACC_&var_ref_re;_(FLAGS|OPTIONS|SPEC_DATE)|OpenMP_&var_ref_re;_(FLAGS|LIB(_NAMES|RARY)|SPEC_DATE)|SWIG_MODULE_&var_ref_re;_EXTRA_DEPS)\b"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Variable Substitutions">
- <RegExpr attribute="Environment Variable Substitution" context="#stay" String="\$ENV\{\s*[\w-]+\s*\}" />
- <Detect2Chars attribute="Variable Substitution" context="VarSubst" char="$" char1="{" />
- <RegExpr attribute="@Variable Substitution" context="@VarSubst" String="@&id_re;@" lookAhead="true" />
+ <RegExpr attribute="Cache Variable Substitution" context="#stay" String="\$CACHE\{\s*[\w-]+\s*\}"/>
+ <RegExpr attribute="Environment Variable Substitution" context="EnvVarSubst" String="\$?ENV\{"/>
+ <Detect2Chars attribute="Variable Substitution" context="VarSubst" char="$" char1="{"/>
+ <RegExpr attribute="@Variable Substitution" context="@VarSubst" String="@&var_ref_re;@" lookAhead="true"/>
+ </context>
+
+ <context attribute="Environment Variable Substitution" lineEndContext="#pop" name="EnvVarSubst">
+ <DetectChar attribute="Environment Variable Substitution" context="#pop" char="}"/>
+ <keyword attribute="Standard Environment Variable" context="#stay" String="environment-variables" insensitive="false"/>
+ <RegExpr attribute="Standard Environment Variable" context="#stay" String="\b(?:&var_ref_re;_(DIR|ROOT)|ASM&var_ref_re;(FLAGS)?|CMAKE_&var_ref_re;_(COMPIL|LINK)ER_LAUNCHER)\b"/>
+ <DetectIdentifier/>
+ <IncludeRules context="Detect Variable Substitutions"/>
</context>
<context attribute="Variable Substitution" lineEndContext="#pop" name="VarSubst">
- <IncludeRules context="Detect Builtin Variables" />
- <DetectIdentifier />
- <DetectChar attribute="Variable Substitution" context="#pop" char="}" />
- <IncludeRules context="Detect Variable Substitutions" />
+ <DetectChar attribute="Variable Substitution" context="#pop" char="}"/>
+ <IncludeRules context="Detect Builtin Variables"/>
+ <DetectIdentifier/>
+ <IncludeRules context="Detect Variable Substitutions"/>
</context>
<context attribute="@Variable Substitution" lineEndContext="#pop" name="@VarSubst">
- <DetectChar attribute="@Variable Substitution" context="VarSubst@" char="@" />
+ <DetectChar attribute="@Variable Substitution" context="VarSubst@" char="@"/>
</context>
<context attribute="@Variable Substitution" lineEndContext="#pop#pop" name="VarSubst@">
- <IncludeRules context="Detect Builtin Variables" />
- <DetectIdentifier />
- <DetectChar attribute="@Variable Substitution" context="#pop#pop" char="@" />
+ <DetectChar attribute="@Variable Substitution" context="#pop#pop" char="@"/>
+ <IncludeRules context="Detect Builtin Variables"/>
+ <DetectIdentifier/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="Target Name">
+ <DetectSpaces/>
+ <RegExpr attribute="Aliased Targets" context="#pop" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ <IncludeRules context="Detect Targets"/>
+ <IncludeRules context="User Function Opened"/>
+ <IncludeRules context="LineError"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="Detect Targets">
+ <RegExpr attribute="Targets" context="#stay" String="&tgt_name_re;"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="LineError">
+ <RegExpr attribute="Error" context="#stay" String=".*"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="User Function Args">
- <Detect2Chars attribute="Normal Text" context="#stay" char="\" char1="(" />
- <Detect2Chars attribute="Normal Text" context="#stay" char="\" char1=")" />
- <RegExpr attribute="Escapes" context="#stay" String="\\[&quot;$n\\]" />
- <DetectChar attribute="Strings" context="String" char="&quot;" />
- <RegExpr attribute="Strings" context="Bracketed String" String="\[(=*)\[" />
- <RegExpr attribute="Comment" context="Bracketed Comment" String="#\[(=*)\[" />
- <DetectChar attribute="Comment" context="Comment" char="#" />
- <IncludeRules context="Detect Builtin Variables" />
- <IncludeRules context="Detect Variable Substitutions" />
- <IncludeRules context="Detect Special Values" />
- <IncludeRules context="Detect Aliased Targets" />
- <IncludeRules context="Detect Generator Expressions" />
+ <Detect2Chars attribute="Normal Text" context="#stay" char="\" char1="("/>
+ <Detect2Chars attribute="Normal Text" context="#stay" char="\" char1=")"/>
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="&quot;"/>
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="$"/>
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="n"/>
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="\"/>
+ <DetectChar attribute="Strings" context="String" char="&quot;"/>
+ <RegExpr attribute="Strings" context="Bracketed String" String="\[(=*)\[" beginRegion="BracketedString"/>
+ <DetectChar attribute="Comment" context="Match Comments" char="#" lookAhead="true"/>
+ <IncludeRules context="Detect Builtin Variables"/>
+ <IncludeRules context="Detect Variable Substitutions"/>
+ <IncludeRules context="Detect Special Values"/>
+ <IncludeRules context="Detect Aliased Targets"/>
+ <IncludeRules context="Detect Generator Expressions"/>
+ <DetectIdentifier/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Special Values">
- <RegExpr attribute="True Special Arg" context="#stay" String="\b(TRUE|ON)\b" />
- <RegExpr attribute="False Special Arg" context="#stay" String="\b(FALSE|OFF|(&id_re;-)?NOTFOUND)\b" />
- <RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9][0-9][0-9]\b" />
+ <RegExpr attribute="Version Arg" context="#stay" String="\b[0-9]++(.[0-9]++)+\b"/>
+ <keyword attribute="True Special Arg" context="#stay" String="true_special_arg" insensitive="true"/>
+ <keyword attribute="False Special Arg" context="#stay" String="false_special_arg" insensitive="true"/>
+ <RegExpr attribute="False Special Arg" context="#stay" String="\b(?:&var_ref_re;-)?NOTFOUND\b"/>
+ <RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9][0-9][0-9][0-9]\b"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Aliased Targets">
- <RegExpr attribute="Aliased Targets" context="#stay" String="\b&id_re;::&id_re;(::&id_re;)*\b" />
+ <RegExpr attribute="Aliased Targets" context="#stay" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*"/>
+ </context>
+
+ <context attribute="Comment" lineEndContext="#pop" name="Match Comments">
+ <DetectSpaces/>
+ <RegExpr attribute="Comment" context="#pop!Bracketed Comment" String="#\[(=*)\[" beginRegion="BracketedComment"/>
+ <DetectChar attribute="Comment" context="#pop!Comment" char="#"/>
+ <DetectIdentifier/>
+ </context>
+
+ <context attribute="Comment" lineEndContext="#pop" name="Match Comments and Docs">
+ <RegExpr attribute="Region Marker" context="#pop!RST Documentation" String="^#\[(=*)\[\.rst:" column="0" beginRegion="RSTDocumentation"/>
+ <IncludeRules context="Match Comments"/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="Comment">
- <LineContinue attribute="Comment" context="#pop" />
- <IncludeRules context="##Alerts" />
- <IncludeRules context="##Modelines" />
+ <DetectSpaces/>
+ <LineContinue attribute="Comment" context="#pop"/>
+ <IncludeRules context="##Comments"/>
+ <DetectIdentifier/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="RST Documentation" dynamic="true">
- <RegExpr attribute="Region Marker" context="#pop" String="^#?\]%1\]" dynamic="true" column="0" />
- <IncludeRules context="##reStructuredText" />
+ <RegExpr attribute="Region Marker" context="#pop" String="^#?\]%1\]" dynamic="true" column="0" endRegion="RSTDocumentation"/>
+ <IncludeRules context="##reStructuredText"/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="Bracketed Comment" dynamic="true">
- <RegExpr attribute="Comment" context="#pop" String=".*\]%1\]" dynamic="true" />
- <IncludeRules context="##Alerts" />
- <IncludeRules context="##Modelines" />
+ <LineContinue attribute="Comment" context="#stay"/>
+ <DetectSpaces/>
+ <StringDetect attribute="Comment" context="#pop" String="]%1]" dynamic="true" endRegion="BracketedComment"/>
+ <IncludeRules context="##Comments"/>
</context>
<context attribute="Strings" lineEndContext="#stay" name="String">
- <RegExpr attribute="Strings" context="#pop" String="&quot;(?=[ );]|$)" />
- <RegExpr attribute="Escapes" context="#stay" String="\\[&quot;$nrt\\]" />
- <IncludeRules context="Detect Variable Substitutions" />
- <IncludeRules context="Detect Generator Expressions" />
+ <DetectSpaces/>
+ <DetectIdentifier/>
+ <RegExpr attribute="Strings" context="#pop" String="&quot;(?=[ );]|$)"/>
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="&quot;"/>
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="$"/>
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="n"/>
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="r"/>
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="t"/>
+ <Detect2Chars attribute="Escapes" context="#stay" char="\" char1="\"/>
+ <IncludeRules context="Detect Variable Substitutions"/>
+ <IncludeRules context="Detect Generator Expressions"/>
</context>
<context attribute="Strings" lineEndContext="#stay" name="Bracketed String" dynamic="true">
- <RegExpr attribute="Strings" context="#pop" String="\]%1\]" dynamic="true" />
+ <StringDetect attribute="Strings" context="#pop" String="]%1]" dynamic="true" endRegion="BracketedString"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Generator Expressions">
- <Detect2Chars attribute="Generator Expression" context="Generator Expression" char="$" char1="&lt;" />
+ <Detect2Chars attribute="Generator Expression" context="Generator Expression" char="$" char1="&lt;"/>
</context>
<context attribute="Generator Expression" lineEndContext="#stay" name="Generator Expression">
- <IncludeRules context="Detect Generator Expressions" />
- <DetectChar attribute="Comment" context="Comment" char="#" />
- <DetectChar attribute="Generator Expression" context="#pop" char="&gt;" />
- <keyword attribute="Generator Expression Keyword" context="#stay" String="generator-expressions" insensitive="false" />
- <IncludeRules context="Detect Aliased Targets" />
- <IncludeRules context="Detect Variable Substitutions" />
+ <IncludeRules context="Detect Generator Expressions"/>
+ <DetectChar attribute="Comment" context="Comment" char="#"/>
+ <DetectChar attribute="Generator Expression" context="#pop" char="&gt;"/>
+ <keyword attribute="Generator Expression Keyword" context="#stay" String="generator-expressions" insensitive="false"/>
+ <WordDetect String="LIST" attribute="Generator Expression Keyword" context="genex_LIST_ctx"/>
+ <WordDetect String="PATH" attribute="Generator Expression Keyword" context="genex_PATH_ctx"/>
+ <IncludeRules context="Detect Aliased Targets"/>
+ <IncludeRules context="Detect Variable Substitutions"/>
+ <DetectIdentifier/>
+ </context>
+ <context attribute="Generator Expression" lineEndContext="#stay" name="genex_LIST_ctx" fallthroughContext="#pop">
+ <DetectChar char=":" context="#stay"/>
+ <DetectSpaces/>
+ <keyword attribute="Generator Expression Sub-Command" context="#pop" String="genex-LIST-subcommands" insensitive="false"/>
+ </context>
+ <context attribute="Generator Expression" lineEndContext="#stay" name="genex_PATH_ctx" fallthroughContext="#pop">
+ <DetectChar char=":" context="#stay"/>
+ <DetectSpaces/>
+ <keyword attribute="Generator Expression Sub-Command" context="#pop" String="genex-PATH-subcommands" insensitive="false"/>
</context>
</contexts>
<itemDatas>
- <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false" />
- <itemData name="Command" defStyleNum="dsKeyword" spellChecking="false" />
- <itemData name="User Function/Macro" defStyleNum="dsFunction" spellChecking="false" />
- <itemData name="Property" defStyleNum="dsOthers" spellChecking="false" />
- <itemData name="Aliased Targets" defStyleNum="dsBaseN" spellChecking="false" />
- <itemData name="Named Args" defStyleNum="dsOthers" spellChecking="false" />
- <itemData name="Special Args" defStyleNum="dsOthers" spellChecking="false" />
- <itemData name="True Special Arg" defStyleNum="dsOthers" color="#30a030" selColor="#30a030" spellChecking="false" />
- <itemData name="False Special Arg" defStyleNum="dsOthers" color="#e05050" selColor="#e05050" spellChecking="false" />
- <itemData name="Strings" defStyleNum="dsString" spellChecking="true" />
- <itemData name="Escapes" defStyleNum="dsChar" spellChecking="false" />
- <itemData name="Builtin Variable" defStyleNum="dsDecVal" color="#c09050" selColor="#c09050" spellChecking="false" />
- <itemData name="Variable Substitution" defStyleNum="dsDecVal" spellChecking="false" />
- <itemData name="@Variable Substitution" defStyleNum="dsBaseN" spellChecking="false" />
- <itemData name="Internal Name" defStyleNum="dsDecVal" color="#303030" selColor="#303030" spellChecking="false" />
- <itemData name="Environment Variable Substitution" defStyleNum="dsFloat" spellChecking="false" />
- <itemData name="Generator Expression Keyword" defStyleNum="dsKeyword" color="#b84040" selColor="#b84040" spellChecking="false" />
- <itemData name="Generator Expression" defStyleNum="dsOthers" color="#b86050" selColor="#b86050" spellChecking="false" />
- <itemData name="Comment" defStyleNum="dsComment" spellChecking="true" />
- <itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false" />
+ <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
+ <itemData name="Comment" defStyleNum="dsComment" spellChecking="true"/>
+ <itemData name="Command" defStyleNum="dsKeyword" spellChecking="false"/>
+ <itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="false"/>
+ <itemData name="CMake Provided Function/Macro" defStyleNum="dsFunction" bold="true" spellChecking="false"/>
+ <itemData name="User Function/Macro" defStyleNum="dsFunction" spellChecking="false"/>
+ <itemData name="Property" defStyleNum="dsOthers" spellChecking="false"/>
+ <itemData name="Targets" defStyleNum="dsBaseN" spellChecking="false"/>
+ <itemData name="Aliased Targets" defStyleNum="dsBaseN" spellChecking="false"/>
+ <itemData name="Named Args" defStyleNum="dsOthers" spellChecking="false"/>
+ <itemData name="Special Args" defStyleNum="dsOthers" spellChecking="false"/>
+ <itemData name="True Special Arg" defStyleNum="dsOthers" color="#30a030" selColor="#30a030" spellChecking="false"/>
+ <itemData name="False Special Arg" defStyleNum="dsOthers" color="#e05050" selColor="#e05050" spellChecking="false"/>
+ <itemData name="Version Arg" defStyleNum="dsDataType" spellChecking="false"/>
+ <itemData name="Strings" defStyleNum="dsString" spellChecking="true"/>
+ <itemData name="Escapes" defStyleNum="dsSpecialChar" spellChecking="false"/>
+ <itemData name="Builtin Variable" defStyleNum="dsDecVal" color="#c09050" selColor="#c09050" spellChecking="false"/>
+ <itemData name="CMake Internal Variable" defStyleNum="dsVariable" spellChecking="false"/>
+ <itemData name="Internal Name" defStyleNum="dsVariable" spellChecking="false"/>
+ <itemData name="Variable Substitution" defStyleNum="dsDecVal" spellChecking="false"/>
+ <itemData name="@Variable Substitution" defStyleNum="dsBaseN" spellChecking="false"/>
+ <itemData name="Cache Variable Substitution" defStyleNum="dsFloat" spellChecking="false"/>
+ <itemData name="Environment Variable Substitution" defStyleNum="dsFloat" spellChecking="false"/>
+ <itemData name="Standard Environment Variable" defStyleNum="dsFloat" spellChecking="false"/>
+ <itemData name="Generator Expression Keyword" defStyleNum="dsKeyword" color="#b84040" selColor="#b84040" spellChecking="false"/>
+ <itemData name="Generator Expression Sub-Command" defStyleNum="dsKeyword" color="#c05050" selColor="#c05050" spellChecking="false"/>
+ <itemData name="Generator Expression" defStyleNum="dsOthers" color="#b86050" selColor="#b86050" spellChecking="false"/>
+ <itemData name="Standard Module" defStyleNum="dsImport" spellChecking="false"/>
+ <itemData name="Deprecated Module" defStyleNum="dsImport" spellChecking="false"/>
+ <itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/>
+ <itemData name="Error" defStyleNum="dsError" spellChecking="false"/>
</itemDatas>
</highlighting>
<general>
<comments>
- <comment name="singleLine" start="#" />
+ <comment name="singleLine" start="#" position="afterwhitespace"/>
+ <comment name="multiLine" start="#[[" end="]]" region="BracketedComment"/>
</comments>
- <keywords casesensitive="1" />
+ <keywords casesensitive="1" weakDeliminator="."/>
</general>
</language>
-
-<!-- kate: indent-width 2; tab-width 2; -->
-
+<!-- kate: replace-tabs on; indent-width 2; tab-width 2; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/comments.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/comments.xml
new file mode 100644
index 0000000000..011dc8ab21
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/comments.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language>
+<language
+ version="1"
+ kateversion="5.0"
+ name="Comments"
+ section="Other"
+ extensions=""
+ mimetype=""
+ author="Alex Turbov (i.zaufi@gmail.com)"
+ license="MIT"
+ hidden="true"
+ >
+ <highlighting>
+ <contexts>
+ <context name="Normal" attribute="Comment" lineEndContext="#pop">
+ <IncludeRules context="##Alerts" />
+ <IncludeRules context="##Modelines" />
+ <IncludeRules context="##SPDX-Comments" />
+ </context>
+ </contexts>
+ <itemDatas>
+ <itemData name="Comment" defStyleNum="dsComment" />
+ </itemDatas>
+ </highlighting>
+</language>
+<!-- kate: indent-width 2; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/css.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/css.xml
index 25a614e826..dd2f37ba35 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/css.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/css.xml
@@ -1,9 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd"
+<!DOCTYPE language
[
<!-- https://www.w3.org/TR/CSS22/syndata.html#tokenization -->
- <!ENTITY nmstart "[_a-zA-Z]|(\\[0-9a-fA-F]{1,6})|(\\[^\n\r\f0-9a-fA-F])">
- <!ENTITY nmchar "[_a-zA-Z0-9-]|(\\[0-9a-fA-F]{1,6})|(\\[^\n\r\f0-9a-fA-F])">
+ <!ENTITY escaped "\\([0-9a-fA-F]{1,6}|[^\n\r\f0-9a-fA-F])">
+ <!ENTITY ident "-?([_a-zA-Z]|&escaped;)([-_a-zA-Z0-9]+|&escaped;)*">
+ <!-- identifiers starting with several - are invalid, but supported by browsers -->
+ <!ENTITY ident2 "([-\w]+|&escaped;)+">
+ <!ENTITY var "--[-\w]*">
+ <!ENTITY func "-?[a-zA-Z][-a-zA-Z0-9]*">
+ <!ENTITY propcheck "(?=\s*(/[*].*?[*]/\s*)?:)">
]>
<!--
@@ -38,17 +43,23 @@ Changelog:
-->
-<language name="CSS" version="8" kateversion="5.0" section="Markup" extensions="*.css" indenter="cstyle" mimetype="text/css" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10">
-
+<language name="CSS" version="17" kateversion="5.79" section="Markup" extensions="*.css" indenter="cstyle" mimetype="text/css" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10">
<highlighting>
+ <!-- W3C > Work Draft, from https://www.w3.org/Style/CSS/all-properties (exclude FPWD)-->
<list name="properties">
- <!-- W3C > Work Draft, from https://www.w3.org/Style/CSS/all-properties -->
+ <item>-webkit-line-clamp</item>
+ <item>-webkit-text-fill-color</item>
+ <item>-webkit-text-stroke</item>
+ <item>-webkit-text-stroke-color</item>
+ <item>-webkit-text-stroke-width</item>
+ <item>accent-color</item>
+ <item>additive-symbols</item>
<item>align-content</item>
<item>align-items</item>
- <item>alignment-baseline</item>
<item>align-self</item>
<item>all</item>
<item>animation</item>
+ <item>animation-composition</item>
<item>animation-delay</item>
<item>animation-direction</item>
<item>animation-duration</item>
@@ -58,7 +69,9 @@ Changelog:
<item>animation-play-state</item>
<item>animation-timing-function</item>
<item>appearance</item>
- <item>azimuth</item>
+ <item>ascent-override</item>
+ <item>aspect-ratio</item>
+ <item>backdrop-filter</item>
<item>backface-visibility</item>
<item>background</item>
<item>background-attachment</item>
@@ -66,21 +79,14 @@ Changelog:
<item>background-clip</item>
<item>background-color</item>
<item>background-image</item>
- <item>background-image-transform</item>
<item>background-origin</item>
<item>background-position</item>
+ <item>background-position-x</item>
+ <item>background-position-y</item>
<item>background-repeat</item>
<item>background-size</item>
- <item>baseline-shift</item>
+ <item>base-palette</item>
<item>block-size</item>
- <item>block-step</item>
- <item>block-step-align</item>
- <item>block-step-insert</item>
- <item>block-step-round</item>
- <item>block-step-size</item>
- <item>bookmark-label</item>
- <item>bookmark-level</item>
- <item>bookmark-state</item>
<item>border</item>
<item>border-block</item>
<item>border-block-color</item>
@@ -100,15 +106,15 @@ Changelog:
<item>border-bottom-right-radius</item>
<item>border-bottom-style</item>
<item>border-bottom-width</item>
- <item>border-boundary</item>
<item>border-collapse</item>
<item>border-color</item>
+ <item>border-end-end-radius</item>
+ <item>border-end-start-radius</item>
<item>border-image</item>
<item>border-image-outset</item>
<item>border-image-repeat</item>
<item>border-image-slice</item>
<item>border-image-source</item>
- <item>border-image-transform</item>
<item>border-image-width</item>
<item>border-inline</item>
<item>border-inline-color</item>
@@ -132,6 +138,8 @@ Changelog:
<item>border-right-style</item>
<item>border-right-width</item>
<item>border-spacing</item>
+ <item>border-start-end-radius</item>
+ <item>border-start-start-radius</item>
<item>border-style</item>
<item>border-top</item>
<item>border-top-color</item>
@@ -144,22 +152,15 @@ Changelog:
<item>box-decoration-break</item>
<item>box-shadow</item>
<item>box-sizing</item>
- <item>box-snap</item>
<item>break-after</item>
<item>break-before</item>
<item>break-inside</item>
<item>caption-side</item>
- <item>caret</item>
<item>caret-color</item>
- <item>caret-shape</item>
<item>clear</item>
- <item>clip</item>
<item>clip-path</item>
- <item>clip-rule</item>
<item>color</item>
- <item>color-adjust</item>
- <item>color-interpolation-filters</item>
- <item>columns</item>
+ <item>color-scheme</item>
<item>column-count</item>
<item>column-fill</item>
<item>column-gap</item>
@@ -169,31 +170,26 @@ Changelog:
<item>column-rule-width</item>
<item>column-span</item>
<item>column-width</item>
+ <item>columns</item>
<item>contain</item>
+ <item>contain-intrinsic-block-size</item>
+ <item>contain-intrinsic-height</item>
+ <item>contain-intrinsic-inline-size</item>
+ <item>contain-intrinsic-size</item>
+ <item>contain-intrinsic-width</item>
+ <item>container</item>
+ <item>container-name</item>
+ <item>container-type</item>
<item>content</item>
- <item>continue</item>
<item>counter-increment</item>
<item>counter-reset</item>
<item>counter-set</item>
- <item>cue</item>
- <item>cue-after</item>
- <item>cue-before</item>
<item>cursor</item>
+ <item>descent-override</item>
<item>direction</item>
<item>display</item>
- <item>dominant-baseline</item>
- <item>elevation</item>
<item>empty-cells</item>
- <item>fill</item>
- <item>fill-break</item>
- <item>fill-color</item>
- <item>fill-image</item>
- <item>fill-opacity</item>
- <item>fill-origin</item>
- <item>fill-position</item>
- <item>fill-repeat</item>
- <item>fill-rule</item>
- <item>fill-size</item>
+ <item>fallback</item>
<item>filter</item>
<item>flex</item>
<item>flex-basis</item>
@@ -203,20 +199,12 @@ Changelog:
<item>flex-shrink</item>
<item>flex-wrap</item>
<item>float</item>
- <item>float-defer</item>
- <item>float-offset</item>
- <item>float-reference</item>
- <item>flood-color</item>
- <item>flood-opacity</item>
- <item>flow-from</item>
- <item>flow-into</item>
<item>font</item>
+ <item>font-display</item>
<item>font-family</item>
<item>font-feature-settings</item>
<item>font-kerning</item>
<item>font-language-override</item>
- <item>font-max-size</item>
- <item>font-min-size</item>
<item>font-optical-sizing</item>
<item>font-palette</item>
<item>font-size</item>
@@ -224,6 +212,10 @@ Changelog:
<item>font-stretch</item>
<item>font-style</item>
<item>font-synthesis</item>
+ <item>font-synthesis-position</item>
+ <item>font-synthesis-small-caps</item>
+ <item>font-synthesis-style</item>
+ <item>font-synthesis-weight</item>
<item>font-variant</item>
<item>font-variant-alternates</item>
<item>font-variant-caps</item>
@@ -234,10 +226,8 @@ Changelog:
<item>font-variant-position</item>
<item>font-variation-settings</item>
<item>font-weight</item>
- <item>footnote-display</item>
- <item>footnote-policy</item>
+ <item>forced-color-adjust</item>
<item>gap</item>
- <item>glyph-orientation-vertical</item>
<item>grid</item>
<item>grid-area</item>
<item>grid-auto-columns</item>
@@ -245,12 +235,9 @@ Changelog:
<item>grid-auto-rows</item>
<item>grid-column</item>
<item>grid-column-end</item>
- <item>grid-column-gap</item>
<item>grid-column-start</item>
- <item>grid-gap</item>
<item>grid-row</item>
<item>grid-row-end</item>
- <item>grid-row-gap</item>
<item>grid-row-start</item>
<item>grid-template</item>
<item>grid-template-areas</item>
@@ -260,16 +247,11 @@ Changelog:
<item>height</item>
<item>hyphenate-character</item>
<item>hyphenate-limit-chars</item>
- <item>hyphenate-limit-last</item>
- <item>hyphenate-limit-lines</item>
- <item>hyphenate-limit-zone</item>
<item>hyphens</item>
<item>image-orientation</item>
<item>image-rendering</item>
- <item>image-resolution</item>
- <item>initial-letter</item>
- <item>initial-letter-align</item>
- <item>initial-letter-wrap</item>
+ <item>inherits</item>
+ <item>initial-value</item>
<item>inline-size</item>
<item>inset</item>
<item>inset-block</item>
@@ -284,12 +266,9 @@ Changelog:
<item>justify-self</item>
<item>left</item>
<item>letter-spacing</item>
- <item>lighting-color</item>
<item>line-break</item>
- <item>line-grid</item>
+ <item>line-gap-override</item>
<item>line-height</item>
- <item>line-height-step</item>
- <item>line-snap</item>
<item>list-style</item>
<item>list-style-image</item>
<item>list-style-position</item>
@@ -305,19 +284,6 @@ Changelog:
<item>margin-left</item>
<item>margin-right</item>
<item>margin-top</item>
- <item>marker</item>
- <item>marker-end</item>
- <item>marker-knockout-left</item>
- <item>marker-knockout-right</item>
- <item>marker-mid</item>
- <item>marker-pattern</item>
- <item>marker-segment</item>
- <item>marker-side</item>
- <item>marker-start</item>
- <item>marquee-direction</item>
- <item>marquee-loop</item>
- <item>marquee-speed</item>
- <item>marquee-style</item>
<item>mask</item>
<item>mask-border</item>
<item>mask-border-mode</item>
@@ -335,32 +301,25 @@ Changelog:
<item>mask-repeat</item>
<item>mask-size</item>
<item>mask-type</item>
+ <item>math-depth</item>
+ <item>math-style</item>
<item>max-block-size</item>
<item>max-height</item>
<item>max-inline-size</item>
- <item>max-lines</item>
<item>max-width</item>
<item>min-block-size</item>
<item>min-height</item>
<item>min-inline-size</item>
<item>min-width</item>
<item>mix-blend-mode</item>
- <item>nav-up</item>
- <item>nav-down</item>
- <item>nav-left</item>
- <item>nav-right</item>
+ <item>negative</item>
<item>object-fit</item>
<item>object-position</item>
<item>offset</item>
- <item>offset-after</item>
<item>offset-anchor</item>
- <item>offset-before</item>
<item>offset-distance</item>
- <item>offset-end</item>
<item>offset-path</item>
- <item>offset-position</item>
<item>offset-rotate</item>
- <item>offset-start</item>
<item>opacity</item>
<item>order</item>
<item>orphans</item>
@@ -370,10 +329,20 @@ Changelog:
<item>outline-style</item>
<item>outline-width</item>
<item>overflow</item>
- <item>overflow-style</item>
+ <item>overflow-anchor</item>
+ <item>overflow-block</item>
+ <item>overflow-clip-margin</item>
+ <item>overflow-inline</item>
<item>overflow-wrap</item>
<item>overflow-x</item>
<item>overflow-y</item>
+ <item>override-colors</item>
+ <item>overscroll-behavior</item>
+ <item>overscroll-behavior-block</item>
+ <item>overscroll-behavior-inline</item>
+ <item>overscroll-behavior-x</item>
+ <item>overscroll-behavior-y</item>
+ <item>pad</item>
<item>padding</item>
<item>padding-block</item>
<item>padding-block-end</item>
@@ -389,75 +358,91 @@ Changelog:
<item>page-break-after</item>
<item>page-break-before</item>
<item>page-break-inside</item>
- <item>pause</item>
- <item>pause-after</item>
- <item>pause-before</item>
+ <item>page-orientation</item>
+ <item>paint-order</item>
<item>perspective</item>
<item>perspective-origin</item>
- <item>pitch</item>
- <item>pitch-range</item>
<item>place-content</item>
<item>place-items</item>
<item>place-self</item>
- <item>play-during</item>
<item>pointer-events</item>
<item>position</item>
+ <item>prefix</item>
+ <item>print-color-adjust</item>
<item>quotes</item>
- <item>region-fragment</item>
+ <item>range</item>
<item>resize</item>
- <item>richness</item>
<item>right</item>
- <item>rotation</item>
- <item>rotation-point</item>
+ <item>rotate</item>
<item>row-gap</item>
- <item>ruby-align</item>
- <item>ruby-merge</item>
<item>ruby-position</item>
- <item>running</item>
+ <item>scale</item>
+ <item>scroll-behavior</item>
+ <item>scroll-margin</item>
+ <item>scroll-margin-block</item>
+ <item>scroll-margin-block-end</item>
+ <item>scroll-margin-block-start</item>
+ <item>scroll-margin-bottom</item>
+ <item>scroll-margin-inline</item>
+ <item>scroll-margin-inline-end</item>
+ <item>scroll-margin-inline-start</item>
+ <item>scroll-margin-left</item>
+ <item>scroll-margin-right</item>
+ <item>scroll-margin-top</item>
+ <item>scroll-padding</item>
+ <item>scroll-padding-block</item>
+ <item>scroll-padding-block-end</item>
+ <item>scroll-padding-block-start</item>
+ <item>scroll-padding-bottom</item>
+ <item>scroll-padding-inline</item>
+ <item>scroll-padding-inline-end</item>
+ <item>scroll-padding-inline-start</item>
+ <item>scroll-padding-left</item>
+ <item>scroll-padding-right</item>
+ <item>scroll-padding-top</item>
+ <item>scroll-snap-align</item>
+ <item>scroll-snap-stop</item>
+ <item>scroll-snap-type</item>
+ <item>scrollbar-color</item>
<item>scrollbar-gutter</item>
+ <item>scrollbar-width</item>
<item>shape-image-threshold</item>
- <item>shape-inside</item>
<item>shape-margin</item>
<item>shape-outside</item>
<item>size</item>
- <item>speak</item>
- <item>speak-header</item>
- <item>speak-numeral</item>
- <item>speak-punctuation</item>
- <item>speech-rate</item>
- <item>stress</item>
- <item>string-set</item>
- <item>table-layout</item>
+ <item>size-adjust</item>
+ <item>speak-as</item>
+ <item>src</item>
+ <item>suffix</item>
+ <item>symbols</item>
+ <item>syntax</item>
+ <item>system</item>
<item>tab-size</item>
- <item>text-align-all</item>
+ <item>table-layout</item>
<item>text-align</item>
<item>text-align-last</item>
<item>text-combine-upright</item>
- <item>text-decoration-color</item>
<item>text-decoration</item>
+ <item>text-decoration-color</item>
<item>text-decoration-line</item>
- <item>text-decoration-skip</item>
<item>text-decoration-skip-ink</item>
<item>text-decoration-style</item>
- <item>text-decoration-width</item>
+ <item>text-decoration-thickness</item>
<item>text-emphasis</item>
<item>text-emphasis-color</item>
<item>text-emphasis-position</item>
- <item>text-emphasis-skip</item>
<item>text-emphasis-style</item>
<item>text-indent</item>
<item>text-justify</item>
<item>text-orientation</item>
<item>text-overflow</item>
+ <item>text-rendering</item>
<item>text-shadow</item>
- <item>text-space-collapse</item>
- <item>text-space-trim</item>
- <item>text-spacing</item>
<item>text-transform</item>
<item>text-underline-offset</item>
<item>text-underline-position</item>
- <item>text-wrap</item>
<item>top</item>
+ <item>touch-action</item>
<item>transform</item>
<item>transform-box</item>
<item>transform-origin</item>
@@ -467,47 +452,52 @@ Changelog:
<item>transition-duration</item>
<item>transition-property</item>
<item>transition-timing-function</item>
+ <item>translate</item>
<item>unicode-bidi</item>
+ <item>unicode-range</item>
<item>user-select</item>
<item>vertical-align</item>
<item>visibility</item>
- <item>voice-family</item>
- <item>volume</item>
<item>white-space</item>
<item>widows</item>
<item>width</item>
<item>will-change</item>
<item>word-break</item>
<item>word-spacing</item>
- <item>word-wrap</item>
- <item>wrap-after</item>
- <item>wrap-before</item>
- <item>wrap-flow</item>
- <item>wrap-inside</item>
- <item>wrap-through</item>
<item>writing-mode</item>
<item>z-index</item>
+ <!-- SVG only -->
+
+ <item>alignment-baseline</item>
+ <item>baseline-shift</item>
+ <item>color-interpolation</item>
+ <item>color-interpolation-filters</item>
+ <item>dominant-baseline</item>
+ <item>fill</item>
+ <item>fill-opacity</item>
+ <item>fill-rule</item>
+ <item>flood-color</item>
+ <item>flood-opacity</item>
+ <item>marker-end</item>
+ <item>marker-mid</item>
+ <item>marker-start</item>
+ <item>shape-rendering</item>
+ <item>stop-color</item>
+ <item>stop-opacity</item>
+ <item>stroke</item>
+ <item>stroke-dasharray</item>
+ <item>stroke-dashoffset</item>
+ <item>stroke-linecap</item>
+ <item>stroke-linejoin</item>
+ <item>stroke-miterlimit</item>
+ <item>stroke-opacity</item>
+ <item>text-anchor</item>
+ <item>vector-effect</item>
+ </list>
+
+ <list name="vendor properties">
<!-- Gecko rendering engine CSS property extensions -->
- <item>-moz-animation</item>
- <item>-moz-animation-delay</item>
- <item>-moz-animation-direction</item>
- <item>-moz-animation-duration</item>
- <item>-moz-animation-fill-mode</item>
- <item>-moz-animation-iteration-count</item>
- <item>-moz-animation-name</item>
- <item>-moz-animation-play-state</item>
- <item>-moz-animation-timing-function</item>
- <item>-moz-appearance</item>
- <item>-moz-background-clip</item>
- <item>-moz-background-origin</item>
- <item>-moz-background-size</item>
- <item>-moz-border-image</item>
- <item>-moz-border-radius</item>
- <item>-moz-border-radius-bottomleft</item>
- <item>-moz-border-radius-bottomright</item>
- <item>-moz-border-radius-topleft</item>
- <item>-moz-border-radius-topright</item>
<item>-moz-box-align</item>
<item>-moz-box-direction</item>
<item>-moz-box-flex</item>
@@ -515,80 +505,16 @@ Changelog:
<item>-moz-box-ordinal-group</item>
<item>-moz-box-orient</item>
<item>-moz-box-pack</item>
- <item>-moz-box-shadow</item>
- <item>-moz-box-sizing</item>
<item>-moz-box</item>
- <item>-moz-column-count</item>
- <item>-moz-column-fill</item>
- <item>-moz-column-gap</item>
- <item>-moz-column-rule</item>
- <item>-moz-column-rule-color</item>
- <item>-moz-column-rule-style</item>
- <item>-moz-column-rule-width</item>
- <item>-moz-columns</item>
- <item>-moz-column-width</item>
- <item>-moz-hyphens</item>
- <item>-moz-opacity</item>
- <item>-moz-outline-style</item>
- <item>-moz-perspective</item>
- <item>-moz-resize</item>
- <item>-moz-text-align-last</item>
- <item>-moz-text-decoration-color</item>
- <item>-moz-text-decoration-line</item>
- <item>-moz-text-decoration-style</item>
- <item>-moz-transform</item>
- <item>-moz-transform-origin</item>
- <item>-moz-transform-style</item>
- <item>-moz-transition</item>
- <item>-moz-transition-delay</item>
- <item>-moz-transition-duration</item>
- <item>-moz-transition-property</item>
- <item>-moz-transition-timing-function</item>
- <item>-moz-user-select</item>
<!-- Opera rendering engine CSS property extensions -->
- <item>-o-background-size</item>
<item>-o-linear-gradient</item>
- <item>-o-text-overflow</item>
- <item>-o-transition</item>
- <item>-o-transform-origin</item>
<!-- konq specific -->
<item>konq_bgpos_x</item>
<item>konq_bgpos_y</item>
- <item>-khtml-background-size</item>
- <item>-khtml-border-top-left-radius</item>
- <item>-khtml-border-top-right-radius</item>
- <item>-khtml-border-bottom-left-radius</item>
- <item>-khtml-border-bottom-right-radius</item>
- <item>-khtml-border-radius</item>
- <item>-khtml-box-shadow</item>
- <item>-khtml-opacity</item>
<!-- Webkit rendering engine CSS property extensions -->
- <item>-webkit-appearance</item>
- <item>-webkit-animation</item>
- <item>-webkit-animation-name</item>
- <item>-webkit-animation-duration</item>
- <item>-webkit-animation-iteration</item>
- <item>-webkit-animation-direction</item>
- <item>-webkit-animation-delay</item>
- <item>-webkit-animation-play-state</item>
- <item>-webkit-animation-fill-mode</item>
- <item>-webkit-background-size</item>
- <item>-webkit-backface-visibility</item>
- <item>-webkit-border-image</item>
- <item>-webkit-border-bottom-colors</item>
- <item>-webkit-border-left-colors</item>
- <item>-webkit-border-radius</item>
- <item>-webkit-border-right-colors</item>
- <item>-webkit-border-top-colors</item>
- <item>-webkit-border-top-left-radius</item>
- <item>-webkit-border-top-right-radius</item>
- <item>-webkit-border-bottom-left-radius</item>
- <item>-webkit-border-bottom-right-radius</item>
- <item>-webkit-border-radius-bottomleft</item>
- <item>-webkit-border-radius-bottomright</item>
<item>-webkit-box-align</item>
<item>-webkit-box-direction</item>
<item>-webkit-box-flex</item>
@@ -596,46 +522,17 @@ Changelog:
<item>-webkit-box-orient</item>
<item>-webkit-box-pack</item>
<item>-webkit-box-reflect</item>
- <item>-webkit-box-shadow</item>
- <item>-webkit-box-sizing</item>
- <item>-webkit-column-count</item>
- <item>-webkit-column-gap</item>
- <item>-webkit-hyphens</item>
<item>-webkit-linear-gradient</item>
<item>-webkit-gradient</item>
<item>-webkit-overflow-scrolling</item>
- <item>-webkit-perspective</item>
- <item>-webkit-text-decoration</item>
<item>-webkit-text-decoration-skip</item>
- <item>-webkit-text-fill-color</item>
- <item>-webkit-text-stroke-color</item>
- <item>-webkit-text-stroke-width</item>
<item>-webkit-text-size-adjust</item>
<item>-webkit-tap-highlight-color</item>
- <item>-webkit-transform</item>
- <item>-webkit-transform-origin</item>
- <item>-webkit-transform-style</item>
- <item>-webkit-transition</item>
- <item>-webkit-transition-property</item>
- <item>-webkit-transition-delay</item>
- <item>-webkit-transition-duration</item>
- <item>-webkit-user-select</item>
<!-- Trident (a.k.a., MSHTML) CSS property extensions -->
- <item>zoom</item>
- <item>-ms-animation-name</item>
- <item>-ms-animation-duration</item>
- <item>-ms-animation-iteration</item>
- <item>-ms-animation-direction</item>
- <item>-ms-animation-delay</item>
- <item>-ms-animation-play-state</item>
- <item>-ms-animation-fill-mode</item>
- <item>-ms-box-sizing</item>
<item>-ms-filter</item>
<item>-ms-flex</item>
<item>-ms-flex-align</item>
- <item>-ms-flex-direction</item>
- <item>-ms-flex-flow</item>
<item>-ms-flex-item-align</item>
<item>-ms-flex-line-pack</item>
<item>-ms-flex-negative</item>
@@ -644,249 +541,537 @@ Changelog:
<item>-ms-flex-positive</item>
<item>-ms-flex-position</item>
<item>-ms-flex-preferred-size</item>
- <item>-ms-flex-wrap</item>
<item>-ms-interpolation-mode</item>
<item>-ms-linear-gradient</item>
- <item>-ms-overflow-style</item>
<item>-ms-text-size-adjust</item>
- <item>-ms-transform</item>
- <item>-ms-transition</item>
- <item>-ms-user-select</item>
</list>
<list name="value keywords">
+ <item>auto</item>
<item>inherit</item>
+ <item>initial</item>
+ <item>revert</item>
+ <item>revert-layer</item>
<item>unset</item>
- <item>auto</item>
- <!-- <item>revert</item> -->
</list>
<list name="values">
- <item>none</item>
- <item>hidden</item>
- <item>dotted</item>
- <item>dashed</item>
- <item>solid</item>
- <item>double</item>
- <item>groove</item>
- <item>ridge</item>
- <item>inset</item>
- <item>outset</item>
- <item>xx-small</item>
- <item>x-small</item>
- <item>small</item>
- <item>medium</item>
- <item>large</item>
- <item>x-large</item>
- <item>xx-large</item>
- <item>smaller</item>
- <item>larger</item>
- <item>italic</item>
- <item>oblique</item>
- <item>small-caps</item>
- <item>normal</item>
- <item>bold</item>
- <item>bolder</item>
- <item>lighter</item>
- <item>light</item>
- <item>transparent</item>
- <item>repeat</item>
- <item>repeat-x</item>
- <item>repeat-y</item>
- <item>no-repeat</item>
- <item>baseline</item>
- <item>sub</item>
- <item>super</item>
- <item>top</item>
- <item>text-top</item>
- <item>middle</item>
- <item>bottom</item>
- <item>text-bottom</item>
- <item>left</item>
- <item>right</item>
- <item>center</item>
- <item>justify</item>
- <item>konq-center</item>
- <item>disc</item>
- <item>circle</item>
- <item>square</item>
- <item>box</item>
- <item>decimal</item>
- <item>decimal-leading-zero</item>
- <item>lower-roman</item>
- <item>upper-roman</item>
- <item>lower-greek</item>
- <item>lower-alpha</item>
- <item>lower-latin</item>
- <item>upper-alpha</item>
- <item>upper-latin</item>
- <item>hebrew</item>
- <item>armenian</item>
- <item>georgian</item>
- <item>cjk-ideographic</item>
- <item>hiragana</item>
- <item>katakana</item>
- <item>hiragana-iroha</item>
- <item>katakana-iroha</item>
- <item>inline</item>
- <item>inline-block</item>
- <item>block</item>
- <item>list-item</item>
- <item>run-in</item>
- <item>compact</item>
- <item>marker</item>
- <item>table</item>
- <item>inline-table</item>
- <item>table-row-group</item>
- <item>table-header-group</item>
- <item>table-footer-group</item>
- <item>table-row</item>
- <item>table-column-group</item>
- <item>table-column</item>
- <item>table-cell</item>
- <item>table-caption</item>
- <item>crosshair</item>
- <item>default</item>
- <item>pointer</item>
- <item>move</item>
- <item>e-resize</item>
- <item>ne-resize</item>
- <item>nw-resize</item>
- <item>n-resize</item>
- <item>se-resize</item>
- <item>sw-resize</item>
- <item>s-resize</item>
- <item>w-resize</item>
- <item>text</item>
- <item>wait</item>
- <item>help</item>
- <item>above</item>
+ <item>-moz-arabic-indic</item>
+ <item>-moz-bengali</item>
+ <item>-moz-cjk-earthly-branch</item>
+ <item>-moz-cjk-heavenly-stem</item>
+ <item>-moz-devanagari</item>
+ <item>-moz-gujarati</item>
+ <item>-moz-gurmukhi</item>
+ <item>-moz-kannada</item>
+ <item>-moz-lao</item>
+ <item>-moz-malayalam</item>
+ <item>-moz-myanmar</item>
+ <item>-moz-oriya</item>
+ <item>-moz-persian</item>
+ <item>-moz-tamil</item>
+ <item>-moz-telugu</item>
+ <item>-moz-thai</item>
<item>absolute</item>
+ <item>accumulate</item>
+ <item>add</item>
+ <item>additive</item>
+ <item>alias</item>
+ <item>all</item>
+ <item>all-petite-caps</item>
+ <item>all-scroll</item>
+ <item>all-small-caps</item>
+ <item>allow-end</item>
+ <item>alpha</item>
+ <item>alphabetic</item>
+ <item>alternate</item>
+ <item>alternate-reverse</item>
<item>always</item>
+ <item>anywhere</item>
+ <item>arabic-indic</item>
+ <item>armenian</item>
+ <item>auto-add</item>
+ <item>auto-fill</item>
+ <item>auto-fit</item>
<item>avoid</item>
- <item>below</item>
+ <item>avoid-column</item>
+ <item>avoid-page</item>
+ <item>avoid-region</item>
+ <item>backwards</item>
+ <item>balance</item>
+ <item>balance-all</item>
+ <item>baseline</item>
+ <item>bengali</item>
<item>bidi-override</item>
- <item>blink</item>
+ <item>bigger</item>
+ <item>block</item>
+ <item>block-end</item>
+ <item>block-start</item>
+ <item>bold</item>
+ <item>bolder</item>
+ <item>border</item>
+ <item>border-box</item>
<item>both</item>
+ <item>both-edges</item>
+ <item>bottom</item>
+ <item>break-all</item>
+ <item>break-spaces</item>
+ <item>break-word</item>
+ <item>bullets</item>
+ <item>cambodian</item>
+ <item>cap-height</item>
<item>capitalize</item>
- <item>caption</item>
+ <item>cell</item>
+ <item>center</item>
+ <item>ch-width</item>
+ <item>circle</item>
+ <item>cjk-decimal</item>
+ <item>cjk-earthly-branch</item>
+ <item>cjk-heavenly-stem</item>
+ <item>cjk-ideographic</item>
<item>clip</item>
+ <item>clone</item>
<item>close-quote</item>
+ <item>col-resize</item>
<item>collapse</item>
+ <item>color</item>
+ <item>color-burn</item>
+ <item>color-dodge</item>
+ <item>column</item>
+ <item>column-reverse</item>
+ <item>common-ligatures</item>
+ <item>compact</item>
<item>condensed</item>
- <item>crop</item>
- <item>cross</item>
+ <item>contain</item>
+ <item>content</item>
+ <item>content-box</item>
+ <item>contents</item>
+ <item>context-menu</item>
+ <item>contextual</item>
+ <item>copy</item>
+ <item>cover</item>
+ <item>crisp-edges</item>
+ <item>crosshair</item>
+ <item>currentcolor</item>
+ <item>cursive</item>
+ <item>cyclic</item>
+ <item>dark</item>
+ <item>darken</item>
+ <item>dashed</item>
+ <item>decimal</item>
+ <item>decimal-leading-zero</item>
+ <item>default</item>
+ <item>dense</item>
+ <item>devanagari</item>
+ <item>diagonal-fractions</item>
+ <item>difference</item>
+ <item>disc</item>
+ <item>disclosure-closed</item>
+ <item>disclosure-open</item>
+ <item>discretionary-ligatures</item>
+ <item>dot</item>
+ <item>dotted</item>
+ <item>double</item>
+ <item>double-circle</item>
+ <item>e-resize</item>
+ <item>each-line</item>
+ <item>ease</item>
+ <item>ease-in</item>
+ <item>ease-in-out</item>
+ <item>ease-out</item>
+ <item>economy</item>
<item>ellipsis</item>
- <item>ellipsis-word</item>
<item>embed</item>
+ <item>emoji</item>
+ <item>end</item>
+ <item>ethiopic-numeric</item>
+ <item>ew-resize</item>
+ <item>ex-height</item>
+ <item>exact</item>
+ <item>exclude</item>
+ <item>exclusion</item>
<item>expanded</item>
+ <item>extends</item>
<item>extra-condensed</item>
<item>extra-expanded</item>
+ <item>fade</item>
+ <item>fallback</item>
+ <item>false</item>
+ <item>fangsong</item>
+ <item>fantasy</item>
+ <item>fill</item>
+ <item>fill-box</item>
+ <item>filled</item>
+ <item>first</item>
+ <item>fit-content</item>
<item>fixed</item>
- <item>hand</item>
+ <item>flat</item>
+ <item>flex</item>
+ <item>flex-end</item>
+ <item>flex-start</item>
+ <item>flow</item>
+ <item>flow-root</item>
+ <item>force-end</item>
+ <item>forwards</item>
+ <item>from-font</item>
+ <item>from-image</item>
+ <item>full-size-kana</item>
+ <item>full-width</item>
+ <item>georgian</item>
+ <item>grab</item>
+ <item>grabbing</item>
+ <item>grid</item>
+ <item>groove</item>
+ <item>gujarati</item>
+ <item>gurmukhi</item>
+ <item>hanging</item>
+ <item>hard-light</item>
+ <item>hebrew</item>
+ <item>help</item>
+ <item>hidden</item>
<item>hide</item>
- <item>higher</item>
- <item>icon</item>
+ <item>high-quality</item>
+ <item>hiragana</item>
+ <item>hiragana-iroha</item>
+ <item>historical-forms</item>
+ <item>historical-ligatures</item>
+ <item>horizontal</item>
+ <item>horizontal-tb</item>
+ <item>hue</item>
+ <item>ic-height</item>
+ <item>ic-width</item>
+ <item>infinite</item>
+ <item>inline</item>
+ <item>inline-block</item>
+ <item>inline-end</item>
+ <item>inline-flex</item>
+ <item>inline-grid</item>
+ <item>inline-size</item>
+ <item>inline-start</item>
+ <item>inline-table</item>
+ <item>inset</item>
<item>inside</item>
+ <item>inter-character</item>
+ <item>inter-word</item>
+ <item>intersect</item>
<item>invert</item>
+ <item>isolate</item>
+ <item>isolate-override</item>
+ <item>italic</item>
+ <item>japanese-formal</item>
+ <item>japanese-informal</item>
+ <item>jump-both</item>
+ <item>jump-end</item>
+ <item>jump-none</item>
+ <item>jump-start</item>
+ <item>justify</item>
+ <item>justify-all</item>
+ <item>kannada</item>
+ <item>katakana</item>
+ <item>katakana-iroha</item>
+ <item>keep-all</item>
+ <item>keyword</item>
+ <item>khmer</item>
+ <item>korean-hangul-formal</item>
+ <item>korean-hanja-formal</item>
+ <item>korean-hanja-informal</item>
<item>landscape</item>
- <item>level</item>
+ <item>lao</item>
+ <item>large</item>
+ <item>larger</item>
+ <item>last</item>
+ <item>layout</item>
+ <item>left</item>
+ <item>legacy</item>
+ <item>light</item>
+ <item>lighten</item>
+ <item>lighter</item>
<item>line-through</item>
- <item>loud</item>
- <item>lower</item>
+ <item>linear</item>
+ <item>lining-nums</item>
+ <item>local</item>
+ <item>loose</item>
+ <item>lower-alpha</item>
+ <item>lower-armenian</item>
+ <item>lower-greek</item>
+ <item>lower-latin</item>
+ <item>lower-roman</item>
<item>lowercase</item>
<item>ltr</item>
- <item>menu</item>
- <item>message-box</item>
- <item>mix</item>
- <item>narrower</item>
+ <item>luminance</item>
+ <item>luminosity</item>
+ <item>malayalam</item>
+ <item>mandatory</item>
+ <item>manipulation</item>
+ <item>manual</item>
+ <item>margin-box</item>
+ <item>match-parent</item>
+ <item>match-source</item>
+ <item>math</item>
+ <item>max-content</item>
+ <item>medium</item>
+ <item>min-content</item>
+ <item>mixed</item>
+ <item>mongolian</item>
+ <item>monospace</item>
+ <item>move</item>
+ <item>multiply</item>
+ <item>myanmar</item>
+ <item>n-resize</item>
+ <item>ne-resize</item>
+ <item>nesw-resize</item>
+ <item>no-clip</item>
<item>no-close-quote</item>
+ <item>no-common-ligatures</item>
+ <item>no-contextual</item>
+ <item>no-discretionary-ligatures</item>
+ <item>no-drop</item>
+ <item>no-historical-ligatures</item>
<item>no-open-quote</item>
+ <item>no-repeat</item>
+ <item>none</item>
+ <item>normal</item>
+ <item>not-allowed</item>
<item>nowrap</item>
+ <item>ns-resize</item>
+ <item>numbers</item>
+ <item>numeric</item>
+ <item>nw-resize</item>
+ <item>nwse-resize</item>
+ <item>oblique</item>
+ <item>oldstyle-nums</item>
+ <item>only</item>
+ <item>open</item>
<item>open-quote</item>
+ <item>optional</item>
+ <item>ordinal</item>
+ <item>oriya</item>
+ <item>outset</item>
<item>outside</item>
+ <item>over</item>
+ <item>overlay</item>
<item>overline</item>
+ <item>padding</item>
+ <item>padding-box</item>
+ <item>paint</item>
+ <item>painted</item>
+ <item>pan-down</item>
+ <item>pan-left</item>
+ <item>pan-right</item>
+ <item>pan-up</item>
+ <item>pan-x</item>
+ <item>pan-y</item>
+ <item>paused</item>
+ <item>persian</item>
+ <item>petite-caps</item>
+ <item>pinch-zoom</item>
+ <item>pixelated</item>
+ <item>plaintext</item>
+ <item>pointer</item>
<item>portrait</item>
+ <item>position</item>
<item>pre</item>
<item>pre-line</item>
<item>pre-wrap</item>
+ <item>preserve-3d</item>
+ <item>progress</item>
+ <item>proportional-nums</item>
+ <item>proportional-width</item>
+ <item>proximity</item>
+ <item>recto</item>
<item>relative</item>
+ <item>repeat</item>
+ <item>repeat-x</item>
+ <item>repeat-y</item>
+ <item>replace</item>
+ <item>reverse</item>
+ <item>ridge</item>
+ <item>right</item>
+ <item>rotate-left</item>
+ <item>rotate-right</item>
+ <item>round</item>
+ <item>row</item>
+ <item>row-resize</item>
+ <item>row-reverse</item>
<item>rtl</item>
+ <item>ruby</item>
+ <item>ruby-base</item>
+ <item>ruby-base-container</item>
+ <item>ruby-text</item>
+ <item>ruby-text-container</item>
+ <item>running</item>
+ <item>s-resize</item>
+ <item>safe</item>
+ <item>sans-serif</item>
+ <item>saturation</item>
+ <item>scale-down</item>
+ <item>screen</item>
<item>scroll</item>
+ <item>scroll-position</item>
+ <item>se-resize</item>
+ <item>self-end</item>
+ <item>self-start</item>
<item>semi-condensed</item>
<item>semi-expanded</item>
<item>separate</item>
+ <item>serif</item>
+ <item>sesame</item>
<item>show</item>
- <item>small-caption</item>
+ <item>sideways</item>
+ <item>sideways-lr</item>
+ <item>sideways-right</item>
+ <item>sideways-rl</item>
+ <item>simp-chinese-formal</item>
+ <item>simp-chinese-informal</item>
+ <item>size</item>
+ <item>slashed-zero</item>
+ <item>slice</item>
+ <item>small</item>
+ <item>small-caps</item>
+ <item>smaller</item>
+ <item>smooth</item>
+ <item>soft-light</item>
+ <item>solid</item>
+ <item>space</item>
+ <item>space-around</item>
+ <item>space-between</item>
+ <item>space-evenly</item>
+ <item>spell-out</item>
+ <item>square</item>
+ <item>stable</item>
+ <item>stacked-fractions</item>
+ <item>start</item>
<item>static</item>
- <item>static-position</item>
- <item>status-bar</item>
+ <item>step-end</item>
+ <item>step-start</item>
+ <item>sticky</item>
+ <item>stretch</item>
+ <item>strict</item>
+ <item>stroke</item>
+ <item>stroke-box</item>
+ <item>style</item>
+ <item>sub</item>
+ <item>subtract</item>
+ <item>super</item>
+ <item>sw-resize</item>
+ <item>swap</item>
+ <item>symbolic</item>
+ <item>system-ui</item>
+ <item>table</item>
+ <item>table-caption</item>
+ <item>table-cell</item>
+ <item>table-column</item>
+ <item>table-column-group</item>
+ <item>table-footer-group</item>
+ <item>table-header-group</item>
+ <item>table-row</item>
+ <item>table-row-group</item>
+ <item>tabular-nums</item>
+ <item>tamil</item>
+ <item>telugu</item>
+ <item>text</item>
+ <item>thai</item>
<item>thick</item>
<item>thin</item>
+ <item>tibetan</item>
+ <item>titling-caps</item>
+ <item>top</item>
+ <item>trad-chinese-formal</item>
+ <item>trad-chinese-informal</item>
+ <item>transparent</item>
+ <item>triangle</item>
+ <item>true</item>
+ <item>ui-monospace</item>
+ <item>ui-rounded</item>
+ <item>ui-sans-serif</item>
+ <item>ui-serif</item>
<item>ultra-condensed</item>
<item>ultra-expanded</item>
+ <item>under</item>
<item>underline</item>
+ <item>unicase</item>
+ <item>unicode</item>
+ <item>unsafe</item>
+ <item>upper-alpha</item>
+ <item>upper-armenian</item>
+ <item>upper-latin</item>
+ <item>upper-roman</item>
<item>uppercase</item>
+ <item>upright</item>
+ <item>use-glyph-orientation</item>
+ <item>verso</item>
+ <item>vertical</item>
+ <item>vertical-lr</item>
+ <item>vertical-rl</item>
+ <item>vertical-text</item>
+ <item>view-box</item>
<item>visible</item>
- <item>wider</item>
- <item>break</item>
- <item>serif</item>
- <item>sans-serif</item>
- <item>cursive</item>
- <item>fantasy</item>
- <item>monospace</item>
- <item>border-box</item>
- <item>content-box</item>
- <item>-epub-hyphens</item>
- <item>contain</item>
- <item>cover</item>
-
- <!-- transition and animation -->
- <item>all</item>
- <item>ease</item>
- <item>ease-in</item>
- <item>ease-out</item>
- <item>ease-in-out</item>
- <item>step-start</item>
- <item>step-end</item>
- <item>linear</item>
+ <item>visibleFill</item>
+ <item>visiblePainted</item>
+ <item>visibleStroke</item>
+ <item>w-resize</item>
+ <item>wait</item>
+ <item>weight</item>
+ <item>words</item>
+ <item>wrap</item>
+ <item>wrap-reverse</item>
+ <item>x-large</item>
+ <item>x-small</item>
+ <item>xx-large</item>
+ <item>xx-small</item>
+ <item>xxx-large</item>
+ <item>zoom-in</item>
+ <item>zoom-out</item>
+
+ <!-- SVG only -->
+
+ <item>after-edge</item>
+ <item>arcs</item>
+ <item>before-edge</item>
+ <item>bevel</item>
+ <item>bounding-box</item>
+ <item>butt</item>
+ <item>central</item>
+ <item>crispEdges</item>
+ <item>evenodd</item>
+ <item>fixed-position</item>
+ <item>freeze</item>
+ <item>geometricPrecision</item>
+ <item>ideographic</item>
+ <item>linearRGB</item>
+ <item>mathematical</item>
+ <item>middle</item>
+ <item>miter</item>
+ <item>miter-clip</item>
+ <item>non-rotation</item>
+ <item>non-scaling-size</item>
+ <item>non-scaling-stroke</item>
+ <item>nonzero</item>
+ <item>optimizeLegibility</item>
+ <item>optimizeQuality</item>
+ <item>optimizeSpeed</item>
+ <item>remove</item>
+ <item>sRGB</item>
+ <item>text-after-edge</item>
+ <item>text-before-edge</item>
+ <item>text-bottom</item>
+ <item>text-top</item>
- <!-- animation -->
- <item>infinite</item>
- <item>reverse</item>
- <item>alternate</item>
- <item>alternate-reverse</item>
- <item>forwards</item>
- <item>backwards</item>
- <item>running</item>
- <item>paused</item>
+ <!-- manual list -->
+ <item>konq-center</item>
</list>
<list name="colors">
- <item>black</item>
- <item>silver</item>
- <item>gray</item>
- <item>white</item>
- <item>maroon</item>
- <item>red</item>
- <item>purple</item>
- <item>fuchsia</item>
- <item>green</item>
- <item>lime</item>
- <item>olive</item>
- <item>yellow</item>
- <item>navy</item>
- <item>blue</item>
- <item>teal</item>
- <item>aqua</item>
- <item>orange</item>
<item>aliceblue</item>
<item>antiquewhite</item>
+ <item>aqua</item>
<item>aquamarine</item>
<item>azure</item>
<item>beige</item>
<item>bisque</item>
+ <item>black</item>
<item>blanchedalmond</item>
+ <item>blue</item>
<item>blueviolet</item>
<item>brown</item>
<item>burlywood</item>
@@ -898,7 +1083,6 @@ Changelog:
<item>cornsilk</item>
<item>crimson</item>
<item>cyan</item>
- <item>aqua</item>
<item>darkblue</item>
<item>darkcyan</item>
<item>darkgoldenrod</item>
@@ -926,10 +1110,13 @@ Changelog:
<item>firebrick</item>
<item>floralwhite</item>
<item>forestgreen</item>
+ <item>fuchsia</item>
<item>gainsboro</item>
<item>ghostwhite</item>
<item>gold</item>
<item>goldenrod</item>
+ <item>gray</item>
+ <item>green</item>
<item>greenyellow</item>
<item>grey</item>
<item>honeydew</item>
@@ -957,10 +1144,11 @@ Changelog:
<item>lightslategrey</item>
<item>lightsteelblue</item>
<item>lightyellow</item>
+ <item>lime</item>
<item>limegreen</item>
<item>linen</item>
<item>magenta</item>
- <item>fuchsia</item>
+ <item>maroon</item>
<item>mediumaquamarine</item>
<item>mediumblue</item>
<item>mediumorchid</item>
@@ -975,8 +1163,11 @@ Changelog:
<item>mistyrose</item>
<item>moccasin</item>
<item>navajowhite</item>
+ <item>navy</item>
<item>oldlace</item>
+ <item>olive</item>
<item>olivedrab</item>
+ <item>orange</item>
<item>orangered</item>
<item>orchid</item>
<item>palegoldenrod</item>
@@ -989,6 +1180,9 @@ Changelog:
<item>pink</item>
<item>plum</item>
<item>powderblue</item>
+ <item>purple</item>
+ <item>rebeccapurple</item>
+ <item>red</item>
<item>rosybrown</item>
<item>royalblue</item>
<item>saddlebrown</item>
@@ -997,6 +1191,7 @@ Changelog:
<item>seagreen</item>
<item>seashell</item>
<item>sienna</item>
+ <item>silver</item>
<item>skyblue</item>
<item>slateblue</item>
<item>slategray</item>
@@ -1005,189 +1200,196 @@ Changelog:
<item>springgreen</item>
<item>steelblue</item>
<item>tan</item>
+ <item>teal</item>
<item>thistle</item>
<item>tomato</item>
<item>turquoise</item>
<item>violet</item>
<item>wheat</item>
+ <item>white</item>
<item>whitesmoke</item>
+ <item>yellow</item>
<item>yellowgreen</item>
- <item>rebeccapurple</item>
-
- <item>ActiveBorder</item>
- <item>ActiveCaption</item>
- <item>AppWorkspace</item>
- <item>Background</item>
+
+ <!-- System colors -->
+ <item>AccentColor</item>
+ <item>AccentColorText</item>
+ <item>ActiveText</item>
+ <item>ButtonBorder</item>
<item>ButtonFace</item>
- <item>ButtonHighlight</item>
- <item>ButtonShadow</item>
<item>ButtonText</item>
- <item>CaptionText</item>
+ <item>Canvas</item>
+ <item>CanvasText</item>
+ <item>Field</item>
+ <item>FieldText</item>
<item>GrayText</item>
<item>Highlight</item>
<item>HighlightText</item>
- <item>InactiveBorder</item>
- <item>InactiveCaption</item>
- <item>InactiveCaptionText</item>
- <item>InfoBackground</item>
- <item>InfoText</item>
- <item>Menu</item>
- <item>MenuText</item>
- <item>Scrollbar</item>
- <item>ThreeDDarkShadow</item>
- <item>ThreeDFace</item>
- <item>ThreeDHighlight</item>
- <item>ThreeDLightShadow</item>
- <item>ThreeDShadow</item>
- <item>Window</item>
- <item>WindowFrame</item>
- <item>WindowText</item>
+ <item>LinkText</item>
+ <item>Mark</item>
+ <item>MarkText</item>
+ <item>VisitedText</item>
</list>
+ <!-- https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Functions -->
<list name="functions">
+ <item>abs</item>
+ <item>acos</item>
+ <item>annotation</item>
+ <item>asin</item>
+ <item>atan</item>
+ <item>atan2</item>
<item>attr</item>
- <item>calc</item>
- <item>hsl</item>
- <item>hsla</item>
- <item>linear-gradient</item>
- <item>radial-gradient</item>
- <item>repeating-linear-gradient</item>
- <item>repeating-radial-gradient</item>
- <item>rgb</item>
- <item>rgba</item>
- <item>var</item>
- <item>url</item>
-
- <!-- clip -->
- <item>rect</item>
-
- <!-- shape-outside and clip-path -->
- <item>inset</item>
- <item>circle</item>
- <item>ellipse</item>
- <item>polygon</item>
-
- <!-- filter and backdrop-filter -->
<item>blur</item>
<item>brightness</item>
+ <item>calc</item>
+ <item>character-variant</item>
+ <item>circle</item>
+ <item>clamp</item>
+ <item>color</item>
+ <item>color-mix</item>
+ <item>conic-gradient</item>
<item>contrast</item>
+ <item>cos</item>
+ <item>counter</item>
+ <item>counters</item>
+ <item>cross-fade</item>
+ <item>device-cmyk</item>
<item>drop-shadow</item>
+ <item>ellipse</item>
+ <item>env</item>
+ <item>exp</item>
+ <item>fit-content</item>
+ <item>format</item>
<item>grayscale</item>
+ <item>hsl</item>
<item>hue-rotate</item>
+ <item>hwb</item>
+ <item>hypot</item>
+ <item>image</item>
+ <item>image-set</item>
+ <item>inset</item>
<item>invert</item>
- <item>opacity</item>
- <item>saturate</item>
- <item>sepia</item>
-
- <!-- grid-template-columns and grid-template-rows -->
- <item>max-content</item>
- <item>min-content</item>
- <item>minmax</item>
- <item>fix-content</item>
- <item>repeat</item>
-
- <!-- transition and animation -->
- <item>cubic-bezier</item>
- <item>frames</item>
- <item>steps</item>
-
- <!-- transform -->
+ <item>lab</item>
+ <item>lch</item>
+ <item>linear-gradient</item>
+ <item>local</item>
+ <item>log</item>
<item>matrix</item>
<item>matrix3d</item>
+ <item>max</item>
+ <item>min</item>
+ <item>minmax</item>
+ <item>mod</item>
+ <item>oklab</item>
+ <item>oklch</item>
+ <item>opacity</item>
+ <item>ornaments</item>
+ <item>paint</item>
+ <item>path</item>
<item>perspective</item>
+ <item>polygon</item>
+ <item>pow</item>
+ <item>radial-gradient</item>
+ <item>rem</item>
+ <item>repeat</item>
+ <item>repeating-conic-gradient</item>
+ <item>repeating-linear-gradient</item>
+ <item>repeating-radial-gradient</item>
+ <item>rgb</item>
<item>rotate</item>
<item>rotate3d</item>
<item>rotateX</item>
<item>rotateY</item>
<item>rotateZ</item>
+ <item>round</item>
+ <item>saturate</item>
<item>scale</item>
<item>scale3d</item>
<item>scaleX</item>
<item>scaleY</item>
<item>scaleZ</item>
+ <item>sepia</item>
+ <item>sign</item>
+ <item>sin</item>
<item>skew</item>
<item>skewX</item>
<item>skewY</item>
+ <item>sqrt</item>
+ <item>styleset</item>
+ <item>stylistic</item>
+ <item>swash</item>
+ <item>symbols</item>
+ <item>tan</item>
+ <item>tech</item>
<item>translate</item>
<item>translate3d</item>
<item>translateX</item>
<item>translateY</item>
<item>translateZ</item>
-
- <!-- inner @font-face -->
- <item>local</item>
- <item>format</item>
+ <item>url</item>
+ <item>var</item>
</list>
- <list name="medias">
- <!-- types -->
+ <list name="media types">
<item>all</item>
<item>print</item>
<item>screen</item>
<item>speech</item>
+ </list>
- <!-- features -->
- <item>any-pointer</item>
+ <list name="media features">
+ <item>-webkit-device-pixel-ratio</item>
+ <item>-webkit-transform-3d</item>
<item>any-hover</item>
+ <item>any-pointer</item>
<item>aspect-ratio</item>
<item>color</item>
<item>color-gamut</item>
<item>color-index</item>
<item>display-mode</item>
+ <item>dynamic-range</item>
+ <item>forced-colors</item>
<item>grid</item>
<item>height</item>
<item>hover</item>
- <item>max-aspect-ratio</item>
- <item>max-color</item>
- <item>max-color-index</item>
- <item>max-device-aspect-ratio</item>
- <item>max-device-height</item>
- <item>max-device-width</item>
+ <item>inverted-colors</item>
<item>max-height</item>
- <item>max-monochrome</item>
- <item>max-resolution</item>
<item>max-width</item>
- <item>min-aspect-ratio</item>
- <item>min-color</item>
- <item>min-color-index</item>
- <item>min-device-aspect-ratio</item>
- <item>min-device-height</item>
- <item>min-device-width</item>
<item>min-height</item>
- <item>min-monochrome</item>
- <item>min-resolution</item>
<item>min-width</item>
<item>monochrome</item>
<item>orientation</item>
+ <item>overflow-block</item>
+ <item>overflow-inline</item>
<item>pointer</item>
+ <item>prefers-color-scheme</item>
+ <item>prefers-contrast</item>
+ <item>prefers-reduced-motion</item>
<item>resolution</item>
- <item>scan</item>
+ <item>scripting</item>
<item>update</item>
+ <item>video-dynamic-range</item>
<item>width</item>
</list>
<!-- prefixed by :: -->
- <list name="pseudoelements">
+ <list name="pseudo-elements">
<item>after</item>
+ <item>backdrop</item>
<item>before</item>
<item>cue</item>
+ <item>cue-region</item>
+ <item>file-selector-button</item>
<item>first-letter</item>
<item>first-line</item>
- <item>selection</item>
-
- <!-- experimental -->
- <item>backdrop</item>
+ <item>marker</item>
+ <item>part</item>
<item>placeholder</item>
- <!-- <item>marker</item> -->
+ <item>selection</item>
<item>slotted</item>
- <!-- <item>spelling-error</item> -->
- <!-- <item>grammar-error</item> -->
- <!-- UI pseudo-classes -->
- <item>value</item>
- <item>choices</item>
- <item>repeat-item</item>
- <item>repeat-index</item>
+ <!-- manual list -->
<item>-moz-progress-bar</item>
<item>-moz-range-progress</item>
@@ -1206,30 +1408,42 @@ Changelog:
</list>
<!-- prefixed by : -->
- <list name="pseudoclasses">
+ <list name="pseudo-classes">
<item>active</item>
<item>any-link</item>
+ <item>autofill</item>
+ <item>buffering</item>
<item>checked</item>
+ <item>current</item>
<item>default</item>
<item>defined</item>
- <!-- <item>dir</item> -->
+ <item>dir</item>
<item>disabled</item>
<item>empty</item>
<item>enabled</item>
+ <item>first</item>
<item>first-child</item>
<item>first-of-type</item>
- <item>fullscreen</item>
<item>focus</item>
+ <item>focus-visible</item>
<item>focus-within</item>
+ <item>fullscreen</item>
+ <item>has</item>
<item>host</item>
+ <item>host-context</item>
<item>hover</item>
<item>in-range</item>
<item>indeterminate</item>
<item>invalid</item>
+ <item>is</item>
<item>lang</item>
<item>last-child</item>
<item>last-of-type</item>
+ <item>left</item>
<item>link</item>
+ <item>local-link</item>
+ <item>modal</item>
+ <item>muted</item>
<item>not</item>
<item>nth-child</item>
<item>nth-last-child</item>
@@ -1239,30 +1453,28 @@ Changelog:
<item>only-of-type</item>
<item>optional</item>
<item>out-of-range</item>
+ <item>paused</item>
+ <item>picture-in-picture</item>
<item>placeholder-shown</item>
+ <item>playing</item>
<item>read-only</item>
<item>read-write</item>
<item>required</item>
+ <item>right</item>
<item>root</item>
<item>scope</item>
+ <item>seeking</item>
+ <item>stalled</item>
<item>target</item>
+ <item>user-invalid</item>
+ <item>user-valid</item>
<item>valid</item>
<item>visited</item>
-
- <!-- pseudo-elements -->
- <item>after</item>
- <item>before</item>
- <item>cue</item>
- <item>first-letter</item>
- <item>first-line</item>
- <item>selection</item>
- </list>
-
- <list name="pseudoclass-not">
- <item>not</item>
+ <item>volume-locked</item>
+ <item>where</item>
</list>
- <list name="pseudoclasses-@page">
+ <list name="@page pseudo-classes">
<item>blank</item>
<item>first</item>
<item>left</item>
@@ -1272,426 +1484,548 @@ Changelog:
</list>
<list name="at-rules">
- <item>@character</item>
<item>@charset</item>
+ <item>@container</item>
+ <item>@font-feature-values</item>
<item>@import</item>
- <item>@namespace</item>
- </list>
-
- <list name="nested at-rules">
- <item>@document</item>
+ <item>@keyframes</item>
+ <item>@layer</item>
<item>@media</item>
- <item>@supports</item>
- </list>
-
- <list name="@viewport">
- <item>@viewport</item>
- </list>
-
- <list name="within-@viewport">
- <item>min-width</item>
- <item>max-width</item>
- <item>width</item>
- <item>min-height</item>
- <item>max-height</item>
- <item>height</item>
- <item>zoom</item>
- <item>min-zoom</item>
- <item>max-zoom</item>
- <item>user-zoom</item>
- <item>orientation</item>
- <item>viewport-fit</item>
- </list>
-
- <list name="@page">
+ <item>@namespace</item>
<item>@page</item>
+ <item>@supports</item>
</list>
- <list name="within-@page">
- <item>size</item>
- <item>marks</item>
- <item>bleed</item>
- </list>
-
- <list name="@font-face">
+ <list name="at-rules definitions">
+ <item>@color-profile</item>
+ <item>@counter-style</item>
<item>@font-face</item>
- </list>
-
- <list name="within-@font-face">
- <item>font-display</item>
- <item>font-family</item>
- <item>font-stretch</item>
- <item>font-style</item>
- <item>font-weight</item>
- <item>font-variant</item>
- <item>font-feature-settings</item>
- <item>font-variation-settings</item>
- <item>src</item>
- <item>unicode-range</item>
- </list>
-
- <list name="@keyframes">
- <item>@keyframes</item>
- </list>
-
- <list name="within-@keyframes">
- <item>from</item>
- <item>to</item>
+ <item>@font-palette-values</item>
+ <item>@property</item>
</list>
<list name="media operators">
+ <item>or</item>
<item>and</item>
<item>only</item>
<item>not</item>
</list>
<contexts>
- <context name="Base" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <IncludeRules context="FindComments" />
- <DetectChar attribute="Normal Text" context="RuleSet" char="{" beginRegion="ruleset" />
- <DetectChar attribute="At Rule" context="SelectAtRule" char="@" lookAhead="true" />
- <!-- find selectors // .class #id :hover :nth-child(2n+1) [type="search"] -->
- <DetectChar attribute="Selector Pseudo" context="SelectorPseudo" char=":" />
- <DetectChar attribute="Selector Attribute" context="SelectorAttr" char="[" />
- <DetectChar attribute="Separator Symbol" context="#stay" char="," />
- <AnyChar attribute="Operator" context="#stay" String="*>+~|" />
- <RegExpr attribute="Selector Id" context="#stay" String="#[-]?(&nmstart;)(&nmchar;)*" />
- <RegExpr attribute="Selector Class" context="#stay" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" />
- <RegExpr attribute="Selector Tag" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" />
- </context>
-
- <context name="FindSelector" attribute="Normal Text" lineEndContext="#stay">
- <IncludeRules context="FindComments" />
- <!-- find selectors // .class #id :hover :nth-child(2n+1) [type="search"] -->
- <DetectChar attribute="Selector Attribute" context="SelectorAttr" char="[" />
- <DetectChar attribute="Separator Symbol" context="#stay" char="," />
- <AnyChar attribute="Operator" context="#stay" String="*>+~|" />
- <RegExpr attribute="Selector Id" context="#stay" String="#[-]?(&nmstart;)(&nmchar;)*" />
- <RegExpr attribute="Selector Class" context="#stay" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" />
- <RegExpr attribute="Selector Tag" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" />
+ <context name="Base" attribute="Normal Text">
+ <DetectSpaces/>
+ <DetectChar attribute="Block Symbol" context="RuleSet" char="{" beginRegion="ruleset"/>
+ <DetectChar context="SelectAtRule" char="@" lookAhead="1"/>
+ <IncludeRules context="FindSelector"/>
+ </context>
+
+ <!-- find selectors // .class #id :hover :nth-child(2n+1) [type="search"] -->
+ <context name="FindSelector" attribute="Normal Text">
+ <DetectChar attribute="Separator Symbol" char=","/>
+ <DetectChar attribute="Selector Pseudo" context="PseudoClassOrElement" char=":"/>
+ <DetectChar attribute="Selector Attribute" context="SelectorAttr" char="["/>
+ <DetectChar attribute="Selector Pseudo" context="PseudoClassSelector" char="("/>
+ <AnyChar attribute="Selector Symbol" String="*>+~|&amp;"/>
+ <IncludeRules context="FindComments"/>
+ <RegExpr attribute="Selector Class" String="\.&ident2;"/>
+ <RegExpr attribute="Selector Id" String="#&ident2;"/>
+ <RegExpr attribute="Selector Tag" String="&ident;"/>
</context>
<!-- find functions // rgba(255,255,255,0.75) -->
- <context name="FindFunctions" attribute="Normal Text" lineEndContext="#stay">
- <RegExpr attribute="Function" context="Function" String="[a-z\-]{2,}\(" lookAhead="true" />
+ <context name="FindFunctions" attribute="Normal Text">
+ <RegExpr context="Function" String="(&func;)?\(" lookAhead="1"/>
+ </context>
+ <context name="FindNestedFunctions" attribute="Normal Text">
+ <RegExpr context="NestedFunction" String="(&func;)?\(" lookAhead="1"/>
</context>
<!-- find values // 10px 12pt 2.5em 1rem 75% #ffcc99 red solid -->
- <context name="FindValues" attribute="Normal Text" lineEndContext="#stay">
- <DetectChar attribute="Annotation" context="Annotation" char="!" />
- <keyword attribute="Value Keyword" context="#stay" String="value keywords" />
- <keyword attribute="Value" context="#stay" String="values" />
- <keyword attribute="Color" context="#stay" String="colors" />
- <RegExpr attribute="Color" context="#stay" String="#([0-9A-Fa-f]{3}){1,2}\b" />
- <RegExpr attribute="Number" context="FindUnits" String="[-+]?[0-9.]+(?![-+])" />
- <RegExpr attribute="Normal Text" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" />
+ <context name="FindValues" attribute="Normal Text">
+ <DetectChar attribute="Annotation" context="Annotation" char="!"/>
+ <keyword attribute="Value Keyword" String="value keywords"/>
+ <keyword attribute="Value" String="values"/>
+ <keyword attribute="Named Color" String="colors"/>
+ <RegExpr attribute="Color" String="#([0-9A-Fa-f]{8}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{3,4})"/>
+ <IncludeRules context="FindNumber"/>
+ <IncludeRules context="FindIdentifier"/>
</context>
- <context name="Annotation" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
- <WordDetect attribute="Annotation" context="#pop" String="important" />
+ <context name="FindNumber" attribute="Number" lineEndContext="#pop">
+ <RegExpr attribute="Number" context="FindUnits" String="[-+]?([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?(?![-+])"/>
</context>
- <context name="FindUnits" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
- <RegExpr attribute="Unit" context="#stay" String="(%|(em|ex|ch|rem|vw|vh|vm|px|in|cm|mm|pt|pc|deg|rad|grad|turn|ms|s|Hz|kHz)\b)(?![-+])" />
+ <context name="FindIdentifier" attribute="Number" lineEndContext="#pop">
+ <RegExpr String="&ident2;\s*"/>
+ </context>
+
+ <context name="FindVendorProperty" attribute="Normal Text">
+ <RegExpr attribute="Vendor Property" String="-(webkit|moz|o|ms)-[-_a-zA-Z0-9]*"/>
+ </context>
+
+ <context name="Annotation" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop">
+ <WordDetect attribute="Annotation" context="#pop" String="important"/>
+ </context>
+
+ <context name="FindUnits" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop">
+ <!-- https://drafts.csswg.org/css-values-4/#lengths -->
+ <!-- https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Values_and_Units -->
+ <RegExpr attribute="Unit" String="(%|(em|ex|cap|ch|ic|rem|lh|rlh|vw|vh|vi|vb|vmin|vmax|cqw|cqh|cqi|cqb|cqmin|cqmax|cm|mm|Q|in|pc|pt|px|deg|grad|rad|turn|s|ms|Hz|kHz|fr|dpi|dpcm|dppx|x)\b)(?![-+])"/>
</context>
<!-- find strings // "some words" 'some words' -->
- <context name="FindStrings" attribute="Normal Text" lineEndContext="#stay">
- <DetectChar attribute="String" context="StringDQ" char="&quot;" />
- <DetectChar attribute="String" context="StringSQ" char="'" />
+ <context name="FindStrings" attribute="Normal Text">
+ <DetectChar attribute="String" context="StringDQ" char="&quot;"/>
+ <DetectChar attribute="String" context="StringSQ" char="'"/>
</context>
<!-- find comments // /* comment */ -->
- <context name="FindComments" attribute="Normal Text" lineEndContext="#stay">
- <Detect2Chars attribute="Comment" context="IsComments" char="/" char1="*" lookAhead="true"/>
- <Detect2Chars attribute="Error" context="Error" char="/" char1="/" />
+ <context name="FindComments" attribute="Normal Text">
+ <Detect2Chars attribute="Comment" context="IsComments" char="/" char1="*" lookAhead="1"/>
+ <Detect2Chars attribute="Error" context="Error" char="/" char1="/"/>
</context>
<context name="Error" attribute="Error" lineEndContext="#pop">
- <RegExpr attribute="Error" context="#pop" String=".*" />
+ <RegExpr attribute="Error" context="#pop" String=".*"/>
</context>
- <context name="IsComments" attribute="Normal Text" lineEndContext="#stay">
- <RegExpr attribute="Region Marker" context="#pop" String="/\*\s*BEGIN\b.*\*/" beginRegion="UserDefined" />
- <RegExpr attribute="Region Marker" context="#pop" String="/\*\s*END\b.*\*/" endRegion="UserDefined" />
- <Detect2Chars attribute="Comment" context="Comment" char="/" char1="*" beginRegion="comment" />
+ <context name="IsComments" attribute="Normal Text">
+ <RegExpr attribute="Region Marker" context="#pop" String="/\*\s*BEGIN\b.*\*/" beginRegion="UserDefined"/>
+ <RegExpr attribute="Region Marker" context="#pop" String="/\*\s*END\b.*\*/" endRegion="UserDefined"/>
+ <Detect2Chars attribute="Comment" context="Comment" char="/" char1="*" beginRegion="comment"/>
</context>
<context name="SelectAtRule" attribute="At Rule" lineEndContext="#pop">
- <keyword attribute="At Rule" context="#pop!NestedAtRule" String="nested at-rules" />
- <keyword attribute="At Rule" context="#pop!AtRule" String="at-rules" />
- <keyword attribute="At Rule" context="#pop!@keyframes" String="@keyframes" />
- <keyword attribute="At Rule" context="#pop!@viewport" String="@viewport" />
- <keyword attribute="At Rule" context="#pop!@font-face" String="@font-face" />
- <keyword attribute="At Rule" context="#pop!@page" String="@page" />
- <RegExpr attribute="At Rule" context="#pop!UnknownAtRule" String="@[a-zA-Z0-9\-_]+\b" />
+ <WordDetect attribute="At Rule" context="@keyframes" String="@keyframes"/>
+ <WordDetect attribute="At Rule" context="@layer" String="@layer"/>
+ <WordDetect attribute="At Rule" context="@font-feature-values" String="@font-feature-values"/>
+ <WordDetect attribute="At Rule" context="@page" String="@page"/>
+ <WordDetect attribute="At Rule" context="@supports" String="@supports"/>
+ <keyword attribute="At Rule" context="@property" String="at-rules definitions"/>
+ <RegExpr attribute="At Rule" context="@media" String="@[-a-zA-Z0-9_]*"/>
</context>
- <context name="@keyframes" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <IncludeRules context="FindComments" />
- <DetectChar attribute="Normal Text" context="Within-@keyframes" char="{" beginRegion="ruleset" />
- </context>
- <context name="Within-@keyframes" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <IncludeRules context="FindComments" />
- <DetectChar attribute="Normal Text" context="#pop#pop" char="}" endRegion="ruleset" />
- <DetectChar attribute="Normal Text" context="RuleSet" char="{" beginRegion="ruleset" />
- <keyword attribute="Value" context="#stay" String="within-@keyframes" />
- <RegExpr attribute="Value" context="#stay" String="[-+]?[0-9.]+%" />
+ <context name="AtRuleCommon" attribute="At Rule Text">
+ <DetectChar char=";" context="#pop#pop" attribute="Separator Symbol"/>
+ <DetectChar char="}" context="#pop#pop" lookAhead="1"/>
+ <IncludeRules context="FindStrings"/>
+ <IncludeRules context="FindComments"/>
</context>
-
- <context name="@viewport" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <IncludeRules context="FindComments" />
- <DetectChar attribute="Selector Pseudo" context="SelectorPseudo" char=":" />
- <DetectChar attribute="Normal Text" context="#pop!Within-@viewport" char="{" beginRegion="ruleset" />
+ <context name="AtRuleCommon2" attribute="At Rule Text">
+ <DetectChar char="{" context="#pop#pop!NestedRule" attribute="Block Symbol" beginRegion="ruleset"/>
+ <IncludeRules context="AtRuleCommon"/>
</context>
- <context name="Within-@viewport" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <keyword attribute="Property" context="IsProperty" String="within-@viewport" />
- <IncludeRules context="RuleSet" />
- </context>
- <context name="@font-face" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <IncludeRules context="FindComments" />
- <DetectChar attribute="Normal Text" context="#pop!Within-@font-face" char="{" beginRegion="ruleset" />
+ <context name="@media" attribute="At Rule Text">
+ <DetectSpaces/>
+ <DetectChar char="(" context="AtRuleMediaCondition" attribute="Condition Open/Close"/>
+ <IncludeRules context="AtRuleCommon2"/>
+ <IncludeRules context="FindFunctions"/>
+ <keyword String="media operators" attribute="Keyword"/>
+ <keyword String="media types" attribute="Media Type"/>
+ <DetectIdentifier/>
</context>
- <context name="Within-@font-face" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <IncludeRules context="FindComments" />
- <keyword attribute="Property" context="IsProperty" String="within-@font-face" />
- <RegExpr attribute="Unknown Property" context="IsProperty" String="[A-Za-z_-]+\b" />
- <DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" />
+ <context name="AtRuleMediaCondition" attribute="At Rule Text">
+ <DetectSpaces/>
+ <DetectChar char=";" context="#pop#pop#pop" attribute="Error"/>
+ <DetectChar char="{" context="#pop#pop#pop!RuleSet" attribute="Error" beginRegion="ruleset"/>
+ <DetectChar char="}" context="#pop#pop#pop" lookAhead="1"/>
+ <IncludeRules context="AtRuleMediaConditionValue"/>
</context>
-
- <context name="@page" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <IncludeRules context="FindComments" />
- <DetectChar attribute="Selector Pseudo" context="SelectorPseudo-@page" char=":" />
- <DetectChar attribute="Normal Text" context="#pop!Within-@page" char="{" beginRegion="ruleset" />
+ <context name="NestedAtRuleMediaCondition" attribute="At Rule Text">
+ <DetectSpaces/>
+ <AnyChar String=";{}" context="#pop" lookAhead="1"/>
+ <IncludeRules context="AtRuleMediaConditionValue"/>
+ </context>
+ <context name="AtRuleMediaConditionValue" attribute="At Rule Text">
+ <AnyChar String="&lt;>=" attribute="Operator"/>
+ <DetectChar char=")" context="#pop" attribute="Condition Open/Close"/>
+ <DetectChar char="(" context="NestedAtRuleMediaCondition" attribute="Condition Open/Close"/>
+ <DetectChar char=":" attribute="Property Separator"/>
+ <IncludeRules context="FindStrings"/>
+ <IncludeRules context="FindComments"/>
+ <IncludeRules context="FindFunctions"/>
+ <IncludeRules context="FindNumber"/>
+ <keyword String="media operators" attribute="Keyword"/>
+ <keyword String="media features" attribute="Condition Property"/>
+ <IncludeRules context="FindIdentifier"/>
</context>
- <context name="SelectorPseudo-@page" attribute="Selector Pseudo" lineEndContext="#pop">
- <keyword attribute="Selector Pseudo" context="#pop" String="pseudoclasses-@page" />
- <RegExpr attribute="Selector Pseudo" context="#pop" String="[-a-zA-Z][-a-zA-Z0-9]*" />
+ <context name="NestedRule" attribute="Normal Text">
+ <DetectSpaces/>
+ <DetectChar char="}" context="#pop" attribute="Block Symbol" endRegion="ruleset"/>
+ <DetectChar char="{" context="RuleSet" attribute="Block Symbol" beginRegion="ruleset"/>
+ <DetectChar char="@" context="SelectAtRule" lookAhead="1"/>
+ <IncludeRules context="FindSelector"/>
</context>
- <context name="Within-@page" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <keyword attribute="Property" context="IsProperty" String="within-@page" />
- <IncludeRules context="RuleSet" />
+
+ <context name="@supports" attribute="At Rule Text">
+ <DetectSpaces/>
+ <DetectChar char="(" context="AtRuleSupportsCondition" lookAhead="1"/>
+ <IncludeRules context="AtRuleCommon2"/>
+ <keyword String="media operators" attribute="Keyword"/>
+ <WordDetect String="selector(" context="FunctionSelector" attribute="Function"/>
+ <WordDetect String="font-tech(" context="#pop!SupportsProp" lookAhead="1"/>
+ <WordDetect String="font-format(" context="#pop!SupportsProp" lookAhead="1"/>
+ <DetectIdentifier/>
+ </context>
+ <context name="SupportsProp" attribute="At Rule Text">
+ <DetectSpaces/>
+ <DetectChar char="{" context="#pop#pop!RuleSet" attribute="Block Symbol" beginRegion="ruleset"/>
+ <WordDetect String="font-tech(" context="FunctionFont" attribute="Function"/>
+ <WordDetect String="font-format(" context="FunctionFont" attribute="Function"/>
+ <IncludeRules context="AtRuleCommon"/>
</context>
- <context name="IsProperty" attribute="Error" lineEndContext="#stay">
- <DetectSpaces attribute="Normal Text" />
- <DetectChar attribute="Normal Text" context="RuleParameters" char=":" />
+ <context name="AtRuleSupportsCondition" attribute="At Rule Text" fallthroughContext="#pop">
+ <DetectChar char="(" context="SupportsCondition" attribute="Condition Open/Close"/>
+ <DetectChar char=";" context="#pop#pop#pop" attribute="Error"/>
+ <DetectChar char="{" context="#pop#pop#pop!NestedRule" attribute="Error" beginRegion="ruleset"/>
+ <DetectChar char="}" context="#pop#pop#pop" lookAhead="1"/>
+ </context>
+ <context name="SupportsCondition" attribute="At Rule Text" fallthroughContext="#pop!SupportsConditionValue">
+ <DetectSpaces/>
+ <DetectChar char="(" context="SupportsCondition" attribute="Condition Open/Close"/>
+ <DetectChar char=":" context="#pop!SupportsConditionValue" attribute="Property Separator"/>
+ <IncludeRules context="FindComments"/>
+ <keyword String="media operators" attribute="Keyword"/>
+ <keyword String="properties" attribute="Condition Property"/>
+ <IncludeRules context="FindVendorProperty"/>
+ </context>
+ <context name="SupportsConditionValue" attribute="At Rule Text">
+ <AnyChar String=";{}" context="#pop" lookAhead="1"/>
+ <DetectChar char=")" context="#pop" attribute="Condition Open/Close"/>
+ <DetectChar char="(" context="SupportsCondition" attribute="Condition Open/Close"/>
+ <IncludeRules context="FindStrings"/>
+ <IncludeRules context="FindComments"/>
+ <IncludeRules context="FindFunctions"/>
+ <IncludeRules context="FindValues"/>
</context>
- <context name="NestedAtRule" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <DetectChar attribute="Normal Text" context="NestedBase" char="{" beginRegion="ruleset" />
- <IncludeRules context="AtRuleValue" />
+ <context name="FunctionSelector" attribute="At Rule Text">
+ <DetectSpaces/>
+ <AnyChar String=";{}" context="#pop" lookAhead="1"/>
+ <DetectChar char=")" context="#pop" attribute="Function"/>
+ <IncludeRules context="FindSelector"/>
+ </context>
+ <context name="FunctionFont" attribute="At Rule Text">
+ <DetectSpaces/>
+ <DetectIdentifier/>
+ <AnyChar String=";{}" context="#pop" lookAhead="1"/>
+ <DetectChar char=")" context="#pop" attribute="Function"/>
+ <IncludeRules context="FindStrings"/>
+ <IncludeRules context="FindComments"/>
</context>
- <context name="NestedBase" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <DetectChar attribute="Normal Text" context="#pop#pop" char="}" endRegion="ruleset" />
- <IncludeRules context="Base" />
+
+ <context name="@layer" attribute="At Rule Text">
+ <DetectSpaces/>
+ <DetectIdentifier/>
+ <DetectChar attribute="Separator Symbol" char=","/>
+ <IncludeRules context="AtRuleCommon2"/>
</context>
- <context name="AtRule" attribute="Normal Text" lineEndContext="#pop">
- <DetectSpaces />
- <DetectChar attribute="Separator Symbol" context="#pop" char=";" />
- <IncludeRules context="AtRuleValue" />
+
+ <context name="@page" attribute="At Rule Text">
+ <DetectSpaces/>
+ <DetectChar attribute="Selector Pseudo" char=":"/>
+ <AnyChar String="{};" context="#pop#pop" lookAhead="1"/>
+ <IncludeRules context="FindComments"/>
+ <keyword attribute="Selector Pseudo" String="@page pseudo-classes"/>
+ <DetectIdentifier/>
</context>
- <context name="UnknownAtRule" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <DetectChar attribute="Separator Symbol" context="#pop" char=";" />
- <DetectChar attribute="Normal Text" context="#pop!RuleSet" char="{" beginRegion="ruleset" />
- <DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" />
- <IncludeRules context="AtRuleValue" />
+
+ <context name="@property" attribute="At Rule Text">
+ <DetectSpaces/>
+ <DetectChar char="-"/>
+ <DetectChar char="{" context="#pop#pop!RuleSet" attribute="Block Symbol" beginRegion="ruleset"/>
+ <IncludeRules context="AtRuleCommon"/>
+ <DetectIdentifier/>
</context>
- <context name="AtRuleValue" attribute="Normal Text" lineEndContext="#stay">
- <IncludeRules context="FindComments" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindFunctions" />
- <keyword attribute="Keyword" context="#stay" String="media operators" />
- <RegExpr attribute="Property" context="#stay" String="[A-Za-z_-]+(?=\s*:)" />
- <keyword attribute="Value" context="#stay" String="medias" />
- <IncludeRules context="FindValues" />
+
+ <context name="@font-feature-values" attribute="At Rule Text">
+ <DetectSpaces/>
+ <DetectIdentifier/>
+ <DetectChar char="{" context="#pop#pop!FontFeatureBlock" attribute="Block Symbol" beginRegion="ruleset"/>
+ <IncludeRules context="AtRuleCommon"/>
+ </context>
+ <context name="FontFeatureBlock" attribute="Normal Text" fallthroughContext="#pop!NestedRule">
+ <DetectSpaces/>
+ <DetectChar char="}" context="#pop" attribute="Block Symbol" endRegion="ruleset"/>
+ <DetectChar char="{" context="AtRuleSet" attribute="Block Symbol" beginRegion="ruleset"/>
+ <RegExpr String="@[-a-zA-Z]*" attribute="At Rule"/>
+ <IncludeRules context="FindComments"/>
</context>
- <context name="SelectorAttr" attribute="Selector Attribute" lineEndContext="#stay">
- <DetectChar attribute="Selector Attribute" context="#pop" char="]" />
- <IncludeRules context="FindStrings" />
- <DetectChar attribute="Operator" context="SelectorAttrValue" char="=" />
- <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="~" char1="=" />
- <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="^" char1="=" />
- <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="$" char1="=" />
- <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="*" char1="=" />
- <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="|" char1="=" />
- <DetectIdentifier />
+ <context name="AtRuleSet" attribute="Normal Text" fallthroughContext="#pop!NestedRule">
+ <IncludeRules context="RuleSet"/>
</context>
- <context name="SelectorAttrValue" attribute="String" lineEndContext="#stay">
- <DetectChar attribute="Selector Attribute" context="#pop#pop" char="]" />
- <DetectIdentifier />
+
+ <context name="@keyframes" attribute="At Rule Text">
+ <DetectSpaces/>
+ <DetectChar char="{" context="#pop#pop!KeyFramesBlock" attribute="Block Symbol" beginRegion="ruleset"/>
+ <IncludeRules context="AtRuleCommon"/>
+ <DetectIdentifier/>
</context>
+ <context name="KeyFramesBlock" attribute="Normal Text">
+ <DetectSpaces/>
+ <DetectChar char="{" context="RuleSet" attribute="Block Symbol" beginRegion="ruleset"/>
+ <DetectChar char="}" context="#pop" attribute="Block Symbol" endRegion="ruleset"/>
+ <DetectChar char="," attribute="Separator Symbol"/>
+ <IncludeRules context="FindComments"/>
+ <RegExpr attribute="Value" String="\b(from|to)\b|[-+]?[0-9.]+%"/>
+ </context>
+
- <context name="SelectorPseudo" attribute="Selector Pseudo" lineEndContext="#pop">
- <DetectChar attribute="Selector Pseudo" context="SelectorPseudoElements" char=":" />
- <keyword attribute="Selector Pseudo" context="SelectorPseudoValueSelector" String="pseudoclass-not" />
- <keyword attribute="Selector Pseudo" context="SelectorPseudoValue" String="pseudoclasses" />
- <RegExpr attribute="Selector Pseudo" context="SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" />
+ <context name="SelectorAttr" attribute="Attribute Name">
+ <DetectChar attribute="Selector Attribute" context="#pop" char="]"/>
+ <IncludeRules context="FindStrings"/>
+ <DetectChar attribute="Attribute Operator" context="SelectorAttrValue" char="="/>
+ <AnyChar attribute="Attribute Operator" String="~^$*|"/>
+ <IncludeRules context="FindComments"/>
+ <DetectIdentifier/>
+ <AnyChar context="#pop" String="{};#.,:>" lookAhead="1"/>
</context>
- <context name="SelectorPseudoElements" attribute="Selector Pseudo" lineEndContext="#pop#pop">
- <keyword attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="pseudoelements" />
- <RegExpr attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" />
+ <context name="SelectorAttrValue" attribute="Normal Text" fallthroughContext="SelectorAttrEnd">
+ <DetectSpaces/>
+ <AnyChar context="SelectorAttrValueQuoted" String="&quot;'" lookAhead="1"/>
+ <RegExpr context="SelectorAttrEnd" attribute="String" String="-?(\w|&escaped;)([-\w]+|&escaped;)*"/>
+ <IncludeRules context="FindComments"/>
+ </context>
+ <context name="SelectorAttrValueQuoted" attribute="String" fallthroughContext="#pop!SelectorAttrEnd">
+ <IncludeRules context="FindStrings"/>
+ </context>
+ <context name="SelectorAttrEnd" attribute="String" fallthroughContext="#pop#pop#pop">
+ <DetectSpaces/>
+ <DetectChar attribute="Selector Attribute" context="#pop#pop#pop" char="]"/>
+ <Detect2Chars context="SelectorAttrValueSensitiveOp" char="i" char1="]" lookAhead="1"/>
+ <Detect2Chars context="SelectorAttrValueSensitiveOp" char="I" char1="]" lookAhead="1"/>
+ <Detect2Chars context="SelectorAttrValueSensitiveOp" char="s" char1="]" lookAhead="1"/>
+ <Detect2Chars context="SelectorAttrValueSensitiveOp" char="S" char1="]" lookAhead="1"/>
+ <IncludeRules context="FindComments"/>
+ </context>
+ <context name="SelectorAttrValueSensitiveOp" attribute="String">
+ <DetectChar attribute="Selector Attribute" context="#pop#pop#pop#pop" char="]"/>
+ <AnyChar attribute="Attribute Operator" String="isIS"/>
</context>
- <context name="SelectorPseudoValueSelector" attribute="Selector Pseudo" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop">
- <DetectChar attribute="Selector Pseudo" context="SelectorPseudoValueCloseSelector" char="(" />
+ <context name="PseudoClassOrElement" attribute="Selector Pseudo" lineEndContext="#pop" fallthroughContext="#pop">
+ <DetectChar char=":" attribute="Selector Pseudo"/>
+ <WordDetect String="lang" attribute="Selector Pseudo" context="PseudoClassStr"/>
+ <WordDetect String="part" attribute="Selector Pseudo" context="PseudoClassStr"/>
+ <RegExpr String="nth-[-a-zA-Z0-9]*" attribute="Selector Pseudo" context="PseudoClassNth"/>
+ <RegExpr String="[-a-zA-Z]+" attribute="Selector Pseudo" context="#pop"/>
+ <IncludeRules context="FindComments"/>
</context>
- <context name="SelectorPseudoValueCloseSelector" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <DetectChar attribute="Selector Pseudo" context="#pop#pop#pop" char=")" />
- <DetectChar attribute="Error" context="#pop#pop#pop!RuleSet" char="{" beginRegion="ruleset" />
- <IncludeRules context="FindSelector" />
+ <context name="PseudoClassStr" attribute="Error" lineEndContext="#pop#pop" fallthroughContext="#pop#pop">
+ <DetectChar char="(" context="PseudoClassStrInner" attribute="Selector Pseudo"/>
+ <IncludeRules context="FindComments"/>
+ </context>
+ <context name="PseudoClassStrInner" attribute="Error">
+ <DetectChar char=")" attribute="Selector Pseudo" context="#pop#pop#pop"/>
+ <DetectChar char="{" context="#pop#pop#pop!RuleSet" attribute="Error" beginRegion="ruleset"/>
+ <DetectChar char=":" context="#pop#pop#pop!PseudoClassOrElement" attribute="Error"/>
+ <RegExpr String="\s*&ident;(\s+&ident;|\s+)*" attribute="String"/>
+ <IncludeRules context="FindComments"/>
</context>
- <context name="SelectorPseudoValue" attribute="Selector Pseudo" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop">
- <DetectChar attribute="Selector Pseudo" context="SelectorPseudoValueClose" char="(" />
+ <context name="PseudoClassNth" attribute="Error" lineEndContext="#pop#pop" fallthroughContext="#pop#pop">
+ <DetectChar char="(" context="PseudoClassNthInner" attribute="Selector Pseudo"/>
+ <IncludeRules context="FindComments"/>
+ </context>
+ <context name="PseudoClassNthInner" attribute="Normal Text" fallthroughContext="#pop#pop!PseudoClassSelector">
+ <Int attribute="Number" additionalDeliminator="-"/>
+ <AnyChar String="+-" attribute="Operator"/>
+ <DetectChar char="n" attribute="Unit"/>
+ <DetectChar char=")" attribute="Selector Pseudo" context="#pop#pop#pop"/>
+ <WordDetect String="odd" attribute="Value"/>
+ <WordDetect String="even" attribute="Value"/>
+ <WordDetect String="of" attribute="Keyword" context="#pop#pop!PseudoClassSelector"/>
+ <IncludeRules context="FindComments"/>
+ <DetectSpaces/>
</context>
- <context name="SelectorPseudoValueClose" attribute="Selector Pseudo" lineEndContext="#pop#pop#pop">
- <DetectChar attribute="Selector Pseudo" context="#pop#pop#pop" char=")" />
- <DetectIdentifier />
+ <context name="PseudoClassSelector" attribute="Normal Text">
+ <DetectSpaces/>
+ <DetectChar char=")" context="#pop" attribute="Selector Pseudo"/>
+ <DetectChar attribute="Selector Pseudo" context="NestedPseudoClassSelector" char="("/>
+ <IncludeRules context="FindSelector"/>
+ <DetectChar char="{" context="#pop!RuleSet" attribute="Error" beginRegion="ruleset"/>
+ </context>
+ <context name="NestedPseudoClassSelector" attribute="Normal Text">
+ <DetectChar char="{" context="#pop" lookAhead="1"/>
+ <IncludeRules context="PseudoClassSelector"/>
</context>
- <context name="Comment" attribute="Comment" lineEndContext="#stay">
- <DetectSpaces />
- <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="comment" />
- <IncludeRules context="##Alerts" />
- <DetectIdentifier />
+ <context name="Comment" attribute="Comment">
+ <DetectSpaces/>
+ <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="comment"/>
+ <IncludeRules context="##Comments"/>
+ <DetectIdentifier/>
</context>
- <context name="RuleSet" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" />
- <RegExpr attribute="Property" context="Rule" String="[A-Za-z_-]+(?=\s*:)" lookAhead="true" />
- <IncludeRules context="Base" />
- <RegExpr attribute="Normal Text" context="#stay" String="[A-Za-z_-]+" />
- <!-- auto-completion only, includes by previous rule -->
- <keyword attribute="Normal Text" context="#stay" String="properties" />
+ <context name="RuleSet" attribute="Normal Text" fallthroughContext="Rule">
+ <DetectSpaces/>
+ <DetectChar attribute="Block Symbol" context="#pop" char="}" endRegion="ruleset"/>
+ <DetectChar attribute="Block Symbol" context="RuleSet" char="{" beginRegion="ruleset"/>
+ <DetectChar context="SelectAtRule" char="@" lookAhead="1"/>
+ <IncludeRules context="FindComments"/>
+ <AnyChar context="Selector" String=".#:,[*>+~|&amp;" lookAhead="1"/>
</context>
- <context name="Rule" attribute="Normal Text" lineEndContext="#stay">
- <DetectChar attribute="Normal Text" context="RuleParameters" char=":" />
- <Detect2Chars attribute="Variable" context="IsVariable" char="-" char1="-" />
- <keyword attribute="Property" context="#stay" String="properties" />
- <RegExpr attribute="Unknown Property" context="#stay" String="[^:]+" />
+ <context name="Selector" attribute="Normal Text">
+ <DetectSpaces/>
+ <DetectChar attribute="Block Symbol" context="#pop!RuleSet" char="{" beginRegion="ruleset"/>
+ <DetectChar attribute="Block Symbol" context="#pop#pop" char="}" endRegion="ruleset"/>
+ <DetectChar context="#pop!SelectAtRule" char="@" lookAhead="1"/>
+ <IncludeRules context="FindComments"/>
+ <IncludeRules context="FindSelector"/>
</context>
- <context name="IsVariable" attribute="Normal Text" lineEndContext="#pop">
- <DetectChar attribute="Normal Text" context="#pop!RuleParameters" char=":" />
- <RegExpr attribute="Variable" context="#stay" String="[^:]+" />
+ <context name="Rule" attribute="Normal Text">
+ <DetectChar attribute="Property Separator" context="RuleParameters" char=":"/>
+ <Detect2Chars attribute="Variable" context="PropertyVariable" char="-" char1="-"/>
+ <IncludeRules context="FindComments"/>
+ <AnyChar context="#pop!Selector" String=".#,[*>+~|&amp;@{}" lookAhead="1"/>
+ <keyword attribute="Property" String="properties"/>
+ <DetectSpaces attribute="Normal Text"/>
+ <IncludeRules context="FindVendorProperty"/>
+ <RegExpr attribute="Unknown Property" String="[-_a-zA-Z]*"/>
+ </context>
+ <context name="PropertyVariable" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop">
+ <RegExpr attribute="Variable" context="#pop" String="[-_a-zA-Z0-9]*"/>
</context>
- <context name="RuleParameters" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <IncludeRules context="FindComments" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindFunctions" />
- <IncludeRules context="FindValues" />
+ <context name="RuleParameters" attribute="Normal Text">
+ <DetectSpaces/>
<!-- Jump out conditions -->
- <DetectChar attribute="Separator Symbol" context="#pop#pop" char=";" />
- <DetectChar attribute="Separator Symbol" context="#stay" char="," />
- <DetectChar attribute="Normal Text" context="#pop#pop#pop" char="}" endRegion="ruleset" />
- <!-- auto-completion only -->
- <keyword attribute="Normal Text" context="#stay" String="functions" />
+ <DetectChar attribute="Separator Symbol" context="#pop#pop" char=";"/>
+ <DetectChar attribute="Block Symbol" context="#pop#pop#pop" char="}" endRegion="ruleset"/>
+ <DetectChar attribute="Separator Symbol" char=","/>
+ <IncludeRules context="FindComments"/>
+ <IncludeRules context="FindStrings"/>
+ <IncludeRules context="FindFunctions"/>
+ <IncludeRules context="FindValues"/>
</context>
- <context name="Function" attribute="Normal Text" lineEndContext="#stay">
- <DetectChar attribute="Function" context="FunctionParameters" char="(" />
- <StringDetect attribute="Function" context="FunctionVar" String="var(" />
- <StringDetect attribute="Function" context="FunctionUrl" String="url(" />
- <StringDetect attribute="Function" context="FunctionCalc" String="calc(" />
- <keyword attribute="Function" context="#stay" String="functions" />
- <RegExpr attribute="Normal Text" context="#stay" String="[-a-zA-Z][-a-zA-Z0-9]*" />
+ <context name="Function" attribute="Normal Text">
+ <IncludeRules context="FunctionInc"/>
+ <DetectChar attribute="Error" context="#pop#pop#pop" char=";"/>
+ <DetectChar attribute="Error" context="#pop#pop#pop" char="}" endRegion="ruleset"/>
+ <DetectChar attribute="Error" context="#pop#pop#pop!RuleSet" char="{" beginRegion="ruleset"/>
</context>
-
- <context name="FunctionVar" attribute="Variable" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop!FunctionParameters">
- <DetectSpaces />
- <RegExpr attribute="Variable" context="#pop!FunctionParameters" String="--[^ \t\),]+" />
+ <context name="NestedFunction" attribute="Normal Text">
+ <IncludeRules context="FunctionInc"/>
+ <AnyChar context="#pop" String="{};" lookAhead="1"/>
</context>
-
- <context name="FunctionCalc" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <DetectChar attribute="Function" context="#pop#pop" char=")" />
- <IncludeRules context="Calc" />
+ <context name="FunctionInc" attribute="Normal Text">
+ <DetectChar attribute="Function" context="FunctionParameters" char="("/>
+ <StringDetect attribute="Function" context="FunctionVar" String="var("/>
+ <StringDetect attribute="Function" context="FunctionCalc" String="calc("/>
+ <StringDetect attribute="Function" context="FunctionUrl" String="url("/>
+ <StringDetect attribute="Function" context="FunctionEnv" String="env("/>
+ <keyword attribute="Function" String="functions"/>
+ <!-- Legacy -->
+ <WordDetect attribute="Function" String="rgba"/>
+ <WordDetect attribute="Function" String="hsla"/>
+ <RegExpr attribute="Unknown Function" String="&func;"/>
</context>
- <context name="NestedCalc" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <DetectChar attribute="Normal Text" context="#pop" char=")" />
- <IncludeRules context="Calc" />
+ <context name="FunctionVar" attribute="Normal Text" fallthroughContext="FunctionVarSep">
+ <RegExpr String="&var;" context="FunctionVarSep" attribute="Variable"/>
+ <DetectSpaces/>
+ <IncludeRules context="FindComments"/>
+ </context>
+ <context name="FunctionVarSep" attribute="Normal Text" fallthroughContext="FunctionVarParam">
+ <DetectChar char=")" context="#pop#pop#pop" attribute="Function"/>
+ <DetectChar char="," context="FunctionVarParam" attribute="Separator Symbol"/>
+ </context>
+ <context name="FunctionVarParam" attribute="Normal Text">
+ <DetectSpaces/>
+ <DetectChar char=")" context="#pop#pop#pop#pop" attribute="Function"/>
+ <AnyChar String=";{}" context="#pop#pop#pop" lookAhead="1"/>
+ <IncludeRules context="FindStrings"/>
+ <IncludeRules context="FindComments"/>
+ <IncludeRules context="FindNestedFunctions"/>
+ <IncludeRules context="FindValues"/>
</context>
- <context name="Calc" attribute="Normal Text" lineEndContext="#stay">
- <DetectChar attribute="Separator Symbol" context="#stay" char="," />
- <DetectChar attribute="Normal Text" context="NestedCalc" char="(" />
- <IncludeRules context="FindComments" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindFunctions" />
- <IncludeRules context="FindValues" />
- <RegExpr attribute="Operator" context="#stay" String="[-](?=$|[ \t(,;])|[+](?=$|[^0-9)])|[/*]" />
- <!-- auto-completion only -->
- <keyword attribute="Normal Text" context="#stay" String="functions" />
+ <context name="FunctionEnv" attribute="Normal Text" fallthroughContext="FunctionVarSep">
+ <RegExpr String="&ident;" context="FunctionVarSep" attribute="Normal Text"/>
+ <DetectSpaces/>
+ <IncludeRules context="FindComments"/>
</context>
- <context name="FunctionUrl" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="UrlValue">
- <DetectSpaces />
- <IncludeRules context="FindStrings" />
- <DetectChar attribute="Function" context="#pop#pop" char=")" />
+ <context name="FunctionCalc" attribute="Normal Text">
+ <DetectSpaces/>
+ <DetectChar attribute="Function" context="#pop#pop" char=")"/>
+ <IncludeRules context="Calc"/>
+ </context>
+ <context name="NestedCalc" attribute="Normal Text">
+ <DetectSpaces/>
+ <DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ <IncludeRules context="Calc"/>
+ </context>
+ <context name="Calc" attribute="Normal Text">
+ <DetectChar attribute="Separator Symbol" char=","/>
+ <DetectChar attribute="Normal Text" context="NestedCalc" char="("/>
+ <AnyChar String=";{}" context="#pop" lookAhead="1"/>
+ <IncludeRules context="FindStrings"/>
+ <IncludeRules context="FindComments"/>
+ <AnyChar attribute="Operator" String="*/%"/>
+ <IncludeRules context="FindNestedFunctions"/>
+ <IncludeRules context="FindNumber"/>
+ <RegExpr String="[-+]?((?i:infinity|e|pi)|NaN)($|[^-\w])|[-+]($|[\s(,;]|/\*)" context="CalcConstantOrOperator" lookAhead="1"/>
+ <IncludeRules context="FindIdentifier"/>
+ </context>
+ <context name="CalcConstantOrOperator" attribute="Normal Text" fallthroughContext="#pop">
+ <DetectIdentifier context="#pop" attribute="Calc Constant"/>
+ <AnyChar String="-+" attribute="Operator"/>
</context>
- <context name="UrlValue" attribute="String" lineEndContext="#stay">
- <DetectChar attribute="Function" context="#pop#pop#pop" char=")" />
+ <context name="FunctionUrl" attribute="Normal Text" fallthroughContext="UrlValue">
+ <DetectSpaces/>
+ <IncludeRules context="FindStrings"/>
+ </context>
+ <context name="UrlValue" attribute="String">
+ <DetectChar attribute="Function" context="#pop#pop#pop" char=")"/>
+ <AnyChar String=";{}" context="#pop#pop" lookAhead="1"/>
</context>
- <context name="FunctionParameters" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces />
- <DetectChar attribute="Function" context="#pop#pop" char=")" />
- <IncludeRules context="FindComments" />
- <IncludeRules context="FindStrings" />
- <IncludeRules context="FindValues" />
- <DetectChar attribute="Separator Symbol" context="#stay" char="," />
+ <context name="FunctionParameters" attribute="Normal Text">
+ <DetectSpaces/>
+ <DetectChar attribute="Function" context="#pop#pop" char=")"/>
+ <DetectChar attribute="Separator Symbol" char=","/>
+ <AnyChar String=";{}" context="#pop" lookAhead="1"/>
+ <IncludeRules context="FindComments"/>
+ <IncludeRules context="FindStrings"/>
+ <IncludeRules context="FindNestedFunctions"/>
+ <IncludeRules context="FindValues"/>
</context>
<!-- string contexts -->
- <context name="StringDQ" attribute="String" lineEndContext="#stay">
- <DetectChar attribute="String" context="#pop" char="&quot;" />
- <IncludeRules context="InsideString" />
+ <context name="StringDQ" attribute="String" lineEndContext="#pop">
+ <DetectChar attribute="String" context="#pop" char="&quot;"/>
+ <IncludeRules context="InsideString"/>
</context>
- <context name="StringSQ" attribute="String" lineEndContext="#stay">
- <DetectChar attribute="String" context="#pop" char="'" />
- <IncludeRules context="InsideString" />
+ <context name="StringSQ" attribute="String" lineEndContext="#pop">
+ <DetectChar attribute="String" context="#pop" char="'"/>
+ <IncludeRules context="InsideString"/>
</context>
- <context name="InsideString" attribute="String" lineEndContext="#stay">
- <RegExpr attribute="SpecialChar" context="#stay" String="\\([0-9A-Fa-f]{1,6}|.?)" />
- <RegExpr attribute="String" context="#stay" String="\\?[^&quot;'\\]+" />
+ <context name="InsideString" attribute="String">
+ <RegExpr attribute="SpecialChar" String="\\([0-9A-Fa-f]{1,6}|.?)"/>
+ <RegExpr attribute="String" String="\\?[^&quot;'\\]+"/>
</context>
</contexts>
@@ -1699,37 +2033,51 @@ Changelog:
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
<itemData name="At Rule" defStyleNum="dsImport" spellChecking="false"/>
+ <itemData name="At Rule Text" defStyleNum="dsNormal" spellChecking="false"/>
+ <itemData name="Media Type" defStyleNum="dsAnnotation" spellChecking="false"/>
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
<itemData name="Property" defStyleNum="dsKeyword" spellChecking="false"/>
+ <itemData name="Vendor Property" defStyleNum="dsKeyword" spellChecking="false" italic="1"/>
<itemData name="Unknown Property" defStyleNum="dsNormal" spellChecking="false"/>
+ <itemData name="Property Separator" defStyleNum="dsChar" spellChecking="false"/>
<itemData name="String" defStyleNum="dsString"/>
<itemData name="SpecialChar" defStyleNum="dsSpecialChar" spellChecking="false"/>
<itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/>
<itemData name="Separator Symbol" defStyleNum="dsOperator" spellChecking="false"/>
+ <itemData name="Block Symbol" defStyleNum="dsNormal" spellChecking="false"/>
<itemData name="Value" defStyleNum="dsDecVal" spellChecking="false"/>
<itemData name="Number" defStyleNum="dsDecVal" spellChecking="false"/>
<itemData name="Value Keyword" defStyleNum="dsBuiltIn" spellChecking="false"/>
+ <itemData name="Named Color" defStyleNum="dsConstant" spellChecking="false"/>
<itemData name="Color" defStyleNum="dsConstant" spellChecking="false"/>
<itemData name="Unit" defStyleNum="dsDataType" spellChecking="false"/>
<itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/>
<itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/>
+ <itemData name="Unknown Function" defStyleNum="dsNormal" spellChecking="false"/>
+ <itemData name="Calc Constant" defStyleNum="dsDecVal" spellChecking="false"/>
<itemData name="Annotation" defStyleNum="dsAttribute" spellChecking="false"/>
+ <itemData name="Condition Open/Close" defStyleNum="dsFunction" spellChecking="false"/>
+ <itemData name="Condition Property" defStyleNum="dsKeyword" spellChecking="false"/>
<itemData name="Selector Id" defStyleNum="dsPreprocessor" bold="1" spellChecking="false"/>
<itemData name="Selector Class" defStyleNum="dsFunction" spellChecking="false"/>
<itemData name="Selector Attribute" defStyleNum="dsExtension" spellChecking="false"/>
<itemData name="Selector Pseudo" defStyleNum="dsInformation" italic="1" spellChecking="false"/>
<itemData name="Selector Tag" defStyleNum="dsNormal" spellChecking="false"/>
- <itemData name="Comment" defStyleNum="dsComment" />
+ <itemData name="Selector Symbol" defStyleNum="dsOperator" spellChecking="false"/>
+ <itemData name="Attribute Name" defStyleNum="dsSpecialString" spellChecking="false"/>
+ <itemData name="Attribute Operator" defStyleNum="dsOperator" spellChecking="false"/>
+ <itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/>
<itemData name="Error" defStyleNum="dsError" spellChecking="false"/>
</itemDatas>
</highlighting>
<general>
- <keywords casesensitive="0" weakDeliminator="-%@" />
+ <keywords casesensitive="0" weakDeliminator="-%@"/>
<comments>
- <comment name="multiLine" start="/*" end="*/" />
+ <comment name="multiLine" start="/*" end="*/" region="comment"/>
</comments>
</general>
</language>
+<!-- kate: replace-tabs on; tab-width 4; indent-width 4; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/doxygen.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/doxygen.xml
index a6abda9204..da87e4d917 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/doxygen.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/doxygen.xml
@@ -1,10 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd"
+<!DOCTYPE language
[
- <!ENTITY wordsep "([][,?;()]|\.$|\.?\s)"> <!-- things that end a TagWord -->
+ <!ENTITY wordsep "(?:[][,?;()]|\.$|\.?\s|$)"> <!-- things that end a TagWord -->
+ <!ENTITY sl_word ".*?(?=&wordsep;)">
+ <!ENTITY ml_word ".*?(?=&wordsep;|\*/)">
]>
<language name="Doxygen"
- version="6"
+ version="15"
kateversion="5.0"
section="Markup"
extensions="*.dox;*.doxygen"
@@ -42,10 +44,6 @@
<item>\endrtfonly</item> <item>@endrtfonly</item>
<item>\endsecreflist</item> <item>@endsecreflist</item>
<item>\endxmlonly</item> <item>@endxmlonly</item>
- <item>\f[</item> <item>@f[</item>
- <item>\f]</item> <item>@f]</item>
- <item>\f$</item> <item>@f$</item>
- <!-- TODO Add @f{environment}{ and @f} -->
<item>\hideinitializer</item> <item>@hideinitializer</item>
<item>\htmlonly</item> <item>@htmlonly</item>
<!-- TODO @internal is a candidate to be handled separately, cuz may introduce folding region -->
@@ -84,21 +82,6 @@
<item>\test</item> <item>@test</item>
<item>\version</item> <item>@version</item>
<item>\xmlonly</item> <item>@xmlonly</item>
- <!-- TODO Introduce separate context for @~ ? -->
- <item>\#</item> <item>@#</item>
- <item>\$</item> <item>@$</item>
- <item>\%</item> <item>@%</item>
- <item>\&amp;</item> <item>@&amp;</item>
- <item>\&gt;</item> <item>@&gt;</item>
- <item>\&lt;</item> <item>@&lt;</item>
- <item>\&quot;</item> <item>@&quot;</item>
- <item>\::</item> <item>@::</item>
- <item>\@</item> <item>@@</item>
- <item>\\</item> <item>@\</item>
- <item>\~</item> <item>@~</item>
- <item>\.</item> <item>@.</item>
- <item>\--</item> <item>@--</item>
- <item>\---</item> <item>@---</item>
</list>
<list name="TagWord">
@@ -202,6 +185,12 @@
<item>\var</item> <item>@var</item>
<item>\vhdlflow</item> <item>@vhdlflow</item>
</list>
+ <list name="TagEnd">
+ <item>\endcode</item> <item>@endcode</item>
+ <item>\endverbatim</item> <item>@endverbatim</item>
+ <item>\endmsc</item> <item>@endmsc</item>
+ <item>\enddot</item> <item>@enddot</item>
+ </list>
<list name="Note">
<item>\note</item> <item>@note</item>
</list>
@@ -231,8 +220,8 @@
TODO Not all commands are handled properly nowadays :( Need few more contexts...
-->
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
- <RegExpr attribute="Comment" context="LineComment" String="//(!|(/(?=[^/]|$)))&lt;?" />
- <RegExpr attribute="Comment" context="BlockComment" String="/\*(\*[^*/]|!|[*!]&lt;|\*$)" beginRegion="BlockComment" />
+ <RegExpr attribute="Comment" context="LineComment" String="//(?:!|(?:/(?=[^/]|$)))&lt;?" />
+ <RegExpr attribute="Comment" context="BlockComment" String="/\*(?:\*[^*/]|!|[*!]&lt;|\*$)" beginRegion="BlockComment" />
<RegExpr attribute="Region" context="#stay" String="//\s*@\{\s*$" beginRegion="MemberGroup" />
<RegExpr attribute="Region" context="#stay" String="//\s*@\}\s*$" endRegion="MemberGroup" />
<RegExpr attribute="Region" context="#stay" String="/\*\s*@\{\s*\*/" beginRegion="MemberGroup" />
@@ -241,39 +230,20 @@
<context attribute="Comment" lineEndContext="#pop" name="LineComment">
<LineContinue attribute="Comment" context="#stay" />
<DetectSpaces />
- <IncludeRules context="##Alerts" />
- <IncludeRules context="SL_DetectEnv" />
- <keyword attribute="Tags" context="#stay" String="TagOnly" />
- <keyword attribute="Tags" context="SL_TagWord" String="TagWord" />
- <keyword attribute="Tags" context="SL_TagParam" String="TagParam" />
- <keyword attribute="Tags" context="SL_TagWordWord" String="TagWordWord" />
- <keyword attribute="Tags" context="SL_TagString" String="TagString" />
- <keyword attribute="Tags" context="SL_TagWordString" String="TagWordString" />
- <RegExpr attribute="Custom Tags" context="#stay" String="[@\\][^@\\ \t]+" />
+ <IncludeRules context="##Comments" />
<DetectIdentifier />
- <StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="&lt;!--" />
- <Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
- <RegExpr attribute="HTML Tag" context="SL_htmltag" String="&lt;\/?[-\w0-9._:@]+" />
+ <AnyChar attribute="Comment" context="SL_StartTag" String="\@" lookAhead="true" />
+ <DetectChar attribute="Comment" context="SL_StartHTMLTag" char="&lt;" lookAhead="true" />
+ <DetectChar attribute="Comment" context="Entities" char="&amp;" lookAhead="true" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="BlockComment">
<DetectSpaces />
- <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="BlockComment" />
- <IncludeRules context="##Alerts" />
- <Detect2Chars attribute="Region" context="#stay" char="@" char1="{" beginRegion="Group" />
- <Detect2Chars attribute="Region" context="#stay" char="@" char1="}" endRegion="Group" />
- <IncludeRules context="SL_DetectEnv" />
- <keyword attribute="Tags" context="#stay" String="TagOnly" />
- <keyword attribute="Tags" context="ML_TagWord" String="TagWord" />
- <keyword attribute="Tags" context="ML_TagParam" String="TagParam" />
- <keyword attribute="Tags" context="ML_TagWordWord" String="TagWordWord" />
- <keyword attribute="Tags" context="ML_TagString" String="TagString" />
- <keyword attribute="Tags" context="ML_TagWordString" String="TagWordString" />
- <RegExpr attribute="Custom Tags" context="#stay" String="[@\\]([^@\\ \t\*]|\*(?!/))+" />
+ <IncludeRules context="##Comments" />
<DetectIdentifier />
- <RegExpr attribute="Tags" context="#stay" String="\\(&lt;|&gt;)" />
- <Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
- <RegExpr attribute="HTML Tag" context="ML_htmltag" String="&lt;\/?[-\w0-9._:@]+" />
- <StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="&lt;!--" />
+ <AnyChar attribute="Comment" context="ML_StartTag" String="\@" lookAhead="true" />
+ <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="BlockComment" />
+ <DetectChar attribute="Comment" context="ML_StartHTMLTag" char="&lt;" lookAhead="true" />
+ <DetectChar attribute="Comment" context="Entities" char="&amp;" lookAhead="true" />
</context>
<!-- NOTE: all contexts beginning with ML_ are for multiline comments
@@ -284,123 +254,254 @@
much more complex and very hard to understand! (But use IncludeRules where the rules don't
refer to another SL_*/ML_* context, to help maintainability.)
-->
+ <context attribute="Comment" lineEndContext="#pop" name="ML_StartTag">
+ <keyword attribute="Tags" context="#pop!ML_TagWord" String="TagWord" />
+ <keyword attribute="Tags" context="#pop!ML_TagParam" String="TagParam" />
+ <keyword attribute="Tags" context="#pop!ML_TagWordWord" String="TagWordWord" />
+ <keyword attribute="Tags" context="#pop!ML_TagString" String="TagString" />
+ <keyword attribute="Tags" context="#pop!ML_TagWordString" String="TagWordString" />
+ <WordDetect attribute="Tags" context="#pop!ML_Code" String="\code" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!ML_Code" String="@code" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!ML_Verbatim" String="\verbatim" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!ML_Verbatim" String="@verbatim" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!ML_Formula" String="\f[" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!ML_Formula" String="@f[" beginRegion="VerbatimBlock" />
+ <StringDetect attribute="Tags" context="#pop!ML_FormulaShort" String="\f$" beginRegion="VerbatimBlock" />
+ <StringDetect attribute="Tags" context="#pop!ML_FormulaShort" String="@f$" beginRegion="VerbatimBlock" />
+ <StringDetect attribute="Tags" context="#pop!ML_FormulaEnv" String="\f{" beginRegion="VerbatimBlock" />
+ <StringDetect attribute="Tags" context="#pop!ML_FormulaEnv" String="@f{" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!ML_Msc" String="\msc" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!ML_Msc" String="@msc" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!ML_Dot" String="\dot" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!ML_Dot" String="@dot" beginRegion="VerbatimBlock" />
+ <IncludeRules context="Inc_OtherTag" />
+ </context>
+ <context attribute="Comment" lineEndContext="#pop" name="ML_StartHTMLTag">
+ <Detect2Chars attribute="Comment" context="#pop" char="&lt;" char1="&lt;" />
+ <RegExpr attribute="HTML Tag" context="#pop!ML_htmltag" String="&lt;\/?[-\w0-9._:@]+" />
+ <StringDetect attribute="HTML Comment" context="#pop!ML_htmlcomment" String="&lt;!--" />
+ <DetectChar attribute="Comment" context="#pop" char="&lt;" />
+ </context>
+
<!-- tag contexts -->
<context attribute="Comment" lineEndContext="#pop" name="ML_TagWord">
- <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
- <IncludeRules context="SL_TagWord" />
+ <DetectSpaces />
+ <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" />
+ <keyword attribute="Tags" context="#pop!ML_TagWord" String="TagWord" />
+ <IncludeRules context="ML_Inc_Word" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="ML_TagParam">
- <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
<DetectSpaces />
- <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in]" />
- <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[out]" />
- <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in,out]" />
- <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
- <RegExpr attribute="Word" context="#stay" String="\S" />
+ <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" />
+ <StringDetect attribute="Tags" context="#pop!ML_TagWord" String="[in]" />
+ <StringDetect attribute="Tags" context="#pop!ML_TagWord" String="[out]" />
+ <StringDetect attribute="Tags" context="#pop!ML_TagWord" String="[in,out]" />
+ <IncludeRules context="ML_Inc_Word" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="ML_TagWordWord">
- <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
<DetectSpaces />
- <RegExpr attribute="Word" context="ML_Tag2ndWord" String="\S(?=&wordsep;)" />
- <RegExpr attribute="Word" context="#stay" String="\S" />
- </context>
- <!-- TODO for kate 2.x, convert references to "#pop!ML_TagWord" -->
- <context attribute="Comment" lineEndContext="#pop#pop" name="ML_Tag2ndWord">
- <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" lookAhead="true" />
- <IncludeRules context="SL_Tag2ndWord" />
+ <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" />
+ <RegExpr attribute="Word" context="#pop!ML_TagWord" String="&ml_word;" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="ML_TagString">
<DetectSpaces />
- <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
+ <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" />
<StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="&lt;!--" />
<Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
<RegExpr attribute="HTML Tag" context="ML_htmltag" String="&lt;\/?[-\w0-9._:@]+" />
- <RegExpr attribute="Description" context="#stay" String="." />
+ <RegExpr attribute="Description" context="#stay" String="[&lt;*]?[^&lt;*\s]+" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="ML_TagWordString">
- <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
- <IncludeRules context="SL_TagWordString" />
+ <DetectSpaces />
+ <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" />
+ <IncludeRules context="ML_Inc_Word" />
</context>
+ <context name="ML_Inc_Word" attribute="Word" lineEndContext="#pop">
+ <RegExpr attribute="Word" context="#pop" String="&ml_word;" />
+ </context>
+
+
<!-- html contexts -->
<context name="ML_htmltag" attribute="Identifier" lineEndContext="#stay">
- <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
+ <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" />
<Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1="&gt;" />
<DetectChar attribute="HTML Tag" context="#pop" char="&gt;" />
- <RegExpr attribute="Identifier" context="ML_identifiers" String="\s*=\s*" />
+ <DetectSpaces />
+ <DetectChar attribute="Identifier" context="ML_identifiers" char="=" />
</context>
<context name="ML_htmlcomment" attribute="HTML Comment" lineEndContext="#stay">
- <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
- <IncludeRules context="##Alerts" />
+ <DetectSpaces />
+ <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" />
+ <IncludeRules context="##Comments" />
+ <DetectIdentifier />
<StringDetect attribute="HTML Comment" context="#pop" String="--&gt;" />
</context>
<context name="ML_identifiers" attribute="Identifier" lineEndContext="#stay">
- <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
- <RegExpr attribute="Identifier" context="#pop" String="\s*#?[a-zA-Z0-9]*" />
+ <DetectSpaces />
+ <Detect2Chars attribute="Comment" context="#pop#pop#pop" char="*" char1="/" endRegion="BlockComment" />
<DetectChar attribute="Types" context="ML_types1" char="'" />
<DetectChar attribute="Types" context="ML_types2" char="&quot;" />
</context>
<context name="ML_types1" attribute="Types" lineEndContext="#stay">
- <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
+ <Detect2Chars attribute="Comment" context="#pop#pop#pop#pop" char="*" char1="/" endRegion="BlockComment" />
<DetectChar attribute="Types" context="#pop#pop" char="'" />
</context>
<context name="ML_types2" attribute="Types" lineEndContext="#stay">
- <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
+ <Detect2Chars attribute="Comment" context="#pop#pop#pop#pop" char="*" char1="/" endRegion="BlockComment" />
<DetectChar attribute="Types" context="#pop#pop" char="&quot;" />
</context>
+ <context name="ML_FindNextLine" attribute="Comment" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop">
+ <DetectSpaces />
+ <Detect2Chars attribute="Comment" context="#pop!ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/>
+ <Detect2Chars attribute="Comment" context="ML_VerbatimPrefix" char="*" char1="*" lookAhead="true" />
+ <DetectChar attribute="Comment" context="#pop" char="*" />
+ </context>
+ <context name="ML_VerbatimPrefix" attribute="Comment" lineEndContext="#stay">
+ <DetectChar attribute="Comment" context="#pop" char="*" />
+ </context>
+
+ <context name="ML_End_BlockComment" attribute="Comment" lineEndContext="#stay">
+ <Detect2Chars attribute="Error" context="#pop#pop#pop" char="*" char1="/" endRegion="BlockComment"/>
+ </context>
+
+ <context name="ML_Code" attribute="Code" lineEndContext="ML_FindNextLine">
+ <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/>
+ <WordDetect attribute="Tags" context="#pop" String="\endcode" endRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop" String="@endcode" endRegion="VerbatimBlock" />
+ </context>
+
+ <context name="ML_Verbatim" attribute="Verbatim" lineEndContext="ML_FindNextLine">
+ <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/>
+ <WordDetect attribute="Tags" context="#pop" String="\endverbatim" endRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop" String="@endverbatim" endRegion="VerbatimBlock" />
+ </context>
+
+ <context name="ML_Formula" attribute="Formulas" lineEndContext="ML_FindNextLine">
+ <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/>
+ <StringDetect attribute="Tags" context="#pop" String="\f]" endRegion="VerbatimBlock" />
+ <StringDetect attribute="Tags" context="#pop" String="@f]" endRegion="VerbatimBlock" />
+ <!-- TODO: How to force LaTeX math context here?? -->
+ <!-- <IncludeRules context="##LaTeX" /> -->
+ </context>
+
+ <context name="ML_FormulaShort" attribute="Formulas" lineEndContext="ML_FindNextLine">
+ <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/>
+ <StringDetect attribute="Tags" context="#pop" String="\f$" endRegion="VerbatimBlock" />
+ <StringDetect attribute="Tags" context="#pop" String="@f$" endRegion="VerbatimBlock" />
+ <!-- TODO: How to force LaTeX math context here?? -->
+ <!-- <IncludeRules context="##LaTeX" /> -->
+ </context>
+
+ <context name="ML_FormulaEnv" attribute="Word" lineEndContext="ML_FindNextLine">
+ <DetectChar attribute="Tags" context="#pop!ML_FormulaEnvStart" char="}" />
+ <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/>
+ </context>
+
+ <context name="ML_FormulaEnvStart" attribute="Formulas" lineEndContext="ML_FindNextLine" fallthrough="true" fallthroughContext="#pop!ML_FormulaEnvFormula">
+ <DetectSpaces attribute="Comment" />
+ <DetectChar attribute="Tags" context="#pop!ML_FormulaEnvFormula" char="{" />
+ <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/>
+ </context>
+
+ <context name="ML_FormulaEnvFormula" attribute="Formulas" lineEndContext="ML_FindNextLine">
+ <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/>
+ <StringDetect attribute="Tags" context="#pop" String="\f}" endRegion="VerbatimBlock" />
+ <StringDetect attribute="Tags" context="#pop" String="@f}" endRegion="VerbatimBlock" />
+ <!-- TODO: How to force LaTeX math context here?? -->
+ <!-- <IncludeRules context="##LaTeX" /> -->
+ </context>
+
+ <context name="ML_Msc" attribute="Message Sequence Chart" lineEndContext="ML_FindNextLine">
+ <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/>
+ <WordDetect attribute="Tags" context="#pop" String="\endmsc" endRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop" String="@endmsc" endRegion="VerbatimBlock" />
+ </context>
+
+ <context name="ML_Dot" attribute="Dot Graph" lineEndContext="ML_FindNextLine">
+ <Detect2Chars attribute="Comment" context="ML_End_BlockComment" char="*" char1="/" endRegion="VerbatimBlock" lookAhead="1"/>
+ <WordDetect attribute="Tags" context="#pop" String="\enddot" endRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop" String="@enddot" endRegion="VerbatimBlock" />
+ </context>
+
<!-- NOTE: all contexts beginning with SL_ are for singleline comments -->
+ <context attribute="Comment" lineEndContext="#pop" name="SL_StartTag">
+ <keyword attribute="Tags" context="#pop!SL_TagWord" String="TagWord" />
+ <keyword attribute="Tags" context="#pop!SL_TagParam" String="TagParam" />
+ <keyword attribute="Tags" context="#pop!SL_TagWordWord" String="TagWordWord" />
+ <keyword attribute="Tags" context="#pop!SL_TagString" String="TagString" />
+ <keyword attribute="Tags" context="#pop!SL_TagWordString" String="TagWordString" />
+ <WordDetect attribute="Tags" context="#pop!SL_Code" String="\code" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!SL_Code" String="@code" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!SL_Verbatim" String="\verbatim" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!SL_Verbatim" String="@verbatim" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!SL_Formula" String="\f[" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!SL_Formula" String="@f[" beginRegion="VerbatimBlock" />
+ <StringDetect attribute="Tags" context="#pop!SL_FormulaShort" String="\f$" beginRegion="VerbatimBlock" />
+ <StringDetect attribute="Tags" context="#pop!SL_FormulaShort" String="@f$" beginRegion="VerbatimBlock" />
+ <StringDetect attribute="Tags" context="#pop!SL_FormulaEnv" String="\f{" beginRegion="VerbatimBlock" />
+ <StringDetect attribute="Tags" context="#pop!SL_FormulaEnv" String="@f{" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!SL_Msc" String="\msc" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!SL_Msc" String="@msc" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!SL_Dot" String="\dot" beginRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop!SL_Dot" String="@dot" beginRegion="VerbatimBlock" />
+ <IncludeRules context="Inc_OtherTag" />
+ </context>
+ <context attribute="Comment" lineEndContext="#pop" name="SL_StartHTMLTag">
+ <Detect2Chars attribute="Comment" context="#pop" char="&lt;" char1="&lt;" />
+ <RegExpr attribute="HTML Tag" context="#pop!SL_htmltag" String="&lt;\/?[-\w0-9._:@]+" />
+ <StringDetect attribute="HTML Comment" context="#pop!SL_htmlcomment" String="&lt;!--" />
+ <DetectChar attribute="Comment" context="#pop" char="&lt;" />
+ </context>
+
<!-- tag contexts -->
<context attribute="Comment" lineEndContext="#pop" name="SL_TagWord">
<DetectSpaces />
- <keyword attribute="Tags" context="#pop" String="TagWord" lookAhead="true" />
- <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
- <RegExpr attribute="Word" context="#stay" String="\S" />
+ <keyword attribute="Tags" context="#pop!SL_TagWord" String="TagWord" />
+ <IncludeRules context="SL_Inc_Word" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="SL_TagParam">
<DetectSpaces />
- <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in]" />
- <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[out]" />
- <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in,out]" />
- <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
- <RegExpr attribute="Word" context="#stay" String="\S" />
+ <StringDetect attribute="Tags" context="#pop!SL_TagWord" String="[in]" />
+ <StringDetect attribute="Tags" context="#pop!SL_TagWord" String="[out]" />
+ <StringDetect attribute="Tags" context="#pop!SL_TagWord" String="[in,out]" />
+ <IncludeRules context="SL_Inc_Word" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="SL_TagWordWord">
<DetectSpaces />
- <RegExpr attribute="Word" context="SL_Tag2ndWord" String="\S(?=&wordsep;)" />
- <RegExpr attribute="Word" context="#stay" String="\S" />
- </context>
- <!-- TODO for kate 2.x, convert references to "#pop!SL_TagWord" -->
- <context attribute="Comment" lineEndContext="#pop#pop" name="SL_Tag2ndWord">
- <DetectSpaces />
- <RegExpr attribute="Word" context="#pop#pop" String="\S(?=&wordsep;)" />
- <RegExpr attribute="Word" context="#stay" String="\S" />
+ <RegExpr attribute="Word" context="#pop!SL_TagWord" String="&sl_word;" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="SL_TagString">
<DetectSpaces />
<StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="&lt;!--" />
<Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
<RegExpr attribute="HTML Tag" context="SL_htmltag" String="&lt;\/?[-\w0-9._:@]+" />
- <RegExpr attribute="Description" context="#stay" String="." />
+ <RegExpr attribute="Description" context="#stay" String="&lt;?[^&lt;\s]+" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="SL_TagWordString">
<DetectSpaces />
- <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
- <RegExpr attribute="Word" context="#stay" String="\S" />
+ <IncludeRules context="SL_Inc_Word" />
+ </context>
+ <context name="SL_Inc_Word" attribute="Word" lineEndContext="#pop">
+ <RegExpr attribute="Word" context="#pop" String="&sl_word;" />
</context>
<!-- html contexts -->
<context name="SL_htmltag" attribute="Identifier" lineEndContext="#pop">
<Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1="&gt;" />
<DetectChar attribute="HTML Tag" context="#pop" char="&gt;" />
- <RegExpr attribute="Identifier" context="SL_identifiers" String="\s*=\s*" />
+ <DetectSpaces />
+ <DetectChar attribute="Identifier" context="SL_identifiers" char="=" />
</context>
<context name="SL_htmlcomment" attribute="HTML Comment" lineEndContext="#pop">
- <IncludeRules context="##Alerts" />
+ <DetectSpaces />
+ <IncludeRules context="##Comments" />
+ <DetectIdentifier />
<StringDetect attribute="HTML Comment" context="#pop" String="--&gt;" />
</context>
<context name="SL_identifiers" attribute="Identifier" lineEndContext="#pop">
- <RegExpr attribute="Identifier" context="#pop" String="\s*#?[a-zA-Z0-9]*" />
+ <DetectSpaces />
<DetectChar attribute="Types" context="SL_types1" char="'" />
<DetectChar attribute="Types" context="SL_types2" char="&quot;" />
</context>
@@ -411,55 +512,93 @@
<DetectChar attribute="Types" context="#pop#pop" char="&quot;" />
</context>
- <context attribute="Comment" name="SL_DetectEnv" lineEndContext="#pop">
- <RegExpr attribute="Tags" context="Code" String="[@\\]code\b" beginRegion="Code" />
- <RegExpr attribute="Tags" context="Verbatim" String="[@\\]verbatim\b" beginRegion="Verbatim" />
- <RegExpr attribute="Tags" context="Formula" String="[@\\]f\[" beginRegion="Formula" />
- <RegExpr attribute="Tags" context="Msc" String="[@\\]msc\b" beginRegion="Msc" />
- <RegExpr attribute="Tags" context="Dot" String="[@\\]dot\b" beginRegion="Dot" />
- <keyword attribute="Note" context="#stay" String="Note" />
- <keyword attribute="Warning" context="#stay" String="Warning" />
- <keyword attribute="Attention" context="#stay" String="Attention" />
- <keyword attribute="Todo" context="#stay" String="Todo" />
- <RegExpr attribute="Entities" context="#stay" String="&amp;[A-Za-z]+&#59;" />
+ <context name="SL_FindNextLine" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop#pop#pop">
+ <DetectSpaces />
+ <StringDetect attribute="Comment" context="#pop" String="///" />
+ <StringDetect attribute="Comment" context="#pop" String="//!" />
+ <RegExpr attribute="Comment" context="#pop#pop#pop" String="." lookAhead="true" endRegion="VerbatimBlock" />
</context>
- <context attribute="Comment" name="SL_DetectComment" lineEndContext="#pop">
- <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" />
- <DetectChar attribute="Comment" context="#stay" char="*" />
- <StringDetect attribute="Comment" context="#stay" String="///" />
+ <context name="SL_Code" attribute="Code" lineEndContext="SL_FindNextLine">
+ <WordDetect attribute="Tags" context="#pop" String="\endcode" endRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop" String="@endcode" endRegion="VerbatimBlock" />
</context>
- <context attribute="Code" lineEndContext="#stay" name="Code">
- <IncludeRules context="SL_DetectComment" />
- <RegExpr attribute="Tags" context="#pop" String="[@\\]endcode\b" endRegion="Code" />
+ <context name="SL_Verbatim" attribute="Verbatim" lineEndContext="SL_FindNextLine">
+ <WordDetect attribute="Tags" context="#pop" String="\endverbatim" endRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop" String="@endverbatim" endRegion="VerbatimBlock" />
</context>
- <context attribute="Verbatim" lineEndContext="#stay" name="Verbatim">
- <IncludeRules context="SL_DetectComment" />
- <RegExpr attribute="Tags" context="#pop" String="[@\\]endverbatim\b" endRegion="Verbatim" />
+ <context name="SL_Formula" attribute="Formulas" lineEndContext="SL_FindNextLine">
+ <StringDetect attribute="Tags" context="#pop" String="\f]" endRegion="VerbatimBlock" />
+ <StringDetect attribute="Tags" context="#pop" String="@f]" endRegion="VerbatimBlock" />
+ <!-- TODO: How to force LaTeX math context here?? -->
+ <!-- <IncludeRules context="##LaTeX" /> -->
</context>
- <context attribute="Formulas" lineEndContext="#stay" name="Formula">
- <IncludeRules context="SL_DetectComment" />
- <RegExpr attribute="Tags" context="#pop" String="[@\\]f\]" endRegion="Formula" />
+ <context name="SL_FormulaShort" attribute="Formulas" lineEndContext="SL_FindNextLine">
+ <StringDetect attribute="Tags" context="#pop" String="\f$" endRegion="VerbatimBlock" />
+ <StringDetect attribute="Tags" context="#pop" String="@f$" endRegion="VerbatimBlock" />
<!-- TODO: How to force LaTeX math context here?? -->
<!-- <IncludeRules context="##LaTeX" /> -->
</context>
- <context attribute="Message Sequence Chart" lineEndContext="#stay" name="Msc">
- <IncludeRules context="SL_DetectComment" />
- <RegExpr attribute="Tags" context="#pop" String="[@\\]endmsc\b" endRegion="Msc" />
+ <context name="SL_FormulaEnv" attribute="Word" lineEndContext="SL_FindNextLine">
+ <DetectChar attribute="Tags" context="#pop!SL_FormulaEnvStart" char="}" />
</context>
- <context attribute="Dot Graph" lineEndContext="#stay" name="Dot">
- <IncludeRules context="SL_DetectComment" />
- <RegExpr attribute="Tags" context="#pop" String="[@\\]enddot\b" endRegion="Dot" />
+ <context name="SL_FormulaEnvStart" attribute="Formulas" lineEndContext="SL_FindNextLine" fallthrough="true" fallthroughContext="#pop!SL_FormulaEnvFormula">
+ <DetectSpaces attribute="Comment" />
+ <DetectChar attribute="Tags" context="#pop!SL_FormulaEnvFormula" char="{" />
+ </context>
+
+ <context name="SL_FormulaEnvFormula" attribute="Formulas" lineEndContext="SL_FindNextLine">
+ <StringDetect attribute="Tags" context="#pop" String="\f}" endRegion="VerbatimBlock" />
+ <StringDetect attribute="Tags" context="#pop" String="@f}" endRegion="VerbatimBlock" />
+ <!-- TODO: How to force LaTeX math context here?? -->
+ <!-- <IncludeRules context="##LaTeX" /> -->
+ </context>
+
+ <context name="SL_Msc" attribute="Message Sequence Chart" lineEndContext="SL_FindNextLine">
+ <WordDetect attribute="Tags" context="#pop" String="\endmsc" endRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop" String="@endmsc" endRegion="VerbatimBlock" />
+ </context>
+
+ <context name="SL_Dot" attribute="Dot Graph" lineEndContext="SL_FindNextLine">
+ <WordDetect attribute="Tags" context="#pop" String="\enddot" endRegion="VerbatimBlock" />
+ <WordDetect attribute="Tags" context="#pop" String="@enddot" endRegion="VerbatimBlock" />
+ </context>
+
+ <context name="Entities" attribute="Word" lineEndContext="#stay">
+ <RegExpr attribute="Entities" context="#pop" String="&amp;[A-Za-z]+&#59;" />
+ <DetectChar attribute="Comment" context="#pop" char="&amp;" />
+ </context>
+
+ <context name="Inc_OtherTag" attribute="Comment" lineEndContext="#pop">
+ <keyword attribute="Note" context="#pop" String="Note" />
+ <keyword attribute="Warning" context="#pop" String="Warning" />
+ <keyword attribute="Attention" context="#pop" String="Attention" />
+ <keyword attribute="Todo" context="#pop" String="Todo" />
+ <keyword attribute="Tags" context="#pop" String="TagOnly" />
+ <Detect2Chars attribute="Region" context="#pop" char="@" char1="{" beginRegion="Group" />
+ <Detect2Chars attribute="Region" context="#pop" char="@" char1="}" endRegion="Group" />
+ <Detect2Chars attribute="Tags" context="#pop!LanguageId" char="\" char1="~" />
+ <Detect2Chars attribute="Tags" context="#pop!LanguageId" char="@" char1="~" />
+ <keyword attribute="Error" context="#pop" String="TagEnd" />
+ <RegExpr attribute="Error" context="#pop" String="[@\\]f[]}]" />
+ <RegExpr attribute="Escape sequence" context="#pop" String="[@\\](?:[#$%&amp;&lt;&gt;&quot;@\\.~=|]|::|---?)" />
+ <RegExpr attribute="Custom Tags" context="#pop" String="[@\\](?:[^@\\ \t\*]|\*(?!/))+" />
+ <AnyChar attribute="Comment" context="#pop" String="\@" />
+ </context>
+
+ <context name="LanguageId" attribute="Word" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
+ <DetectIdentifier />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
+ <itemData name="Escape sequence" defStyleNum="dsSpecialChar" />
<itemData name="Tags" defStyleNum="dsAnnotation" bold="1" />
<itemData name="Custom Tags" defStyleNum="dsAnnotation" />
<itemData name="Word" defStyleNum="dsCommentVar" bold="1" italic="0" />
@@ -480,10 +619,11 @@
<itemData name="Warning" defStyleNum="dsWarning" bold="1" italic="0" />
<itemData name="Attention" defStyleNum="dsAnnotation" bold="1" italic="0" />
<itemData name="Todo" defStyleNum="dsAnnotation" bold="1" italic="0" />
+ <itemData name="Error" defStyleNum="dsError" />
</itemDatas>
</highlighting>
<general>
- <keywords casesensitive="1" weakDeliminator="\$~" />
+ <keywords casesensitive="1" weakDeliminator="\$" />
</general>
</language>
<!-- kate: indent-width 2; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/dtd.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/dtd.xml
index 5c39c1b597..0526efc625 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/dtd.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/dtd.xml
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE language SYSTEM "language.dtd"[
+<!DOCTYPE language[
<!ENTITY nmtoken "[\-\w\d\.:_]+">
<!ENTITY entref "(#[0-9]+|#[xX][0-9A-Fa-f]+|&nmtoken;);">
]>
-<language name="DTD" version="2" kateversion="3.4" section="Markup" extensions="*.dtd" mimetype="application/xml-dtd" author="Andriy Lesyuk (s-andy@in.if.ua)" license="LGPL">
+<language name="DTD" version="4" kateversion="5.0" section="Markup" extensions="*.dtd" mimetype="application/xml-dtd" author="Andriy Lesyuk (s-andy@in.if.ua)" license="LGPL">
<highlighting>
<list name="Category">
@@ -45,7 +45,7 @@
<context name="Comment" attribute="Comment" lineEndContext="#stay">
<DetectSpaces />
<StringDetect attribute="Comment" context="#pop" String="--&gt;" endRegion="comment" />
- <IncludeRules context="##Alerts" />
+ <IncludeRules context="##Comments" />
<DetectIdentifier />
</context>
@@ -77,7 +77,7 @@
<context name="InlineComment" attribute="Comment" lineEndContext="#pop">
<DetectSpaces />
<Detect2Chars attribute="Comment" context="#pop" char="-" char1="-" />
- <IncludeRules context="##Alerts" />
+ <IncludeRules context="##Comments" />
<DetectIdentifier />
</context>
@@ -101,10 +101,9 @@
<general>
<comments>
- <comment name="multiLine" start="&lt;!--" end="--&gt;" />
+ <comment name="multiLine" start="&lt;!--" end="--&gt;" region="comment" />
</comments>
</general>
</language>
-<!-- kate: indent-width 2; indent-mode normal; tab-indents on; -->
-
+<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/gnuassembler.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/gnuassembler.xml
new file mode 100644
index 0000000000..26a306c28a
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/gnuassembler.xml
@@ -0,0 +1,2352 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language>
+<!--
+
+*************************************************************************
+* *
+* Syntax highlighting for the GNU Assembler *
+* Copyright (C) 2002, John Zaitseff *
+* Copyright (C) 2021, Waqar Ahmed *
+* *
+*************************************************************************
+
+Updated: Waqar Ahmed <waqar.17a@gmail.com>
+Date: 30 April, 2021
+Version: 2.0
+
+Updated: Miquel Sabaté <mikisabate@gmail.com>
+Date: 14th September, 2010
+Version: 1.02
+
+Updated: Roland Pabel <roland@pabel.name>
+Date: 15th August, 2002
+Version: 1.01
+
+Author: John Zaitseff <J.Zaitseff@zap.org.au>
+Date: 15th April, 2002
+Version: 1.0
+
+This file contains the XML syntax highlighting description for the GNU
+Assembler, for KATE, the KDE Advanced Editor. Keywords have been taken
+directly from the GNU Assembler source code (read.c).
+
+Known problems: Floating point highlighting does not work correctly.
+
+This program, including associated files, is free software. You may
+distribute it and/or modify it under the terms of the GNU General Public
+License as published by the Free Software Foundation; either Version 2 of
+the license, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License along
+with this program; if not, write to the Free Software Foundation, Inc.,
+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+-->
+
+<language name="GNU Assembler" version="9" kateversion="5.0" section="Assembler" extensions="*.s;*.S" mimetype="text/x-asm" author="John Zaitseff (J.Zaitseff@zap.org.au), Roland Pabel (roland@pabel.name), Miquel Sabaté (mikisabate@gmail.com) Waqar Ahmed (waqar.17a@gmail.com)" license="GPLv2+">
+ <highlighting>
+ <list name="registers">
+ <!-- General purpose registers -->
+ <item>rax</item>
+ <item>eax</item>
+ <item>ax</item>
+ <item>ah</item>
+ <item>al</item>
+ <item>rbx</item>
+ <item>ebx</item>
+ <item>bx</item>
+ <item>bh</item>
+ <item>bl</item>
+ <item>rcx</item>
+ <item>ecx</item>
+ <item>cx</item>
+ <item>ch</item>
+ <item>cl</item>
+ <item>rdx</item>
+ <item>edx</item>
+ <item>dx</item>
+ <item>dh</item>
+ <item>dl</item>
+ <item>rbp</item>
+ <item>ebp</item>
+ <item>bp</item>
+ <item>bpl</item>
+ <item>rsi</item>
+ <item>esi</item>
+ <item>si</item>
+ <item>sil</item>
+ <item>rdi</item>
+ <item>edi</item>
+ <item>di</item>
+ <item>dil</item>
+
+ <item>rip</item>
+ <item>eip</item>
+ <item>ip</item>
+
+ <item>rsp</item>
+ <item>esp</item>
+ <item>sp</item>
+ <item>spl</item>
+ <item>r8</item>
+ <item>r8d</item>
+ <item>r8w</item>
+ <item>r8b</item>
+ <item>r9</item>
+ <item>r9d</item>
+ <item>r9w</item>
+ <item>r9b</item>
+ <item>r10</item>
+ <item>r10d</item>
+ <item>r10w</item>
+ <item>r10b</item>
+ <item>r11</item>
+ <item>r11d</item>
+ <item>r11w</item>
+ <item>r11b</item>
+ <item>r12</item>
+ <item>r12d</item>
+ <item>r12w</item>
+ <item>r12b</item>
+ <item>r13</item>
+ <item>r13d</item>
+ <item>r13w</item>
+ <item>r13b</item>
+ <item>r14</item>
+ <item>r14d</item>
+ <item>r14w</item>
+ <item>r14b</item>
+ <item>r15</item>
+ <item>r15d</item>
+ <item>r15w</item>
+ <item>r15b</item>
+ <!-- Segmentation registers -->
+ <item>cs</item>
+ <item>ds</item>
+ <item>es</item>
+ <item>fs</item>
+ <item>gs</item>
+ <item>ss</item>
+ <!-- Control registers -->
+ <item>cr0</item>
+ <!--<item>cr1</item>-->
+ <item>cr2</item>
+ <item>cr3</item>
+ <item>cr4</item>
+ <!-- Debug registers -->
+ <item>dr0</item>
+ <item>dr1</item>
+ <item>dr2</item>
+ <item>dr3</item>
+ <item>dr6</item>
+ <item>dr7</item>
+ <!-- x87 FPU Registers -->
+ <item>st</item>
+ <!-- MMX registers -->
+ <item>mm0</item>
+ <item>mm1</item>
+ <item>mm2</item>
+ <item>mm3</item>
+ <item>mm4</item>
+ <item>mm5</item>
+ <item>mm6</item>
+ <item>mm7</item>
+ <!-- XMM registers -->
+ <item>xmm0</item>
+ <item>xmm1</item>
+ <item>xmm2</item>
+ <item>xmm3</item>
+ <item>xmm4</item>
+ <item>xmm5</item>
+ <item>xmm6</item>
+ <item>xmm7</item>
+ <item>xmm8</item>
+ <item>xmm9</item>
+ <item>xmm10</item>
+ <item>xmm11</item>
+ <item>xmm12</item>
+ <item>xmm13</item>
+ <item>xmm14</item>
+ <item>xmm15</item>
+ <item>xmm16</item>
+ <item>xmm17</item>
+ <item>xmm18</item>
+ <item>xmm19</item>
+ <item>xmm20</item>
+ <item>xmm21</item>
+ <item>xmm22</item>
+ <item>xmm23</item>
+ <item>xmm24</item>
+ <item>xmm25</item>
+ <item>xmm26</item>
+ <item>xmm27</item>
+ <item>xmm28</item>
+ <item>xmm29</item>
+ <item>xmm30</item>
+ <item>xmm31</item>
+ <!-- YMM registers -->
+ <item>ymm0</item>
+ <item>ymm1</item>
+ <item>ymm2</item>
+ <item>ymm3</item>
+ <item>ymm4</item>
+ <item>ymm5</item>
+ <item>ymm6</item>
+ <item>ymm7</item>
+ <item>ymm8</item>
+ <item>ymm9</item>
+ <item>ymm10</item>
+ <item>ymm11</item>
+ <item>ymm12</item>
+ <item>ymm13</item>
+ <item>ymm14</item>
+ <item>ymm15</item>
+ <item>ymm16</item>
+ <item>ymm17</item>
+ <item>ymm18</item>
+ <item>ymm19</item>
+ <item>ymm20</item>
+ <item>ymm21</item>
+ <item>ymm22</item>
+ <item>ymm23</item>
+ <item>ymm24</item>
+ <item>ymm25</item>
+ <item>ymm26</item>
+ <item>ymm27</item>
+ <item>ymm28</item>
+ <item>ymm29</item>
+ <item>ymm30</item>
+ <item>ymm31</item>
+ <!-- ZMM registers -->
+ <item>zmm0</item>
+ <item>zmm1</item>
+ <item>zmm2</item>
+ <item>zmm3</item>
+ <item>zmm4</item>
+ <item>zmm5</item>
+ <item>zmm6</item>
+ <item>zmm7</item>
+ <item>zmm8</item>
+ <item>zmm9</item>
+ <item>zmm10</item>
+ <item>zmm11</item>
+ <item>zmm12</item>
+ <item>zmm13</item>
+ <item>zmm14</item>
+ <item>zmm15</item>
+ <item>zmm16</item>
+ <item>zmm17</item>
+ <item>zmm18</item>
+ <item>zmm19</item>
+ <item>zmm20</item>
+ <item>zmm21</item>
+ <item>zmm22</item>
+ <item>zmm23</item>
+ <item>zmm24</item>
+ <item>zmm25</item>
+ <item>zmm26</item>
+ <item>zmm27</item>
+ <item>zmm28</item>
+ <item>zmm29</item>
+ <item>zmm30</item>
+ <item>zmm31</item>
+ </list>
+
+ <list name="instructions">
+ <item>lock</item>
+ <item>rep</item>
+ <item>repe</item>
+ <item>repz</item>
+ <item>repne</item>
+ <item>repnz</item>
+ <item>xaquire</item>
+ <item>xrelease</item>
+ <item>bnd</item>
+ <item>nobnd</item>
+ <item>aaa</item>
+ <item>aad</item>
+ <item>aam</item>
+ <item>aas</item>
+ <item>adc</item>
+ <item>addb</item>
+ <item>addw</item>
+ <item>addl</item>
+ <item>addq</item>
+ <item>and</item>
+ <item>arpl</item>
+ <item>bb0_reset</item>
+ <item>bb1_reset</item>
+ <item>bound</item>
+ <item>bsf</item>
+ <item>bsr</item>
+ <item>bswap</item>
+ <item>bt</item>
+ <item>btc</item>
+ <item>btr</item>
+ <item>bts</item>
+ <item>cbw</item>
+ <item>cdq</item>
+ <item>cdqe</item>
+ <item>clc</item>
+ <item>cld</item>
+ <item>cli</item>
+ <item>clts</item>
+ <item>cltd</item>
+ <item>cbtw</item>
+ <item>cwtl</item>
+ <item>cwtd</item>
+ <item>cltq</item>
+ <item>cqto</item>
+ <item>cmc</item>
+ <item>cmpb</item>
+ <item>cmpw</item>
+ <item>cmpl</item>
+ <item>cmpq</item>
+ <item>cmpsb</item>
+ <item>cmpsd</item>
+ <item>cmpsq</item>
+ <item>cmpsw</item>
+ <item>cmpxchg</item>
+ <item>cmpxchg486</item>
+ <item>cmpxchg8b</item>
+ <item>cmpxchg16b</item>
+ <item>cpuid</item>
+ <item>cpu_read</item>
+ <item>cpu_write</item>
+ <item>cqo</item>
+ <item>cwd</item>
+ <item>cwde</item>
+ <item>daa</item>
+ <item>das</item>
+ <item>dec</item>
+ <item>decl</item>
+ <item>decq</item>
+ <item>div</item>
+ <item>divb</item>
+ <item>divw</item>
+ <item>divl</item>
+ <item>divq</item>
+ <item>dmint</item>
+ <item>emms</item>
+ <item>enter</item>
+ <item>equ</item>
+ <item>f2xm1</item>
+ <item>fabs</item>
+ <item>fadd</item>
+ <item>faddp</item>
+ <item>fbld</item>
+ <item>fbstp</item>
+ <item>fchs</item>
+ <item>fclex</item>
+ <item>fcmovb</item>
+ <item>fcmovbe</item>
+ <item>fcmove</item>
+ <item>fcmovnb</item>
+ <item>fcmovnbe</item>
+ <item>fcmovne</item>
+ <item>fcmovnu</item>
+ <item>fcmovu</item>
+ <item>fcom</item>
+ <item>fcomi</item>
+ <item>fcomip</item>
+ <item>fcomp</item>
+ <item>fcompp</item>
+ <item>fcos</item>
+ <item>fdecstp</item>
+ <item>fdisi</item>
+ <item>fdiv</item>
+ <item>fdivp</item>
+ <item>fdivr</item>
+ <item>fdivrp</item>
+ <item>femms</item>
+ <item>feni</item>
+ <item>ffree</item>
+ <item>ffreep</item>
+ <item>fiadd</item>
+ <item>ficom</item>
+ <item>ficomp</item>
+ <item>fidiv</item>
+ <item>fidivr</item>
+ <item>fild</item>
+ <item>fimul</item>
+ <item>fincstp</item>
+ <item>finit</item>
+ <item>fist</item>
+ <item>fistp</item>
+ <item>fisttp</item>
+ <item>fisub</item>
+ <item>fisubr</item>
+ <item>fld</item>
+ <item>fld1</item>
+ <item>fldcw</item>
+ <item>fldenv</item>
+ <item>fldl2e</item>
+ <item>fldl2t</item>
+ <item>fldlg2</item>
+ <item>fldln2</item>
+ <item>fldpi</item>
+ <item>fldz</item>
+ <item>fmul</item>
+ <item>fmulp</item>
+ <item>fnclex</item>
+ <item>fndisi</item>
+ <item>fneni</item>
+ <item>fninit</item>
+ <item>fnop</item>
+ <item>fnsave</item>
+ <item>fnstcw</item>
+ <item>fnstenv</item>
+ <item>fnstsw</item>
+ <item>fpatan</item>
+ <item>fprem</item>
+ <item>fprem1</item>
+ <item>fptan</item>
+ <item>frndint</item>
+ <item>frstor</item>
+ <item>fsave</item>
+ <item>fscale</item>
+ <item>fsetpm</item>
+ <item>fsin</item>
+ <item>fsincos</item>
+ <item>fsqrt</item>
+ <item>fst</item>
+ <item>fstcw</item>
+ <item>fstenv</item>
+ <item>fstp</item>
+ <item>fstsw</item>
+ <item>fsub</item>
+ <item>fsubp</item>
+ <item>fsubr</item>
+ <item>fsubrp</item>
+ <item>ftst</item>
+ <item>fucom</item>
+ <item>fucomi</item>
+ <item>fucomip</item>
+ <item>fucomp</item>
+ <item>fucompp</item>
+ <item>fxam</item>
+ <item>fxch</item>
+ <item>fxtract</item>
+ <item>fyl2x</item>
+ <item>fyl2xp1</item>
+ <item>global</item>
+ <item>globl</item>
+ <item>hlt</item>
+ <item>ibts</item>
+ <item>icebp</item>
+ <item>idiv</item>
+ <item>idivb</item>
+ <item>idivw</item>
+ <item>idivl</item>
+ <item>idivq</item>
+ <item>imul</item>
+ <item>imulb</item>
+ <item>imulw</item>
+ <item>imull</item>
+ <item>imulq</item>
+ <item>in</item>
+ <item>inc</item>
+ <item>incl</item>
+ <item>incq</item>
+ <item>incbin</item>
+ <item>insb</item>
+ <item>insd</item>
+ <item>insw</item>
+ <item>int</item>
+ <item>int01</item>
+ <item>int1</item>
+ <item>int03</item>
+ <item>int3</item>
+ <item>into</item>
+ <item>invd</item>
+ <item>invpcid</item>
+ <item>invlpg</item>
+ <item>invlpga</item>
+ <item>iret</item>
+ <item>iretd</item>
+ <item>iretq</item>
+ <item>iretw</item>
+ <item>jcxz</item>
+ <item>jecxz</item>
+ <item>jrcxz</item>
+ <item>lahf</item>
+ <item>lar</item>
+ <item>lds</item>
+ <item>leal</item>
+ <item>leaq</item>
+ <item>leave</item>
+ <item>les</item>
+ <item>lfence</item>
+ <item>lfs</item>
+ <item>lgdt</item>
+ <item>lgs</item>
+ <item>lidt</item>
+ <item>lldt</item>
+ <item>lmsw</item>
+ <item>loadall</item>
+ <item>loadall286</item>
+ <item>lodsb</item>
+ <item>lodsd</item>
+ <item>lodsq</item>
+ <item>lodsw</item>
+ <item>loop</item>
+ <item>loope</item>
+ <item>loopne</item>
+ <item>loopnz</item>
+ <item>loopz</item>
+ <item>lsl</item>
+ <item>lss</item>
+ <item>ltr</item>
+ <item>mfence</item>
+ <item>monitor</item>
+ <item>movb</item>
+ <item>movw</item>
+ <item>movl</item>
+ <item>movq</item>
+ <item>movsb</item>
+ <item>movsd</item>
+ <item>movsq</item>
+ <item>movsw</item>
+ <item>movsx</item>
+ <item>movsxd</item>
+ <item>movzx</item>
+ <item>movsbw</item>
+ <item>movsxb</item>
+ <item>movsbl</item>
+ <item>movsbq</item>
+ <item>movswl</item>
+ <item>movsxw</item>
+ <item>movswq</item>
+ <item>movslq</item>
+ <item>movsxl</item>
+ <item>movzbw</item>
+ <item>movzxb</item>
+ <item>movzbl</item>
+ <item>movzbq</item>
+ <item>movzwl</item>
+ <item>movzxw</item>
+ <item>movzwq</item>
+ <item>mul</item>
+ <item>mulb</item>
+ <item>mulw</item>
+ <item>mull</item>
+ <item>mulq</item>
+ <item>mwait</item>
+ <item>neg</item>
+ <item>nop</item>
+ <item>not</item>
+ <item>or</item>
+ <item>out</item>
+ <item>outsb</item>
+ <item>outsd</item>
+ <item>outsw</item>
+ <item>packssdw</item>
+ <item>packsswb</item>
+ <item>packuswb</item>
+ <item>paddb</item>
+ <item>paddd</item>
+ <item>paddsb</item>
+ <item>paddsiw</item>
+ <item>paddsw</item>
+ <item>paddusb</item>
+ <item>paddusw</item>
+ <item>paddw</item>
+ <item>pand</item>
+ <item>pandn</item>
+ <item>pause</item>
+ <item>paveb</item>
+ <item>pavgusb</item>
+ <item>pcmpeqb</item>
+ <item>pcmpeqd</item>
+ <item>pcmpeqw</item>
+ <item>pcmpgtb</item>
+ <item>pcmpgtd</item>
+ <item>pcmpgtw</item>
+ <item>pdistib</item>
+ <item>pf2id</item>
+ <item>pfacc</item>
+ <item>pfadd</item>
+ <item>pfcmpeq</item>
+ <item>pfcmpge</item>
+ <item>pfcmpgt</item>
+ <item>pfmax</item>
+ <item>pfmin</item>
+ <item>pfmul</item>
+ <item>pfrcp</item>
+ <item>pfrcpit1</item>
+ <item>pfrcpit2</item>
+ <item>pfrsqit1</item>
+ <item>pfrsqrt</item>
+ <item>pfsub</item>
+ <item>pfsubr</item>
+ <item>pi2fd</item>
+ <item>pmachriw</item>
+ <item>pmaddwd</item>
+ <item>pmagw</item>
+ <item>pmulhriw</item>
+ <item>pmulhrwa</item>
+ <item>pmulhrwc</item>
+ <item>pmulhw</item>
+ <item>pmullw</item>
+ <item>pmvgezb</item>
+ <item>pmvlzb</item>
+ <item>pmvnzb</item>
+ <item>pmvzb</item>
+ <item>pop</item>
+ <item>popl</item>
+ <item>popq</item>
+ <item>popa</item>
+ <item>popad</item>
+ <item>popaw</item>
+ <item>popf</item>
+ <item>popfd</item>
+ <item>popfq</item>
+ <item>popfw</item>
+ <item>por</item>
+ <item>prefetch</item>
+ <item>prefetchw</item>
+ <item>pslld</item>
+ <item>psllq</item>
+ <item>psllw</item>
+ <item>psrad</item>
+ <item>psraw</item>
+ <item>psrld</item>
+ <item>psrlq</item>
+ <item>psrlw</item>
+ <item>psubb</item>
+ <item>psubd</item>
+ <item>psubsb</item>
+ <item>psubsiw</item>
+ <item>psubsw</item>
+ <item>psubusb</item>
+ <item>psubusw</item>
+ <item>psubw</item>
+ <item>punpckhbw</item>
+ <item>punpckhdq</item>
+ <item>punpckhwd</item>
+ <item>punpcklbw</item>
+ <item>punpckldq</item>
+ <item>punpcklwd</item>
+ <item>push</item>
+ <item>pusha</item>
+ <item>pushl</item>
+ <item>pushq</item>
+ <item>pushad</item>
+ <item>pushaw</item>
+ <item>pushf</item>
+ <item>pushfd</item>
+ <item>pushfq</item>
+ <item>pushfw</item>
+ <item>pxor</item>
+ <item>rcl</item>
+ <item>rcr</item>
+ <item>rdshr</item>
+ <item>rdmsr</item>
+ <item>rdpmc</item>
+ <item>rdtsc</item>
+ <item>rdtscp</item>
+ <item>ret</item>
+ <item>retf</item>
+ <item>retn</item>
+ <item>retq</item>
+ <item>rol</item>
+ <item>ror</item>
+ <item>rdm</item>
+ <item>rsdc</item>
+ <item>rsldt</item>
+ <item>rsm</item>
+ <item>rsts</item>
+ <item>sahf</item>
+ <item>sal</item>
+ <item>sall</item>
+ <item>salq</item>
+ <item>salc</item>
+ <item>sar</item>
+ <item>sarl</item>
+ <item>sarq</item>
+ <item>sbb</item>
+ <item>scasb</item>
+ <item>scasd</item>
+ <item>scasq</item>
+ <item>scasw</item>
+ <item>sfence</item>
+ <item>sgdt</item>
+ <item>shl</item>
+ <item>shll</item>
+ <item>shllq</item>
+ <item>shld</item>
+ <item>shr</item>
+ <item>shrd</item>
+ <item>sidt</item>
+ <item>sldt</item>
+ <item>skinit</item>
+ <item>smi</item>
+ <item>smint</item>
+ <item>smintold</item>
+ <item>smsw</item>
+ <item>stc</item>
+ <item>std</item>
+ <item>sti</item>
+ <item>stosb</item>
+ <item>stosd</item>
+ <item>stosq</item>
+ <item>stosw</item>
+ <item>str</item>
+ <item>sub</item>
+ <item>subw</item>
+ <item>subl</item>
+ <item>subq</item>
+ <item>svdc</item>
+ <item>svldt</item>
+ <item>svts</item>
+ <item>swapgs</item>
+ <item>syscall</item>
+ <item>sysenter</item>
+ <item>sysexit</item>
+ <item>sysret</item>
+ <item>test</item>
+ <item>testl</item>
+ <item>testq</item>
+ <item>ud0</item>
+ <item>ud1</item>
+ <item>ud2b</item>
+ <item>ud2</item>
+ <item>ud2a</item>
+ <item>umov</item>
+ <item>verr</item>
+ <item>verw</item>
+ <item>fwait</item>
+ <item>wbinvd</item>
+ <item>wrshr</item>
+ <item>wrmsr</item>
+ <item>xadd</item>
+ <item>xbts</item>
+ <item>xchg</item>
+ <item>xlatb</item>
+ <item>xlat</item>
+ <item>xor</item>
+ <item>xorl</item>
+ <item>xorq</item>
+ <item>cmove</item>
+ <item>cmovz</item>
+ <item>cmovne</item>
+ <item>cmovnz</item>
+ <item>cmova</item>
+ <item>cmovnbe</item>
+ <item>cmovae</item>
+ <item>cmovnb</item>
+ <item>cmovb</item>
+ <item>cmovnae</item>
+ <item>cmovbe</item>
+ <item>cmovna</item>
+ <item>cmovg</item>
+ <item>cmovnle</item>
+ <item>cmovge</item>
+ <item>cmovnl</item>
+ <item>cmovl</item>
+ <item>cmovnge</item>
+ <item>cmovle</item>
+ <item>cmovng</item>
+ <item>cmovc</item>
+ <item>cmovnc</item>
+ <item>cmovo</item>
+ <item>cmovno</item>
+ <item>cmovs</item>
+ <item>cmovns</item>
+ <item>cmovp</item>
+ <item>cmovpe</item>
+ <item>cmovnp</item>
+ <item>cmovpo</item>
+ <item>sete</item>
+ <item>setz</item>
+ <item>setne</item>
+ <item>setnz</item>
+ <item>seta</item>
+ <item>setnbe</item>
+ <item>setae</item>
+ <item>setnb</item>
+ <item>setnc</item>
+ <item>setb</item>
+ <item>setnae</item>
+ <item>setcset</item>
+ <item>setbe</item>
+ <item>setna</item>
+ <item>setg</item>
+ <item>setnle</item>
+ <item>setge</item>
+ <item>setnl</item>
+ <item>setl</item>
+ <item>setnge</item>
+ <item>setle</item>
+ <item>setng</item>
+ <item>sets</item>
+ <item>setns</item>
+ <item>seto</item>
+ <item>setno</item>
+ <item>setpe</item>
+ <item>setp</item>
+ <item>setpo</item>
+ <item>setnp</item>
+ <item>addps</item>
+ <item>addss</item>
+ <item>andnps</item>
+ <item>andps</item>
+ <item>cmpeqps</item>
+ <item>cmpeqss</item>
+ <item>cmpleps</item>
+ <item>cmpless</item>
+ <item>cmpltps</item>
+ <item>cmpltss</item>
+ <item>cmpneqps</item>
+ <item>cmpneqss</item>
+ <item>cmpnleps</item>
+ <item>cmpnless</item>
+ <item>cmpnltps</item>
+ <item>cmpnltss</item>
+ <item>cmpordps</item>
+ <item>cmpordss</item>
+ <item>cmpunordps</item>
+ <item>cmpunordss</item>
+ <item>cmpps</item>
+ <item>cmpss</item>
+ <item>comiss</item>
+ <item>cvtpi2ps</item>
+ <item>cvtps2pi</item>
+ <item>cvtsi2ss</item>
+ <item>cvtss2si</item>
+ <item>cvttps2pi</item>
+ <item>cvttss2si</item>
+ <item>divps</item>
+ <item>divss</item>
+ <item>ldmxcsr</item>
+ <item>maxps</item>
+ <item>maxss</item>
+ <item>minps</item>
+ <item>minss</item>
+ <item>movaps</item>
+ <item>movhps</item>
+ <item>movlhps</item>
+ <item>movlps</item>
+ <item>movhlps</item>
+ <item>movmskps</item>
+ <item>movntps</item>
+ <item>movss</item>
+ <item>movups</item>
+ <item>mulps</item>
+ <item>mulss</item>
+ <item>orps</item>
+ <item>rcpps</item>
+ <item>rcpss</item>
+ <item>rsqrtps</item>
+ <item>rsqrtss</item>
+ <item>shufps</item>
+ <item>sqrtps</item>
+ <item>sqrtss</item>
+ <item>stmxcsr</item>
+ <item>subps</item>
+ <item>subss</item>
+ <item>ucomiss</item>
+ <item>unpckhps</item>
+ <item>unpcklps</item>
+ <item>xorps</item>
+ <item>fxrstor</item>
+ <item>fxrstor64</item>
+ <item>fxsave</item>
+ <item>fxsave64</item>
+ <item>xgetbv</item>
+ <item>xsetbv</item>
+ <item>xsave</item>
+ <item>xsave64</item>
+ <item>xsaveopt</item>
+ <item>xsaveopt64</item>
+ <item>xrstor</item>
+ <item>xrstor64</item>
+ <item>prefetchnta</item>
+ <item>prefetcht0</item>
+ <item>prefetcht1</item>
+ <item>prefetcht2</item>
+ <item>maskmovq</item>
+ <item>movntq</item>
+ <item>pavgb</item>
+ <item>pavgw</item>
+ <item>pextrw</item>
+ <item>pinsrw</item>
+ <item>pmaxsw</item>
+ <item>pmaxub</item>
+ <item>pminsw</item>
+ <item>pminub</item>
+ <item>pmovmskb</item>
+ <item>pmulhuw</item>
+ <item>psadbw</item>
+ <item>pshufw</item>
+ <item>pf2iw</item>
+ <item>pfnacc</item>
+ <item>pfpnacc</item>
+ <item>pi2fw</item>
+ <item>pswapd</item>
+ <item>maskmovdqu</item>
+ <item>clflush</item>
+ <item>movntdq</item>
+ <item>movnti</item>
+ <item>movntpd</item>
+ <item>movdqa</item>
+ <item>movdqu</item>
+ <item>movdq2q</item>
+ <item>movq2dq</item>
+ <item>paddq</item>
+ <item>pmuludq</item>
+ <item>pshufd</item>
+ <item>pshufhw</item>
+ <item>pshuflw</item>
+ <item>pslldq</item>
+ <item>psrldq</item>
+ <item>psubq</item>
+ <item>punpckhqdq</item>
+ <item>punpcklqdq</item>
+ <item>addpd</item>
+ <item>addsd</item>
+ <item>andnpd</item>
+ <item>andpd</item>
+ <item>cmpeqpd</item>
+ <item>cmpeqsd</item>
+ <item>cmplepd</item>
+ <item>cmplesd</item>
+ <item>cmpltpd</item>
+ <item>cmpltsd</item>
+ <item>cmpneqpd</item>
+ <item>cmpneqsd</item>
+ <item>cmpnlepd</item>
+ <item>cmpnlesd</item>
+ <item>cmpnltpd</item>
+ <item>cmpnltsd</item>
+ <item>cmpordpd</item>
+ <item>cmpordsd</item>
+ <item>cmpunordpd</item>
+ <item>cmpunordsd</item>
+ <item>cmppd</item>
+ <item>comisd</item>
+ <item>cvtdq2pd</item>
+ <item>cvtdq2ps</item>
+ <item>cvtpd2dq</item>
+ <item>cvtpd2pi</item>
+ <item>cvtpd2ps</item>
+ <item>cvtpi2pd</item>
+ <item>cvtps2dq</item>
+ <item>cvtps2pd</item>
+ <item>cvtsd2si</item>
+ <item>cvtsd2ss</item>
+ <item>cvtsi2sd</item>
+ <item>cvtss2sd</item>
+ <item>cvttpd2pi</item>
+ <item>cvttpd2dq</item>
+ <item>cvttps2dq</item>
+ <item>cvttsd2si</item>
+ <item>divpd</item>
+ <item>divsd</item>
+ <item>maxpd</item>
+ <item>maxsd</item>
+ <item>minpd</item>
+ <item>minsd</item>
+ <item>movapd</item>
+ <item>movhpd</item>
+ <item>movlpd</item>
+ <item>movmskpd</item>
+ <item>movupd</item>
+ <item>mulpd</item>
+ <item>mulsd</item>
+ <item>orpd</item>
+ <item>shufpd</item>
+ <item>sqrtpd</item>
+ <item>sqrtsd</item>
+ <item>subpd</item>
+ <item>subsd</item>
+ <item>ucomisd</item>
+ <item>unpckhpd</item>
+ <item>unpcklpd</item>
+ <item>xorpd</item>
+ <item>addsubpd</item>
+ <item>addsubps</item>
+ <item>haddpd</item>
+ <item>haddps</item>
+ <item>hsubpd</item>
+ <item>hsubps</item>
+ <item>lddqu</item>
+ <item>movddup</item>
+ <item>movshdup</item>
+ <item>movsldup</item>
+ <item>clgi</item>
+ <item>stgi</item>
+ <item>vmcall</item>
+ <item>vmclear</item>
+ <item>vmfunc</item>
+ <item>vmlaunch</item>
+ <item>vmload</item>
+ <item>vmmcall</item>
+ <item>vmptrld</item>
+ <item>vmptrst</item>
+ <item>vmread</item>
+ <item>vmresume</item>
+ <item>vmrun</item>
+ <item>vmsave</item>
+ <item>vmwrite</item>
+ <item>vmxoff</item>
+ <item>vmxon</item>
+ <item>invept</item>
+ <item>invvpid</item>
+ <item>pabsb</item>
+ <item>pabsw</item>
+ <item>pabsd</item>
+ <item>palignr</item>
+ <item>phaddw</item>
+ <item>phaddd</item>
+ <item>phaddsw</item>
+ <item>phsubw</item>
+ <item>phsubd</item>
+ <item>phsubsw</item>
+ <item>pmaddubsw</item>
+ <item>pmulhrsw</item>
+ <item>pshufb</item>
+ <item>psignb</item>
+ <item>psignw</item>
+ <item>psignd</item>
+ <item>extrq</item>
+ <item>insertq</item>
+ <item>movntsd</item>
+ <item>movntss</item>
+ <item>lzcnt</item>
+ <item>blendpd</item>
+ <item>blendps</item>
+ <item>blendvpd</item>
+ <item>blendvps</item>
+ <item>dppd</item>
+ <item>dpps</item>
+ <item>extractps</item>
+ <item>insertps</item>
+ <item>movntdqa</item>
+ <item>mpsadbw</item>
+ <item>packusdw</item>
+ <item>pblendvb</item>
+ <item>pblendw</item>
+ <item>pcmpeqq</item>
+ <item>pextrb</item>
+ <item>pextrd</item>
+ <item>pextrq</item>
+ <item>phminposuw</item>
+ <item>pinsrb</item>
+ <item>pinsrd</item>
+ <item>pinsrq</item>
+ <item>pmaxsb</item>
+ <item>pmaxsd</item>
+ <item>pmaxud</item>
+ <item>pmaxuw</item>
+ <item>pminsb</item>
+ <item>pminsd</item>
+ <item>pminud</item>
+ <item>pminuw</item>
+ <item>pmovsxbw</item>
+ <item>pmovsxbd</item>
+ <item>pmovsxbq</item>
+ <item>pmovsxwd</item>
+ <item>pmovsxwq</item>
+ <item>pmovsxdq</item>
+ <item>pmovzxbw</item>
+ <item>pmovzxbd</item>
+ <item>pmovzxbq</item>
+ <item>pmovzxwd</item>
+ <item>pmovzxwq</item>
+ <item>pmovzxdq</item>
+ <item>pmuldq</item>
+ <item>pmulld</item>
+ <item>ptest</item>
+ <item>roundpd</item>
+ <item>roundps</item>
+ <item>roundsd</item>
+ <item>roundss</item>
+ <item>crc32</item>
+ <item>pcmpestri</item>
+ <item>pcmpestrm</item>
+ <item>pcmpistri</item>
+ <item>pcmpistrm</item>
+ <item>pcmpgtq</item>
+ <item>popcnt</item>
+ <item>getsec</item>
+ <item>pfrcpv</item>
+ <item>pfrsqrtv</item>
+ <item>movbe</item>
+ <item>aesenc</item>
+ <item>aesenclast</item>
+ <item>aesdec</item>
+ <item>aesdeclast</item>
+ <item>aesimc</item>
+ <item>aeskeygenassist</item>
+ <item>vaesenc</item>
+ <item>vaesenclast</item>
+ <item>vaesdec</item>
+ <item>vaesdeclast</item>
+ <item>vaesimc</item>
+ <item>vaeskeygenassist</item>
+ <item>vaddpd</item>
+ <item>vaddps</item>
+ <item>vaddsd</item>
+ <item>vaddss</item>
+ <item>vaddsubpd</item>
+ <item>vaddsubps</item>
+ <item>vandpd</item>
+ <item>vandps</item>
+ <item>vandnpd</item>
+ <item>vandnps</item>
+ <item>vblendpd</item>
+ <item>vblendps</item>
+ <item>vblendvpd</item>
+ <item>vblendvps</item>
+ <item>vbroadcastss</item>
+ <item>vbroadcastsd</item>
+ <item>vbroadcastf128</item>
+ <item>vcmpeq_ospd</item>
+ <item>vcmpeqpd</item>
+ <item>vcmplt_ospd</item>
+ <item>vcmpltpd</item>
+ <item>vcmple_ospd</item>
+ <item>vcmplepd</item>
+ <item>vcmpunord_qpd</item>
+ <item>vcmpunordpd</item>
+ <item>vcmpneq_uqpd</item>
+ <item>vcmpneqpd</item>
+ <item>vcmpnlt_uspd</item>
+ <item>vcmpnltpd</item>
+ <item>vcmpnle_uspd</item>
+ <item>vcmpnlepd</item>
+ <item>vcmpord_qpd</item>
+ <item>vcmpordpd</item>
+ <item>vcmpeq_uqpd</item>
+ <item>vcmpnge_uspd</item>
+ <item>vcmpngepd</item>
+ <item>vcmpngt_uspd</item>
+ <item>vcmpngtpd</item>
+ <item>vcmpfalse_oqpd</item>
+ <item>vcmpfalsepd</item>
+ <item>vcmpneq_oqpd</item>
+ <item>vcmpge_ospd</item>
+ <item>vcmpgepd</item>
+ <item>vcmpgt_ospd</item>
+ <item>vcmpgtpd</item>
+ <item>vcmptrue_uqpd</item>
+ <item>vcmptruepd</item>
+ <item>vcmplt_oqpd</item>
+ <item>vcmple_oqpd</item>
+ <item>vcmpunord_spd</item>
+ <item>vcmpneq_uspd</item>
+ <item>vcmpnlt_uqpd</item>
+ <item>vcmpnle_uqpd</item>
+ <item>vcmpord_spd</item>
+ <item>vcmpeq_uspd</item>
+ <item>vcmpnge_uqpd</item>
+ <item>vcmpngt_uqpd</item>
+ <item>vcmpfalse_ospd</item>
+ <item>vcmpneq_ospd</item>
+ <item>vcmpge_oqpd</item>
+ <item>vcmpgt_oqpd</item>
+ <item>vcmptrue_uspd</item>
+ <item>vcmppd</item>
+ <item>vcmpeq_osps</item>
+ <item>vcmpeqps</item>
+ <item>vcmplt_osps</item>
+ <item>vcmpltps</item>
+ <item>vcmple_osps</item>
+ <item>vcmpleps</item>
+ <item>vcmpunord_qps</item>
+ <item>vcmpunordps</item>
+ <item>vcmpneq_uqps</item>
+ <item>vcmpneqps</item>
+ <item>vcmpnlt_usps</item>
+ <item>vcmpnltps</item>
+ <item>vcmpnle_usps</item>
+ <item>vcmpnleps</item>
+ <item>vcmpord_qps</item>
+ <item>vcmpordps</item>
+ <item>vcmpeq_uqps</item>
+ <item>vcmpnge_usps</item>
+ <item>vcmpngeps</item>
+ <item>vcmpngt_usps</item>
+ <item>vcmpngtps</item>
+ <item>vcmpfalse_oqps</item>
+ <item>vcmpfalseps</item>
+ <item>vcmpneq_oqps</item>
+ <item>vcmpge_osps</item>
+ <item>vcmpgeps</item>
+ <item>vcmpgt_osps</item>
+ <item>vcmpgtps</item>
+ <item>vcmptrue_uqps</item>
+ <item>vcmptrueps</item>
+ <item>vcmplt_oqps</item>
+ <item>vcmple_oqps</item>
+ <item>vcmpunord_sps</item>
+ <item>vcmpneq_usps</item>
+ <item>vcmpnlt_uqps</item>
+ <item>vcmpnle_uqps</item>
+ <item>vcmpord_sps</item>
+ <item>vcmpeq_usps</item>
+ <item>vcmpnge_uqps</item>
+ <item>vcmpngt_uqps</item>
+ <item>vcmpfalse_osps</item>
+ <item>vcmpneq_osps</item>
+ <item>vcmpge_oqps</item>
+ <item>vcmpgt_oqps</item>
+ <item>vcmptrue_usps</item>
+ <item>vcmpps</item>
+ <item>vcmpeq_ossd</item>
+ <item>vcmpeqsd</item>
+ <item>vcmplt_ossd</item>
+ <item>vcmpltsd</item>
+ <item>vcmple_ossd</item>
+ <item>vcmplesd</item>
+ <item>vcmpunord_qsd</item>
+ <item>vcmpunordsd</item>
+ <item>vcmpneq_uqsd</item>
+ <item>vcmpneqsd</item>
+ <item>vcmpnlt_ussd</item>
+ <item>vcmpnltsd</item>
+ <item>vcmpnle_ussd</item>
+ <item>vcmpnlesd</item>
+ <item>vcmpord_qsd</item>
+ <item>vcmpordsd</item>
+ <item>vcmpeq_uqsd</item>
+ <item>vcmpnge_ussd</item>
+ <item>vcmpngesd</item>
+ <item>vcmpngt_ussd</item>
+ <item>vcmpngtsd</item>
+ <item>vcmpfalse_oqsd</item>
+ <item>vcmpfalsesd</item>
+ <item>vcmpneq_oqsd</item>
+ <item>vcmpge_ossd</item>
+ <item>vcmpgesd</item>
+ <item>vcmpgt_ossd</item>
+ <item>vcmpgtsd</item>
+ <item>vcmptrue_uqsd</item>
+ <item>vcmptruesd</item>
+ <item>vcmplt_oqsd</item>
+ <item>vcmple_oqsd</item>
+ <item>vcmpunord_ssd</item>
+ <item>vcmpneq_ussd</item>
+ <item>vcmpnlt_uqsd</item>
+ <item>vcmpnle_uqsd</item>
+ <item>vcmpord_ssd</item>
+ <item>vcmpeq_ussd</item>
+ <item>vcmpnge_uqsd</item>
+ <item>vcmpngt_uqsd</item>
+ <item>vcmpfalse_ossd</item>
+ <item>vcmpneq_ossd</item>
+ <item>vcmpge_oqsd</item>
+ <item>vcmpgt_oqsd</item>
+ <item>vcmptrue_ussd</item>
+ <item>vcmpsd</item>
+ <item>vcmpeq_osss</item>
+ <item>vcmpeqss</item>
+ <item>vcmplt_osss</item>
+ <item>vcmpltss</item>
+ <item>vcmple_osss</item>
+ <item>vcmpless</item>
+ <item>vcmpunord_qss</item>
+ <item>vcmpunordss</item>
+ <item>vcmpneq_uqss</item>
+ <item>vcmpneqss</item>
+ <item>vcmpnlt_usss</item>
+ <item>vcmpnltss</item>
+ <item>vcmpnle_usss</item>
+ <item>vcmpnless</item>
+ <item>vcmpord_qss</item>
+ <item>vcmpordss</item>
+ <item>vcmpeq_uqss</item>
+ <item>vcmpnge_usss</item>
+ <item>vcmpngess</item>
+ <item>vcmpngt_usss</item>
+ <item>vcmpngtss</item>
+ <item>vcmpfalse_oqss</item>
+ <item>vcmpfalsess</item>
+ <item>vcmpneq_oqss</item>
+ <item>vcmpge_osss</item>
+ <item>vcmpgess</item>
+ <item>vcmpgt_osss</item>
+ <item>vcmpgtss</item>
+ <item>vcmptrue_uqss</item>
+ <item>vcmptruess</item>
+ <item>vcmplt_oqss</item>
+ <item>vcmple_oqss</item>
+ <item>vcmpunord_sss</item>
+ <item>vcmpneq_usss</item>
+ <item>vcmpnlt_uqss</item>
+ <item>vcmpnle_uqss</item>
+ <item>vcmpord_sss</item>
+ <item>vcmpeq_usss</item>
+ <item>vcmpnge_uqss</item>
+ <item>vcmpngt_uqss</item>
+ <item>vcmpfalse_osss</item>
+ <item>vcmpneq_osss</item>
+ <item>vcmpge_oqss</item>
+ <item>vcmpgt_oqss</item>
+ <item>vcmptrue_usss</item>
+ <item>vcmpss</item>
+ <item>vcomisd</item>
+ <item>vcomiss</item>
+ <item>vcvtdq2pd</item>
+ <item>vcvtdq2ps</item>
+ <item>vcvtpd2dq</item>
+ <item>vcvtpd2ps</item>
+ <item>vcvtps2dq</item>
+ <item>vcvtps2pd</item>
+ <item>vcvtsd2si</item>
+ <item>vcvtsd2ss</item>
+ <item>vcvtsi2sd</item>
+ <item>vcvtsi2ss</item>
+ <item>vcvtss2sd</item>
+ <item>vcvtss2si</item>
+ <item>vcvttpd2dq</item>
+ <item>vcvttps2dq</item>
+ <item>vcvttsd2si</item>
+ <item>vcvttss2si</item>
+ <item>vdivpd</item>
+ <item>vdivps</item>
+ <item>vdivsd</item>
+ <item>vdivss</item>
+ <item>vdppd</item>
+ <item>vdpps</item>
+ <item>vextractf128</item>
+ <item>vextractps</item>
+ <item>vhaddpd</item>
+ <item>vhaddps</item>
+ <item>vhsubpd</item>
+ <item>vhsubps</item>
+ <item>vinsertf128</item>
+ <item>vinsertps</item>
+ <item>vlddqu</item>
+ <item>vldqqu</item>
+ <item>vldmxcsr</item>
+ <item>vmaskmovdqu</item>
+ <item>vmaskmovps</item>
+ <item>vmaskmovpd</item>
+ <item>vmaxpd</item>
+ <item>vmaxps</item>
+ <item>vmaxsd</item>
+ <item>vmaxss</item>
+ <item>vminpd</item>
+ <item>vminps</item>
+ <item>vminsd</item>
+ <item>vminss</item>
+ <item>vmovapd</item>
+ <item>vmovaps</item>
+ <item>vmovd</item>
+ <item>vmovq</item>
+ <item>vmovddup</item>
+ <item>vmovdqa</item>
+ <item>vmovqqa</item>
+ <item>vmovdqu</item>
+ <item>vmovqqu</item>
+ <item>vmovhlps</item>
+ <item>vmovhpd</item>
+ <item>vmovhps</item>
+ <item>vmovlhps</item>
+ <item>vmovlpd</item>
+ <item>vmovlps</item>
+ <item>vmovmskpd</item>
+ <item>vmovmskps</item>
+ <item>vmovntdq</item>
+ <item>vmovntqq</item>
+ <item>vmovntdqa</item>
+ <item>vmovntpd</item>
+ <item>vmovntps</item>
+ <item>vmovsd</item>
+ <item>vmovshdup</item>
+ <item>vmovsldup</item>
+ <item>vmovss</item>
+ <item>vmovupd</item>
+ <item>vmovups</item>
+ <item>vmpsadbw</item>
+ <item>vmulpd</item>
+ <item>vmulps</item>
+ <item>vmulsd</item>
+ <item>vmulss</item>
+ <item>vorpd</item>
+ <item>vorps</item>
+ <item>vpabsb</item>
+ <item>vpabsw</item>
+ <item>vpabsd</item>
+ <item>vpacksswb</item>
+ <item>vpackssdw</item>
+ <item>vpackuswb</item>
+ <item>vpackusdw</item>
+ <item>vpaddb</item>
+ <item>vpaddw</item>
+ <item>vpaddd</item>
+ <item>vpaddq</item>
+ <item>vpaddsb</item>
+ <item>vpaddsw</item>
+ <item>vpaddusb</item>
+ <item>vpaddusw</item>
+ <item>vpalignr</item>
+ <item>vpand</item>
+ <item>vpandn</item>
+ <item>vpavgb</item>
+ <item>vpavgw</item>
+ <item>vpblendvb</item>
+ <item>vpblendw</item>
+ <item>vpcmpestri</item>
+ <item>vpcmpestrm</item>
+ <item>vpcmpistri</item>
+ <item>vpcmpistrm</item>
+ <item>vpcmpeqb</item>
+ <item>vpcmpeqw</item>
+ <item>vpcmpeqd</item>
+ <item>vpcmpeqq</item>
+ <item>vpcmpgtb</item>
+ <item>vpcmpgtw</item>
+ <item>vpcmpgtd</item>
+ <item>vpcmpgtq</item>
+ <item>vpermilpd</item>
+ <item>vpermilps</item>
+ <item>vperm2f128</item>
+ <item>vpextrb</item>
+ <item>vpextrw</item>
+ <item>vpextrd</item>
+ <item>vpextrq</item>
+ <item>vphaddw</item>
+ <item>vphaddd</item>
+ <item>vphaddsw</item>
+ <item>vphminposuw</item>
+ <item>vphsubw</item>
+ <item>vphsubd</item>
+ <item>vphsubsw</item>
+ <item>vpinsrb</item>
+ <item>vpinsrw</item>
+ <item>vpinsrd</item>
+ <item>vpinsrq</item>
+ <item>vpmaddwd</item>
+ <item>vpmaddubsw</item>
+ <item>vpmaxsb</item>
+ <item>vpmaxsw</item>
+ <item>vpmaxsd</item>
+ <item>vpmaxub</item>
+ <item>vpmaxuw</item>
+ <item>vpmaxud</item>
+ <item>vpminsb</item>
+ <item>vpminsw</item>
+ <item>vpminsd</item>
+ <item>vpminub</item>
+ <item>vpminuw</item>
+ <item>vpminud</item>
+ <item>vpmovmskb</item>
+ <item>vpmovsxbw</item>
+ <item>vpmovsxbd</item>
+ <item>vpmovsxbq</item>
+ <item>vpmovsxwd</item>
+ <item>vpmovsxwq</item>
+ <item>vpmovsxdq</item>
+ <item>vpmovzxbw</item>
+ <item>vpmovzxbd</item>
+ <item>vpmovzxbq</item>
+ <item>vpmovzxwd</item>
+ <item>vpmovzxwq</item>
+ <item>vpmovzxdq</item>
+ <item>vpmulhuw</item>
+ <item>vpmulhrsw</item>
+ <item>vpmulhw</item>
+ <item>vpmullw</item>
+ <item>vpmulld</item>
+ <item>vpmuludq</item>
+ <item>vpmuldq</item>
+ <item>vpor</item>
+ <item>vpsadbw</item>
+ <item>vpshufb</item>
+ <item>vpshufd</item>
+ <item>vpshufhw</item>
+ <item>vpshuflw</item>
+ <item>vpsignb</item>
+ <item>vpsignw</item>
+ <item>vpsignd</item>
+ <item>vpslldq</item>
+ <item>vpsrldq</item>
+ <item>vpsllw</item>
+ <item>vpslld</item>
+ <item>vpsllq</item>
+ <item>vpsraw</item>
+ <item>vpsrad</item>
+ <item>vpsrlw</item>
+ <item>vpsrld</item>
+ <item>vpsrlq</item>
+ <item>vptest</item>
+ <item>vpsubb</item>
+ <item>vpsubw</item>
+ <item>vpsubd</item>
+ <item>vpsubq</item>
+ <item>vpsubsb</item>
+ <item>vpsubsw</item>
+ <item>vpsubusb</item>
+ <item>vpsubusw</item>
+ <item>vpunpckhbw</item>
+ <item>vpunpckhwd</item>
+ <item>vpunpckhdq</item>
+ <item>vpunpckhqdq</item>
+ <item>vpunpcklbw</item>
+ <item>vpunpcklwd</item>
+ <item>vpunpckldq</item>
+ <item>vpunpcklqdq</item>
+ <item>vpxor</item>
+ <item>vrcpps</item>
+ <item>vrcpss</item>
+ <item>vrsqrtps</item>
+ <item>vrsqrtss</item>
+ <item>vroundpd</item>
+ <item>vroundps</item>
+ <item>vroundsd</item>
+ <item>vroundss</item>
+ <item>vshufpd</item>
+ <item>vshufps</item>
+ <item>vsqrtpd</item>
+ <item>vsqrtps</item>
+ <item>vsqrtsd</item>
+ <item>vsqrtss</item>
+ <item>vstmxcsr</item>
+ <item>vsubpd</item>
+ <item>vsubps</item>
+ <item>vsubsd</item>
+ <item>vsubss</item>
+ <item>vtestps</item>
+ <item>vtestpd</item>
+ <item>vucomisd</item>
+ <item>vucomiss</item>
+ <item>vunpckhpd</item>
+ <item>vunpckhps</item>
+ <item>vunpcklpd</item>
+ <item>vunpcklps</item>
+ <item>vxorpd</item>
+ <item>vxorps</item>
+ <item>vzeroall</item>
+ <item>vzeroupper</item>
+ <item>pclmullqlqdq</item>
+ <item>pclmulhqlqdq</item>
+ <item>pclmullqhqdq</item>
+ <item>pclmulhqhqdq</item>
+ <item>pclmulqdq</item>
+ <item>vpclmullqlqdq</item>
+ <item>vpclmulhqlqdq</item>
+ <item>vpclmullqhqdq</item>
+ <item>vpclmulhqhqdq</item>
+ <item>vpclmulqdq</item>
+ <item>vfmadd132ps</item>
+ <item>vfmadd132pd</item>
+ <item>vfmadd312ps</item>
+ <item>vfmadd312pd</item>
+ <item>vfmadd213ps</item>
+ <item>vfmadd213pd</item>
+ <item>vfmadd123ps</item>
+ <item>vfmadd123pd</item>
+ <item>vfmadd231ps</item>
+ <item>vfmadd231pd</item>
+ <item>vfmadd321ps</item>
+ <item>vfmadd321pd</item>
+ <item>vfmaddsub132ps</item>
+ <item>vfmaddsub132pd</item>
+ <item>vfmaddsub312ps</item>
+ <item>vfmaddsub312pd</item>
+ <item>vfmaddsub213ps</item>
+ <item>vfmaddsub213pd</item>
+ <item>vfmaddsub123ps</item>
+ <item>vfmaddsub123pd</item>
+ <item>vfmaddsub231ps</item>
+ <item>vfmaddsub231pd</item>
+ <item>vfmaddsub321ps</item>
+ <item>vfmaddsub321pd</item>
+ <item>vfmsub132ps</item>
+ <item>vfmsub132pd</item>
+ <item>vfmsub312ps</item>
+ <item>vfmsub312pd</item>
+ <item>vfmsub213ps</item>
+ <item>vfmsub213pd</item>
+ <item>vfmsub123ps</item>
+ <item>vfmsub123pd</item>
+ <item>vfmsub231ps</item>
+ <item>vfmsub231pd</item>
+ <item>vfmsub321ps</item>
+ <item>vfmsub321pd</item>
+ <item>vfmsubadd132ps</item>
+ <item>vfmsubadd132pd</item>
+ <item>vfmsubadd312ps</item>
+ <item>vfmsubadd312pd</item>
+ <item>vfmsubadd213ps</item>
+ <item>vfmsubadd213pd</item>
+ <item>vfmsubadd123ps</item>
+ <item>vfmsubadd123pd</item>
+ <item>vfmsubadd231ps</item>
+ <item>vfmsubadd231pd</item>
+ <item>vfmsubadd321ps</item>
+ <item>vfmsubadd321pd</item>
+ <item>vfnmadd132ps</item>
+ <item>vfnmadd132pd</item>
+ <item>vfnmadd312ps</item>
+ <item>vfnmadd312pd</item>
+ <item>vfnmadd213ps</item>
+ <item>vfnmadd213pd</item>
+ <item>vfnmadd123ps</item>
+ <item>vfnmadd123pd</item>
+ <item>vfnmadd231ps</item>
+ <item>vfnmadd231pd</item>
+ <item>vfnmadd321ps</item>
+ <item>vfnmadd321pd</item>
+ <item>vfnmsub132ps</item>
+ <item>vfnmsub132pd</item>
+ <item>vfnmsub312ps</item>
+ <item>vfnmsub312pd</item>
+ <item>vfnmsub213ps</item>
+ <item>vfnmsub213pd</item>
+ <item>vfnmsub123ps</item>
+ <item>vfnmsub123pd</item>
+ <item>vfnmsub231ps</item>
+ <item>vfnmsub231pd</item>
+ <item>vfnmsub321ps</item>
+ <item>vfnmsub321pd</item>
+ <item>vfmadd132ss</item>
+ <item>vfmadd132sd</item>
+ <item>vfmadd312ss</item>
+ <item>vfmadd312sd</item>
+ <item>vfmadd213ss</item>
+ <item>vfmadd213sd</item>
+ <item>vfmadd123ss</item>
+ <item>vfmadd123sd</item>
+ <item>vfmadd231ss</item>
+ <item>vfmadd231sd</item>
+ <item>vfmadd321ss</item>
+ <item>vfmadd321sd</item>
+ <item>vfmsub132ss</item>
+ <item>vfmsub132sd</item>
+ <item>vfmsub312ss</item>
+ <item>vfmsub312sd</item>
+ <item>vfmsub213ss</item>
+ <item>vfmsub213sd</item>
+ <item>vfmsub123ss</item>
+ <item>vfmsub123sd</item>
+ <item>vfmsub231ss</item>
+ <item>vfmsub231sd</item>
+ <item>vfmsub321ss</item>
+ <item>vfmsub321sd</item>
+ <item>vfnmadd132ss</item>
+ <item>vfnmadd132sd</item>
+ <item>vfnmadd312ss</item>
+ <item>vfnmadd312sd</item>
+ <item>vfnmadd213ss</item>
+ <item>vfnmadd213sd</item>
+ <item>vfnmadd123ss</item>
+ <item>vfnmadd123sd</item>
+ <item>vfnmadd231ss</item>
+ <item>vfnmadd231sd</item>
+ <item>vfnmadd321ss</item>
+ <item>vfnmadd321sd</item>
+ <item>vfnmsub132ss</item>
+ <item>vfnmsub132sd</item>
+ <item>vfnmsub312ss</item>
+ <item>vfnmsub312sd</item>
+ <item>vfnmsub213ss</item>
+ <item>vfnmsub213sd</item>
+ <item>vfnmsub123ss</item>
+ <item>vfnmsub123sd</item>
+ <item>vfnmsub231ss</item>
+ <item>vfnmsub231sd</item>
+ <item>vfnmsub321ss</item>
+ <item>vfnmsub321sd</item>
+ <item>rdfsbase</item>
+ <item>rdgsbase</item>
+ <item>rdrand</item>
+ <item>wrfsbase</item>
+ <item>wrgsbase</item>
+ <item>vcvtph2ps</item>
+ <item>vcvtps2ph</item>
+ <item>adcx</item>
+ <item>adox</item>
+ <item>rdseed</item>
+ <item>clac</item>
+ <item>stac</item>
+ <item>xstore</item>
+ <item>xcryptecb</item>
+ <item>xcryptcbc</item>
+ <item>xcryptctr</item>
+ <item>xcryptcfb</item>
+ <item>xcryptofb</item>
+ <item>montmul</item>
+ <item>xsha1</item>
+ <item>xsha256</item>
+ <item>llwpcb</item>
+ <item>slwpcb</item>
+ <item>lwpval</item>
+ <item>lwpins</item>
+ <item>vfmaddpd</item>
+ <item>vfmaddps</item>
+ <item>vfmaddsd</item>
+ <item>vfmaddss</item>
+ <item>vfmaddsubpd</item>
+ <item>vfmaddsubps</item>
+ <item>vfmsubaddpd</item>
+ <item>vfmsubaddps</item>
+ <item>vfmsubpd</item>
+ <item>vfmsubps</item>
+ <item>vfmsubsd</item>
+ <item>vfmsubss</item>
+ <item>vfnmaddpd</item>
+ <item>vfnmaddps</item>
+ <item>vfnmaddsd</item>
+ <item>vfnmaddss</item>
+ <item>vfnmsubpd</item>
+ <item>vfnmsubps</item>
+ <item>vfnmsubsd</item>
+ <item>vfnmsubss</item>
+ <item>vfrczpd</item>
+ <item>vfrczps</item>
+ <item>vfrczsd</item>
+ <item>vfrczss</item>
+ <item>vpcmov</item>
+ <item>vpcomb</item>
+ <item>vpcomd</item>
+ <item>vpcomq</item>
+ <item>vpcomub</item>
+ <item>vpcomud</item>
+ <item>vpcomuq</item>
+ <item>vpcomuw</item>
+ <item>vpcomw</item>
+ <item>vphaddbd</item>
+ <item>vphaddbq</item>
+ <item>vphaddbw</item>
+ <item>vphadddq</item>
+ <item>vphaddubd</item>
+ <item>vphaddubq</item>
+ <item>vphaddubw</item>
+ <item>vphaddudq</item>
+ <item>vphadduwd</item>
+ <item>vphadduwq</item>
+ <item>vphaddwd</item>
+ <item>vphaddwq</item>
+ <item>vphsubbw</item>
+ <item>vphsubdq</item>
+ <item>vphsubwd</item>
+ <item>vpmacsdd</item>
+ <item>vpmacsdqh</item>
+ <item>vpmacsdql</item>
+ <item>vpmacssdd</item>
+ <item>vpmacssdqh</item>
+ <item>vpmacssdql</item>
+ <item>vpmacsswd</item>
+ <item>vpmacssww</item>
+ <item>vpmacswd</item>
+ <item>vpmacsww</item>
+ <item>vpmadcsswd</item>
+ <item>vpmadcswd</item>
+ <item>vpperm</item>
+ <item>vprotb</item>
+ <item>vprotd</item>
+ <item>vprotq</item>
+ <item>vprotw</item>
+ <item>vpshab</item>
+ <item>vpshad</item>
+ <item>vpshaq</item>
+ <item>vpshaw</item>
+ <item>vpshlb</item>
+ <item>vpshld</item>
+ <item>vpshlq</item>
+ <item>vpshlw</item>
+ <item>vbroadcasti128</item>
+ <item>vpblendd</item>
+ <item>vpbroadcastb</item>
+ <item>vpbroadcastw</item>
+ <item>vpbroadcastd</item>
+ <item>vpbroadcastq</item>
+ <item>vpermd</item>
+ <item>vpermpd</item>
+ <item>vpermps</item>
+ <item>vpermq</item>
+ <item>vperm2i128</item>
+ <item>vextracti128</item>
+ <item>vinserti128</item>
+ <item>vpmaskmovd</item>
+ <item>vpmaskmovq</item>
+ <item>vpsllvd</item>
+ <item>vpsllvq</item>
+ <item>vpsravd</item>
+ <item>vpsrlvd</item>
+ <item>vpsrlvq</item>
+ <item>vgatherdpd</item>
+ <item>vgatherqpd</item>
+ <item>vgatherdps</item>
+ <item>vgatherqps</item>
+ <item>vpgatherdd</item>
+ <item>vpgatherqd</item>
+ <item>vpgatherdq</item>
+ <item>vpgatherqq</item>
+ <item>xabort</item>
+ <item>xbegin</item>
+ <item>xend</item>
+ <item>xtest</item>
+ <item>andn</item>
+ <item>bextr</item>
+ <item>blci</item>
+ <item>blcic</item>
+ <item>blsi</item>
+ <item>blsic</item>
+ <item>blcfill</item>
+ <item>blsfill</item>
+ <item>blcmsk</item>
+ <item>blsmsk</item>
+ <item>blsr</item>
+ <item>blcs</item>
+ <item>bzhi</item>
+ <item>mulx</item>
+ <item>pdep</item>
+ <item>pext</item>
+ <item>rorx</item>
+ <item>sarx</item>
+ <item>shlx</item>
+ <item>shrx</item>
+ <item>tzcnt</item>
+ <item>tzmsk</item>
+ <item>t1mskc</item>
+ <item>valignd</item>
+ <item>valignq</item>
+ <item>vblendmpd</item>
+ <item>vblendmps</item>
+ <item>vbroadcastf32x4</item>
+ <item>vbroadcastf64x4</item>
+ <item>vbroadcasti32x4</item>
+ <item>vbroadcasti64x4</item>
+ <item>vcompresspd</item>
+ <item>vcompressps</item>
+ <item>vcvtpd2udq</item>
+ <item>vcvtps2udq</item>
+ <item>vcvtsd2usi</item>
+ <item>vcvtss2usi</item>
+ <item>vcvttpd2udq</item>
+ <item>vcvttps2udq</item>
+ <item>vcvttsd2usi</item>
+ <item>vcvttss2usi</item>
+ <item>vcvtudq2pd</item>
+ <item>vcvtudq2ps</item>
+ <item>vcvtusi2sd</item>
+ <item>vcvtusi2ss</item>
+ <item>vexpandpd</item>
+ <item>vexpandps</item>
+ <item>vextractf32x4</item>
+ <item>vextractf64x4</item>
+ <item>vextracti32x4</item>
+ <item>vextracti64x4</item>
+ <item>vfixupimmpd</item>
+ <item>vfixupimmps</item>
+ <item>vfixupimmsd</item>
+ <item>vfixupimmss</item>
+ <item>vgetexppd</item>
+ <item>vgetexpps</item>
+ <item>vgetexpsd</item>
+ <item>vgetexpss</item>
+ <item>vgetmantpd</item>
+ <item>vgetmantps</item>
+ <item>vgetmantsd</item>
+ <item>vgetmantss</item>
+ <item>vinsertf32x4</item>
+ <item>vinsertf64x4</item>
+ <item>vinserti32x4</item>
+ <item>vinserti64x4</item>
+ <item>vmovdqa32</item>
+ <item>vmovdqa64</item>
+ <item>vmovdqu32</item>
+ <item>vmovdqu64</item>
+ <item>vpabsq</item>
+ <item>vpandd</item>
+ <item>vpandnd</item>
+ <item>vpandnq</item>
+ <item>vpandq</item>
+ <item>vpblendmd</item>
+ <item>vpblendmq</item>
+ <item>vpcmpltd</item>
+ <item>vpcmpled</item>
+ <item>vpcmpneqd</item>
+ <item>vpcmpnltd</item>
+ <item>vpcmpnled</item>
+ <item>vpcmpd</item>
+ <item>vpcmpltq</item>
+ <item>vpcmpleq</item>
+ <item>vpcmpneqq</item>
+ <item>vpcmpnltq</item>
+ <item>vpcmpnleq</item>
+ <item>vpcmpq</item>
+ <item>vpcmpequd</item>
+ <item>vpcmpltud</item>
+ <item>vpcmpleud</item>
+ <item>vpcmpnequd</item>
+ <item>vpcmpnltud</item>
+ <item>vpcmpnleud</item>
+ <item>vpcmpud</item>
+ <item>vpcmpequq</item>
+ <item>vpcmpltuq</item>
+ <item>vpcmpleuq</item>
+ <item>vpcmpnequq</item>
+ <item>vpcmpnltuq</item>
+ <item>vpcmpnleuq</item>
+ <item>vpcmpuq</item>
+ <item>vpcompressd</item>
+ <item>vpcompressq</item>
+ <item>vpermi2d</item>
+ <item>vpermi2pd</item>
+ <item>vpermi2ps</item>
+ <item>vpermi2q</item>
+ <item>vpermt2d</item>
+ <item>vpermt2pd</item>
+ <item>vpermt2ps</item>
+ <item>vpermt2q</item>
+ <item>vpexpandd</item>
+ <item>vpexpandq</item>
+ <item>vpmaxsq</item>
+ <item>vpmaxuq</item>
+ <item>vpminsq</item>
+ <item>vpminuq</item>
+ <item>vpmovdb</item>
+ <item>vpmovdw</item>
+ <item>vpmovqb</item>
+ <item>vpmovqd</item>
+ <item>vpmovqw</item>
+ <item>vpmovsdb</item>
+ <item>vpmovsdw</item>
+ <item>vpmovsqb</item>
+ <item>vpmovsqd</item>
+ <item>vpmovsqw</item>
+ <item>vpmovusdb</item>
+ <item>vpmovusdw</item>
+ <item>vpmovusqb</item>
+ <item>vpmovusqd</item>
+ <item>vpmovusqw</item>
+ <item>vpord</item>
+ <item>vporq</item>
+ <item>vprold</item>
+ <item>vprolq</item>
+ <item>vprolvd</item>
+ <item>vprolvq</item>
+ <item>vprord</item>
+ <item>vprorq</item>
+ <item>vprorvd</item>
+ <item>vprorvq</item>
+ <item>vpscatterdd</item>
+ <item>vpscatterdq</item>
+ <item>vpscatterqd</item>
+ <item>vpscatterqq</item>
+ <item>vpsraq</item>
+ <item>vpsravq</item>
+ <item>vpternlogd</item>
+ <item>vpternlogq</item>
+ <item>vptestmd</item>
+ <item>vptestmq</item>
+ <item>vptestnmd</item>
+ <item>vptestnmq</item>
+ <item>vpxord</item>
+ <item>vpxorq</item>
+ <item>vrcp14pd</item>
+ <item>vrcp14ps</item>
+ <item>vrcp14sd</item>
+ <item>vrcp14ss</item>
+ <item>vrndscalepd</item>
+ <item>vrndscaleps</item>
+ <item>vrndscalesd</item>
+ <item>vrndscaless</item>
+ <item>vrsqrt14pd</item>
+ <item>vrsqrt14ps</item>
+ <item>vrsqrt14sd</item>
+ <item>vrsqrt14ss</item>
+ <item>vscalefpd</item>
+ <item>vscalefps</item>
+ <item>vscalefsd</item>
+ <item>vscalefss</item>
+ <item>vscatterdpd</item>
+ <item>vscatterdps</item>
+ <item>vscatterqpd</item>
+ <item>vscatterqps</item>
+ <item>vshuff32x4</item>
+ <item>vshuff64x2</item>
+ <item>vshufi32x4</item>
+ <item>vshufi64x2</item>
+ <item>kandnw</item>
+ <item>kandw</item>
+ <item>kmovw</item>
+ <item>knotw</item>
+ <item>kortestw</item>
+ <item>korw</item>
+ <item>kshiftlw</item>
+ <item>kshiftrw</item>
+ <item>kunpckbw</item>
+ <item>kxnorw</item>
+ <item>kxorw</item>
+ <item>vpbroadcastmb2q</item>
+ <item>vpbroadcastmw2d</item>
+ <item>vpconflictd</item>
+ <item>vpconflictq</item>
+ <item>vplzcntd</item>
+ <item>vplzcntq</item>
+ <item>vexp2pd</item>
+ <item>vexp2ps</item>
+ <item>vrcp28pd</item>
+ <item>vrcp28ps</item>
+ <item>vrcp28sd</item>
+ <item>vrcp28ss</item>
+ <item>vrsqrt28pd</item>
+ <item>vrsqrt28ps</item>
+ <item>vrsqrt28sd</item>
+ <item>vrsqrt28ss</item>
+ <item>vgatherpf0dpd</item>
+ <item>vgatherpf0dps</item>
+ <item>vgatherpf0qpd</item>
+ <item>vgatherpf0qps</item>
+ <item>vgatherpf1dpd</item>
+ <item>vgatherpf1dps</item>
+ <item>vgatherpf1qpd</item>
+ <item>vgatherpf1qps</item>
+ <item>vscatterpf0dpd</item>
+ <item>vscatterpf0dps</item>
+ <item>vscatterpf0qpd</item>
+ <item>vscatterpf0qps</item>
+ <item>vscatterpf1dpd</item>
+ <item>vscatterpf1dps</item>
+ <item>vscatterpf1qpd</item>
+ <item>vscatterpf1qps</item>
+ <item>prefetchwt1</item>
+ <item>bndmk</item>
+ <item>bndcl</item>
+ <item>bndcu</item>
+ <item>bndcn</item>
+ <item>bndmov</item>
+ <item>bndldx</item>
+ <item>bndstx</item>
+ <item>sha1rnds4</item>
+ <item>sha1nexte</item>
+ <item>sha1msg1</item>
+ <item>sha1msg2</item>
+ <item>sha256rnds2</item>
+ <item>sha256msg1</item>
+ <item>sha256msg2</item>
+ <item>hint_nop</item>
+ </list>
+
+ <list name="branch instructions">
+ <item>call</item>
+ <item>callq</item>
+ <item>iret</item>
+ <item>iretd</item>
+ <item>iretq</item>
+ <item>iretw</item>
+ <item>ja</item>
+ <item>jae</item>
+ <item>jb</item>
+ <item>jbe</item>
+ <item>jc</item>
+ <item>jcxz</item>
+ <item>je</item>
+ <item>jecxz</item>
+ <item>jg</item>
+ <item>jge</item>
+ <item>jl</item>
+ <item>jle</item>
+ <item>jmp</item>
+ <item>jmpe</item>
+ <item>jna</item>
+ <item>jnae</item>
+ <item>jnb</item>
+ <item>jnbe</item>
+ <item>jnc</item>
+ <item>jne</item>
+ <item>jng</item>
+ <item>jnge</item>
+ <item>jnl</item>
+ <item>jnle</item>
+ <item>jno</item>
+ <item>jnp</item>
+ <item>jns</item>
+ <item>jnz</item>
+ <item>jo</item>
+ <item>jp</item>
+ <item>jpe</item>
+ <item>jpo</item>
+ <item>jrcxz</item>
+ <item>js</item>
+ <item>jz</item>
+ <item>ret</item>
+ <item>retd</item>
+ <item>retf</item>
+ <item>retfd</item>
+ <item>retfq</item>
+ <item>retfw</item>
+ <item>retn</item>
+ <item>retnd</item>
+ <item>retnq</item>
+ <item>retnw</item>
+ <item>retq</item>
+ <item>retw</item>
+ </list>
+
+ <list name="keywords">
+ <item>.abort</item>
+ <item>.align</item>
+ <item>.app-file</item>
+ <item>.appline</item>
+ <item>.ascii</item>
+ <item>.asciz</item>
+ <item>.att_syntax</item>
+ <item>.balign</item>
+ <item>.balignl</item>
+ <item>.balignw</item>
+ <item>.byte</item>
+ <item>.code16</item>
+ <item>.code32</item>
+ <item>.comm</item>
+ <item>.common.s</item>
+ <item>.common</item>
+ <item>.data</item>
+ <item>.dc.b</item>
+ <item>.dc.d</item>
+ <item>.dc.l</item>
+ <item>.dc.s</item>
+ <item>.dc.w</item>
+ <item>.dc.x</item>
+ <item>.dc</item>
+ <item>.dcb.b</item>
+ <item>.dcb.d</item>
+ <item>.dcb.l</item>
+ <item>.dcb.s</item>
+ <item>.dcb.w</item>
+ <item>.dcb.x</item>
+ <item>.dcb</item>
+ <item>.debug</item>
+ <item>.def</item>
+ <item>.desc</item>
+ <item>.dim</item>
+ <item>.double</item>
+ <item>.ds.b</item>
+ <item>.ds.d</item>
+ <item>.ds.l</item>
+ <item>.ds.p</item>
+ <item>.ds.s</item>
+ <item>.ds.w</item>
+ <item>.ds.x</item>
+ <item>.ds</item>
+ <item>.dsect</item>
+ <item>.eject</item>
+ <item>.else</item>
+ <item>.elsec</item>
+ <item>.elseif</item>
+ <item>.end</item>
+ <item>.endc</item>
+ <item>.endef</item>
+ <item>.endfunc</item>
+ <item>.endif</item>
+ <item>.endm</item>
+ <item>.endr</item>
+ <item>.equ</item>
+ <item>.equiv</item>
+ <item>.err</item>
+ <item>.exitm</item>
+ <item>.extend</item>
+ <item>.extern</item>
+ <item>.fail</item>
+ <item>.file</item>
+ <item>.fill</item>
+ <item>.float</item>
+ <item>.format</item>
+ <item>.func</item>
+ <item>.global</item>
+ <item>.globl</item>
+ <item>.hidden</item>
+ <item>.hword</item>
+ <item>.ident</item>
+ <item>.if</item>
+ <item>.ifc</item>
+ <item>.ifdef</item>
+ <item>.ifeq</item>
+ <item>.ifeqs</item>
+ <item>.ifge</item>
+ <item>.ifgt</item>
+ <item>.ifle</item>
+ <item>.iflt</item>
+ <item>.ifnc</item>
+ <item>.ifndef</item>
+ <item>.ifne</item>
+ <item>.ifnes</item>
+ <item>.ifnotdef</item>
+ <item>.include</item>
+ <item>.int</item>
+ <item>.intel_syntax</item>
+ <item>.internal</item>
+ <item>.irep</item>
+ <item>.irepc</item>
+ <item>.irp</item>
+ <item>.irpc</item>
+ <item>.lcomm</item>
+ <item>.lflags</item>
+ <item>.line</item>
+ <item>.linkonce</item>
+ <item>.list</item>
+ <item>.llen</item>
+ <item>.ln</item>
+ <item>.long</item>
+ <item>.lsym</item>
+ <item>.macro</item>
+ <item>.mexit</item>
+ <item>.name</item>
+ <item>.noformat</item>
+ <item>.nolist</item>
+ <item>.nopage</item>
+ <item>noprefix</item>
+ <item>.octa</item>
+ <item>.offset</item>
+ <item>.org</item>
+ <item>.p2align</item>
+ <item>.p2alignl</item>
+ <item>.p2alignw</item>
+ <item>.page</item>
+ <item>.plen</item>
+ <item>.popsection</item>
+ <item>.previous</item>
+ <item>.print</item>
+ <item>.protected</item>
+ <item>.psize</item>
+ <item>.purgem</item>
+ <item>.pushsection</item>
+ <item>.quad</item>
+ <item>.rodata</item>
+ <item>.rep</item>
+ <item>.rept</item>
+ <item>.rva</item>
+ <item>.sbttl</item>
+ <item>.scl</item>
+ <item>.sect.s</item>
+ <item>.sect</item>
+ <item>.section.s</item>
+ <item>.section</item>
+ <item>.set</item>
+ <item>.short</item>
+ <item>.single</item>
+ <item>.size</item>
+ <item>.skip</item>
+ <item>.sleb128</item>
+ <item>.space</item>
+ <item>.spc</item>
+ <item>.stabd</item>
+ <item>.stabn</item>
+ <item>.stabs</item>
+ <item>.string</item>
+ <item>.struct</item>
+ <item>.subsection</item>
+ <item>.symver</item>
+ <item>.tag</item>
+ <item>.text</item>
+ <item>.title</item>
+ <item>.ttl</item>
+ <item>.type</item>
+ <item>.uleb128</item>
+ <item>.use</item>
+ <item>.val</item>
+ <item>.version</item>
+ <item>.vtable_entry</item>
+ <item>.vtable_inherit</item>
+ <item>.weak</item>
+ <item>.word</item>
+ <item>.xcom</item>
+ <item>.xdef</item>
+ <item>.xref</item>
+ <item>.xstabs</item>
+ <item>.zero</item>
+ <!-- Directives specific to ARM -->
+ <item>.arm</item>
+ <item>.bss</item>
+ <item>.code</item>
+ <item>.even</item>
+ <item>.force_thumb</item>
+ <item>.ldouble</item>
+ <item>.loc</item>
+ <item>.ltorg</item>
+ <item>.packed</item>
+ <item>.pool</item>
+ <item>.req</item>
+ <item>.thumb</item>
+ <item>.thumb_func</item>
+ <item>.thumb_set</item>
+ </list>
+
+ <contexts>
+ <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
+ <RegExpr attribute="Label" context="#stay" String="[\.]?[_\w\d-]*\s*:" />
+ <keyword attribute="Keyword" context="#stay" String="keywords"/>
+ <keyword attribute="Registers" context="#stay" String="registers"/>
+ <keyword attribute="Instructions" context="#stay" String="instructions"/>
+ <keyword attribute="Branch Instructions" context="#stay" String="branch instructions"/>
+ <HlCOct attribute="Octal" context="#stay" />
+ <HlCHex attribute="Hex" context="#stay" />
+ <RegExpr attribute="Binary" context="#stay" String="0[bB][01]+" />
+ <Int attribute="Decimal" context="#stay" />
+ <RegExpr attribute="Decimal" context="#stay" String="\$[0-9]+" />
+ <RegExpr attribute="Float" context="#stay" String="0[fFeEdD][-+]?[0-9]*\.?[0-9]*[eE]?[-+]?[0-9]+" />
+ <RegExpr attribute="Normal Text" context="#stay" String="[A-Za-z_.$][A-Za-z0-9_.$]*" />
+ <HlCChar attribute="Char" context="#stay" />
+ <RegExpr attribute="Char" context="#stay" String="'(\\x[0-9a-fA-F][0-9a-fA-F]?|\\[0-7]?[0-7]?[0-7]?|\\.|.)" />
+ <DetectChar attribute="String" context="String" char="&quot;" />
+ <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*if(?:def|ndef)?(?=\s+\S)" insensitive="true" beginRegion="PP" firstNonSpace="true" />
+ <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*endif" insensitive="true" endRegion="PP" firstNonSpace="true" />
+ <RegExpr attribute="Preprocessor" context="Define" String="#\s*define.*((?=\\))" insensitive="true" firstNonSpace="true" />
+ <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*(?:el(?:se|if)|include(?:_next)?|define|undef|line|error|warning|pragma)" firstNonSpace="true" />
+ <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="*" beginRegion="BlockComment" />
+ <AnyChar attribute="Comment" context="Commentar 2" String="@;#" />
+ <AnyChar attribute="Symbol" context="#stay" String="!#%&amp;*()+,-&lt;=&gt;?/:[]^{|}~" />
+ </context>
+ <context attribute="Comment" lineEndContext="#stay" name="Commentar 1">
+ <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="BlockComment" />
+ <DetectSpaces />
+ <IncludeRules context="##Comments" />
+ </context>
+ <context attribute="Comment" lineEndContext="#pop" name="Commentar 2" >
+ <DetectSpaces />
+ <IncludeRules context="##Comments" />
+ </context>
+ <context attribute="String" lineEndContext="#pop" name="String">
+ <LineContinue attribute="String" context="Some Context" />
+ <HlCStringChar attribute="String Char" context="#stay" />
+ <DetectChar attribute="String" context="#pop" char="&quot;" />
+ </context>
+ <context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor" />
+ <context attribute="Preprocessor" lineEndContext="#pop" name="Define">
+ <LineContinue attribute="Preprocessor" context="#stay"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="Some Context" />
+ </contexts>
+
+ <itemDatas>
+ <itemData name="Normal Text" defStyleNum="dsNormal" />
+ <itemData name="Label" defStyleNum="dsFunction" />
+ <itemData name="Keyword" defStyleNum="dsKeyword" />
+ <itemData name="Registers" defStyleNum="dsKeyword" />
+ <itemData name="Instructions" defStyleNum="dsKeyword" />
+ <itemData name="Branch Instructions" defStyleNum="dsControlFlow" />
+ <itemData name="Decimal" defStyleNum="dsDecVal" />
+ <itemData name="Octal" defStyleNum="dsBaseN" />
+ <itemData name="Hex" defStyleNum="dsBaseN" />
+ <itemData name="Binary" defStyleNum="dsBaseN" />
+ <itemData name="Float" defStyleNum="dsFloat" />
+ <itemData name="Char" defStyleNum="dsChar" />
+ <itemData name="String" defStyleNum="dsString" />
+ <itemData name="String Char" defStyleNum="dsSpecialChar" />
+ <itemData name="Symbol" defStyleNum="dsOperator" />
+ <itemData name="Comment" defStyleNum="dsComment" />
+ <itemData name="Preprocessor" defStyleNum="dsPreprocessor" />
+ </itemDatas>
+ </highlighting>
+
+ <general>
+ <comments>
+ <comment name="singleLine" start="#" position="afterwhitespace" />
+ <comment name="multiLine" start="/*" end="*/" region="BlockComment" />
+ </comments>
+ <keywords casesensitive="1" weakDeliminator="_.$" />
+ </general>
+</language>
+<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/html.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/html.xml
index 107e1067da..6e42c66f20 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/html.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/html.xml
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd"
+<!DOCTYPE language
[
<!ENTITY name "[A-Za-z_:][\w.:_-]*">
<!ENTITY attributeName "[A-Za-z_:*#\(\[][\)\]\w.:_-]*">
- <!ENTITY entref "&amp;(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
+ <!ENTITY entref "&amp;(?:#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
]>
-<language name="HTML" version="7" kateversion="3.4" section="Markup" extensions="*.htm;*.html;*.shtml;*.shtm" mimetype="text/html" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10">
+<language name="HTML" version="18" kateversion="5.79" section="Markup" extensions="*.htm;*.html;*.shtml;*.shtm;*.aspx" mimetype="text/html" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10">
<highlighting>
<contexts>
@@ -18,46 +18,72 @@
<DetectIdentifier/>
<StringDetect attribute="Comment" context="Comment" String="&lt;!--" beginRegion="comment" />
<StringDetect attribute="CDATA" context="CDATA" String="&lt;![CDATA[" beginRegion="cdata" />
- <RegExpr attribute="Doctype" context="Doctype" String="&lt;!DOCTYPE\s+" insensitive="true" beginRegion="doctype" />
+ <WordDetect attribute="Doctype" context="Doctype" String="&lt;!DOCTYPE" insensitive="true" beginRegion="doctype" />
+ <IncludeRules context="FindElements" />
<RegExpr attribute="Processing Instruction" context="PI" String="&lt;\?[\w:-]*" beginRegion="pi" />
- <RegExpr attribute="Element" context="CSS" String="&lt;style\b" insensitive="true" beginRegion="style" />
- <RegExpr attribute="Element" context="JS" String="&lt;script\b" insensitive="true" beginRegion="script" />
- <RegExpr attribute="Element" context="El Open" String="&lt;pre\b" insensitive="true" beginRegion="pre" />
- <RegExpr attribute="Element" context="El Open" String="&lt;div\b" insensitive="true" beginRegion="div" />
- <RegExpr attribute="Element" context="El Open" String="&lt;table\b" insensitive="true" beginRegion="table" />
- <RegExpr attribute="Element" context="El Open" String="&lt;ul\b" insensitive="true" beginRegion="ul" />
- <RegExpr attribute="Element" context="El Open" String="&lt;ol\b" insensitive="true" beginRegion="ol" />
- <RegExpr attribute="Element" context="El Open" String="&lt;dl\b" insensitive="true" beginRegion="dl" />
- <RegExpr attribute="Element" context="El Open" String="&lt;article\b" insensitive="true" beginRegion="article" />
- <RegExpr attribute="Element" context="El Open" String="&lt;aside\b" insensitive="true" beginRegion="aside" />
- <RegExpr attribute="Element" context="El Open" String="&lt;details\b" insensitive="true" beginRegion="details" />
- <RegExpr attribute="Element" context="El Open" String="&lt;figure\b" insensitive="true" beginRegion="figure" />
- <RegExpr attribute="Element" context="El Open" String="&lt;footer\b" insensitive="true" beginRegion="footer" />
- <RegExpr attribute="Element" context="El Open" String="&lt;header\b" insensitive="true" beginRegion="header" />
- <RegExpr attribute="Element" context="El Open" String="&lt;main\b" insensitive="true" beginRegion="main" />
- <RegExpr attribute="Element" context="El Open" String="&lt;nav\b" insensitive="true" beginRegion="nav" />
- <RegExpr attribute="Element" context="El Open" String="&lt;section\b" insensitive="true" beginRegion="section" />
- <RegExpr attribute="Element" context="El Open" String="&lt;&name;" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/pre\b" insensitive="true" endRegion="pre" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/div\b" insensitive="true" endRegion="div" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/table\b" insensitive="true" endRegion="table" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/ul\b" insensitive="true" endRegion="ul" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/ol\b" insensitive="true" endRegion="ol" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/dl\b" insensitive="true" endRegion="dl" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/article\b" insensitive="true" endRegion="article" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/aside\b" insensitive="true" endRegion="aside" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/details\b" insensitive="true" endRegion="details" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/figure\b" insensitive="true" endRegion="figure" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/footer\b" insensitive="true" endRegion="footer" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/header\b" insensitive="true" endRegion="header" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/main\b" insensitive="true" endRegion="main" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/nav\b" insensitive="true" endRegion="nav" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/section\b" insensitive="true" endRegion="section" />
- <RegExpr attribute="Element" context="El Close" String="&lt;/&name;" />
+
<!-- as long as kde gives DTDs the text/html mimetype--><IncludeRules context="FindDTDRules" />
<IncludeRules context="FindEntityRefs" />
</context>
+ <context name="FindElements" attribute="Other Text" lineEndContext="#pop">
+ <RegExpr attribute="Element Symbols" context="ElementTagName" String="&lt;(?=(&name;))" />
+ <RegExpr attribute="Element Symbols" context="ElementTagNameClose" String="&lt;/(?=(&name;))" />
+ </context>
+
+ <context name="ElementTagName" attribute="Other Text" lineEndContext="#pop">
+ <IncludeRules context="FindHTMLTags" />
+ <IncludeRules context="FindSpecialHTMLTags" />
+ <StringDetect attribute="Element" context="#pop!El Open" String="%1" dynamic="true" />
+ </context>
+
+ <context name="ElementTagNameClose" attribute="Other Text" lineEndContext="#pop">
+ <IncludeRules context="FindHTMLTagsClose" />
+ <StringDetect attribute="Element" context="#pop!El Close" String="%1" dynamic="true" />
+ </context>
+
+ <!-- This allows you to insert HTML tags in other syntax definitions -->
+ <context name="FindSpecialHTMLTags" attribute="Normal Text" lineEndContext="#stay">
+ <WordDetect attribute="Element" context="#pop!CSS" String="style" insensitive="true" beginRegion="style" />
+ <WordDetect attribute="Element" context="#pop!JS" String="script" insensitive="true" beginRegion="script" />
+ </context>
+
+ <context name="FindHTMLTags" attribute="Normal Text" lineEndContext="#stay">
+ <WordDetect attribute="Element" context="#pop!El Open" String="pre" insensitive="true" beginRegion="pre" />
+ <WordDetect attribute="Element" context="#pop!El Open" String="div" insensitive="true" beginRegion="div" />
+ <WordDetect attribute="Element" context="#pop!El Open" String="table" insensitive="true" beginRegion="table" />
+ <WordDetect attribute="Element" context="#pop!El Open" String="ul" insensitive="true" beginRegion="ul" />
+ <WordDetect attribute="Element" context="#pop!El Open" String="ol" insensitive="true" beginRegion="ol" />
+ <WordDetect attribute="Element" context="#pop!El Open" String="dl" insensitive="true" beginRegion="dl" />
+ <WordDetect attribute="Element" context="#pop!El Open" String="article" insensitive="true" beginRegion="article" />
+ <WordDetect attribute="Element" context="#pop!El Open" String="aside" insensitive="true" beginRegion="aside" />
+ <WordDetect attribute="Element" context="#pop!El Open" String="details" insensitive="true" beginRegion="details" />
+ <WordDetect attribute="Element" context="#pop!El Open" String="figure" insensitive="true" beginRegion="figure" />
+ <WordDetect attribute="Element" context="#pop!El Open" String="footer" insensitive="true" beginRegion="footer" />
+ <WordDetect attribute="Element" context="#pop!El Open" String="header" insensitive="true" beginRegion="header" />
+ <WordDetect attribute="Element" context="#pop!El Open" String="main" insensitive="true" beginRegion="main" />
+ <WordDetect attribute="Element" context="#pop!El Open" String="nav" insensitive="true" beginRegion="nav" />
+ <WordDetect attribute="Element" context="#pop!El Open" String="section" insensitive="true" beginRegion="section" />
+ </context>
+
+ <context name="FindHTMLTagsClose" attribute="Normal Text" lineEndContext="#stay">
+ <WordDetect attribute="Element" context="#pop!El Close" String="pre" insensitive="true" endRegion="pre" />
+ <WordDetect attribute="Element" context="#pop!El Close" String="div" insensitive="true" endRegion="div" />
+ <WordDetect attribute="Element" context="#pop!El Close" String="table" insensitive="true" endRegion="table" />
+ <WordDetect attribute="Element" context="#pop!El Close" String="ul" insensitive="true" endRegion="ul" />
+ <WordDetect attribute="Element" context="#pop!El Close" String="ol" insensitive="true" endRegion="ol" />
+ <WordDetect attribute="Element" context="#pop!El Close" String="dl" insensitive="true" endRegion="dl" />
+ <WordDetect attribute="Element" context="#pop!El Close" String="article" insensitive="true" endRegion="article" />
+ <WordDetect attribute="Element" context="#pop!El Close" String="aside" insensitive="true" endRegion="aside" />
+ <WordDetect attribute="Element" context="#pop!El Close" String="details" insensitive="true" endRegion="details" />
+ <WordDetect attribute="Element" context="#pop!El Close" String="figure" insensitive="true" endRegion="figure" />
+ <WordDetect attribute="Element" context="#pop!El Close" String="footer" insensitive="true" endRegion="footer" />
+ <WordDetect attribute="Element" context="#pop!El Close" String="header" insensitive="true" endRegion="header" />
+ <WordDetect attribute="Element" context="#pop!El Close" String="main" insensitive="true" endRegion="main" />
+ <WordDetect attribute="Element" context="#pop!El Close" String="nav" insensitive="true" endRegion="nav" />
+ <WordDetect attribute="Element" context="#pop!El Close" String="section" insensitive="true" endRegion="section" />
+ </context>
+
<context name="FindEntityRefs" attribute="Other Text" lineEndContext="#stay">
<RegExpr attribute="EntityRef" context="#stay" String="&entref;" />
<AnyChar attribute="Error" context="#stay" String="&amp;&lt;" />
@@ -70,22 +96,21 @@
</context>
<context name="FindAttributes" attribute="Other Text" lineEndContext="#stay">
- <RegExpr attribute="Attribute" context="#stay" String="&attributeName;" column="0"/>
- <RegExpr attribute="Attribute" context="#stay" String="\s+&attributeName;" />
- <DetectChar attribute="Attribute" context="Value" char="=" />
+ <DetectChar attribute="Attribute Separator" context="Value" char="=" />
+ <RegExpr attribute="Attribute" context="#stay" String="(^|\s+)&attributeName;(\s+&attributeName;)*\s*|\s+" />
</context>
<context name="FindDTDRules" attribute="Other Text" lineEndContext="#stay">
- <RegExpr attribute="Doctype" context="Doctype Markupdecl" String="&lt;!(ELEMENT|ENTITY|ATTLIST|NOTATION)\b" />
+ <RegExpr attribute="Doctype" context="Doctype Markupdecl" String="&lt;!(?:ELEMENT|ENTITY|ATTLIST|NOTATION)\b" />
</context>
<context name="Comment" attribute="Comment" lineEndContext="#stay">
<DetectSpaces/>
- <IncludeRules context="##Alerts" />
- <DetectIdentifier/>
<StringDetect attribute="Comment" context="#pop" String="--&gt;" endRegion="comment" />
- <RegExpr attribute="Error" context="#stay" String="-(-(?!-&gt;))+" />
+ <IncludeRules context="##Comments" />
+ <DetectIdentifier/>
+ <RegExpr attribute="Error" context="#stay" String="-(?:-(?!-&gt;))+" />
</context>
<context name="CDATA" attribute="Other Text" lineEndContext="#stay">
@@ -128,49 +153,40 @@
<IncludeRules context="FindPEntityRefs" />
</context>
- <context name="El Open" attribute="Other Text" lineEndContext="#stay">
- <Detect2Chars attribute="Element" context="#pop" char="/" char1="&gt;" />
- <DetectChar attribute="Element" context="#pop" char="&gt;" />
+ <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">
- <DetectChar attribute="Element" context="#pop" char="&gt;" />
- <RegExpr attribute="Error" context="#stay" String="\S" />
- </context>
-
- <context name="El Close 2" attribute="Other Text" lineEndContext="#stay">
- <DetectChar attribute="Element" context="#pop#pop#pop" char="&gt;" />
- <RegExpr attribute="Error" context="#stay" String="\S" />
- </context>
-
- <context name="El Close 3" attribute="Other Text" lineEndContext="#stay">
- <DetectChar attribute="Element" context="#pop#pop#pop#pop" char="&gt;" />
+ <DetectChar attribute="Element Symbols" context="#pop" char="&gt;" />
<RegExpr attribute="Error" context="#stay" String="\S" />
</context>
- <context name="CSS" attribute="Other Text" lineEndContext="#stay">
- <Detect2Chars attribute="Element" context="#pop" char="/" char1="&gt;" endRegion="style" />
- <DetectChar attribute="Element" context="CSS content" char="&gt;" />
+ <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">
- <RegExpr attribute="Element" context="El Close 2" String="&lt;/style\b" insensitive="true" endRegion="style" />
+ <RegExpr attribute="Element Symbols" context="CSS content Close" String="&lt;/(?=style\b)" insensitive="true" />
<IncludeRules context="##CSS" includeAttrib="true"/>
</context>
+ <context name="CSS content Close" attribute="Other Text" lineEndContext="#stay">
+ <DetectIdentifier attribute="Element" context="#pop#pop#pop!El Close" endRegion="style" />
+ </context>
- <context name="JS" attribute="Other Text" lineEndContext="#stay">
- <RegExpr attribute="Attribute" context="Script-Type" String="(\s+|^)type(?=\=|\s|$)" insensitive="true"/>
- <DetectChar attribute="Element" context="JS content" char="&gt;" />
+ <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" context="#pop" char="/" char1="&gt;" endRegion="script" />
- <IncludeRules context="FindAttributes" />
- <RegExpr attribute="Error" context="#stay" String="\S" />
+ <Detect2Chars attribute="Element Symbols" context="#pop" char="/" char1="&gt;" endRegion="script" />
+ <DetectChar attribute="Attribute Separator" context="Value" char="=" />
+ <RegExpr attribute="Attribute" context="#stay" String="(^|\s+)&attributeName;|\s+" />
</context>
<context name="JS content" attribute="Other Text" lineEndContext="#stay">
@@ -178,25 +194,35 @@
<IncludeRules context="Normal##JavaScript" includeAttrib="true"/>
</context>
<context name="Default JS content" attribute="Other Text" lineEndContext="#stay">
- <RegExpr attribute="Element" context="El Close 2" String="&lt;/script\b" insensitive="true" endRegion="script" />
+ <IncludeRules context="FindScriptTagClose" />
<RegExpr attribute="Comment" context="JS comment close" String="//(?=.*&lt;/script\b)" insensitive="true" />
</context>
+ <context name="FindScriptTagClose" attribute="Other Text" lineEndContext="#stay">
+ <RegExpr attribute="Element Symbols" context="ScriptTagClose" String="&lt;/(?=script\b)" insensitive="true" />
+ </context>
+ <context name="ScriptTagClose" attribute="Other Text" lineEndContext="#stay">
+ <DetectIdentifier attribute="Element" context="#pop#pop#pop!El Close" endRegion="script" />
+ </context>
+
<context name="JS comment close" attribute="Comment" lineEndContext="#pop">
- <RegExpr attribute="Element" context="El Close 3" String="&lt;/script\b" insensitive="true" endRegion="script" />
- <IncludeRules context="##Alerts" />
+ <RegExpr attribute="Element Symbols" context="#pop!ScriptTagClose" String="&lt;/(?=script\b)" insensitive="true" />
+ <DetectSpaces />
+ <IncludeRules context="##Comments" />
</context>
- <context name="Value" attribute="Other Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="Value NQ">
+ <context name="Value" attribute="Other Text" lineEndContext="#stay" fallthroughContext="Value NQ">
<DetectChar attribute="Value" context="Value DQ" char="&quot;" />
<DetectChar attribute="Value" context="Value SQ" char="&apos;" />
<DetectSpaces />
</context>
- <context name="Value NQ" attribute="Other Text" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop">
+ <context name="Value NQ" attribute="Other Text" lineEndContext="#pop#pop" fallthroughContext="#pop#pop">
+ <!-- '{' and '}' are valid, but used with twig -->
+ <RegExpr attribute="Value" String="[^&gt;&lt;&quot;&apos;&amp;\s=`{}]+" />
<IncludeRules context="FindEntityRefs" />
- <RegExpr attribute="Value" context="#stay" String="/(?!&gt;)" />
- <RegExpr attribute="Value" context="#stay" String="[^/&gt;&lt;&quot;&apos;\s]" />
+ <AnyChar attribute="Error" String="&quot;&apos;`=" />
+ <AnyChar attribute="Value" String="{}" />
</context>
<context name="Value DQ" attribute="Value" lineEndContext="#stay">
@@ -212,11 +238,11 @@
<!-- Read content from the "type" attribute to change the language to
highlight in the <script> tag. The default language is JavaScript. -->
- <context name="Script-Type" attribute="Other Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop">
+ <context name="Script-Type" attribute="Other Text" lineEndContext="#stay" fallthroughContext="#pop">
<DetectSpaces />
<DetectChar attribute="Attribute" context="#pop!Script-Type Value" char="=" />
</context>
- <context name="Script-Type Value" attribute="Other Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop!Value">
+ <context name="Script-Type Value" attribute="Other Text" lineEndContext="#stay" fallthroughContext="#pop!Value">
<DetectSpaces />
<!-- TypeScript -->
<StringDetect attribute="Value" context="#pop#pop!TypeScript" String="&quot;text/typescript&quot;"/>
@@ -230,7 +256,7 @@
<StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="&quot;x-tmpl-mustache&quot;"/>
<StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="&apos;x-tmpl-mustache&apos;"/>
<StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="&quot;text/mustache&quot;"/>
- <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="&apos;text/mustache&apos;"/>
+ <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="&apos;text/mustache&apos;"/>
<StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="&quot;text/x-mustache-template&quot;"/>
<StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="&apos;text/x-mustache-template&apos;"/>
<StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="&quot;text/x-handlebars-template&quot;"/>
@@ -242,17 +268,17 @@
<StringDetect attribute="Value" context="#pop#pop!Script HTML template" String="&apos;text/html&apos;"/>
</context>
- <context name="JSX" attribute="Other Text" lineEndContext="#stay">
- <DetectChar attribute="Element" context="JSX content" char="&gt;" />
+ <context name="JSX" attribute="Error" lineEndContext="#stay">
+ <DetectChar attribute="Element Symbols" context="JSX content" char="&gt;" />
<IncludeRules context="DefaultJS" />
</context>
<context name="JSX content" attribute="Other Text" lineEndContext="#stay">
<IncludeRules context="Default JS content"/>
- <IncludeRules context="Normal##JavaScript React" includeAttrib="true"/>
+ <IncludeRules context="Normal##JavaScript React (JSX)" includeAttrib="true"/>
</context>
- <context name="TypeScript" attribute="Other Text" lineEndContext="#stay">
- <DetectChar attribute="Element" context="TypeScript content" char="&gt;" />
+ <context name="TypeScript" attribute="Error" lineEndContext="#stay">
+ <DetectChar attribute="Element Symbols" context="TypeScript content" char="&gt;" />
<IncludeRules context="DefaultJS" />
</context>
<context name="TypeScript content" attribute="Other Text" lineEndContext="#stay">
@@ -260,25 +286,25 @@
<IncludeRules context="Normal##TypeScript" includeAttrib="true"/>
</context>
- <context name="MustacheJS" attribute="Other Text" lineEndContext="#stay">
- <DetectChar attribute="Element" context="MustacheJS content" char="&gt;" />
+ <context name="MustacheJS" attribute="Error" lineEndContext="#stay">
+ <DetectChar attribute="Element Symbols" context="MustacheJS content" char="&gt;" />
<IncludeRules context="DefaultJS" />
</context>
<context name="MustacheJS content" attribute="Other Text" lineEndContext="#stay">
- <RegExpr attribute="Element" context="El Close 2" String="&lt;/script\b" insensitive="true" endRegion="script" />
+ <IncludeRules context="FindScriptTagClose" />
<StringDetect attribute="Error" context="#stay" String="&lt;script&gt;" insensitive="true" />
- <RegExpr attribute="Error" context="#stay" String="&lt;script\b" insensitive="true" />
+ <WordDetect attribute="Error" context="#stay" String="&lt;script" insensitive="true" />
<IncludeRules context="Base##Mustache/Handlebars (HTML)" includeAttrib="true"/>
</context>
- <context name="Script HTML template" attribute="Other Text" lineEndContext="#stay">
- <DetectChar attribute="Element" context="Script HTML template content" char="&gt;" />
+ <context name="Script HTML template" attribute="Error" lineEndContext="#stay">
+ <DetectChar attribute="Element Symbols" context="Script HTML template content" char="&gt;" />
<IncludeRules context="DefaultJS" />
</context>
<context name="Script HTML template content" attribute="Other Text" lineEndContext="#stay">
- <RegExpr attribute="Element" context="El Close 2" String="&lt;/script\b" insensitive="true" endRegion="script" />
+ <IncludeRules context="FindScriptTagClose" />
<StringDetect attribute="Error" context="#stay" String="&lt;script&gt;" insensitive="true" />
- <RegExpr attribute="Error" context="#stay" String="&lt;script\b" insensitive="true" />
+ <WordDetect attribute="Error" context="#stay" String="&lt;script" insensitive="true" />
<IncludeRules context="FindHTML" />
</context>
@@ -291,7 +317,9 @@
<itemData name="Processing Instruction" defStyleNum="dsKeyword" spellChecking="false" />
<itemData name="Doctype" defStyleNum="dsDataType" bold="1" spellChecking="false" />
<itemData name="Element" defStyleNum="dsKeyword" spellChecking="false" />
+ <itemData name="Element Symbols" defStyleNum="dsDataType" spellChecking="false" />
<itemData name="Attribute" defStyleNum="dsOthers" spellChecking="false" />
+ <itemData name="Attribute Separator" defStyleNum="dsOperator" spellChecking="false" />
<itemData name="Value" defStyleNum="dsString" spellChecking="false" />
<itemData name="EntityRef" defStyleNum="dsDecVal" spellChecking="false" />
<itemData name="PEntityRef" defStyleNum="dsDecVal" spellChecking="false" />
@@ -301,7 +329,8 @@
</highlighting>
<general>
<comments>
- <comment name="multiLine" start="&lt;!--" end="--&gt;" />
+ <comment name="multiLine" start="&lt;!--" end="--&gt;" region="comment" />
</comments>
</general>
</language>
+<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/ini.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/ini.xml
index ce300fff47..56a35e80c7 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/ini.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/ini.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd">
-<language name="INI Files" section="Configuration" extensions="*.ini;*.pls;*.kcfgc" mimetype="" version="5" kateversion="2.4" author="Jan Janssen (medhefgo@web.de)" license="LGPL">
+<!DOCTYPE language>
+<language name="INI Files" section="Configuration" extensions="*.ini;*.cfg;*.pls;*.kcfgc;.gitattributes*;.gitconfig*;.gitmodules*;.editorconfig*" mimetype="" version="13" kateversion="5.0" author="Jan Janssen (medhefgo@web.de)" license="LGPL" priority="1">
<highlighting>
<list name="keywords">
@@ -34,45 +34,55 @@
<contexts>
<context name="ini" attribute="Normal Text" lineEndContext="#stay">
- <RangeDetect attribute="Section" context="#stay" char="[" char1="]" beginRegion="Section" endRegion="Section" />
+ <RangeDetect attribute="Section" context="#stay" char="[" char1="]" beginRegion="Section" endRegion="Section" />
<DetectChar attribute="Assignment" context="Value" char="=" />
- <DetectChar char=";" attribute="Comment" context="Comment" firstNonSpace="true" />
- <DetectChar char="#" attribute="Comment" context="Comment" firstNonSpace="true" />
+ <AnyChar String=";#" attribute="Comment" context="Comment" firstNonSpace="true" />
+ <DetectIdentifier />
+ <DetectSpaces />
+ </context>
+
+ <context name="Value" attribute="Value" lineEndContext="#pop" fallthrough="1" fallthroughContext="#pop!NormalValue">
+ <RegExpr context="#pop!SpecialValue" String="\s*((-?(\d+(\.\d*)?|\.d+)(e\d+)?|On|Off|Defaults?|Localhost|Null|True|False|Yes|No|Normal)\s*$|~?(E_ALL|E_ERROR|E_WARNING|E_PARSE|E_NOTICE|E_STRICT|E_CORE_ERROR|E_CORE_WARNING|E_COMPILE_ERROR|E_COMPILE_WARNING|E_USER_ERROR|E_USER_WARNING|E_USER_NOTICE)\b)" lookAhead="1" insensitive="1"/>
</context>
- <context name="Value" attribute="Value" lineEndContext="#pop" >
+ <context name="SpecialValue" attribute="Value" lineEndContext="#pop">
<Float attribute="Float" />
<Int attribute="Int" />
- <keyword attribute="Keyword" String="keywords" />
+ <keyword attribute="Keyword" String="keywords"/>
+ <DetectChar attribute="Int" char="-" />
+ <DetectSpaces />
+ </context>
+
+ <context name="NormalValue" attribute="Value" lineEndContext="#pop">
</context>
<context name="Comment" attribute="Comment" lineEndContext="#pop">
<DetectSpaces />
- <IncludeRules context="##Alerts" />
+ <IncludeRules context="##Comments" />
<DetectIdentifier />
</context>
</contexts>
<itemDatas>
- <itemData name="Normal Text" defStyleNum="dsDataType" />
- <itemData name="Section" defStyleNum="dsKeyword" />
- <itemData name="Comment" defStyleNum="dsComment" />
- <itemData name="Assignment" defStyleNum="dsOthers" />
- <itemData name="Value" defStyleNum="dsString" />
- <itemData name="Float" defStyleNum="dsFloat" />
- <itemData name="Int" defStyleNum="dsDecVal" />
- <itemData name="Keyword" defStyleNum="dsKeyword" />
+ <itemData name="Normal Text" defStyleNum="dsDataType" spellChecking="false"/>
+ <itemData name="Section" defStyleNum="dsKeyword" spellChecking="false"/>
+ <itemData name="Comment" defStyleNum="dsComment"/>
+ <itemData name="Assignment" defStyleNum="dsOthers" spellChecking="false"/>
+ <itemData name="Value" defStyleNum="dsString" spellChecking="false"/>
+ <itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/>
+ <itemData name="Int" defStyleNum="dsDecVal" spellChecking="false"/>
+ <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
</itemDatas>
</highlighting>
<general>
<comments>
- <comment name="singleLine" start="#" />
<comment name="singleLine" start=";" />
</comments>
<keywords casesensitive="0" />
</general>
</language>
+<!-- kate: replace-tabs on; indent-width 1; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/java.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/java.xml
index f59415048e..aaeef26c3f 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/java.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/java.xml
@@ -1,10 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd"
+<!DOCTYPE language
[
- <!ENTITY int "[0-9]([0-9_]*[0-9])?">
- <!ENTITY hex "[0-9a-fA-F]([0-9a-fA-F_]*[0-9a-fA-F])?">
+ <!ENTITY int "(?:[0-9]++(_++[0-9]++)*+)">
+ <!ENTITY hex "(?:[0-9a-fA-F]++(_++[0-9a-fA-F]++)*+)">
+ <!ENTITY exp "(?:[eE][-+]?&int;)">
+ <!ENTITY float "(\b&int;(\.((&int;&exp;?+|&exp;)[fFdD]?\b|[fFdD]\b)?|&exp;[fFdD]?\b|[fFdD]\b)|\.&int;&exp;?[fFdD]?\b)">
+ <!ENTITY hexfloat "\b0[xX](&hex;\.?+&hex;?+|\.&hex;?)[pP][-+]?&int;[fFdD]?\b">
]>
-<language name="Java" version="5" kateversion="5.0" section="Sources" extensions="*.java" mimetype="text/x-java" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)">
+<language name="Java" version="13" kateversion="5.79" section="Sources" extensions="*.java" mimetype="text/x-java" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)">
<highlighting>
<list name="java15">
<item>ACTIVE</item>
@@ -3702,26 +3705,17 @@
<!-- end new classes -->
</list>
+
+ <!-- https://docs.oracle.com/javase/specs/jls/se20/html/jls-3.html#jls-Keyword -->
<list name="keywords">
<item>abstract</item>
- <item>break</item>
- <item>case</item>
- <item>catch</item>
<item>class</item>
- <item>continue</item>
<item>default</item>
- <item>do</item>
- <item>else</item>
<item>enum</item>
<item>extends</item>
<item>false</item>
- <item>finally</item>
- <item>for</item>
- <item>goto</item>
- <item>if</item>
<item>implements</item>
<item>instanceof</item>
- <item>@interface</item>
<item>interface</item>
<item>native</item>
<item>new</item>
@@ -3729,19 +3723,38 @@
<item>private</item>
<item>protected</item>
<item>public</item>
- <item>return</item>
<item>super</item>
<item>strictfp</item>
- <item>switch</item>
<item>synchronized</item>
<item>this</item>
<item>throws</item>
- <item>throw</item>
<item>transient</item>
<item>true</item>
- <item>try</item>
<item>volatile</item>
+ <!-- contextual -->
+ <item>non-sealed</item>
+ <item>permits</item>
+ <item>record</item>
+ <item>sealed</item>
+ </list>
+ <list name="control flow">
+ <item>assert</item>
+ <item>break</item>
+ <item>case</item>
+ <item>catch</item>
+ <item>continue</item>
+ <item>do</item>
+ <item>else</item>
+ <item>finally</item>
+ <item>for</item>
+ <item>goto</item>
+ <item>if</item>
+ <item>return</item>
+ <item>switch</item>
+ <item>throw</item>
+ <item>try</item>
<item>while</item>
+ <item>yield</item>
</list>
<list name="types">
<item>boolean</item>
@@ -3755,87 +3768,158 @@
<item>long</item>
<item>short</item>
<item>static</item>
+ <item>var</item>
<item>void</item>
</list>
+
+ <list name="annotations">
+ <!-- builtin -->
+ <item>@Override</item>
+ <item>@Deprecated</item>
+ <item>@SuppressWarnings</item>
+ <item>@SafeVarargs</item>
+ <item>@FunctionalInterface</item>
+ <item>@interface</item>
+ <!-- java.lang.annotation -->
+ <item>@Retention</item>
+ <item>@Documented</item>
+ <item>@Target</item>
+ <item>@Inherited</item>
+ <item>@Repeatable</item>
+ </list>
+
+ <!-- https://docs.oracle.com/javase/specs/jls/se20/html/jls-3.html -->
+
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
+ <DetectSpaces context="#stay"/>
+
+ <DetectChar attribute="Symbol" context="Dot" char="." lookAhead="1"/>
+ <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1"/>
+ <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1"/>
+ <DetectChar attribute="Annotation" context="Annotation" char="@" />
+ <DetectChar attribute="Symbol" context="InFunctionCall" char="("/>
+
<!-- Comment next line if you don't use Javadoc tool -->
<IncludeRules context="##Javadoc"/>
+ <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
+ <Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
+
+ <AnyChar attribute="Symbol" context="#stay" String="[]&amp;|+,-/*&lt;=&gt;;!%?:~^"/>
+
+ <AnyChar context="Number" String="0123456789" lookAhead="1"/>
+
+ <StringDetect attribute="Text Block" context="TextBlock" String="&quot;&quot;&quot;"/>
+ <DetectChar attribute="String" context="String" char="&quot;"/>
+ <DetectChar context="Char" char="'" lookAhead="1"/>
+
<keyword attribute="Keyword" context="#stay" String="keywords"/>
+ <keyword attribute="Control Flow" context="#stay" String="control flow"/>
<keyword attribute="Data Type" context="#stay" String="types"/>
<keyword attribute="Java15" context="#stay" String="java15"/>
- <RegExpr attribute="Float" context="#stay" String="(\b&int;\.?|(\b&int;)?\.&int;)([eE][\-\+]?&int;[fFdD]?|[fFdD])\b"/>
- <RegExpr attribute="Float" context="#stay" String="(\b&int;\.|(\b&int;)?\.&int;\b)"/>
- <RegExpr attribute="Float" context="#stay" String="\b0[xX](&hex;\.?|(&hex;)?\.&hex;)[pP][\-\+]?&int;[fFdD]?\b"/>
- <RegExpr attribute="Hex" context="#stay" String="\b0[xX]&hex;[lL]?\b"/>
- <RegExpr attribute="Binary" context="#stay" String="\b0[bB][01]([01_]*[01])?[lL]?\b"/>
- <RegExpr attribute="Octal" context="#stay" String="\b0[0-7]([0-7_]*[0-7])?[lL]?\b"/>
- <RegExpr attribute="Decimal" context="#stay" String="\b(0|[1-9]([0-9_]*[0-9])?)[lL]?\b"/>
- <HlCChar attribute="Char" context="#stay"/>
- <RegExpr attribute="Char" context="#stay" String="'\\u[0-9a-fA-F]{4}'"/>
- <RegExpr attribute="Decimal" context="#stay" String="//\s*BEGIN.*$" beginRegion="Region1"/>
- <RegExpr attribute="Decimal" context="#stay" String="//\s*END.*$" endRegion="Region1"/>
- <DetectChar attribute="String" context="String" char="&quot;"/>
- <RegExpr attribute="Function" context="EnterPrintf" String="\.(format|printf)\b"/>
- <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
- <Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
- <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1"/>
- <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1"/>
- <RegExpr attribute="Keyword" context="#stay" String="\.{3,3}\s+" />
- <RegExpr attribute="Keyword" context="StaticImports" String="\b(import\s+static)\b" />
- <RegExpr attribute="Keyword" context="Imports" String="\b(package|import)\b" />
- <RegExpr attribute="Function" context="#stay" String="\b[_\w][_\w\d]*(?=[\s]*(/\*\s*\d+\s*\*/\s*)?[(])" />
- <RegExpr attribute="Annotation" context="#stay" String="@[_\w][_\w\d]*" />
- <RegExpr attribute="Symbol" context="Member" String="[.]{1,1}" />
- <DetectChar attribute="Symbol" context="InFunctionCall" char="("/>
- <AnyChar attribute="Symbol" context="#stay" String=":!%&amp;+,-/.*&lt;=&gt;?[]|~^&#59;"/>
+
+ <WordDetect attribute="Keyword" context="Imports" String="package" />
+ <WordDetect attribute="Keyword" context="ImportsOrStaticImports" String="import" />
+
+ <RegExpr attribute="Function" context="#stay" String="\b[_a-zA-Z]\w*(?=[\s]*(/\*\s*\d+\s*\*/\s*)?[(])" />
+ <WordDetect attribute="Keyword" context="ImportsOrStaticImports" String="non-sealed" />
+ <DetectIdentifier attribute="Normal Text"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="Number">
+ <IncludeRules context="FindFloat"/>
+ <RegExpr attribute="Hex" context="#pop" String="\b0[xX]&hex;[lL]?\b"/>
+ <RegExpr attribute="Binary" context="#pop" String="\b0[bB][01]++(_++[01]++)*+[lL]?\b"/>
+ <RegExpr attribute="Octal" context="#pop" String="\b0_*+[0-7]++(_++[0-7_]++)*+[lL]?\b"/>
+ <RegExpr attribute="Decimal" context="#pop" String="\b(0|[1-9][0-9]*+(_++[0-9_]++)*+)[lL]?\b"/>
+ <AnyChar attribute="Error" context="#pop" String="0123456789"/>
</context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="FindFloat">
+ <RegExpr attribute="Float" context="#pop" String="&float;|&hexfloat;"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="Char">
+ <HlCChar attribute="Char" context="#pop"/>
+ <RegExpr attribute="Char" context="#pop" String="'\\u+[0-9a-fA-F]{4}'"/>
+ <RegExpr attribute="Error" context="#pop" String="'(\\(u+[0-9a-fA-F]*|.))?'?"/>
+ </context>
+
<context attribute="Normal Text" lineEndContext="#stay" name="InFunctionCall">
<IncludeRules context="Normal"/>
<DetectChar attribute="Symbol" context="#pop" char=")"/>
</context>
+
<context attribute="String" lineEndContext="#pop" name="String">
- <LineContinue attribute="String" context="#stay"/>
- <HlCStringChar attribute="String Char" context="#stay"/>
- <RegExpr attribute="String Char" context="#stay" String="\\u[0-9a-fA-F]{4}"/>
+ <DetectChar context="StringEscapedChar" char="\" lookAhead="1"/>
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="EnterPrintf" fallthrough="true" fallthroughContext="#pop">
- <DetectChar attribute="Symbol" context="Printf" char="("/>
+ <context attribute="String" lineEndContext="#pop" name="StringEscapedChar">
+ <HlCStringChar attribute="String Char" context="#pop"/>
+ <RegExpr attribute="String Char" context="#pop" String="\\u+[0-9a-fA-F]{4}"/>
+ <RegExpr attribute="Error" context="#pop" String="\\(u+[0-9a-fA-F]*|.)?"/>
+ </context>
+
+ <context attribute="Text Block" lineEndContext="#stay" name="TextBlock">
+ <DetectChar context="StringEscapedChar" char="\" lookAhead="1"/>
+ <StringDetect attribute="Text Block" context="#pop" String="&quot;&quot;&quot;"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="Printf" fallthroughContext="#pop">
+ <DetectChar attribute="Symbol" context="#pop!InPrintf" char="("/>
<DetectSpaces attribute="Normal Text" context="#stay"/>
</context>
- <context attribute="Normal Text" lineEndContext="#stay" name="Printf">
+ <context attribute="Normal Text" lineEndContext="#stay" name="InPrintf">
<DetectChar attribute="String" context="PrintfString" char="&quot;"/>
<IncludeRules context="InFunctionCall"/>
</context>
<context attribute="PrintfString" lineEndContext="#pop" name="PrintfString">
- <LineContinue attribute="String" context="#stay"/>
- <HlCStringChar attribute="String Char" context="#stay"/>
- <DetectChar attribute="String" context="#pop" char="&quot;"/>
- <RegExpr attribute="String Char" context="#stay" String="%(\d+\$)?(-|#|\+|\ |0|,|\()*\d*(\.\d+)?[a-hosxA-CEGHSX]" />
- <RegExpr attribute="String Char" context="#stay" String="%(\d+\$)?(-|#|\+|\ |0|,|\()*\d*(t|T)(a|A|b|B|c|C|d|D|e|F|h|H|I|j|k|l|L|m|M|N|p|P|Q|r|R|s|S|T|y|Y|z|Z)" />
- <RegExpr attribute="String Char" context="#stay" String="%(%|n)" />
+ <IncludeRules context="String"/>
+ <RegExpr attribute="String Char" context="#stay" String="%((\d+\$)?[-#+ 0,(]*\d*((\.\d+)?[a-hosxA-CEGHSX]|[tT][aAbBcCdDeFhHIjklLmMNpPQrRsSTyYzZ])|[%n])" />
</context>
- <context attribute="Normal Text" lineEndContext="#pop" name="Member" fallthrough="true" fallthroughContext="#pop">
- <RegExpr attribute="Function" context="#pop" String="\b[_a-zA-Z]\w*(?=[\s]*)" />
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="Dot">
+ <StringDetect attribute="Keyword" context="#pop" String="..." />
+ <IncludeRules context="FindFloat"/>
+ <DetectChar attribute="Symbol" context="#pop!Member" char="." />
</context>
- <context attribute="Normal Text" lineEndContext="#pop" name="StaticImports">
- <RegExpr attribute="StaticImports" context="#pop" String="\s*.*;" />
+ <context attribute="Normal Text" lineEndContext="#stay" name="Member" fallthroughContext="#pop">
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <WordDetect attribute="Function" context="#pop!Printf" String="printf"/>
+ <WordDetect attribute="Function" context="#pop!Printf" String="format"/>
+ <DetectIdentifier attribute="Function" context="#pop"/>
</context>
- <context attribute="Normal Text" lineEndContext="#pop" name="Imports">
- <RegExpr attribute="Imports" context="#pop" String="\s*.*;" />
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="Annotation" fallthroughContext="#pop">
+ <DetectIdentifier attribute="Annotation" context="#pop"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="ImportsOrStaticImports" fallthroughContext="#pop!Imports">
+ <DetectSpaces attribute="Normal Text"/>
+ <WordDetect attribute="Keyword" context="#pop!StaticImports" String="static"/>
</context>
+ <context attribute="StaticImports" lineEndContext="#pop" name="StaticImports">
+ <IncludeRules context="Imports"/>
+ </context>
+ <context attribute="Imports" lineEndContext="#pop" name="Imports">
+ <AnyChar attribute="Symbol" context="#stay" String=".*"/>
+ <DetectChar attribute="Symbol" context="#pop" char=";"/>
+ </context>
+
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
- <IncludeRules context="##Alerts"/>
+ <DetectSpaces />
+ <IncludeRules context="##Comments"/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
- <IncludeRules context="##Alerts"/>
+ <DetectSpaces />
+ <IncludeRules context="##Comments"/>
</context>
+
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
+ <itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="false"/>
<itemData name="Annotation" defStyleNum="dsAttribute" spellChecking="false"/>
<itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/>
<itemData name="StaticImports" defStyleNum="dsImport" spellChecking="false"/>
@@ -3847,19 +3931,22 @@
<itemData name="Binary" defStyleNum="dsBaseN" spellChecking="false"/>
<itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/>
<itemData name="Char" defStyleNum="dsChar" spellChecking="false"/>
+ <itemData name="Text Block" defStyleNum="dsString"/>
<itemData name="String" defStyleNum="dsString"/>
<itemData name="String Char" defStyleNum="dsSpecialChar" spellChecking="false"/>
<itemData name="PrintfString" defStyleNum="dsString"/>
<itemData name="Comment" defStyleNum="dsComment"/>
- <itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/>
+ <itemData name="Symbol" defStyleNum="dsOperator" spellChecking="false"/>
<itemData name="Java15" defStyleNum="dsBuiltIn" spellChecking="false"/>
+ <itemData name="Error" defStyleNum="dsError" spellChecking="false"/>
</itemDatas>
</highlighting>
<general>
<comments>
- <comment name="singleLine" start="//"/>
- <comment name="multiLine" start="/*" end="*/"/>
+ <comment name="singleLine" start="//" position="afterwhitespace"/>
+ <comment name="multiLine" start="/*" end="*/" region="Comment"/>
</comments>
<keywords casesensitive="1"/>
</general>
</language>
+<!-- kate: replace-tabs off; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/javadoc.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/javadoc.xml
index e72488b221..84c7841cad 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/javadoc.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/javadoc.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd">
-<language name="Javadoc" version="3" kateversion="5.0" section="Markup" extensions="" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)">
+<!DOCTYPE language>
+<language name="Javadoc" version="7" kateversion="5.79" section="Markup" extensions="" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)">
<highlighting>
<contexts>
<context name="Start" attribute="Normal Text" lineEndContext="#stay">
@@ -12,74 +12,52 @@
</context>
<context attribute="JavadocFS" lineEndContext="#stay" name="JavadocFSar">
<Detect2Chars attribute="JavadocFS" context="#pop" char="*" char1="/" endRegion="Javadoc"/>
- <RegExpr attribute="JavadocFS" context="Javadocar" String="(!|\?)" />
- <RegExpr attribute="JavadocFS" context="Javadocar" String="(\.\s*$)" />
- <RegExpr attribute="JavadocFS" context="Javadocar" String="(\.\s)(?![\da-z])" />
- <RegExpr attribute="JavadocFS" context="Javadocar" String="\**\s*(?=@(author|deprecated|exception|param|return|see|serial|serialData|serialField|since|throws|version)(\s|$))" firstNonSpace="true"/>
- <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@code " />
- <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@code&#009;" />
- <StringDetect attribute="InlineTag" context="#stay" String="{@docRoot}" />
- <StringDetect attribute="InlineTag" context="#stay" String="{@inheritDoc}" />
- <StringDetect attribute="InlineTag" context="InlineTagar" String="{@link " />
- <StringDetect attribute="InlineTag" context="InlineTagar" String="{@link&#009;" />
- <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain " />
- <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain&#009;" />
- <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal " />
- <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal&#009;" />
- <StringDetect attribute="InlineTag" context="#stay" String="{@value}" />
- <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value " />
- <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value&#009;" />
- <IncludeRules context="##Alerts"/>
+ <RegExpr attribute="JavadocFS" context="Javadocar" String="[!?.](\s*$|\s(?![\da-z]))|^\s*\**\s*(?=@(author|deprecated|exception|param|return|see|serial|serialData|serialField|since|throws|version)(\s|$))"/>
+ <IncludeRules context="FindInlineTag"/>
+ <IncludeRules context="##Comments"/>
<IncludeRules context="##HTML"/>
</context>
+ <context attribute="Javadoc" lineEndContext="#stay" name="FindInlineTag">
+ <WordDetect attribute="InlineTag" context="LiteralTagar" String="{@code"/>
+ <StringDetect attribute="InlineTag" context="#stay" String="{@docRoot}"/>
+ <StringDetect attribute="InlineTag" context="#stay" String="{@inheritDoc}"/>
+ <WordDetect attribute="InlineTag" context="InlineTagar" String="{@link"/>
+ <WordDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain"/>
+ <WordDetect attribute="InlineTag" context="LiteralTagar" String="{@literal"/>
+ <StringDetect attribute="InlineTag" context="#stay" String="{@value}"/>
+ <WordDetect attribute="InlineTag" context="InlineTagar" String="{@value"/>
+ <WordDetect attribute="InlineTag" context="LiteralTagar" String="{@summary"/>
+ <WordDetect attribute="InlineTag" context="LiteralTagar" String="{@systemProperty"/>
+ </context>
<context attribute="Javadoc" lineEndContext="#stay" name="Javadocar">
<Detect2Chars attribute="JavadocFS" context="#pop#pop" char="*" char1="/" endRegion="Javadoc"/>
- <RegExpr attribute="JavadocFS" context="#stay" String="\*+(?!/)" firstNonSpace="true"/>
- <StringDetect attribute="BlockTag" context="#stay" String="@author " />
- <StringDetect attribute="BlockTag" context="#stay" String="@deprecated " />
- <StringDetect attribute="BlockTag" context="JavadocParam" String="@exception " />
- <StringDetect attribute="BlockTag" context="JavadocParam" String="@param " />
- <StringDetect attribute="BlockTag" context="#stay" String="@return " />
- <StringDetect attribute="BlockTag" context="SeeTag" String="@see "/>
- <StringDetect attribute="BlockTag" context="#stay" String="@serial " />
- <StringDetect attribute="BlockTag" context="#stay" String="@serialData " />
- <StringDetect attribute="BlockTag" context="#stay" String="@serialField " />
- <StringDetect attribute="BlockTag" context="#stay" String="@since " />
- <StringDetect attribute="BlockTag" context="JavadocParam" String="@throws " />
- <StringDetect attribute="BlockTag" context="#stay" String="@version " />
- <StringDetect attribute="BlockTag" context="#stay" String="@author&#009;" />
- <StringDetect attribute="BlockTag" context="#stay" String="@deprecated&#009;" />
- <StringDetect attribute="BlockTag" context="JavadocParam" String="@exception&#009;" />
- <StringDetect attribute="BlockTag" context="JavadocParam" String="@param&#009;" />
- <StringDetect attribute="BlockTag" context="#stay" String="@return&#009;" />
- <StringDetect attribute="BlockTag" context="SeeTag" String="@see&#009;" />
- <StringDetect attribute="BlockTag" context="#stay" String="@serial&#009;" />
- <StringDetect attribute="BlockTag" context="#stay" String="@serialData&#009;" />
- <StringDetect attribute="BlockTag" context="#stay" String="@serialField&#009;" />
- <StringDetect attribute="BlockTag" context="#stay" String="@since&#009;" />
- <StringDetect attribute="BlockTag" context="JavadocParam" String="@throws&#009;" />
- <StringDetect attribute="BlockTag" context="#stay" String="@version&#009;" />
- <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@code " />
- <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@code&#009;" />
- <StringDetect attribute="InlineTag" context="#stay" String="{@docRoot}" />
- <StringDetect attribute="InlineTag" context="#stay" String="{@inheritDoc}" />
- <StringDetect attribute="InlineTag" context="InlineTagar" String="{@link " />
- <StringDetect attribute="InlineTag" context="InlineTagar" String="{@link&#009;" />
- <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain " />
- <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain&#009;" />
- <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal " />
- <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal&#009;" />
- <StringDetect attribute="InlineTag" context="#stay" String="{@value}" />
- <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value " />
- <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value&#009;" />
+ <DetectChar attribute="JavadocFS" context="JavadocFSStarPrefix" char="*" firstNonSpace="true"/>
+ <WordDetect attribute="BlockTag" context="#stay" String="@author"/>
+ <WordDetect attribute="BlockTag" context="#stay" String="@deprecated"/>
+ <WordDetect attribute="BlockTag" context="JavadocParam" String="@exception"/>
+ <WordDetect attribute="BlockTag" context="JavadocParam" String="@param"/>
+ <WordDetect attribute="BlockTag" context="#stay" String="@return"/>
+ <WordDetect attribute="BlockTag" context="SeeTag" String="@see"/>
+ <WordDetect attribute="BlockTag" context="#stay" String="@serial"/>
+ <WordDetect attribute="BlockTag" context="#stay" String="@serialData"/>
+ <WordDetect attribute="BlockTag" context="#stay" String="@serialField"/>
+ <WordDetect attribute="BlockTag" context="#stay" String="@since"/>
+ <WordDetect attribute="BlockTag" context="JavadocParam" String="@throws"/>
+ <WordDetect attribute="BlockTag" context="#stay" String="@version"/>
+ <IncludeRules context="FindInlineTag"/>
<IncludeRules context="##Alerts"/>
<IncludeRules context="##HTML"/>
</context>
- <context attribute="Javadoc" lineEndContext="#pop" name="JavadocParam">
- <DetectSpaces />
- <RegExpr attribute="JavadocParam" context="#pop#pop" String="\S*(?=\*/)" />
- <RegExpr attribute="JavadocParam" context="#pop" String="\S*(\s|$)" />
- <IncludeRules context="##Alerts"/>
+ <context attribute="Javadoc" lineEndContext="#pop" name="JavadocFSStarPrefix" fallthroughContext="#pop">
+ <Detect2Chars attribute="JavadocFS" context="#pop#pop#pop" char="*" char1="/" endRegion="Javadoc"/>
+ <DetectChar attribute="JavadocFS" context="#stay" char="*"/>
+ </context>
+ <context attribute="Javadoc" lineEndContext="#pop" name="JavadocParam" fallthroughContext="JavadocParamIdent">
+ <DetectSpaces context="JavadocParamIdent"/>
+ </context>
+ <context attribute="JavadocParam" lineEndContext="#pop#pop" name="JavadocParamIdent">
+ <DetectSpaces attribute="Javadoc" context="#pop#pop"/>
+ <Detect2Chars attribute="JavadocFS" context="#pop#pop#pop#pop" char="*" char1="/" endRegion="Javadoc"/>
</context>
<context attribute="InlineTag" name="InlineTagar" lineEndContext="#stay">
<DetectChar attribute="InlineTag" context="#pop" char="}" />
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/json.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/json.xml
index 28ad8e8a33..f302ff1369 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/json.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/json.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd">
+<!DOCTYPE language>
<!--
***************************************************************************
** Writing a Kate Highlighting XML File
@@ -10,9 +10,10 @@
**
** The application/json Media Type for JavaScript Object Notation (JSON)
** http://tools.ietf.org/html/rfc4627
+ ** https://www.json.org/json-en.html
***************************************************************************
-->
-<language name="JSON" section="Markup" version="3" kateversion="2.4" extensions="*.json;.kateproject;.arcconfig;*.gltf" mimetype="application/json" author="Sebastian Pipping (sebastian@pipping.org)" license="GPL">
+<language name="JSON" section="Markup" version="8" kateversion="2.4" extensions="*.json;.kateproject;.arcconfig;*.geojson;*.gltf;*.theme" mimetype="application/json" author="Sebastian Pipping (sebastian@pipping.org)" license="GPL">
<highlighting>
<list name="Constants">
<item>null</item>
@@ -39,43 +40,47 @@
<context name="String_Key" lineEndContext="#stay" attribute="Style_String_Key">
<DetectChar char="&quot;" context="#pop" attribute="Style_String_Key" />
- <RegExpr String="\\(?:[&quot;\\/bfnrt]|u[0-9a-fA-f]{4})" context="#stay" insensitive="false" minimal="false" attribute="Style_String_Key_Char" />
+ <DetectChar char="\" context="String_Key_Char" lookAhead="1"/>
+ </context>
+
+ <context name="String_Key_Char" lineEndContext="#stay" attribute="Style_Normal">
+ <RegExpr String="\\(?:[&quot;\\/bfnrt]|u[0-9a-fA-f]{4})" context="#pop" attribute="Style_String_Key_Char" />
+ <RegExpr String="\\(u[0-9a-fA-f]+|.)?" context="#pop" attribute="Style_Error" />
</context>
<context name="Value" lineEndContext="#stay" attribute="Style_Error" >
+ <AnyChar String="}," context="#pop" lookAhead="true" />
+ <IncludeRules context="JsonValue"/>
+ </context>
+
+ <context name="JsonValue" lineEndContext="#stay" attribute="Style_Error" >
<DetectChar char="&quot;" context="String_Value" attribute="Style_String_Value" />
<DetectChar char="{" context="Pair" beginRegion="Region_Object" attribute="Style_Seperator_Pair" />
<DetectChar char="[" context="Array" beginRegion="Region_Array" attribute="Style_Seperator_Array" />
- <DetectChar char="}" context="#pop" lookAhead="true" />
- <DetectChar char="," context="#pop" lookAhead="true" />
<DetectSpaces context="#stay" attribute="Style_Normal" />
<keyword String="Constants" context="#stay" attribute="Style_Keyword" />
- <RegExpr String="-?(?:[0-9]|[1-9][0-9]+)\.[0-9]+(?:[eE][+-]?[0-9]+)?" context="#stay" insensitive="false" minimal="false" attribute="Style_Float" />
- <RegExpr String="-?(?:[0-9]|[1-9][0-9]+)(?:[eE][+-]?[0-9]+)?" context="#stay" insensitive="false" minimal="false" attribute="Style_Decimal" />
+ <RegExpr String="-?\b([1-9][0-9]*\.[0-9]+(?:[eE][+-]?[0-9]+)?)" context="#stay" attribute="Style_Float" />
+ <RegExpr String="-?\b(0\b|[1-9][0-9]*(?:[eE][+-]?[0-9]+)?)" context="#stay" attribute="Style_Decimal" />
</context>
<context name="String_Value" lineEndContext="#stay" attribute="Style_String_Value">
<DetectChar char="&quot;" context="#pop" attribute="Style_String_Value" />
- <RegExpr String="\\(?:[&quot;\\/bfnrt]|u[0-9a-fA-f]{4})" context="#stay" insensitive="false" minimal="false" attribute="Style_String_Value_Char" />
+ <DetectChar char="\" context="String_Key_Value" lookAhead="1" />
+ </context>
+
+ <context name="String_Key_Value" lineEndContext="#stay" attribute="Style_Normal">
+ <RegExpr String="\\(?:[&quot;\\/bfnrt]|u[0-9a-fA-f]{4})" context="#pop" attribute="Style_String_Value_Char" />
+ <RegExpr String="\\(u[0-9a-fA-f]+|.)?" context="#pop" attribute="Style_Error" />
</context>
<context name="Array" lineEndContext="#stay" attribute="Style_Error">
<DetectChar char="," context="#stay" attribute="Style_Seperator_Array" />
<DetectChar char="]" context="#pop" endRegion="Region_Array" attribute="Style_Seperator_Array" />
- <DetectChar char="{" context="Pair" beginRegion="Region_Object" attribute="Style_Seperator_Pair" />
- <DetectChar char="[" context="Array" beginRegion="Region_Array" attribute="Style_Seperator_Array" />
- <DetectChar char="&quot;" context="String_Value" attribute="Style_String_Value" />
-
- <DetectSpaces context="#stay" attribute="Style_Normal" />
-
- <keyword String="Constants" context="#stay" attribute="Style_Keyword" />
-
- <RegExpr String="-?(?:[0-9]|[1-9][0-9]+)\.[0-9]+(?:[eE][+-]?[0-9]+)?" context="#stay" insensitive="false" minimal="false" attribute="Style_Float" />
- <RegExpr String="-?(?:[0-9]|[1-9][0-9]+)(?:[eE][+-]?[0-9]+)?" context="#stay" insensitive="false" minimal="false" attribute="Style_Decimal" />
+ <IncludeRules context="JsonValue"/>
</context>
</contexts>
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.GPLv2 b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.GPLv2
new file mode 100644
index 0000000000..b9033aeae6
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.GPLv2
@@ -0,0 +1,282 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+
+Everyone is permitted to copy and distribute verbatim copies of this
+license document, but changing it is not allowed.
+
+Preamble
+
+ The licenses for most software are designed to take away your freedom
+to share and change it. By contrast, the GNU General Public License is
+intended to guarantee your freedom to share and change free software
+--to make sure the software is free for all its users. This General
+Public License applies to most of the Free Software Foundation's
+software and to any other program whose authors commit to using it.
+(Some other Free Software Foundation software is covered by the GNU
+Lesser General Public License instead.) You can apply it to your
+programs, too.
+
+When we speak of free software, we are referring to freedom, not price.
+Our General Public Licenses are designed to make sure that you have the
+freedom to distribute copies of free software (and charge for this
+service if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs; and that you know you can do these things.
+
+To protect your rights, we need to make restrictions that forbid anyone
+to deny you these rights or to ask you to surrender the rights. These
+restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+For example, if you distribute copies of such a program, whether gratis
+ or for a fee, you must give the recipients all the rights that you
+have. You must make sure that they, too, receive or can get the source
+code. And you must show them these terms so they know their rights.
+
+We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+Finally, any free program is threatened constantly by software patents.
+We wish to avoid the danger that redistributors of a free program will
+individually obtain patent licenses, in effect making the program
+proprietary. To prevent this, we have made it clear that any patent
+must be licensed for everyone's free use or not licensed at all.
+
+The precise terms and conditions for copying, distribution and
+modification follow.
+
+TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+0. This License applies to any program or other work which contains a
+notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of running
+the Program is not restricted, and the output from the Program is
+covered only if its contents constitute a work based on the Program
+(independent of having been made by running the Program). Whether that
+is true depends on what the Program does.
+
+1. You may copy and distribute verbatim copies of the Program's source
+code as you receive it, in any medium, provided that you conspicuously
+and appropriately publish on each copy an appropriate copyright notice
+and disclaimer of warranty; keep intact all the notices that refer to
+this License and to the absence of any warranty; and give any other
+recipients of the Program a copy of this License along with the
+Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+2. You may modify your copy or copies of the Program or any portion of
+it, thus forming a work based on the Program, and copy and distribute
+such modifications or work under the terms of Section 1 above, provided
+that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but does
+ not normally print such an announcement, your work based on the
+ Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of a
+storage or distribution medium does not bring the other work under the
+scope of this License.
+
+3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software
+ interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your cost
+ of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to control
+compilation and installation of the executable. However, as a special
+exception, the source code distributed need not include anything that
+is normally distributed (in either source or binary form) with the
+major components (compiler, kernel, and so on) of the operating system
+on which the executable runs, unless that component itself accompanies
+the executable.
+
+If distribution of executable or object code is made by offering access
+to copy from a designated place, then offering equivalent access to
+copy the source code from the same place counts as distribution of the
+source code, even though third parties are not compelled to copy the
+source along with the object code.
+
+4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt otherwise
+to copy, modify, sublicense or distribute the Program is void, and will
+automatically terminate your rights under this License. However,
+parties who have received copies, or rights, from you under this License
+will not have their licenses terminated so long as such parties remain
+in full compliance.
+
+5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further restrictions
+on the recipients' exercise of the rights granted herein. You are not
+responsible for enforcing compliance by third parties to this License.
+
+7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent license
+would not permit royalty-free redistribution of the Program by all
+those who receive copies directly or indirectly through you, then the
+only way you could satisfy both it and this License would be to refrain
+entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License may
+add an explicit geographical distribution limitation excluding those
+countries, so that distribution is permitted only in or among countries
+not thus excluded. In such case, this License incorporates the limitation
+as if written in the body of this License.
+
+9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail
+to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Program does not specify a version
+number of this License, you may choose any version ever published by
+the Free Software Foundation.
+
+10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the
+author to ask for permission. For software which is copyrighted by
+the Free Software Foundation, write to the Free Software Foundation;
+we sometimes make exceptions for this. Our decision will be guided by
+the two goals of preserving the free status of all derivatives of our
+free software and of promoting the sharing and reuse of software
+generally.
+
+NO WARRANTY
+
+11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND,
+EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
+ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH
+YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
+NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
+MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE
+TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+END OF TERMS AND CONDITIONS
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.GPLv3 b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.GPLv3
new file mode 100644
index 0000000000..94a9ed024d
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.GPLv3
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.LGPLv21 b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.LGPLv21
new file mode 100644
index 0000000000..ec3ce5f2b0
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.LGPLv21
@@ -0,0 +1,504 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the library's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ <signature of Ty Coon>, 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
+
+
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.LGPLv3 b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.LGPLv3
new file mode 100644
index 0000000000..eb33241551
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses/LICENSE.LGPLv3
@@ -0,0 +1,163 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
+Everyone is permitted to copy and distribute verbatim copies of this
+licensedocument, but changing it is not allowed.
+
+This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+0. Additional Definitions.
+
+ As used herein, “this License” refers to version 3 of the GNU Lesser
+General Public License, and the “GNU GPL” refers to version 3 of the
+GNU General Public License.
+
+ “The Library” refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An “Application” is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A “Combined Work” is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the “Linked
+Version”.
+
+ The “Minimal Corresponding Source” for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The “Corresponding Application Code” for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort
+ to ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this
+ license document.
+
+4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that, taken
+together, effectively do not restrict modification of the portions of
+the Library contained in the Combined Work and reverse engineering for
+debugging such modifications, if you also do each of the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this
+ license document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of
+ this License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with
+ the Library. A suitable mechanism is one that (a) uses at run
+ time a copy of the Library already present on the user's
+ computer system, and (b) will operate properly with a modified
+ version of the Library that is interface-compatible with the
+ Linked Version.
+
+ e) Provide Installation Information, but only if you would
+ otherwise be required to provide such information under section 6
+ of the GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the Application
+ with a modified version of the Linked Version. (If you use option
+ 4d0, the Installation Information must accompany the Minimal
+ Corresponding Source and Corresponding Application Code. If you
+ use option 4d1, you must provide the Installation Information in
+ the manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.)
+
+5. Combined Libraries.
+
+ You may place library facilities that are a work based on the Library
+side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities, conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of
+ it is a work based on the Library, and explaining where to find
+ the accompanying uncombined form of the same work.
+
+6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+as you received it specifies that a certain numbered version of the
+GNU Lesser General Public License “or any later version” applies to
+it, you have the option of following the terms and conditions either
+of that published version or of any later version published by the
+Free Software Foundation. If the Library as you received it does not
+specify a version number of the GNU Lesser General Public License,
+you may choose any version of the GNU Lesser General Public License
+ever published by the Free Software Foundation.
+
+If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the Library.
+
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/makefile.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/makefile.xml
deleted file mode 100644
index 6067a2470f..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/makefile.xml
+++ /dev/null
@@ -1,498 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd">
-<!-- Makefile syntaxfile v0.9 by Per Wigren <wigren@home.se> -->
-<!-- Modified by Joseph Wenninger <jowenn@kde.org> -->
-<!-- Modified by Rui Santana <santana.rui@gmail.com> -->
-<!-- v2.0 by Andreas Nordal <andreas.nordal@gmail.com> -->
-<!-- small priority to allow for example Makefile.cpp to be detected as cpp file -->
-<!-- v2.1 by Alex Turbov <i.zaufi@gmail.com>
- improve comments handling -->
-<!-- v4 by Alex Richardson <arichardson.kde@gmail.com>
- added bmake support -->
-<language name="Makefile" section="Other"
- version="7" kateversion="3.4"
- extensions="GNUmakefile;Makefile;makefile;GNUmakefile.*;Makefile.*;makefile.*;*.mk"
- mimetype="text/x-makefile" priority="11"
- author="Per Wigren (wigren@home.se)" license="">
- <highlighting>
- <list name = "keywords" >
- <item>include</item>
- <item>-include</item>
- <item>define</item>
- <item>endef</item>
- </list>
- <!-- https://www.gnu.org/software/make/manual/html_node/Conditional-Syntax.html -->
- <list name="gmake_if_keywords">
- <item>if</item>
- <item>ifeq</item>
- <item>ifneq</item>
- <item>ifdef</item>
- <item>ifndef</item>
- </list>
- <list name="gmake_else_keywords"><item>else</item></list>
- <list name="gmake_endif_keywords"><item>endif</item></list>
- <!-- bmake statements: https://www.freebsd.org/cgi/man.cgi?make(1)#INCLUDE_STATEMENTS,_CONDITIONALS_AND_FOR_LOOPS -->
- <list name="bmake_if_keywords">
- <item>.if</item>
- <item>.ifdef</item>
- <item>.ifndef</item>
- <item>.ifmake</item>
- <item>.ifnmake</item>
- </list>
- <list name="bmake_else_keywords">
- <item>.elif</item>
- <item>.elifdef</item>
- <item>.elifndef</item>
- <item>.elifmake</item>
- <item>.elifnmake</item>
- <item>.else</item> <!-- TODO: anything following .else should be highlighted as an error -->
- </list>
- <list name="bmake_endif_keywords"><item>.endif</item></list>
-
- <list name="bmake_expressions">
- <item>defined</item>
- <item>empty</item>
- <item>exists</item>
- <item>target</item>
- <item>commands</item>
- </list>
-
- <list name="bmake_include_stmt">
- <item>.include</item>
- <item>.-include</item>
- <item>.sinclude</item>
- <!-- For compat bmake also handles include but this is already highlighted. <item>include</item> -->
- </list>
- <list name="bmake_message_stmt">
- <item>.info</item>
- <item>.warning</item>
- <item>.error</item>
- </list>
- <!-- Use single element list here so that .for/.endfor also shows up in code completion -->
- <list name="bmake_for_stmt"><item>.for</item></list>
- <list name="bmake_endfor_stmt"><item>.endfor</item></list>
-
- <!-- https://www.freebsd.org/cgi/man.cgi?make(1)#SPECIAL_TARGETS -->
- <list name="bmake_special_targets">
- <item>.BEGIN</item>
- <item>.DEFAULT</item>
- <item>.END</item>
- <item>.ERROR</item>
- <item>.IGNORE</item>
- <item>.INTERRUPT</item>
- <item>.MAIN</item>
- <item>.MAKEFLAGS</item>
- <item>.NOPATH</item>
- <item>.NOTPARALLEL</item>
- <item>.NO_PARALLEL</item>
- <item>.OBJDIR</item>
- <item>.ORDER</item>
- <item>.PATH</item>
- <item>.PHONY</item>
- <item>.PRECIOUS</item>
- <item>.SHELL</item>
- <item>.SILENT</item>
- <item>.STALE</item>
- <item>.SUFFIXES</item>
- </list>
- <!-- https://www.freebsd.org/cgi/man.cgi?make(1)#SPECIAL_SOURCES_(ATTRIBUTES) -->
- <list name="bmake_special_sources">
- <item>.EXEC</item>
- <item>.IGNORE</item>
- <item>.MADE</item>
- <item>.MAKE</item>
- <item>.META</item>
- <item>.NOMETA</item>
- <item>.NOMETA_CMP</item>
- <item>.NOPATH</item>
- <item>.NOTMAIN</item>
- <item>.OPTIONAL</item>
- <item>.PHONY</item>
- <item>.PRECIOUS</item>
- <item>.RECURSIVE</item>
- <item>.SILENT</item>
- <item>.USE</item>
- <item>.USEBEFORE</item>
- <item>.WAIT</item>
- </list>
-
- <list name="bmake_other_stmts">
- <item>.unexport-env</item>
- <item>.unexport</item>
- <item>.undef</item>
- <item>.export-env</item>
- <item>.export</item>
- </list>
-
- <list name = "functions">
- <item>call</item>
- <item>subst</item>
- <item>patsubst</item>
- <item>strip</item>
- <item>findstring</item>
- <item>filter</item>
- <item>filter-out</item>
- <item>sort</item>
- <item>word</item>
- <item>wordlist</item>
- <item>words</item>
- <item>firstword</item>
- <item>lastword</item>
- <item>dir</item>
- <item>notdir</item>
- <item>suffix</item>
- <item>basename</item>
- <item>addsuffix</item>
- <item>addprefix</item>
- <item>join</item>
- <item>wildcard</item>
- <item>realpath</item>
- <item>abspath</item>
- <item>if</item>
- <item>or</item>
- <item>and</item>
- <item>foreach</item>
- <item>value</item>
- <item>eval</item>
- <item>origin</item>
- <item>flavor</item>
- <item>shell</item>
- <item>error</item>
- <item>warning</item>
- <item>info</item>
- </list>
- <contexts>
- <context name="normal" attribute="Normal" lineEndContext="#stay">
- <DetectSpaces/>
- <DetectChar attribute="Comment" context="Comment" char="#"/>
- <keyword attribute="ControlFlow" String="bmake_if_keywords" context="bmake_conditional" beginRegion="bmake_if" firstNonSpace="true"/>
- <!--TODO: trailing non-space after .else should be highlighted as an error -->
- <keyword attribute="ControlFlow" String="bmake_else_keywords" context="bmake_conditional" endRegion="bmake_if" beginRegion="bmake_if" firstNonSpace="true"/>
- <keyword attribute="ControlFlow" String="bmake_endif_keywords" context="#stay" endRegion="bmake_if"/>
-
- <keyword attribute="ControlFlow" String="gmake_if_keywords" context="#stay" beginRegion="gmake_if" firstNonSpace="true"/>
- <!--TODO: trailing non-space after .else should be highlighted as an error -->
- <keyword attribute="ControlFlow" String="gmake_else_keywords" context="gmake_else" endRegion="gmake_if" beginRegion="gmake_if" firstNonSpace="true"/>
- <keyword attribute="ControlFlow" String="gmake_endif_keywords" context="#stay" endRegion="gmake_if"/>
-
- <keyword attribute="Keyword" context="#stay" String="keywords"/>
- <keyword attribute="Keyword" context="bmake_other_stmts" String="bmake_other_stmts" firstNonSpace="true"/>
- <RegExpr attribute="Variable" context="assign" String="[^\s+:?+]*\s*(?=:=|=|\+=|\?=)"/>
- <keyword attribute="SpecialTarget" context="bmake_special_target" String="bmake_special_targets" firstNonSpace="true"/>
- <RegExpr attribute="SpecialTarget" context="prereq" String="\.PATH\.[^:]*:" firstNonSpace="true"/>
- <keyword attribute="Keyword" context="bmake_include" String="bmake_include_stmt" firstNonSpace="true"/>
- <keyword attribute="Keyword" context="bmake_message" String="bmake_message_stmt" firstNonSpace="true"/>
- <keyword attribute="Keyword" context="bmake_for_loop" String="bmake_for_stmt" firstNonSpace="true" beginRegion="for"/>
- <keyword attribute="Keyword" context="#stay" String="bmake_endfor_stmt" firstNonSpace="true" endRegion="for"/>
-
- <RegExpr attribute="Section" context="prereq" String="^\.[^.][^:]*:"/>
- <RegExpr attribute="Target" context="prereq" String="^[^:]*:"/>
- <DetectIdentifier/>
- <DetectChar attribute="String" context="string&quot;" char="&quot;"/>
- <DetectChar attribute="String" context="string'" char="'"/>
- <DetectChar attribute="Operator" context="dollar" char="$"/>
- <Detect2Chars attribute="Special" context="#stay" char="\" char1="#"/>
- <Detect2Chars attribute="Special" context="#stay" char="\" char1="\"/>
- <AnyChar attribute="Operator" context="silent" String="@-" firstNonSpace="1"/>
- </context>
-
- <context name="strings_and_vars" attribute="Normal" lineEndContext="#pop">
- <DetectChar attribute="Operator" context="dollar" char="$"/>
- <DetectChar attribute="String" context="string&quot;" char="&quot;"/>
- <DetectChar attribute="String" context="string'" char="'"/>
- <DetectChar attribute="Comment" context="Comment" char="#"/>
- </context>
-
- <context name="gmake_else" attribute="Error" lineEndContext="#pop">
- <DetectSpaces attribute="Normal"/>
- <keyword attribute="ControlFlow" String="gmake_if_keywords" context="#stay"/>
- <IncludeRules context="strings_and_vars"/>
- </context>
-
- <context name="bmake_include" attribute="Normal" lineEndContext="#pop">
- <DetectSpaces />
- <RangeDetect char="&lt;" char1="&gt;" context="#stay" attribute="Include" />
- <RangeDetect char="&quot;" char1="&quot;" context="#stay" attribute="Include" />
- </context>
-
-
- <context name="bmake_conditional" attribute="Normal" lineEndContext="#pop">
- <DetectSpaces/>
- <IncludeRules context="strings_and_vars"/>
- <keyword attribute="Builtin" context="bmake_expression" String="bmake_expressions"/>
- <Detect2Chars attribute="RealOperator" context="#stay" char="&amp;" char1="&amp;"/>
- <Detect2Chars attribute="RealOperator" context="#stay" char="|" char1="|"/>
- <Detect2Chars attribute="RealOperator" context="#stay" char="!" char1="="/>
- <Detect2Chars attribute="RealOperator" context="#stay" char="=" char1="="/>
- <DetectChar attribute="RealOperator" context="#stay" char="!"/>
- <HlCHex attribute="Number" context="#stay"/>
- <Int attribute="Number" context="#stay"/>
- <DetectIdentifier attribute="Variable" context="#stay"/>
- <LineContinue attribute="Operator" context="#stay"/>
- </context>
-
- <context name="bmake_for_loop" attribute="Variable" lineEndContext="#pop">
- <DetectSpaces/>
- <IncludeRules context="strings_and_vars"/>
- <WordDetect attribute="RealOperator" context="#stay" String="in" />
- </context>
-
- <context name="bmake_other_stmts" attribute="Variable" lineEndContext="#pop">
- <DetectSpaces/>
- <IncludeRules context="strings_and_vars"/>
- </context>
-
- <context name="bmake_expression" attribute="Variable" lineEndContext="#pop">
- <DetectSpaces/>
- <IncludeRules context="strings_and_vars"/>
- <DetectChar attribute="Normal" context="#stay" char="("/>
- <DetectChar attribute="Normal" context="#pop" char=")"/>
- <DetectIdentifier attribute="Variable"/>
- </context>
-
- <context name="bmake_special_target" attribute="Error" lineEndContext="rule">
- <!-- anything but spaces before the : should be an error -->
- <DetectSpaces attribute="Normal" />
- <DetectChar attribute="SpecialTarget" context="#pop!prereq" char=":"/>
- </context>
-
- <context name="bmake_message" attribute="String" lineEndContext="#pop">
- <DetectChar attribute="Operator" context="dollar" char="$"/>
- </context>
-
- <context name="prereq" attribute="Prereq" lineEndContext="rule">
- <DetectSpaces/>
- <keyword attribute="SpecialPrereq" context="#stay" String="bmake_special_sources"/>
- <DetectIdentifier/>
- <LineContinue attribute="Operator" context="#stay"/>
- <DetectChar attribute="Operator" context="dollar" char="$"/>
- <Detect2Chars attribute="Special" context="#stay" char="\" char1="#"/>
- <Detect2Chars attribute="Special" context="#stay" char="\" char1="\"/>
- <DetectChar attribute="Comment" context="Comment" char="#"/>
- </context>
-
- <context name="rule" attribute="Normal" lineEndContext="#stay">
- <LineContinue attribute="Operator" context="#stay"/>
- <!-- pop if there is a leading non-tab,
- and in particular, mark leading spaces as errors -->
- <RegExpr attribute="Error" context="#pop#pop#pop" String="^ +" firstNonSpace="1"/>
- <RegExpr context="#pop#pop#pop" String="^[^\t]" lookAhead="1" firstNonSpace="1"/>
- <DetectSpaces/>
- <DetectIdentifier/>
- <DetectChar attribute="String" context="string&quot;" char="&quot;"/>
- <DetectChar attribute="String" context="string'" char="'"/>
- <DetectChar attribute="Operator" context="dollar" char="$"/>
- <Detect2Chars attribute="Special" context="#stay" char="\" char1="#"/>
- <Detect2Chars attribute="Special" context="#stay" char="\" char1="\"/>
- <AnyChar attribute="Operator" context="silent" String="@-" firstNonSpace="1"/>
- <DetectChar attribute="Comment" context="Comment" char="#"/>
- </context>
-
- <context name="silent" attribute="Silent" lineEndContext="#pop">
- <LineContinue attribute="Operator" context="#stay"/>
- <DetectSpaces/>
- <DetectIdentifier/>
- <DetectChar attribute="String" context="string&quot;" char="&quot;"/>
- <DetectChar attribute="String" context="string'" char="'"/>
- <DetectChar attribute="Operator" context="dollar" char="$"/>
- <Detect2Chars attribute="Special" context="#stay" char="\" char1="#"/>
- <Detect2Chars attribute="Special" context="#stay" char="\" char1="\"/>
- <DetectChar attribute="Comment" context="Comment" char="#"/>
- </context>
-
- <context name="string&quot;" attribute="String" lineEndContext="#pop">
- <LineContinue attribute="Operator" context="#stay"/>
- <DetectChar attribute="String" context="#pop" char="&quot;"/>
- <DetectChar attribute="Operator" context="dollar" char="$"/>
- </context>
-
- <context name="string'" attribute="String" lineEndContext="#pop">
- <LineContinue attribute="String" context="#stay"/>
- <DetectChar attribute="String" context="#pop" char="'"/>
- <DetectChar attribute="Operator" context="dollar" char="$"/>
- </context>
-
- <context name="assign" attribute="Operator" lineEndContext="#pop">
- <DetectChar attribute="Operator" context="value" char="="/>
- </context>
-
- <context name="value" attribute="String" lineEndContext="#pop#pop">
- <LineContinue attribute="Operator"/>
- <DetectChar attribute="Operator" context="dollar" char="$"/>
- <RegExpr attribute="Special" context="#pop#pop" String="@[-_\d\w]*@"/>
- <DetectChar attribute="Operator" char=";" context="#pop#pop"/>
- </context>
-
- <context name="dollar" attribute="Operator" lineEndContext="#pop">
- <DetectChar attribute="Operator" context="call(" char="("/>
- <DetectChar attribute="Operator" context="call{" char="{"/>
- <RegExpr attribute="Operator" context="#pop" String="."/>
- </context>
-
- <context name="call(" attribute="Variable" lineEndContext="#stay" fallthroughContext="callVar(" fallthrough="1">
- <keyword attribute="Keyword" context="callFunc(" String="functions"/>
- </context>
-
- <context name="call{" attribute="Variable" lineEndContext="#stay" fallthroughContext="callVar{" fallthrough="1">
- <keyword attribute="Keyword" context="callFunc{" String="functions"/>
- </context>
-
- <context name="callVar(" attribute="Variable" lineEndContext="#stay">
- <DetectChar attribute="Operator" char=")" context="#pop#pop#pop"/>
- <DetectChar attribute="Operator" context="dollar" char="$"/>
- <DetectSpaces attribute="Error" context="#stay"/>
- <AnyChar attribute="Error" context="#stay" String="=#:"/>
- </context>
-
- <context name="callVar{" attribute="Variable" lineEndContext="#stay">
- <DetectChar attribute="Operator" char="}" context="#pop#pop#pop"/>
- <DetectChar attribute="Operator" context="dollar" char="$"/>
- <DetectSpaces attribute="Error" context="#stay"/>
- <!-- Handle bmake Variable modifiers: ${variable[:modifier[:...]]} -->
- <Detect2Chars context="#stay" char="\" char1=":"/>
- <!-- other modifiers -->
- <DetectChar attribute="RealOperator" context="bmake_var_modifier" char=":"/>
- <AnyChar attribute="Error" context="#stay" String="=#"/>
- </context>
-
- <context name="bmake_var_modifier_arg" attribute="VarModifier" lineEndContext="#pop">
- <DetectChar attribute="Operator" context="dollar" char="$"/>
- <Detect2Chars context="#stay" char="\" char1="}"/>
- <DetectChar attribute="Operator" char="}" context="#pop#pop#pop#pop"/>
- <Detect2Chars context="#stay" char="\" char1=":"/>
- <DetectChar attribute="RealOperator" context="#pop!bmake_var_modifier" char=":"/>
- </context>
-
- <!-- TODO: once all modifiers are properly handled change fallthroughContext to "expect}" -->
- <context name="bmake_var_modifier" attribute="VarModifier" lineEndContext="#pop" fallthroughContext="#pop!bmake_var_modifier_arg" fallthrough="true">
- <DetectChar attribute="Operator" context="dollar" char="$"/>
-
- <!--
- TODO :?true_string:false_string
- TODO :old_string=new_string This is the AT&T System V UNIX style variable substitution.
- TODO :@temp@string@ This is the loop expansion mechanism from the OSF Development Environment (ODE) make.
- TODO :!cmd! The output of running cmd is the value.
- TODO :[range]
- -->
- <!-- Modifiers without arguments:-->
- <!--
- :E Replaces each word in the variable with its suffix.
- :H Replaces each word in the variable with everything but the last component.
- :O Order every word in variable alphabetically.
- :Q Quotes every shell meta-character in the variable
- :R Replaces each word in the variable with everything but its suffix.
- :T Replaces each word in the variable with its last component.
- :u Remove adjacent duplicate words (like uniq(1)).
- :L The name of the variable is the value.
- :P The path of the node which has the same name as the variable is the value.
- -->
- <AnyChar attribute="Builtin" context="#pop!expect}" String="EHOQRTuLP"/>
- <!-- :sh If the variable is non-empty it is run as a command and the output becomes the new value. -->
- <Detect2Chars attribute="Builtin" context="#pop!expect}" char="s" char1="h"/>
- <!-- :Ox Randomize words in variable. -->
- <Detect2Chars attribute="Builtin" context="#pop!expect}" char="O" char1="x"/>
- <!-- :tA Attempt to convert variable to an absolute path using realpath(3),-->
- <Detect2Chars attribute="Builtin" context="#pop!expect}" char="t" char1="A"/>
- <!-- :tl Converts variable to lower-case letters.-->
- <Detect2Chars attribute="Builtin" context="#pop!expect}" char="t" char1="L"/>
- <!-- :gmtime The value is a format string for strftime(3), using the current gmtime(3). -->
- <StringDetect attribute="Builtin" String="gmtime" context="#pop!expect}" />
- <!-- :hash Compute a 32bit hash of the value and encode it as hex digits. -->
- <StringDetect attribute="Builtin" String="hash" context="#pop!expect}" />
- <!-- :localtime The value is a format string for strftime(3), using the current localtime(3). -->
- <StringDetect attribute="Builtin" String="localtime" context="#pop!expect}" />
- <!--Now the modifiers with arguments:-->
- <!--
- :Mpattern Select only those words that match pattern.
- :Npattern This is identical to `:M', but selects all words which do not match pattern.
- :Dnewval If the variable is defined newval is the value.
- :Unewval If the variable is undefined newval is the value.
- -->
- <AnyChar attribute="Builtin" context="#pop!bmake_var_modifier_arg" String="MNDU"/>
- <!-- TODO: add new context to highligh old_string and new_string differently
- :S/old_string/new_string/[1gW]
- :C/pattern/replacement/[1gW]
- -->
- <AnyChar attribute="Builtin" context="#pop!bmake_var_modifier_arg" String="SC"/>
- <!-- ::=str The variable is assigned the value str after substitution. -->
- <Detect2Chars attribute="Builtin" context="#pop!bmake_var_modifier_arg" char=":" char1="="/>
- <!-- ::?=str As for ::= but only if the variable does not already have a value. -->
- <StringDetect attribute="Builtin" String=":?=" context="#pop!bmake_var_modifier_arg" />
- <!-- ::+=str Append str to the variable. -->
- <StringDetect attribute="Builtin" String=":+=" context="#pop!bmake_var_modifier_arg" />
- <!-- ::!=cmd Assign the output of cmd to the variable. -->
- <StringDetect attribute="Builtin" String=":!=" context="#pop!bmake_var_modifier_arg" />
- <!-- :tu Converts variable to upper-case letters. -->
- <Detect2Chars attribute="Builtin" context="#pop!bmake_var_modifier_arg" char="t" char1="u"/>
- <!-- :tW Causes the value to be treated as a single word. See also `:[*]'. -->
- <Detect2Chars attribute="Builtin" context="#pop!bmake_var_modifier_arg" char="t" char1="W"/>
- <!-- :tw Causes the value to be treated as a sequence of words delimited by white space. See also `:[@]'.-->
- <Detect2Chars attribute="Builtin" context="#pop!bmake_var_modifier_arg" char="t" char1="w"/>
- <!-- :tsc Words in the variable are normally separated by a space on
- expansion. This modifier sets the separator to the character c. If
- c is omitted, then no separator is used. The common escapes
- (including octal numeric codes), work as expected. -->
- <Detect2Chars attribute="Builtin" context="#pop!bmake_var_modifier_arg" char="t" char1="s"/>
-
- <IncludeRules context="bmake_var_modifier_arg"/>
- </context>
-
- <context name="expect}" attribute="Error" lineEndContext="#pop#pop#pop#pop">
- <Detect2Chars context="#stay" char="\" char1="}"/>
- <DetectChar attribute="Operator" char="}" context="#pop#pop#pop#pop"/>
- </context>
-
- <context name="callFunc(" attribute="FuncParam" lineEndContext="#stay">
- <DetectChar attribute="Operator" char=")" context="#pop#pop#pop"/>
- <DetectChar attribute="Operator" context="dollar" char="$"/>
- <DetectChar attribute="Keyword" context="#stay" char=","/>
- <DetectChar attribute="String" context="string'" char="'"/>
- </context>
-
- <context name="callFunc{" attribute="FuncParam" lineEndContext="#stay">
- <DetectChar attribute="Operator" char="}" context="#pop#pop#pop"/>
- <DetectChar attribute="Operator" context="dollar" char="$"/>
- <DetectChar attribute="Keyword" context="#stay" char=","/>
- <DetectChar attribute="String" context="string'" char="'"/>
- </context>
-
- <context attribute="Comment" lineEndContext="#pop" name="Comment">
- <LineContinue attribute="Comment" context="#stay" />
- <IncludeRules context="##Alerts" />
- <IncludeRules context="##Modelines" />
- </context>
-
- </contexts>
- <itemDatas>
- <itemData name="Normal" defStyleNum="dsNormal" spellChecking="0"/>
- <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/>
- <itemData name="Comment" defStyleNum="dsComment"/>
- <itemData name="String" defStyleNum="dsString" spellChecking="0"/>
- <itemData name="Variable" defStyleNum="dsDataType" spellChecking="0"/>
- <itemData name="Target" defStyleNum="dsDecVal" spellChecking="0"/>
- <itemData name="Section" defStyleNum="dsOthers" spellChecking="0"/>
- <itemData name="Prereq" defStyleNum="dsDataType" spellChecking="0"/>
- <itemData name="FuncParam" defStyleNum="dsString" spellChecking="0"/>
- <itemData name="Operator" defStyleNum="dsChar" spellChecking="0"/>
- <itemData name="Silent" defStyleNum="dsFunction" spellChecking="0"/>
- <itemData name="Special" defStyleNum="dsFloat" spellChecking="0"/>
- <itemData name="Error" defStyleNum="dsError" spellChecking="0"/>
- <itemData name="Builtin" defStyleNum="dsBuiltIn" spellChecking="0"/>
- <itemData name="Number" defStyleNum="dsDecVal" spellChecking="0"/>
- <itemData name="Include" defStyleNum="dsImport" spellChecking="0"/>
- <itemData name="ControlFlow" defStyleNum="dsControlFlow" spellChecking="0"/>
- <itemData name="VarModifier" defStyleNum="dsSpecialString" spellChecking="0"/>
- <itemData name="RealOperator" defStyleNum="dsKeyword" spellChecking="0"/>
- <itemData name="SpecialTarget" defStyleNum="dsOthers" spellChecking="0" bold="1"/>
- <itemData name="SpecialPrereq" defStyleNum="dsDataType" spellChecking="0" bold="1"/>
- </itemDatas>
- </highlighting>
- <general>
- <comments>
- <comment name = "singleLine" start = "#"/>
- </comments>
- <!-- '-' is not a deliminator in function filter-out -->
- <keywords casesensitive="1" weakDeliminator = ".-"/>
- </general>
-</language>
-<!-- kate: space-indent on; indent-width 2; replace-tabs on; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/markdown.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/markdown.xml
index f88848729f..c3811c772f 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/markdown.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/markdown.xml
@@ -6,6 +6,7 @@
Dual-Licensed under both GPL and BSD licenses.
Extended 2009 Claes Holmerson. http://github.com/claes/kate-markdown/
+ Extended 2019 Nibaldo González S. <nibgonz@gmail.com> (changes under MIT license).
-->
<!--
The [^\s]{1} is in the regex to avoid interfering with bullet list which
@@ -15,189 +16,685 @@
Match space or newline, followed by "*", followed by one non-space,
followed by anything non-asterisk, followed by "*", followed by
space, end-of-sentence punctuation, or the end of the line.
+
+ TODO: We can be more specific and highlight text combinations in bold,
+ italic and strikethrough.
+ Example: **bold text and _italic and bold text_**
+ __bold and ~~strikeout and bold~~__
-->
-<!DOCTYPE language SYSTEM "language.dtd"
+<!DOCTYPE language
[
-<!ENTITY strongemphasisregex "(\s|^)[\*_]{3}[^\*_]+[\*_]{3}(\s|\.|,|;|:|\-|\?|$)">
-<!ENTITY strongregex "(\s|^)[\*_]{2}[^\s]{1}[^\*_]+[\*_]{2}(\s|\.|,|;|:|\-|\?|$)">
-<!ENTITY emphasisregex "(\s|^)[\*_]{1}[^\s]{1}[^\*_]+[\*_]{1}(\s|\.|,|;|:|\-|\?|$)">
-<!ENTITY reflinkregex '\[[^\]\^]+\]\s*\[[^\]]*\]\s*(\s+\"[^\"]*\"){0,1}'>
-<!ENTITY reflinktargetregex '\[[^\]\^]+\]\:\s+[^\s]+(\s+\"[^\"]*\"){0,1}'>
-<!ENTITY footnoteregex "\[\^[^\]]+\]">
-<!ENTITY inlinelinkregex "\[[^\]\^]+\]\s*\([^\(]*\)">
-<!ENTITY inlineimageregex "\!\[[^\]\^]+\]\([^\(]*\)">
-<!ENTITY refimageregex "\!\[[^\]\^]+\]\[[^\[]*\]">
-<!ENTITY autolinkregex '&lt;(https?|ftp):[^\"&gt;\s]+&gt;'>
-<!ENTITY mailtolinkregex "&lt;(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)&gt;">
-<!ENTITY rulerregex "\s*([\*\-_]\s?){3,}\s*">
+<!-- NOTE: To correctly detect bold, italic or strike out text, use minimal="true" in RegExpr rules -->
+<!ENTITY contentregex_ast "(?:(?:[^\*\s\\]|\\.)(?:[^\\]|\\.)*)?(?:[^\*\s\\]|\\\S)">
+<!ENTITY contentregex_und "(?:(?:[^_\s\\]|\\.)(?:[^\\]|\\.)*)?(?:[^_\s\\]|\\\S)">
+<!-- strong + emphasis text -->
+<!ENTITY strongemphasisregex_ast "\*{3,5}&contentregex_ast;\*{3}">
+<!ENTITY strongemphasisregex_und "\b_{3,5}&contentregex_und;_{3}">
+<!ENTITY strongemphasisregex_ast_und "\*{2,5}(?:(?:_|_{3}|_{5})&contentregex_und;_+|(?:_{2}|_{4})&contentregex_und;_)\*{2}">
+<!ENTITY strongemphasisregex_ast_und2 "\*_{2,5}&contentregex_und;_{2,5}\*(?!\*)">
+<!ENTITY strongemphasisregex_und_ast "\b_{2,5}(?:(?:\*|\*{3}|\*{5})&contentregex_ast;\*+|(?:\*{2}|\*{4})&contentregex_ast;\*)_{2}">
+<!ENTITY strongemphasisregex_und_ast2 "\b_(?:\*{2,5}&contentregex_ast;\*{2,5}_{0,4}|_{0,4}\*{2,5}&contentregex_ast;\*{2,5})_\b">
+<!-- strong text -->
+<!ENTITY strongregex_ast "\*{2}(?:&contentregex_ast;\*{2}|\*{1,3}&contentregex_ast;\*{2}(?!\*))">
+<!ENTITY strongregex_und "\b_{2}(?:&contentregex_und;_{2}|_{1,3}&contentregex_und;_{2}(?!_))">
+<!-- emphasis text -->
+<!ENTITY emphasisregex_ast "\*(?:&contentregex_ast;\*|\*{1,4}&contentregex_ast;\*(?!\*))">
+<!ENTITY emphasisregex_und "\b_(?:&contentregex_und;_+|_{1,4}&contentregex_und;_)\b">
+<!-- links.
+ Keep in sync with reStructuredText (rest) -->
+<!ENTITY startlink "(?:https?|ftp)\://">
+<!ENTITY link "&startlink;[^&quot;&gt;\s]+">
+<!-- link in normal text.
+ Keep in sync with reStructuredText’s (rest) StandaloneHyperlink attribute -->
+<!ENTITY implicitlink "\b&startlink;[^&quot;&gt;\s`\)]*[^\s!&quot;&apos;`\(\)\*,\.:;&lt;&gt;\?~\]\}\\](?=[[:punct:]]*(?:[\s\)]|$))">
+<!-- references: [name], [name][id], [name][id] "title", [name](https://example.com) -->
+<!ENTITY refchar "(?:\\.|[^\]\\])">
+<!ENTITY refname "(?:\\.|[^\s\[\]\\])&refchar;*">
+<!ENTITY reflinkid "\s*(?:&refname;)?">
+<!ENTITY reflinkidregex "(?:\s?\[&reflinkid;\]|\((?:\\.|[^\(\)\\])*\))">
+<!ENTITY reflinkregex "\[(?:(?=\s*&refname;\])|\s+(?=\]))">
+<!-- target ref.: [id]: https://example.com "Title" -->
+<!ENTITY reflinktargetregex '\[\s*(?:&refname;|\s)\]\:\s+(?=\S)'>
+<!-- footnote: [^name] -->
+<!ENTITY footnoteregex "\[\^&refchar;+\]">
+<!-- image: ![title](https://example.com), ![title][id] -->
+<!ENTITY startinlineimage "\!\[(?:\\.|[^\[\]\\])*\]\(">
+<!ENTITY endinlineimage "(?:\\.|[^\(\)\\])*\)">
+<!ENTITY inlineimageregex "&startinlineimage;(?=&endinlineimage;)">
+<!ENTITY refimageregex "\!\[(?:\\.|[^\[\]\\])*\]\[&reflinkid;\]">
+<!-- autolink & email: <https://example.com>, <example@kde.org>, <mailto:example@kde.org> -->
+<!ENTITY autolinkregex '&lt;&link;&gt;'>
+<!ENTITY email "[\-\.\w]+\@[\-a-z0-9]+(?:\.[\-a-z0-9]+)*\.[a-z]+">
+<!ENTITY mailtolinkregex "&lt;(?:mailto:)?(?=&email;&gt;)">
+<!-- horizontal rule: avoid conflicts with strong-emphasis text, lists and code blocks -->
+<!ENTITY rulerregex "\s*(?:(?:\*\s*){3,}|(?:_\s*){3,}|(?:\-\s*){3,})\s*$">
<!-- two spaces at end of line generates linebreak -->
<!ENTITY linebreakregex " $">
-<!ENTITY strikeoutregex "[~]{2}[^~].*[^~][~]{2}">
-<!-- pandoc style -->
+<!-- strikethrough text, pandoc style -->
+<!ENTITY strikeoutregex "[~]{2}[^~](?:.*[^~])?[~]{2}">
+<!-- highlight text -->
+<!ENTITY highlightregex "[=]{2}[^=](?:.*[^=])?[=]{2}">
+<!-- emoji -->
+<!ENTITY emojiregex ":([-+]1|\w+):">
+<!-- start of fenced code block -->
+<!ENTITY fcode "(`{3,}|~{3,})">
+<!-- end of line & empty line -->
+<!ENTITY end "\s*$">
+<!ENTITY emptyline "^\s*$">
+<!-- indented code block -->
+<!ENTITY indentedcodeblock "(?:\s{4}|\t).*$">
+<!-- bullet of list -->
+<!ENTITY listbullet "[\*\+\-]">
+<!-- metadata key & name of html tag -->
+<!ENTITY metadatakey "[a-zA-Z0-9][\w\-\s]*\:">
+<!ENTITY htmlname "[A-Za-z_\:][\w\.\:\-]*">
+<!-- comment -->
+<!ENTITY startcomment "&lt;!--">
+<!ENTITY endcomment "--&gt;">
+<!ENTITY checkbox "\[[ x]\](?=\s)">
]>
-<language name="Markdown" version="6" kateversion="5.0" section="Markup" extensions="*.md;*.mmd;*.markdown" priority="15" author="Darrin Yeager, Claes Holmerson" license="GPL,BSD">
+
+<language name="Markdown" version="30" kateversion="5.79" section="Markup" extensions="*.md;*.mmd;*.markdown;*.md.html" mimetype="text/markdown" priority="15" author="Darrin Yeager, Claes Holmerson" license="GPL,BSD">
<highlighting>
<contexts>
- <context attribute="Normal Text" lineEndContext="#stay" name="Normal Text">
- <DetectChar context="blockquote" char="&gt;" column="0"/>
- <RegExpr attribute="h1" String="^#\s.*[#]?$"/>
- <RegExpr attribute="h2" String="^##\s.*[#]?$"/>
- <RegExpr attribute="h3" String="^###\s.*[#]?$"/>
- <RegExpr attribute="h4" String="^####\s.*[#]?$"/>
- <RegExpr attribute="h5" String="^#####\s.*[#]?$"/>
- <RegExpr attribute="h6" String="^######\s.*[#]?$"/>
- <RegExpr attribute="ruler" String="&rulerregex;"/>
- <RegExpr attribute="strong" String="&strongregex;"/>
- <RegExpr attribute="emphasis" String="&emphasisregex;"/>
- <RegExpr attribute="strongemphasis" String="&strongemphasisregex;"/>
- <RegExpr attribute="code" String="^([\s]{4,}|\t+).*$"/>
- <RegExpr context="bullet" String="^[\*\+\-]\s"/>
- <RegExpr context="numlist" String="^[\d]+\.\s"/>
- <RegExpr attribute="meta" String="^(Title|Author|Date|Copyright|Revision|CSS|LaTeX\ XSLT|Categories|Tags|BaseName|Excerpt):(.*)+$"/>
- <IncludeRules context="inc"/>
+ <!-- Start of the Markdown document: find metadata or code block -->
+ <context name="Start Document" attribute="Normal Text" lineEndContext="Normal Text" lineEmptyContext="Normal Text" fallthroughContext="Normal Text">
+ <!-- Some titles: (Title|Author|Date|Copyright|Revision|CSS|LaTeX\ XSLT|Categories|Tags|BaseName|Excerpt) -->
+ <!-- Metadata: Markdown format -->
+ <RegExpr attribute="Metadata" context="metadata" String="^\-{3}&end;" column="0" beginRegion="metadata"/>
+ <!-- Metadata: MultiMarkdown format -->
+ <RegExpr attribute="Metadata Title" context="metadata-mm-value" String="^&metadatakey;(?=\s|$)" column="0"/>
+ <!-- Code Block -->
+ <RegExpr attribute="Code" context="find-code-block-start" String="^&indentedcodeblock;" column="0"/>
+ </context>
+ <context name="metadata" attribute="Metadata" lineEndContext="#stay">
+ <StringDetect attribute="Metadata" context="#pop!Normal Text" String="---" column="0" endRegion="metadata"/>
+ <StringDetect attribute="Metadata" context="#pop!Normal Text" String="..." column="0" endRegion="metadata"/>
+ <RegExpr attribute="Metadata Title" String="^&metadatakey;(?=\s|$)" column="0"/>
+ </context>
+ <context name="metadata-mm-value" attribute="Metadata" lineEndContext="#pop!metadata-mm"/>
+ <context name="metadata-mm" attribute="Metadata" lineEndContext="#stay" lineEmptyContext="#pop!Normal Text" fallthroughContext="#pop!Normal Text">
+ <!-- Find Metadata key or value -->
+ <RegExpr attribute="Metadata Title" context="#pop!metadata-mm-value" String="^&metadatakey;(?=\s|$)" column="0"/>
+ <RegExpr attribute="Metadata" context="#pop!metadata-mm-value" String="^(?:\s{4}|\t)" column="0"/>
</context>
- <context attribute="blockquote" lineEndContext="#stay" lineEmptyContext="#pop" name="blockquote">
- <RegExpr attribute="bq-strong" String="&strongregex;"/>
- <RegExpr attribute="bq-emphasis" String="&emphasisregex;"/>
+ <context name="find-code-block-start" attribute="Normal Text" lineEndContext="#stay" lineEmptyContext="#stay" fallthroughContext="#pop!Normal Text">
+ <IncludeRules context="find-code-block"/>
+ </context>
+
+ <!-- Normal Text Document -->
+ <context name="Normal Text" attribute="Normal Text" lineEndContext="#stay" lineEmptyContext="find-code-block">
+ <!-- Header -->
+ <DetectChar context="find-header" char="#" column="0" lookAhead="true"/>
+ <RegExpr attribute="Header H1" String="(?:\=\s*){2,}$" firstNonSpace="true"/>
+ <!-- Highlight code block after line only with spaces or comment -->
+ <RegExpr attribute="Normal Text" context="find-code-block" String="&emptyline;" column="0"/>
+ <StringDetect attribute="Comment" context="find-code-block" String="&startcomment;" column="0" lookAhead="true"/>
+ <!-- Horizontal rules, Blockquotes and Lists.
+ NOTE: The indentation of the lists is captured. -->
+ <RegExpr attribute="Horizontal Rule" context="find-code-block" String="^&rulerregex;" column="0"/>
+ <DetectChar attribute="Blockquote" context="blockquote" char="&gt;" firstNonSpace="true"/>
+ <RegExpr attribute="List" context="list" String="^(\s*)&listbullet;(\s+)" column="0"/>
+ <RegExpr attribute="Number List" context="numlist" String="^(\s*)\d\.(\s+)" column="0"/>
+ <RegExpr attribute="Number List" context="numlist2" String="^(\s*)\d\d+\.(\s+)" column="0"/>
+ <!-- Find Strong, Emphasis and Strikethrough Text -->
+ <DetectChar context="find-strong-normal" char="*" lookAhead="true"/>
+ <DetectChar context="find-emphasis-normal" char="_" lookAhead="true"/>
+ <RegExpr attribute="Strikethrough Text" minimal="true" String="&strikeoutregex;"/>
+ <RegExpr attribute="Highlight Text" minimal="true" String="&highlightregex;"/>
+ <!-- Common -->
<IncludeRules context="inc"/>
+ <RegExpr attribute="Normal Text: Link" String="&implicitlink;"/>
+ <!-- Table -->
+ <DetectChar attribute="Table" char="|" context="table" firstNonSpace="true" lookAhead="1"/>
+ </context>
+ <!-- Find indented code blocks. These are only allowed after an empty line or on the first line -->
+ <context name="find-code-block" attribute="Normal Text" lineEndContext="#stay" lineEmptyContext="#stay" fallthroughContext="#pop">
+ <RegExpr attribute="Code" String="^&indentedcodeblock;" column="0"/>
+ <RegExpr attribute="Normal Text" String="&end;" />
+ <RegExpr attribute="Comment" context="comment" String="^\s*&startcomment;|\s*&startcomment;(?=.*&endcomment;)" beginRegion="comment"/>
+ </context>
+
+ <!-- Table in Normal Text Document -->
+ <context name="table" attribute="Normal Text" lineEndContext="#pop" lineEmptyContext="#pop!find-code-block">
+ <IncludeRules context="find-table-element"/>
+ <IncludeRules context="Normal Text"/>
+ </context>
+
+ <context name="find-table-element" attribute="Normal Text" lineEndContext="#pop">
+ <RegExpr attribute="Table" String="(\|(\s*:?---+:?)?)++"/>
+ </context>
+
+ <context name="find-header" attribute="Normal Text" lineEndContext="#pop">
+ <RegExpr attribute="Header H1" context="#pop!close-H2-region" String="^#\s" column="0" endRegion="H1" beginRegion="H1" lookAhead="true"/>
+ <RegExpr attribute="Header H2" context="#pop!close-H3-region" String="^##\s" column="0" endRegion="H2" beginRegion="H2" lookAhead="true"/>
+ <RegExpr attribute="Header H3" context="#pop!close-H4-region" String="^###\s" column="0" endRegion="H3" beginRegion="H3" lookAhead="true"/>
+ <RegExpr attribute="Header H4" context="#pop!close-H5-region" String="^####\s" column="0" endRegion="H4" beginRegion="H4" lookAhead="true"/>
+ <RegExpr attribute="Header H5" context="#pop!close-H6-region" String="^#####\s" column="0" endRegion="H5" beginRegion="H5" lookAhead="true"/>
+ <RegExpr attribute="Header H6" context="#pop" String="^######\s.*" column="0" endRegion="H6" beginRegion="H6"/>
+ <DetectChar attribute="Normal Text" context="#pop" char="#"/>
+ </context>
+ <!-- BUG: 441278 sub-headers should be closed when their parent header is closed (e.g. in h1 h2 h3 h1, h1-h3 should all be closed at the 2nd h1) -->
+ <!-- TODO: Port to a less hacky version (maybe a new attribute for declaring multiple endRegions) -->
+ <context name="close-H2-region" attribute="Header H2" lineEndContext="#pop!close-H3-region" fallthroughContext="#pop!close-H3-region">
+ <DetectChar attribute="Header H2" context="#pop!close-H3-region" char="#" lookAhead="true" endRegion="H2"/>
+ </context>
+ <context name="close-H3-region" attribute="Header H3" lineEndContext="#pop!close-H4-region" fallthroughContext="#pop!close-H4-region">
+ <DetectChar attribute="Header H3" context="#pop!close-H4-region" char="#" lookAhead="true" endRegion="H3"/>
+ </context>
+ <context name="close-H4-region" attribute="Header H4" lineEndContext="#pop!close-H5-region" fallthroughContext="#pop!close-H5-region">
+ <DetectChar attribute="Header H4" context="#pop!close-H5-region" char="#" lookAhead="true" endRegion="H4"/>
+ </context>
+ <context name="close-H5-region" attribute="Header H5" lineEndContext="#pop!close-H6-region" fallthroughContext="#pop!close-H6-region">
+ <DetectChar attribute="Header H5" context="#pop!close-H6-region" char="#" lookAhead="true" endRegion="H5"/>
+ </context>
+ <context name="close-H6-region" attribute="Header H6" lineEndContext="#pop" fallthroughContext="#pop">
+ <DetectChar attribute="Header H6" context="#pop!close-sentinel-region" char="#" lookAhead="true" endRegion="H6"/>
+ </context>
+ <!-- This sentinel does not close any actual region, it's just here so that the proper attribute/highlighting is applied and -->
+ <!--to ensure that H6 headers won't be set as the "primary" region that was closed just because it was closed last -->
+ <context name="close-sentinel-region" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop">
+ <RegExpr attribute="Header H1" context="#pop" String="^#\s.*" column="0"/>
+ <RegExpr attribute="Header H2" context="#pop" String="^##\s.*" column="0"/>
+ <RegExpr attribute="Header H3" context="#pop" String="^###\s.*" column="0"/>
+ <RegExpr attribute="Header H4" context="#pop" String="^####\s.*" column="0"/>
+ <RegExpr attribute="Header H5" context="#pop" String="^#####\s.*" column="0"/>
</context>
- <context attribute="bullet" lineEndContext="#stay" lineEmptyContext="#pop" name="bullet">
- <RegExpr attribute="bl-strong" String="&strongregex;"/>
- <RegExpr attribute="bl-emphasis" String="&emphasisregex;"/>
+
+
+ <context name="find-strong-normal" attribute="Normal Text" lineEndContext="#pop">
+ <RegExpr attribute="Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_ast_und;|&strongemphasisregex_ast_und2;"/>
+ <RegExpr attribute="Strong Text" context="#pop" minimal="true" String="&strongregex_ast;"/>
+ <RegExpr attribute="Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_ast;"/>
+ <RegExpr attribute="Emphasis Text" context="#pop" minimal="true" String="&emphasisregex_ast;"/>
+ <DetectChar attribute="Normal Text" context="#pop" char="*"/>
+ </context>
+ <context name="find-emphasis-normal" attribute="Normal Text" lineEndContext="#pop">
+ <RegExpr attribute="Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_und_ast;|&strongemphasisregex_und_ast2;"/>
+ <RegExpr attribute="Strong Text" context="#pop" minimal="true" String="&strongregex_und;"/>
+ <RegExpr attribute="Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_und;"/>
+ <RegExpr attribute="Emphasis Text" context="#pop" minimal="true" String="&emphasisregex_und;"/>
+ <DetectChar attribute="Normal Text" context="#pop" char="_"/>
+ </context>
+
+ <!-- Blockquote -->
+ <context name="blockquote" attribute="Blockquote: Normal Text" lineEndContext="#stay" lineEmptyContext="#pop">
+ <IncludeRules context="default-blockquote-1"/>
+ <!-- Find code block -->
+ <RegExpr attribute="Normal Text" context="#pop!find-code-block" String="&emptyline;" column="0"/>
+ <StringDetect attribute="Comment" context="#pop!find-code-block" String="&startcomment;" column="0" lookAhead="true"/>
+ <IncludeRules context="default-blockquote-2"/>
+ <IncludeRules context="find-table-element"/>
+ </context>
+ <!-- Blockquote within a list -->
+ <context name="blockquote-list" attribute="Blockquote: Normal Text" lineEndContext="#stay" lineEmptyContext="#pop">
+ <IncludeRules context="default-blockquote-1"/>
+ <!-- Don't find code block -->
+ <RegExpr attribute="Normal Text" context="#pop" String="&emptyline;" column="0"/>
+ <StringDetect attribute="Comment" context="#pop!comment" String="&startcomment;" firstNonSpace="true"/>
+ <IncludeRules context="default-blockquote-2"/>
+ </context>
+
+ <context name="default-blockquote-1" attribute="Blockquote: Normal Text" lineEndContext="#stay">
+ <DetectChar attribute="Blockquote" char="&gt;" firstNonSpace="true"/>
+ <!-- End with header, horizontal rule or list/numlist -->
+ <RegExpr context="#pop" String="^(?:\s*(?:&listbullet;|[\d]+\.)\s|#{1,6}\s|&rulerregex;)" column="0" lookAhead="true"/>
+ </context>
+ <context name="default-blockquote-2" attribute="Blockquote: Normal Text" lineEndContext="#stay">
+ <!-- Strong, emphasis, strong-emphasis and strikethrough text -->
+ <AnyChar context="find-strong-emphasis-blockquote" String="*_" lookAhead="true"/>
+ <RegExpr attribute="Blockquote: Strikethrough Text" minimal="true" String="&strikeoutregex;"/>
+ <RegExpr attribute="Blockquote: Highlight Text" minimal="true" String="&highlightregex;"/>
+ <!-- Common -->
<IncludeRules context="inc"/>
+ <RegExpr attribute="Blockquote: Link" String="&implicitlink;"/>
+ </context>
+ <context name="find-strong-emphasis-blockquote" attribute="Blockquote: Normal Text" lineEndContext="#pop">
+ <RegExpr attribute="Blockquote: Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_ast_und;|&strongemphasisregex_und_ast;|&strongemphasisregex_ast_und2;|&strongemphasisregex_und_ast2;"/>
+ <RegExpr attribute="Blockquote: Strong Text" context="#pop" minimal="true" String="&strongregex_ast;|&strongregex_und;"/>
+ <RegExpr attribute="Blockquote: Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_ast;|&strongemphasisregex_und;"/>
+ <RegExpr attribute="Blockquote: Emphasis Text" context="#pop" minimal="true" String="&emphasisregex_ast;|&emphasisregex_und;"/>
+ <AnyChar attribute="Blockquote: Normal Text" context="#pop" String="*_"/>
</context>
- <context attribute="numlist" lineEndContext="#stay" lineEmptyContext="#pop" name="numlist">
- <RegExpr attribute="nl-strong" String="&strongregex;"/>
- <RegExpr attribute="nl-emphasis" String="&emphasisregex;"/>
+
+ <!-- List and Numbered List -->
+ <!-- NOTE: The indentation of the lists is captured. New paragraphs, code blocks, blockquotes or
+ horizontal rules must have an indentation equal to or greater than the list, to be part of it. -->
+ <!-- * list -->
+ <context name="list" attribute="List: Normal Text" lineEndContext="#stay" fallthroughContext="content-list">
+ <!-- Find indented code blocks, blockquotes and horizontal rules -->
+ <RegExpr attribute="Code" String="^%1%2\s&indentedcodeblock;" column="0" dynamic="true"/>
+ <RegExpr attribute="Blockquote" context="blockquote-list" String="^%1%2\s+&gt;" column="0" dynamic="true"/>
+ <RegExpr attribute="Horizontal Rule" String="^%1%2\s+&rulerregex;" column="0" dynamic="true"/>
+ <RegExpr String="&emptyline;" column="0"/>
+ <!-- Text with the same indentation captured corresponds to the item list -->
+ <RegExpr context="content-list" String="^%1%2\s" column="0" lookAhead="true" dynamic="true"/>
+ <!-- Finish when the text has a lower indentation than the list -->
+ <RegExpr context="#pop" String="^\s*\S" column="0" lookAhead="true"/>
+ <!-- Highlight checkbox at the start of the item (task list) -->
+ <RegExpr attribute="List: Checkbox" context="content-list" String="\s*&checkbox;"/>
+ <!-- Highlight checkbox at the start of the item (task list) -->
+ <RegExpr attribute="Table" context="content-list-table" String="\s*\|"/>
+ </context>
+ <!-- 1. numlist (one digit) -->
+ <context name="numlist" attribute="List: Normal Text" lineEndContext="#stay" fallthroughContext="content-list">
+ <!-- Find indented code blocks, blockquotes and horizontal rules -->
+ <RegExpr attribute="Code" String="^%1%2\s{2}&indentedcodeblock;" column="0" dynamic="true"/>
+ <RegExpr attribute="Blockquote" context="blockquote-list" String="^%1%2\s{2,}&gt;" column="0" dynamic="true"/>
+ <RegExpr attribute="Horizontal Rule" String="^%1%2\s{2,}&rulerregex;" column="0" dynamic="true"/>
+ <RegExpr String="&emptyline;" column="0"/>
+ <!-- Text with the same indentation captured -->
+ <RegExpr context="content-list" String="^%1%2\s{2}" column="0" lookAhead="true" dynamic="true"/>
+ <!-- Finish when the text has a lower indentation than the list -->
+ <RegExpr context="#pop" String="^\s*\S" column="0" lookAhead="true"/>
+ </context>
+ <!-- 10. numlist (two or more digits) -->
+ <context name="numlist2" attribute="List: Normal Text" lineEndContext="#stay" fallthroughContext="content-list">
+ <!-- Find indented code blocks, blockquotes and horizontal rules -->
+ <RegExpr attribute="Code" String="^%1%2\s{3}&indentedcodeblock;" column="0" dynamic="true"/>
+ <RegExpr attribute="Blockquote" context="blockquote-list" String="^%1%2\s{3,}&gt;" column="0" dynamic="true"/>
+ <RegExpr attribute="Horizontal Rule" String="^%1%2\s{3,}&rulerregex;" column="0" dynamic="true"/>
+ <RegExpr String="&emptyline;" column="0"/>
+ <!-- Text with the same indentation captured -->
+ <RegExpr context="content-list" String="^%1%2\s{3}" column="0" lookAhead="true" dynamic="true"/>
+ <!-- Finish when the text has a lower indentation than the list -->
+ <RegExpr context="#pop" String="^\s*\S" column="0" lookAhead="true"/>
+ </context>
+
+ <!-- NOTE: Empty lines, blockquotes and horizontal rules send to contexts "list", "numlist" or "numlist2" (#pop),
+ to check the indentation of the text and determine if the content of the list ends. -->
+ <context name="content-list" attribute="List: Normal Text" lineEndContext="#stay" lineEmptyContext="#pop">
+ <RegExpr context="#pop" String="&emptyline;" column="0"/>
+ <!-- Blockquote and horizontal rule (check indentation) -->
+ <RegExpr context="#pop" String="^\s*(?:&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;"/>
+ </context>
+ <context name="find-strong-emphasis-list" attribute="List: Normal Text" lineEndContext="#pop">
+ <RegExpr attribute="List: Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_ast_und;|&strongemphasisregex_und_ast;|&strongemphasisregex_ast_und2;|&strongemphasisregex_und_ast2;"/>
+ <RegExpr attribute="List: Strong Text" context="#pop" minimal="true" String="&strongregex_ast;|&strongregex_und;"/>
+ <RegExpr attribute="List: Strong-Emphasis Text" context="#pop" minimal="true" String="&strongemphasisregex_ast;|&strongemphasisregex_und;"/>
+ <RegExpr attribute="List: Emphasis Text" context="#pop" minimal="true" String="&emphasisregex_ast;|&emphasisregex_und;"/>
+ <AnyChar attribute="List: Normal Text" context="#pop" String="*_"/>
+ </context>
+
+ <!-- Table in List -->
+ <context name="content-list-table" attribute="List: Normal Text" lineEndContext="#stay" lineEmptyContext="#pop">
+ <IncludeRules context="find-table-element"/>
+ <IncludeRules context="content-list"/>
+ </context>
+
+ <!-- Comments -->
+ <context name="comment" attribute="Comment" lineEndContext="#stay">
+ <StringDetect attribute="Comment" context="#pop" String="&endcomment;" endRegion="comment"/>
+ <IncludeRules context="##Comments"/>
</context>
- <context attribute="comment" lineEndContext="#stay" name="comment">
- <RegExpr String="--&gt;" attribute="comment" context="#pop" endRegion="comment"/>
+
+ <!-- Fenced Code Blocks -->
+ <context name="find-lang-fenced-code" attribute="Normal Text" lineEndContext="#pop">
+ <!-- Apply syntax highlighting to fenced code blocks for some languages -->
+ <RegExpr attribute="Fenced Code" context="#pop!code" String="&fcode;&end;" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!bash-code" String="&fcode;\s*(?:bash(?:rc|_profile|_login|_logout)?|shell|sh|profile|PKGBUILD|APKBUILD|ebuild|eclass|nix)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!zsh-code" String="&fcode;\s*(?:zsh)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!cpp-code" String="&fcode;\s*(?:[ch]pp|[ch]\+\+|[ch]xx|h?cc|hh|cuh?|ino|pde|moc)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!csharp-code" String="&fcode;\s*(?:cs|csharp|c\#)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!cmake-code" String="&fcode;\s*(?:cmake|CMakeLists(?:\.txt)?)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!css-code" String="&fcode;\s*css&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!c-code" String="&fcode;\s*[ch]&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!doxygen-code" String="&fcode;\s*doxygen&end;" insensitive="true" beginRegion="code-block"/> <!-- Block comment of Doxygen -->
+ <RegExpr attribute="Fenced Code" context="#pop!email-code" String="&fcode;\s*(?:email|emlx?|mbo?x)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!go-code" String="&fcode;\s*go(?:lang)?&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!hamlet-code" String="&fcode;\s*[wxs]?hamlet&end;" insensitive="true" beginRegion="code-block"/> <!-- Included in the Haskell definition -->
+ <RegExpr attribute="Fenced Code" context="#pop!haskell-code" String="&fcode;\s*(?:haskell|c?hs|hs\-boot)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!html-code" String="&fcode;\s*(?:[sx]?html?|inc|tmpl|tpl)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!java-code" String="&fcode;\s*(?:java|bsh)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!javascript-code" String="&fcode;\s*(?:javascript|m?js|es6|kwinscript|julius)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!jsx-code" String="&fcode;\s*(?:jsx|tsx|(?:java|type)script\-react)&end;" insensitive="true" beginRegion="code-block"/> <!-- Included in the HTML definition. Also apply for TSX. -->
+ <RegExpr attribute="Fenced Code" context="#pop!json-code" String="&fcode;\s*(?:json5?|gltf)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!yaml-code" String="&fcode;\s*(?:ya?ml)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!matlab-code" String="&fcode;\s*matlab&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!markdown-code" String="&fcode;\s*(?:markdown|m?md)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!mustache-code" String="&fcode;\s*(?:handlebars|hbs|mustache|mst|ractive|hogan|hulk)&end;" insensitive="true" beginRegion="code-block"/> <!-- Included in the HTML definition -->
+ <RegExpr attribute="Fenced Code" context="#pop!perl-code" String="&fcode;\s*(?:perl|p[lm]|pod|psgi|vcl)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!php-code" String="&fcode;\s*(?:php[3457t]?|wml|phtml?|aw|ctp)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!python-code" String="&fcode;\s*(?:python[23]?|py[23w]?|[rc]py|sconstruct|gypi?)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!qml-code" String="&fcode;\s*qml(?:types)?&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!r-code" String="&fcode;\s*(?:r|rprofile|rscript)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!raku-code" String="&fcode;\s*(?:raku(?:mod|doc|test)?|perl6|p[lm]?6|pod6|nqp)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!rest-code" String="&fcode;\s*(?:rst|rest|restructuredtext)&end;" insensitive="true" beginRegion="code-block"/> <!-- Included in the CMake definition -->
+ <RegExpr attribute="Fenced Code" context="#pop!ruby-code" String="&fcode;\s*(?:ruby|rbx?|rjs|rake|f?cgi|gemspec|irbrc|ru|prawn|Appraisals|(?:Rake|Cap|Chef|Gem|Guard|Hobo|Vagrant||Rant|Berks|Thor|Puppet)file|rxml|(?:xml|js)\.erb)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!rust-code" String="&fcode;\s*(?:rust|rs)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!mysql-code" String="&fcode;\s*(?:mysql|sql|ddl)&end;" insensitive="true" beginRegion="code-block"/> <!-- Included in the PHP definition -->
+ <RegExpr attribute="Fenced Code" context="#pop!nim-code" String="&fcode;\s*(?:nims?)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!typescript-code" String="&fcode;\s*(?:typescript|ts)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!xml-code" String="&fcode;\s*(?:xml|xsd|xspf|tld|jsp|c?pt|dtml|rss|opml|svg|daml|rdf|ui|kcfg|qrc|wsdl|scxml|xbel|dae|sch|brd|docbook)&end;" insensitive="true" beginRegion="code-block"/>
+ <RegExpr attribute="Fenced Code" context="#pop!code" String="&fcode;.*$" beginRegion="code-block"/>
+ </context>
+ <context name="code" attribute="Code" lineEndContext="#stay"> <!-- Unknown language -->
+ <RegExpr attribute="Fenced Code" context="#pop" String="%1[~`]*(?=&end;)" firstNonSpace="true" dynamic="true" endRegion="code-block"/>
</context>
- <context attribute="code" lineEndContext="#stay" name="bash-code">
- <WordDetect attribute="code" context="#pop" String="```"/>
+ <context attribute="Normal Text" lineEndContext="#stay" name="bash-code" fallthroughContext="Command##Bash">
+ <IncludeRules context="code"/>
<IncludeRules context="##Bash" includeAttrib="true"/>
</context>
- <context attribute="code" lineEndContext="#stay" name="cmake-code">
- <WordDetect attribute="code" context="#pop" String="```"/>
+ <context attribute="Normal Text" lineEndContext="#stay" name="zsh-code" fallthroughContext="Command##Zsh">
+ <IncludeRules context="code"/>
+ <IncludeRules context="##Zsh" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cmake-code">
+ <IncludeRules context="code"/>
<IncludeRules context="##CMake" includeAttrib="true"/>
</context>
- <context attribute="code" lineEndContext="#stay" name="cpp-code">
- <WordDetect attribute="code" context="#pop" String="```"/>
+ <context attribute="Normal Text" lineEndContext="#stay" name="c-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="##C" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="cpp-code">
+ <IncludeRules context="code"/>
<IncludeRules context="##C++" includeAttrib="true"/>
</context>
- <context attribute="code" lineEndContext="#stay" name="css-code">
- <WordDetect attribute="code" context="#pop" String="```"/>
+ <context attribute="Normal Text" lineEndContext="#stay" name="csharp-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="##C#" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="css-code">
+ <IncludeRules context="code"/>
<IncludeRules context="##CSS" includeAttrib="true"/>
</context>
- <context attribute="code" lineEndContext="#stay" name="email-code">
- <WordDetect attribute="code" context="#pop" String="```"/>
+ <context attribute="Normal Text" lineEndContext="#stay" name="doxygen-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="BlockComment##Doxygen" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="email-code">
+ <IncludeRules context="code"/>
<IncludeRules context="##Email" includeAttrib="true"/>
</context>
- <context attribute="code" lineEndContext="#stay" name="haskell-code">
- <WordDetect attribute="code" context="#pop" String="```"/>
+ <context attribute="Normal Text" lineEndContext="#stay" name="go-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="##Go" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="hamlet-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="##Hamlet" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="haskell-code">
+ <IncludeRules context="code"/>
<IncludeRules context="##Haskell" includeAttrib="true"/>
</context>
- <context attribute="code" lineEndContext="#stay" name="html-code">
- <WordDetect attribute="code" context="#pop" String="```"/>
+ <context attribute="Normal Text" lineEndContext="#stay" name="html-code">
+ <IncludeRules context="code"/>
<IncludeRules context="##HTML" includeAttrib="true"/>
</context>
- <context attribute="code" lineEndContext="#stay" name="json-code">
- <WordDetect attribute="code" context="#pop" String="```"/>
+ <context attribute="Normal Text" lineEndContext="#stay" name="java-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="##Java" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="javascript-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="Normal##JavaScript" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="jsx-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="Normal##JavaScript React (JSX)" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="json-code">
+ <IncludeRules context="code"/>
<IncludeRules context="##JSON" includeAttrib="true"/>
</context>
- <context attribute="code" lineEndContext="#stay" name="php-code">
- <WordDetect attribute="code" context="#pop" String="```"/>
+ <context attribute="Normal Text" lineEndContext="#stay" name="yaml-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="##YAML" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" lineEmptyContext="find-code-block" name="markdown-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="Normal Text"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="matlab-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="##Matlab" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="mustache-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="##Mustache/Handlebars (HTML)" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="perl-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="##Perl" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="php-code">
+ <IncludeRules context="code"/>
<IncludeRules context="phpsource##PHP/PHP" includeAttrib="true"/>
</context>
- <context attribute="code" lineEndContext="#stay" name="python-code">
- <WordDetect attribute="code" context="#pop" String="```"/>
+ <context attribute="Normal Text" lineEndContext="#stay" name="python-code">
+ <IncludeRules context="code"/>
<IncludeRules context="##Python" includeAttrib="true"/>
</context>
- <context attribute="code" lineEndContext="#stay" name="qml-code">
- <WordDetect attribute="code" context="#pop" String="```"/>
- <IncludeRules context="##QML" includeAttrib="true"/>
+ <context attribute="Normal Text" lineEndContext="#stay" name="qml-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="Normal##QML" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="r-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="##R Script" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="raku-code" fallthroughContext="term##Raku">
+ <IncludeRules context="code"/>
+ <IncludeRules context="base##Raku" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="rest-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="##reStructuredText" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="ruby-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="##Ruby" includeAttrib="true"/>
</context>
- <context attribute="code" lineEndContext="#stay" name="rust-code">
- <WordDetect attribute="code" context="#pop" String="```"/>
+ <context attribute="Normal Text" lineEndContext="#stay" name="rust-code">
+ <IncludeRules context="code"/>
<IncludeRules context="##Rust" includeAttrib="true"/>
</context>
- <context attribute="code" lineEndContext="#stay" name="xml-code">
- <WordDetect attribute="code" context="#pop" String="```"/>
+ <context attribute="Normal Text" lineEndContext="#stay" name="mysql-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="##SQL (MySQL)" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="nim-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="##Nim" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="typescript-code">
+ <IncludeRules context="code"/>
+ <IncludeRules context="Normal##TypeScript" includeAttrib="true"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="xml-code">
+ <IncludeRules context="code"/>
<IncludeRules context="##XML" includeAttrib="true"/>
</context>
- <context attribute="code" lineEndContext="#stay" name="code">
- <WordDetect attribute="code" context="#pop" String="```"/>
- </context>
- <context attribute="common" name="inc" lineEndContext="#stay">
- <RegExpr attribute="code" String="`[^`]+`"/>
- <RegExpr context="comment" String="&lt;!--" beginRegion="comment"/>
- <RegExpr attribute="reflink" String="&reflinkregex;"/>
- <RegExpr attribute="footnote" String="&footnoteregex;"/>
- <RegExpr attribute="inlinelink" String="&inlinelinkregex;"/>
- <RegExpr attribute="reflinktarget" String="&reflinktargetregex;"/>
- <RegExpr attribute="inlineimage" String="&inlineimageregex;"/>
- <RegExpr attribute="refimage" String="&refimageregex;"/>
- <RegExpr attribute="autolink" String="&autolinkregex;"/>
- <RegExpr attribute="mailtolink" String="&mailtolinkregex;"/>
- <RegExpr attribute="strikeout" minimal="true" String="&strikeoutregex;"/>
- <RegExpr attribute="linebreak" minimal="true" String="&linebreakregex;"/>
- <WordDetect attribute="code" context="bash-code" String="```bash"/>
- <WordDetect attribute="code" context="cmake-code" String="```cmake"/>
- <WordDetect attribute="code" context="cpp-code" String="```cpp"/>
- <WordDetect attribute="code" context="css-code" String="```css"/>
- <WordDetect attribute="code" context="email-code" String="```email"/>
- <WordDetect attribute="code" context="haskell-code" String="```haskell"/>
- <WordDetect attribute="code" context="html-code" String="```html"/>
- <WordDetect attribute="code" context="json-code" String="```json"/>
- <WordDetect attribute="code" context="php-code" String="```php"/>
- <WordDetect attribute="code" context="python-code" String="```python"/>
- <WordDetect attribute="code" context="qml-code" String="```qml"/>
- <WordDetect attribute="code" context="rust-code" String="```rust"/>
- <WordDetect attribute="code" context="xml-code" String="```xml"/>
- <StringDetect attribute="code" context="code" String="```"/>
+
+ <!-- Common -->
+ <context name="inc" attribute="Normal Text" lineEndContext="#stay">
+ <!-- Code -->
+ <RegExpr attribute="Code" String="`[^`]+`(?!`)|`{2}[^`](?:.*?[^`])?`{2}(?!`)|`{3}[^`](?:.*?[^`])?`{3}(?!`)|`{4}[^`](?:.*?[^`])?`{4}(?!`)|`{5,}[^`](?:.*?[^`])?`{5,}"/>
+ <!-- Find Fenced Code Block -->
+ <RegExpr attribute="Fenced Code" context="find-lang-fenced-code" String="`{3,}(?=[^`]*$)|~{3,}(?=[^~]*$)" firstNonSpace="true" lookAhead="true"/>
+ <!-- Comment -->
+ <StringDetect attribute="Comment" context="comment" String="&startcomment;" beginRegion="comment"/>
+ <!-- Links and References -->
+ <RegExpr attribute="Reference-Link Target" context="reflinktarget" String="&reflinktargetregex;" firstNonSpace="true"/>
+ <RegExpr attribute="Footnote" String="&footnoteregex;"/>
+ <RegExpr attribute="Reference-Link" context="find-reflink" String="&reflinkregex;"/>
+ <RegExpr attribute="Inline Image" context="inlineimage" String="&inlineimageregex;"/>
+ <RegExpr attribute="Reference Image" String="&refimageregex;"/>
+ <RegExpr attribute="Auto-Link" context="autolink" String="&autolinkregex;" lookAhead="true"/>
+ <RegExpr attribute="Mailto-Link" context="mailtolink" String="&mailtolinkregex;"/>
+ <!-- Emoji -->
+ <RegExpr attribute="Emoji" String="&emojiregex;"/>
+ <!-- Line Break -->
+ <RegExpr attribute="Line Break" minimal="true" String="&linebreakregex;"/>
+ <!-- Backslash Escapes -->
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="\"/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="`"/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="*"/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="_"/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="{"/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="}"/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="["/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="]"/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="("/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1=")"/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="#"/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="+"/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="-"/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="."/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="!"/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="|"/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="&lt;"/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="&gt;"/>
+ <Detect2Chars attribute="Backslash Escape" char="\" char1="&amp;"/>
+ <!-- Inline HTML -->
+ <RegExpr attribute="EntityRef" String="&amp;(?:#[0-9]+|#[xX][0-9A-Fa-f]+|&htmlname;);"/>
+ <RegExpr context="find-html-block" String="&lt;/?&htmlname;(?:[\s&gt;]|/&gt;|$)" lookAhead="true"/>
+ </context>
+ <context name="find-html-block" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop">
+ <IncludeRules context="FindElements##HTML"/>
+ </context>
+
+ <!-- Links and email: <https://example.com>, <example@kde.org> -->
+ <context name="autolink" attribute="Auto-Link" lineEndContext="#pop" fallthroughContext="#pop">
+ <DetectChar attribute="Auto-Link" char="&lt;"/>
+ <DetectChar attribute="Auto-Link" context="#pop" char="&gt;"/>
+ <RegExpr attribute="Link" String="&startlink;[^&quot;&gt;\s]+"/>
+ </context>
+ <context name="mailtolink" attribute="Email" lineEndContext="#pop">
+ <DetectChar attribute="Mailto-Link" context="#pop" char="&gt;"/>
+ </context>
+
+ <!-- References: [example][id], [example](http://example.com) -->
+ <context name="find-reflink" attribute="Reference-Link Name" lineEndContext="#pop">
+ <Detect2Chars attribute="Reference-Link Name" char="\" char1="]"/>
+ <RegExpr attribute="Reference-Link" context="#pop!find-reflink-id" String="\](?=&reflinkidregex;)"/> <!-- Find id -->
+ <DetectChar attribute="Reference-Link" context="#pop" char="]"/>
+ <!-- Image as link or reference -->
+ <RegExpr attribute="Inline Image" context="inlineimage" String="&startinlineimage;(?=&endinlineimage;&refchar;*\])"/>
+ <RegExpr attribute="Reference Image" String="&refimageregex;(?=&refchar;*\])"/>
+ <RegExpr attribute="Reference-Link Name" context="#stay" String="(?:\[(?:\\.|[^\[\]\\])*\](?:\\.|[^\[\]\\])*)+(?=\])" minimal="true"/>
+ </context>
+ <context name="find-reflink-id" attribute="Reference-Link" lineEndContext="#pop">
+ <DetectSpaces />
+ <!-- Ref.: [an example][id] "Optional title" -->
+ <DetectChar attribute="Reference-Link" context="#pop!reflink-id" char="["/>
+ <!-- Inline Ref.: [an example](http://example.com/ "Title") -->
+ <DetectChar attribute="Reference-Link" context="#pop!reflink-inline-id" char="("/>
+ </context>
+ <context name="reflink-inline-id" attribute="Reference-Link" lineEndContext="#pop">
+ <Detect2Chars attribute="Reference-Link" char="\" char1=")"/>
+ <DetectChar attribute="Reference-Link" context="#pop" char=")"/>
+ <RegExpr attribute="Reference-Link: Link" String="\b&startlink;(?:\\.|[^&quot;&gt;\s\)\\])+"/>
+ <RegExpr attribute="Reference-Link: Email" String="\b&email;\b"/>
+ </context>
+ <context name="reflink-id" attribute="Reference-Link ID" lineEndContext="#pop">
+ <Detect2Chars attribute="Reference-Link ID" char="\" char1="]"/>
+ <DetectChar attribute="Reference-Link" context="#pop!reflink-title" char="]"/>
+ <RegExpr attribute="Reference-Link: Link" String="\b&startlink;(?:\\.|[^&quot;&gt;\s\]\\])+"/>
+ </context>
+ <!-- [an example][id] "title" -->
+ <context name="reflink-title" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop">
+ <RegExpr attribute="Reference-Link" context="#pop" String="\s+&quot;(?:\\.|[^&quot;\\])*&quot;"/>
+ </context>
+
+ <!-- Target Ref.: [foo]: http://example.com/ "Optional Title Here" -->
+ <context name="reflinktarget" attribute="Reference-Link Target" lineEndContext="#pop" fallthroughContext="#pop">
+ <RegExpr attribute="Reference-Link Target: Link" context="#pop!reflinktarget-title" String="\s*&link;(?=\s|$)"/>
+ <RegExpr attribute="Reference-Link Target" context="#pop!reflinktarget-link" String="\s*&lt;(?=&link;&gt;(?:\s|$))"/>
+ <RegExpr attribute="Reference-Link Target" context="#pop!reflinktarget-title" String="\s*#[\w\.\:\-]+\b"/>
+ </context>
+ <context name="reflinktarget-link" attribute="Reference-Link Target" lineEndContext="#pop" fallthroughContext="#pop">
+ <DetectChar attribute="Reference-Link Target" context="#pop!reflinktarget-title" char="&gt;"/>
+ <RegExpr attribute="Reference-Link Target: Link" String="&link;"/>
+ </context>
+ <context name="reflinktarget-title" attribute="Reference-Link Target" lineEndContext="#pop" fallthroughContext="#pop">
+ <DetectSpaces attribute="Reference-Link Target"/>
+ <RegExpr attribute="Reference-Link Target" context="#pop" String="&quot;(?:\\.|[^&quot;\\])*&quot;|&apos;(?:\\.|[^&apos;\\])*&apos;|\((?:\\.|[^\)\\])*\)"/>
+ </context>
+
+ <!-- Image -->
+ <context name="inlineimage" attribute="Inline Image" lineEndContext="#pop">
+ <DetectChar attribute="Inline Image" context="#pop" char=")"/>
+ <Detect2Chars attribute="Inline Image" char="\" char1=")"/>
+ <RegExpr attribute="Inline Image: Link" String="\b&startlink;(?:\\.|[^&quot;&gt;\s\)\\])+"/>
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
- <itemData name="common" defStyleNum="dsNormal"/>
- <itemData name="strongemphasis" defStyleNum="dsNormal" italic="true" bold="true"/>
- <itemData name="emphasis" defStyleNum="dsNormal" italic="true"/>
- <itemData name="strong" defStyleNum="dsNormal" bold="true"/>
- <itemData name="ruler" defStyleNum="dsNormal" bold="true"/>
- <itemData name="strikeout" defStyleNum="dsNormal" strikeOut="true"/>
- <itemData name="linebreak" defStyleNum="dsNormal" underline="true" color="#999999"/>
- <itemData name="h1" defStyleNum="dsFunction" bold="true"/>
- <itemData name="h2" defStyleNum="dsFunction" bold="true"/>
- <itemData name="h3" defStyleNum="dsFunction" bold="true"/>
- <itemData name="h4" defStyleNum="dsFunction" bold="true"/>
- <itemData name="h5" defStyleNum="dsFunction" bold="true"/>
- <itemData name="h6" defStyleNum="dsFunction" bold="true"/>
- <itemData name="blockquote" defStyleNum="dsDataType"/>
- <itemData name="bq-emphasis" defStyleNum="dsDataType" italic="true"/>
- <itemData name="bq-strong" defStyleNum="dsDataType" bold="true"/>
- <itemData name="bullet" defStyleNum="dsString"/>
- <itemData name="bl-emphasis" defStyleNum="dsString" italic="true"/>
- <itemData name="bl-strong" defStyleNum="dsString" bold="true"/>
- <itemData name="numlist" defStyleNum="dsString"/>
- <itemData name="nl-emphasis" defStyleNum="dsString" italic="true"/>
- <itemData name="nl-strong" defStyleNum="dsString" bold="true"/>
- <itemData name="comment" defStyleNum="dsComment"/>
- <itemData name="code" defStyleNum="dsBaseN"/>
- <itemData name="reflink" defStyleNum="dsOthers" underline="true"/>
- <itemData name="inlinelink" defStyleNum="dsOthers" underline="true"/>
- <itemData name="autolink" defStyleNum="dsOthers" underline="true"/>
- <itemData name="mailtolink" defStyleNum="dsOthers" underline="true"/>
- <itemData name="footnote" defStyleNum="dsOthers" italic="true"/>
- <itemData name="meta" defStyleNum="dsComment"/>
- <itemData name="reflinktarget" defStyleNum="dsOthers" italic="false" bold="false"/>
- <itemData name="inlineimage" defStyleNum="dsAlert" italic="false" bold="false"/>
- <itemData name="refimage" defStyleNum="dsAlert" italic="false" bold="false"/>
+ <itemData name="Emphasis Text" defStyleNum="dsNormal" italic="true"/>
+ <itemData name="Strong Text" defStyleNum="dsNormal" bold="true"/>
+ <itemData name="Strong-Emphasis Text" defStyleNum="dsNormal" italic="true" bold="true"/>
+ <itemData name="Strikethrough Text" defStyleNum="dsNormal" strikeOut="true"/>
+ <itemData name="Highlight Text" defStyleNum="dsAlert"/>
+ <itemData name="Normal Text: Link" defStyleNum="dsNormal" underline="true" spellChecking="false"/>
+ <itemData name="Horizontal Rule" defStyleNum="dsNormal" bold="true" spellChecking="false"/>
+ <itemData name="Line Break" defStyleNum="dsNormal" underline="true" color="#999999" spellChecking="false"/>
+ <itemData name="Header H1" defStyleNum="dsFunction" bold="true"/>
+ <itemData name="Header H2" defStyleNum="dsFunction" bold="true"/>
+ <itemData name="Header H3" defStyleNum="dsFunction" bold="true"/>
+ <itemData name="Header H4" defStyleNum="dsFunction" bold="true"/>
+ <itemData name="Header H5" defStyleNum="dsFunction" bold="true"/>
+ <itemData name="Header H6" defStyleNum="dsFunction" bold="true"/>
+ <itemData name="Blockquote" defStyleNum="dsAttribute" spellChecking="false"/>
+ <itemData name="Blockquote: Normal Text" defStyleNum="dsAttribute"/>
+ <itemData name="Blockquote: Emphasis Text" defStyleNum="dsAttribute" italic="true"/>
+ <itemData name="Blockquote: Strong Text" defStyleNum="dsAttribute" bold="true"/>
+ <itemData name="Blockquote: Strong-Emphasis Text" defStyleNum="dsAttribute" italic="true" bold="true"/>
+ <itemData name="Blockquote: Strikethrough Text" defStyleNum="dsAttribute" strikeOut="true"/>
+ <itemData name="Blockquote: Highlight Text" defStyleNum="dsAlert"/>
+ <itemData name="Blockquote: Link" defStyleNum="dsAttribute" underline="true" spellChecking="false"/>
+ <itemData name="List" defStyleNum="dsSpecialString" bold="1" spellChecking="false"/>
+ <itemData name="Number List" defStyleNum="dsSpecialString" spellChecking="false"/>
+ <itemData name="List: Normal Text" defStyleNum="dsNormal"/>
+ <itemData name="List: Emphasis Text" defStyleNum="dsNormal" italic="true"/>
+ <itemData name="List: Strong Text" defStyleNum="dsNormal" bold="true"/>
+ <itemData name="List: Strong-Emphasis Text" defStyleNum="dsNormal" italic="true" bold="true"/>
+ <itemData name="List: Strikethrough Text" defStyleNum="dsNormal" strikeOut="true"/>
+ <itemData name="List: Highlight Text" defStyleNum="dsAlert"/>
+ <itemData name="List: Link" defStyleNum="dsNormal" underline="true" spellChecking="false"/>
+ <itemData name="List: Checkbox" defStyleNum="dsVariable" spellChecking="false"/>
+ <itemData name="Comment" defStyleNum="dsComment"/>
+ <itemData name="Code" defStyleNum="dsInformation"/>
+ <itemData name="Fenced Code" defStyleNum="dsInformation" spellChecking="false"/>
+ <itemData name="Table" defStyleNum="dsPreprocessor"/>
+ <itemData name="Emoji" defStyleNum="dsSpecialChar" spellChecking="false"/>
+ <itemData name="Auto-Link" defStyleNum="dsOthers" spellChecking="false"/>
+ <itemData name="Link" defStyleNum="dsOthers" underline="true" spellChecking="false"/>
+ <itemData name="Mailto-Link" defStyleNum="dsOthers" spellChecking="false"/>
+ <itemData name="Email" defStyleNum="dsOthers" italic="true" underline="true" spellChecking="false"/>
+ <itemData name="Footnote" defStyleNum="dsOthers" italic="true"/>
+ <itemData name="Reference-Link" defStyleNum="dsComment" italic="false"/>
+ <itemData name="Reference-Link Name" defStyleNum="dsOthers" underline="true" italic="false"/>
+ <itemData name="Reference-Link ID" defStyleNum="dsComment" italic="false"/>
+ <itemData name="Reference-Link: Link" defStyleNum="dsComment" underline="true" italic="false" spellChecking="false"/>
+ <itemData name="Reference-Link: Email" defStyleNum="dsComment" italic="true" underline="true" spellChecking="false"/>
+ <itemData name="Reference-Link Target" defStyleNum="dsOthers" italic="false" bold="false"/>
+ <itemData name="Reference-Link Target: Link" defStyleNum="dsOthers" underline="true" spellChecking="false"/>
+ <itemData name="Inline Image" defStyleNum="dsAlert" italic="false" bold="false"/>
+ <itemData name="Reference Image" defStyleNum="dsAlert" italic="false" bold="false"/>
+ <itemData name="Inline Image: Link" defStyleNum="dsAlert" italic="false" bold="false" underline="true"/>
+ <itemData name="Metadata Title" defStyleNum="dsAnnotation"/>
+ <itemData name="Metadata" defStyleNum="dsComment" italic="0"/>
+ <itemData name="Backslash Escape" defStyleNum="dsSpecialChar" spellChecking="false"/>
+ <itemData name="EntityRef" defStyleNum="dsDecVal" spellChecking="false"/>
</itemDatas>
</highlighting>
<general>
+ <keywords additionalDeliminator="`"/>
<comments>
- <comment name="multiLine" start="&lt;!--" end="--&gt;" region="comment"/>
+ <comment name="multiLine" start="&startcomment;" end="&endcomment;" region="comment"/>
</comments>
</general>
</language>
+<!-- kate: replace-tabs on; indent-width 2; tab-width 2; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/modelines.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/modelines.xml
index 0f3c882b6c..855bca4802 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/modelines.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/modelines.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd"
+<!DOCTYPE language
[
<!ENTITY space " ">
<!ENTITY end "&#59;">
@@ -8,7 +8,7 @@
Copyright (c) 2012-2014 by Alex Turbov (i.zaufi@gmail.com)
-->
<language name="Modelines"
- version="4"
+ version="6"
kateversion="5.0"
section="Other"
extensions=""
@@ -127,50 +127,44 @@
</list>
<contexts>
- <context name="Normal" attribute="Comment" lineEndContext="#pop">
- <DetectSpaces />
+ <context name="Normal" attribute="Comment" lineEndContext="#stay">
<keyword String="ModelineStartKeyword" context="Modeline" attribute="Keyword" />
- <RegExpr String="kate-(mimetype|wildcard)\(.*\):" context="Modeline" attribute="Keyword" />
+ <RegExpr String="\bkate-(?:mimetype|wildcard)\(.*\):" context="Modeline" attribute="Keyword" />
</context>
- <context name="Modeline" attribute="Comment" lineEndContext="#pop">
+ <context name="Modeline" attribute="Comment" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
<DetectSpaces />
<keyword String="Booleans" context="Booleans" attribute="Variable" />
<keyword String="Integrals" context="Integrals" attribute="Variable" />
<keyword String="Strings" context="Strings" attribute="Variable" />
<keyword String="RemoveSpaces" context="RemoveSpaces" attribute="Variable" />
- <LineContinue context="#pop" />
</context>
- <context name="Booleans" attribute="Comment" lineEndContext="#pop">
+ <context name="Booleans" attribute="Comment" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
<DetectSpaces />
<keyword String="True" attribute="Option ON" context="#stay" />
<keyword String="False" attribute="Option OFF" context="#stay" />
<DetectChar char="&end;" context="#pop" attribute="Variable" />
- <LineContinue context="#pop" />
</context>
- <context name="Integrals" attribute="Comment" lineEndContext="#pop">
+ <context name="Integrals" attribute="Comment" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
<DetectSpaces />
<Int attribute="Number" context="#stay" />
<DetectChar char="&end;" context="#pop" attribute="Variable" />
- <LineContinue context="#pop" />
</context>
<context name="Strings" attribute="String" lineEndContext="#pop">
<DetectSpaces />
<RegExpr String="[^&end;&space;]" context="#stay" />
<DetectChar char="&end;" context="#pop" attribute="Variable" />
- <LineContinue context="#pop" />
</context>
- <context name="RemoveSpaces" attribute="Comment" lineEndContext="#pop">
+ <context name="RemoveSpaces" attribute="Comment" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
<DetectSpaces />
<keyword String="RemoveSpacesOptions" attribute="Value" context="#pop!RemoveSpacesEnd" />
<DetectChar char="&end;" context="#pop" attribute="Variable" />
- <LineContinue context="#pop" />
</context>
- <context name="RemoveSpacesEnd" attribute="Comment" lineEndContext="#pop">
+ <context name="RemoveSpacesEnd" attribute="Comment" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
<DetectChar char="&end;" context="#pop" attribute="Variable" />
</context>
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/perl.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/perl.xml
index 0d1931649c..ed843a7d46 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/perl.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/perl.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd">
+<!DOCTYPE language>
<!--
This file is part of the KDE project
Copyright (C) 2001, 2002, 2003, 2004 Anders Lund <anders@alweb.dk>
@@ -39,7 +39,7 @@
Enhance tr/// and y/// support.
-->
-<language name="Perl" version="8" kateversion="2.4" section="Scripts" extensions="*.pl;*.PL;*.pm;*.pl6;*.PL6;*.p6;*.pm6;" mimetype="application/x-perl;text/x-perl" priority="5" author="Anders Lund (anders@alweb.dk)" license="LGPLv2">
+<language name="Perl" version="19" kateversion="5.0" section="Scripts" extensions="*.pl;*.PL;*.pm" mimetype="application/x-perl;text/x-perl" priority="5" author="Anders Lund (anders@alweb.dk)" license="LGPLv2">
<highlighting>
<list name="keywords">
<item>if</item>
@@ -92,7 +92,7 @@
<item>+</item>
<item>-</item>
<item>*</item>
- <!-- <item>/</item>//-->
+ <!-- <item>/</item>//-->
<item>%</item>
<item>||</item>
<item>//</item>
@@ -252,6 +252,7 @@
<item>rewinddir</item>
<item>rindex</item>
<item>rmdir</item>
+ <item>say</item>
<item>scalar</item>
<item>seek</item>
<item>seekdir</item>
@@ -338,7 +339,7 @@
</list>
<contexts>
<context name="normal" attribute="Normal Text" lineEndContext="#stay">
- <RegExpr attribute="Keyword" context="#stay" String="^#!\/.*" />
+ <RegExpr attribute="Keyword" context="#stay" String="^#!\/.*" column="0" />
<StringDetect attribute="Keyword" context="data_handle" String="__DATA__" firstNonSpace="true" />
<StringDetect attribute="Keyword" context="#stay" String="__END__" firstNonSpace="true"/>
<RegExpr attribute="Keyword" context="sub_name_def" String="\bsub\s+" />
@@ -346,7 +347,7 @@
<keyword attribute="Operator" context="#stay" String="operators" />
<keyword attribute="Function" context="#stay" String="functions" />
<keyword attribute="Pragma" context="#stay" String="pragmas" />
- <RegExpr attribute="Pod" context="pod" String="\=\w+(\s|$)" column="0" beginRegion="POD"/>
+ <RegExpr attribute="Pod" context="pod" String="^\=\w+(\s|$)" column="0" beginRegion="POD"/>
<DetectSpaces />
<DetectChar attribute="Comment" context="comment" char="#" />
@@ -383,8 +384,7 @@
<RegExpr attribute="Operator" context="find_pattern" String="\b(?:m|qr)(?=\s*[^\w\s\]})])" />
- <RegExpr attribute="Normal Text" context="#stay" String="[\w_]+\s*//?\=?" />
- <RegExpr attribute="Normal Text" context="#stay" String="[&lt;&gt;&quot;':]//?\=?" />
+ <RegExpr attribute="Normal Text" context="#stay" String="[\w_]+\s*//?\=?|[&lt;&gt;&quot;':]//?\=?" />
<!-- Avoid conflicts between operators / and // -->
<StringDetect attribute="Normal Text" context="#stay" String="//=" />
<Detect2Chars attribute="Normal Text" context="#stay" char="/" char1="/" />
@@ -420,22 +420,15 @@
<DetectChar attribute="Operator" context="quote_word_paren" char="(" beginRegion="Wordlist" />
<DetectChar attribute="Operator" context="quote_word_brace" char="{" beginRegion="Wordlist" />
<DetectChar attribute="Operator" context="quote_word_bracket" char="[" beginRegion="Wordlist" />
- <RegExpr attribute="Operator" context="quote_word" String="([^a-zA-Z0-9_\s[\]{}()])" beginRegion="Wordlist" />
+ <DetectChar attribute="Operator" context="quote_word_angular" char="&lt;" beginRegion="Wordlist" />
+ <RegExpr attribute="Operator" context="quote_word" String="([^a-zA-Z0-9_\s[\]{}()\&lt;&gt;])" beginRegion="Wordlist" />
<RegExpr attribute="Comment" context="#stay" String="\s+#.*" /><!-- q[qwx] # == comment, look for the delim on the next line -->
</context>
<!-- ====== Contexts for strings ===== -->
<context name="ipstring_internal" attribute="String (interpolated)" lineEndContext="#stay">
<DetectIdentifier />
- <RegExpr attribute="String Special Character" context="#stay" String="\\c[^\s\\]" />
- <RegExpr attribute="String Special Character" context="#stay" String="\\g(\{(\w+|\-\d+)\}|\d+)" />
- <RegExpr attribute="String Special Character" context="#stay" String="\\k(\{\w+\}|&lt;\w+&gt;|'\w+')" />
- <RegExpr attribute="String Special Character" context="#stay" String="\\N\{[^\{\}]*\}" />
- <RegExpr attribute="String Special Character" context="#stay" String="\\o\{[0-7]+\}" />
- <RegExpr attribute="String Special Character" context="#stay" String="\\[pP](\{\w+\}|P)" />
- <RegExpr attribute="String Special Character" context="#stay" String="\\x([0-9a-fA-F]{2}|\{[0-9a-fA-F]+\})" />
- <RegExpr attribute="String Special Character" context="#stay" String="\\[0-7]{3}" />
- <RegExpr attribute="String Special Character" context="#stay" String="\\[1aAbBdDeEfFGhHKlLnNQrRsStuUvVwWXzZ]" />
+ <RegExpr attribute="String Special Character" context="#stay" String="\\c[^\s\\]|\\g(\{(\w+|\-\d+)\}|\d+)|\\k(\{\w+\}|&lt;\w+&gt;|'\w+')|\\N\{[^\{\}]*\}|\\o\{[0-7]+\}|\\[pP](\{\w+\}|P)|\\x([0-9a-fA-F]{2}|\{[0-9a-fA-F]+\})|\\[0-7]{3}|\\[1aAbBdDeEfFGhHKlLnNQrRsStuUvVwWXzZ]" />
<RegExpr attribute="String (interpolated)" context="#stay" String="\\." />
<RegExpr attribute="Normal Text" context="find_variable_unsafe" String="(?:[\$@]\S|%([\w\{\-\+!]|\^H))" lookAhead="true" />
</context>
@@ -464,7 +457,7 @@
<IncludeRules context="ipstring_internal" />
</context>
<context name="ip_string_6" attribute="String (interpolated)" lineEndContext="#stay" dynamic="true">
- <RegExpr attribute="String (interpolated)" context="#stay" String="\%1" dynamic="true" />
+ <StringDetect attribute="String (interpolated)" context="#stay" String="\%1" dynamic="true" />
<DetectChar attribute="Operator" context="#pop#pop#pop" char="1" dynamic="true" endRegion="String"/>
<IncludeRules context="ipstring_internal" />
</context>
@@ -507,7 +500,7 @@
<context name="string_6" attribute="String" lineEndContext="#stay" dynamic="true">
<DetectIdentifier />
<Detect2Chars attribute="String Special Character" context="#stay" char="\" char1="\" />
- <RegExpr attribute="String Special Character" context="#stay" String="\%1" dynamic="true"/>
+ <StringDetect attribute="String Special Character" context="#stay" String="\%1" dynamic="true"/>
<DetectChar attribute="Operator" context="#pop#pop" char="1" dynamic="true" endRegion="String" />
</context>
@@ -533,7 +526,7 @@
<DetectChar attribute="Pattern" context="subst_curlybrace_pattern_recursive" char="{" />
</context>
<context name="subst_curlybrace_middle" attribute="Normal Text" lineEndContext="#stay" >
- <RegExpr attribute="Comment" context="#stay" String="#.*$" />
+ <DetectChar attribute="Comment" context="comment" char="#" />
<DetectChar attribute="Operator" context="subst_curlybrace_replace" char="{" beginRegion="Replacement" />
</context>
<context name="subst_curlybrace_replace" attribute="String (interpolated)" lineEndContext="#stay">
@@ -551,8 +544,12 @@
<IncludeRules context="subst_curlybrace_pattern" />
</context>
+ <context name="subst_maybe_comment" attribute="Pattern" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
+ <DetectChar attribute="Comment" context="#pop!comment" char="#" />
+ </context>
+
<context name="subst_paren_pattern" attribute="Pattern" lineEndContext="#stay">
- <RegExpr attribute="Comment" context="#stay" String="\s+#.*$" />
+ <DetectSpaces attribute="Pattern" context="subst_maybe_comment" />
<DetectChar attribute="Operator" context="subst_paren_replace" char=")" endRegion="Pattern" />
<!-- Round brackets of RegExp pattern inside -->
<DetectChar attribute="Pattern Internal Operator" context="subst_paren_pattern_internal_recursive" char="(" />
@@ -569,7 +566,7 @@
</context>
<context name="subst_bracket_pattern" attribute="Pattern" lineEndContext="#stay">
- <RegExpr attribute="Comment" context="#stay" String="\s+#.*$" />
+ <DetectSpaces attribute="Pattern" context="subst_maybe_comment" />
<IncludeRules context="regex_pattern_internal_ip" />
<DetectChar attribute="Operator" context="subst_bracket_replace" char="]" endRegion="Pattern" />
</context>
@@ -591,7 +588,7 @@
</context>
<context name="subst_sq_pattern" attribute="Pattern" lineEndContext="#stay">
- <RegExpr attribute="Comment" context="#stay" String="\s+#.*$" />
+ <DetectSpaces attribute="Pattern" context="subst_maybe_comment" />
<IncludeRules context="regex_pattern_internal" />
<DetectChar attribute="Operator" context="subst_sq_replace" char="'" endRegion="Pattern" beginRegion="Pattern" />
</context>
@@ -600,10 +597,7 @@
</context>
<context name="tr" attribute="Pattern" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop" >
- <RegExpr attribute="Pattern" context="#pop" String="\([^)]*\)\s*\(?:[^)]*\)" />
- <RegExpr attribute="Pattern" context="#pop" String="\{[^}]*\}\s*\{[^}]*\}" />
- <RegExpr attribute="Pattern" context="#pop" String="\[[^]]*\]\s*\[[^\]]*\]" />
- <RegExpr attribute="Pattern" context="#pop" String="([^a-zA-Z0-9_\s[\]{}()]).*\1.*\1" minimal="true"/>
+ <RegExpr attribute="Pattern" context="#pop" String="\([^)]*\)\s*\(?:[^)]*\)|\{[^}]*\}\s*\{[^}]*\}|\[[^]]*\]\s*\[[^\]]*\]|([^a-zA-Z0-9_\s[\]{}()]).*?\1.*?\1"/>
</context>
<!-- ====== PATTERNs ====== -->
@@ -624,7 +618,6 @@
<RegExpr attribute="Pattern Internal Operator" context="#stay" String="\$(?=%1)" dynamic="true" />
<RegExpr attribute="Operator" context="#pop#pop" String="%1[cgimosx]*" dynamic="true" endRegion="Pattern" />
<IncludeRules context="regex_pattern_internal_ip" />
- <RegExpr attribute="Pattern Internal Operator" context="#stay" String="\$(?=\%1)" dynamic="true" />
</context>
<context name="pattern_brace" attribute="Pattern" lineEndContext="#stay">
<RegExpr attribute="Operator" context="#pop#pop" String="\}[cgimosx]*" endRegion="Pattern" />
@@ -657,14 +650,8 @@
<!-- rules internal stuff wrt regex patterns -->
<context name="regex_pattern_internal_rules_1" attribute="Pattern" lineEndContext="#stay">
- <RegExpr attribute="Comment" context="#stay" String="#.*$" firstNonSpace="true" />
- <RegExpr attribute="Special Variable" context="#stay" String="\\c[^\s\\]" />
- <RegExpr attribute="Special Variable" context="#stay" String="\\g(\{(\w+|\-\d+)\}|\d+)" />
- <RegExpr attribute="Special Variable" context="#stay" String="\\k(\{\w+\}|&lt;\w+&gt;|'\w+')" />
- <RegExpr attribute="Special Variable" context="#stay" String="\\N\{[^\{\}]*\}" />
- <RegExpr attribute="Special Variable" context="#stay" String="\\o\{[0-7]+\}" />
- <RegExpr attribute="Special Variable" context="#stay" String="\\[pP](\{\w+\}|P)" />
- <RegExpr attribute="Special Variable" context="#stay" String="\\x([0-9a-fA-F]{2}|\{[0-9a-fA-F]+\})" />
+ <DetectChar attribute="Comment" context="comment" char="#" firstNonSpace="true" />
+ <RegExpr attribute="Special Variable" context="#stay" String="\\c[^\s\\]|\\g(\{(\w+|\-\d+)\}|\d+)|\\k(\{\w+\}|&lt;\w+&gt;|'\w+')|\\N\{[^\{\}]*\}|\\o\{[0-7]+\}|\\[pP](\{\w+\}|P)|\\x([0-9a-fA-F]{2}|\{[0-9a-fA-F]+\})" />
<RegExpr attribute="Pattern Character Class" context="#stay" String="\\[anDdSsWw]" />
<RegExpr attribute="Pattern Internal Operator" context="#stay" String="\\[ABbEGLlNUuQdQZz]" /> <!-- Also?: efFhHKrRtvVX -->
<RegExpr attribute="Special Variable" context="#stay" String="\\[\d]+" />
@@ -673,7 +660,7 @@
<context name="regex_pattern_internal_rules_2" attribute="Pattern" lineEndContext="#stay">
<Detect2Chars attribute="Pattern Internal Operator" context="pat_ext" char="(" char1="?" />
<DetectChar attribute="Pattern Internal Operator" context="pat_char_class" char="[" />
- <RegExpr attribute="Pattern Internal Operator" context="#stay" String="[()?^*+|]" />
+ <AnyChar attribute="Pattern Internal Operator" context="#stay" String="()?^*+|" />
<RegExpr attribute="Pattern Internal Operator" context="#stay" String="\{[\d, ]+\}" />
<DetectChar attribute="Pattern Internal Operator" context="#stay" char="$" />
<RegExpr attribute="Comment" context="#stay" String="\s{3,}#.*$" />
@@ -693,8 +680,8 @@
<IncludeRules context="regex_pattern_internal_rules_2" />
</context>
<context name="pat_ext" attribute="Pattern Internal Operator" lineEndContext="#stay">
+ <AnyChar attribute="Pattern Internal Operator" context="#pop" String=":=!&gt;&lt;" />
<RegExpr attribute="Comment" context="#pop" String="\#[^)]*" />
- <RegExpr attribute="Pattern Internal Operator" context="#pop" String="[:=!&gt;&lt;]+" />
<DetectChar attribute="Pattern Internal Operator" context="#pop" char=")" />
</context>
<context name="pat_char_class" attribute="Pattern Character Class" lineEndContext="#stay">
@@ -708,17 +695,10 @@
<!-- ====== Variables ====== -->
<context name="find_variable" attribute="Data Type" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop" >
<RegExpr attribute="Data Type" context="var_detect" String="\$[#_][\w_]" />
- <RegExpr attribute="Special Variable" context="var_detect" String="\$[0-9]+" />
- <RegExpr attribute="Special Variable" context="var_detect" String="[@\$](?:[\+\-_]\B|ARGV\b|INC\b)" />
- <RegExpr attribute="Special Variable" context="var_detect" String="[%\$](?:INC\b|ENV\b|SIG\b)" />
- <RegExpr attribute="Special Variable" context="var_detect" String="\$\^[A-Z_\]\[\^\?\\]" />
- <RegExpr attribute="Special Variable" context="var_detect" String="%([\-\+!]|\^H)" />
- <RegExpr attribute="Data Type" context="var_detect" String="\$\$[\$\w_]" />
- <RegExpr attribute="Data Type" context="var_detect" String="\$+::" />
+ <RegExpr attribute="Special Variable" context="var_detect" String="\$[0-9]+|[@\$](?:[\+\-_]\B|ARGV\b|INC\b)|[%\$](?:INC\b|ENV\b|SIG\b)|\$\^[A-Z_\]\[\^\?\\]|%([\-\+!]|\^H)" />
+ <RegExpr attribute="Data Type" context="var_detect" String="\$\$[\$\w_]|\$+::" />
<RegExpr attribute="Special Variable" context="var_detect" String="\$[^a-zA-Z0-9\s{][A-Z]?" />
- <RegExpr attribute="Data Type" context="var_detect" String="[\$@%]\{\^?[\w_]+\}" />
- <AnyChar attribute="Data Type" context="var_detect" String="$@%" />
- <RegExpr attribute="Data Type" context="var_detect" String="\*[a-zA-Z_]+" />
+ <RegExpr attribute="Data Type" context="var_detect" String="[\$@%]\{\^?[\w_]+\}|[$@%]|\*[a-zA-Z_]+" />
<!-- Do not highlight brackets after *, Ex: (... @*) (see bug #391577) -->
<RegExpr attribute="Special Variable" context="#stay" String="\*[^a-zA-Z0-9\s\{\(\)\[\]\}][A-Z]?" />
<!-- this should be a rare case! -->
@@ -727,17 +707,11 @@
<!-- This does not check fo a trailing slash, for usage in strings. -->
<context name="find_variable_unsafe" attribute="Data Type" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop" >
<RegExpr attribute="Data Type" context="var_detect_unsafe" String="\$[#_][\w_]" />
- <RegExpr attribute="Special Variable" context="var_detect_unsafe" String="\$[0-9]+" />
- <RegExpr attribute="Special Variable" context="var_detect_unsafe" String="[@\$](?:[\+\-_]\B|ARGV\b|INC\b)" />
- <RegExpr attribute="Special Variable" context="var_detect_unsafe" String="[%\$](?:INC\b|ENV\b|SIG\b)" />
- <RegExpr attribute="Special Variable" context="var_detect" String="\$\^[A-Z_\]\[\^\?\\]" />
- <RegExpr attribute="Special Variable" context="var_detect" String="%([\-\+!]|\^H)" />
- <RegExpr attribute="Data Type" context="var_detect_unsafe" String="\$\$[\$\w_]" />
- <RegExpr attribute="Data Type" context="var_detect_unsafe" String="\$+::" />
+ <RegExpr attribute="Special Variable" context="var_detect_unsafe" String="\$[0-9]+|[@\$](?:[\+\-_]\B|ARGV\b|INC\b)|[%\$](?:INC\b|ENV\b|SIG\b)" />
+ <RegExpr attribute="Special Variable" context="var_detect" String="\$\^[A-Z_\]\[\^\?\\]|%([\-\+!]|\^H)" />
+ <RegExpr attribute="Data Type" context="var_detect_unsafe" String="\$\$[\$\w_]|\$+::" />
<RegExpr attribute="Special Variable" context="#stay" String="\$[^a-zA-Z0-9\s{][A-Z]?" />
- <RegExpr attribute="Data Type" context="var_detect_unsafe" String="[\$@%]\{\^?[\w_]+\}" />
- <AnyChar attribute="Data Type" context="var_detect_unsafe" String="$@%" />
- <RegExpr attribute="Data Type" context="var_detect_unsafe" String="\*\w+" />
+ <RegExpr attribute="Data Type" context="var_detect_unsafe" String="[\$@%]\{\^?[\w_]+\}|[$@%]|\*\w+" />
<AnyChar attribute="Operator" context="#pop" String="$@%*" />
</context>
<context name="var_detect" attribute="Data Type" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop">
@@ -762,7 +736,7 @@
<context name="quote_word" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<DetectSpaces />
<DetectIdentifier />
- <RegExpr attribute="Normal Text" context="#stay" String="\\%1" dynamic="true" />
+ <StringDetect attribute="Normal Text" context="#stay" String="\%1" dynamic="true" />
<DetectChar attribute="Operator" context="#pop#pop#pop" char="1" dynamic="true" endRegion="Wordlist" />
</context>
<context name="quote_word_paren" attribute="Normal Text" lineEndContext="#stay">
@@ -783,29 +757,33 @@
<Detect2Chars attribute="Normal Text" context="#stay" char="\" char1="]" />
<DetectChar attribute="Operator" context="#pop#pop#pop" char="]" endRegion="Wordlist" />
</context>
+ <context name="quote_word_angular" attribute="Normal Text" lineEndContext="#stay">
+ <DetectSpaces />
+ <DetectIdentifier />
+ <Detect2Chars attribute="Normal Text" context="#stay" char="\" char1="&gt;" />
+ <DetectChar attribute="Operator" context="#pop#pop#pop" char="&gt;" endRegion="Wordlist" />
+ </context>
<!-- ====== Here Documents ====== -->
<context name="find_here_document" attribute="Normal Text" lineEndContext="#pop" >
- <RegExpr attribute="Keyword" context="here_document" String="(\w+)\s*;?" />
- <RegExpr attribute="Keyword" context="here_document" String="\s*&quot;([^&quot;]+)&quot;\s*;?" />
- <RegExpr attribute="Keyword" context="here_document" String="\s*`([^`]+)`\s*;?" />
+ <RegExpr attribute="Keyword" context="here_document" String="(?|(\w+)\s*;?|\s*&quot;([^&quot;]+)&quot;\s*;?|\s*`([^`]+)`\s*;?)" />
<RegExpr attribute="Keyword" context="here_document_dumb" String="\s*'([^']+)'\s*;?" />
</context>
<context name="here_document" attribute="String (interpolated)" lineEndContext="#stay" dynamic="true">
- <RegExpr attribute="Keyword" context="#pop#pop" String="%1\b" column="0" dynamic="true" endRegion="HereDocument"/>
+ <RegExpr attribute="Keyword" context="#pop#pop" String="^%1\b" column="0" dynamic="true" endRegion="HereDocument"/>
<RegExpr attribute="Keyword" context="here_document" String="\=\s*&lt;&lt;\s*[&quot;']?([A-Z0-9_\-]+)[&quot;']?" beginRegion="HEREDoc" />
<IncludeRules context="ipstring_internal" />
<DetectSpaces />
</context>
<context name="here_document_dumb" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
- <RegExpr attribute="Keyword" context="#pop#pop" String="%1" column="0" dynamic="true" endRegion="HereDocument"/>
+ <StringDetect attribute="Keyword" context="#pop#pop" String="%1" column="0" dynamic="true" endRegion="HereDocument"/>
<DetectSpaces />
<DetectIdentifier />
</context>
<!-- ====== Misc ====== -->
<context name="data_handle" attribute="Data" lineEndContext="#stay">
- <RegExpr attribute="Pod" context="pod" String="\=(?:head[1-6]|over|back|item|for|begin|end|pod)\s+.*" column="0" beginRegion="POD"/>
+ <RegExpr attribute="Pod" context="pod" String="^\=(?:head[1-6]|over|back|item|for|begin|end|pod)\s+.*" column="0" beginRegion="POD"/>
<StringDetect attribute="Keyword" context="normal" String="__END__" firstNonSpace="true" />
</context>
@@ -836,36 +814,38 @@
<context name="pod" attribute="Pod" lineEndContext="#stay">
<DetectSpaces />
<DetectIdentifier />
- <RegExpr attribute="Pod" context="#stay" String="\=(?:head[1-6]|over|back|item|for|begin|end|pod)\s*.*" column="0" beginRegion="POD" endRegion="POD"/>
- <RegExpr attribute="Pod" context="#pop" String="\=cut.*$" column="0" endRegion="POD"/>
+ <RegExpr attribute="Pod" context="#stay" String="^\=(?:head[1-6]|over|back|item|for|begin|end|pod)\s*.*" column="0" beginRegion="POD" endRegion="POD"/>
+ <StringDetect attribute="Pod" context="Pod" String="=cut" column="0" endRegion="POD"/>
</context>
<context name="comment" attribute="Comment" lineEndContext="#pop">
<DetectSpaces />
- <IncludeRules context="##Alerts" />
+ <IncludeRules context="##Comments" />
<DetectIdentifier />
</context>
+ <context name="Pod" attribute="Pod" lineEndContext="#pop#pop"/>
+
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
- <itemData name="Keyword" defStyleNum="dsKeyword" />
- <itemData name="Pragma" defStyleNum="dsKeyword" />
- <itemData name="Function" defStyleNum="dsFunction" />
- <itemData name="Operator" defStyleNum="dsKeyword" color="#008000"/>
- <itemData name="Data Type" defStyleNum="dsDataType" />
- <itemData name="Special Variable" defStyleNum="dsDataType" color="#C00000" selColor="#C00000" bold="0" italic="0" />
- <itemData name="Decimal" defStyleNum="dsDecVal" />
- <itemData name="Octal" defStyleNum="dsBaseN" />
- <itemData name="Hex" defStyleNum="dsBaseN" />
- <itemData name="Bin" defStyleNum="dsBaseN" />
- <itemData name="Float" defStyleNum="dsFloat" />
- <itemData name="String" defStyleNum="dsString" color="#FF6C6C" selColor="#FF6C6C" bold="0" italic="0" />
+ <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
+ <itemData name="Pragma" defStyleNum="dsKeyword" spellChecking="false"/>
+ <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/>
+ <itemData name="Operator" defStyleNum="dsOthers" bold="1" spellChecking="false"/> <!-- #008000 -->
+ <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/>
+ <itemData name="Special Variable" defStyleNum="dsWarning" bold="0" italic="0" /> <!-- #C00000 -->
+ <itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false"/>
+ <itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false"/>
+ <itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/>
+ <itemData name="Bin" defStyleNum="dsBaseN" spellChecking="false"/>
+ <itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/>
+ <itemData name="String" defStyleNum="dsSpecialString" /> <!-- #FF6C6C -->
<itemData name="String (interpolated)" defStyleNum="dsString" />
<itemData name="String Special Character" defStyleNum="dsChar" />
- <itemData name="Pattern" defStyleNum="dsOthers" />
- <itemData name="Pattern Internal Operator" defStyleNum="dsChar" />
- <itemData name="Pattern Character Class" defStyleNum="dsBaseN" />
+ <itemData name="Pattern" defStyleNum="dsOthers" spellChecking="false"/>
+ <itemData name="Pattern Internal Operator" defStyleNum="dsChar" spellChecking="false"/>
+ <itemData name="Pattern Character Class" defStyleNum="dsBaseN" spellChecking="false"/>
<itemData name="Data" defStyleNum="dsNormal" />
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="Pod" defStyleNum="dsComment" />
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/powershell.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/powershell.xml
index 8208fd7aae..06c6dac079 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/powershell.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/powershell.xml
@@ -1,48 +1,54 @@
-<!DOCTYPE language SYSTEM "language.dtd">
+<!DOCTYPE language [
+ <!ENTITY varscope "(?:global|local|private|script|using|workflow|alias|env|function|variable)">
+ <!ENTITY varname "(?:[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)">
+]>
<language
name="PowerShell"
- version="4"
- kateversion="5.0"
- extensions="*.ps1;*.ps1m;*.ps1d"
+ version="14"
+ kateversion="5.79"
+ extensions="*.ps1;*.psm1;*.psd1"
section="Scripts"
author="Motoki Kashihara (motoki8791@gmail.com); Michael Lombardi (Michael.T.Lombardi@outlook.com)"
casesensitive="0"
license="MIT">
<highlighting>
- <list name="keywords">
- <item>Begin</item>
+ <list name="control-flow">
<item>Exit</item>
<item>Process</item>
<item>Break</item>
- <item>Filter</item>
<item>Return</item>
<item>Catch</item>
<item>Finally</item>
- <item>Sequence</item>
<item>Class</item>
<item>For</item>
<item>Switch</item>
<item>Continue</item>
<item>ForEach</item>
<item>Throw</item>
+ <item>Try</item>
+ <item>Do</item>
+ <item>If</item>
+ <item>Until</item>
+ <item>Else</item>
+ <item>ElseIf</item>
+ <item>While</item>
+ </list>
+
+ <list name="keywords">
+ <item>Begin</item>
+ <item>Filter</item>
+ <item>Sequence</item>
<item>Data</item>
<item>From</item>
<item>Trap</item>
<item>Define</item>
<item>Function</item>
- <item>Try</item>
- <item>Do</item>
- <item>If</item>
- <item>Until</item>
<item>DynamicParam</item>
<item>In</item>
<item>Using</item>
- <item>Else</item>
<item>InlineScript</item>
<item>Var</item>
- <item>ElseIf</item>
<item>Parallel</item>
- <item>While</item>
<item>End</item>
<item>Param</item>
<item>Workflow</item>
@@ -75,69 +81,6 @@
<item>ulong</item>
<item>ushort</item>
</list>
-<!-- TODO: Seems unused?!
- <list name="operators">
- <item>-split</item>
- <item>-isplit</item>
- <item>-csplit</item>
- <item>-join</item>
- <item>-is</item>
- <item>-isnot</item>
- <item>-as</item>
- <item>-eq</item>
- <item>-ieq</item>
- <item>-ceq</item>
- <item>-ne</item>
- <item>-ine</item>
- <item>-cne</item>
- <item>-gt</item>
- <item>-igt</item>
- <item>-cgt</item>
- <item>-ge</item>
- <item>-ige</item>
- <item>-cge</item>
- <item>-lt</item>
- <item>-ilt</item>
- <item>-clt</item>
- <item>-le</item>
- <item>-ile</item>
- <item>-cle</item>
- <item>-like</item>
- <item>-ilike</item>
- <item>-clike</item>
- <item>-notlike</item>
- <item>-inotlike</item>
- <item>-cnotlike</item>
- <item>-match</item>
- <item>-imatch</item>
- <item>-cmatch</item>
- <item>-notmatch</item>
- <item>-inotmatch</item>
- <item>-cnotmatch</item>
- <item>-contains</item>
- <item>-icontains</item>
- <item>-ccontains</item>
- <item>-notcontains</item>
- <item>-inotcontains</item>
- <item>-cnotcontains</item>
- <item>-replace</item>
- <item>-ireplace</item>
- <item>-creplace</item>
- <item>-band</item>
- <item>-bor</item>
- <item>-bxor</item>
- <item>-and</item>
- <item>-or</item>
- <item>-xor</item>
- <item>.</item>
- <item>&amp;</item>
- <item>=</item>
- <item>+=</item>
- <item>-=</item>
- <item>*=</item>
- <item>/=</item>
- <item>%=</item>
- </list>-->
<list name="cmdlets">
<item>Add-Content</item>
<item>Add-ADComputerServiceAccount</item>
@@ -847,11 +790,23 @@
<item>\%</item>
<item>\?</item>
</list>
+
<list name="special-variables">
+ <!-- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_scopes?view=powershell-7.3#scope-modifiers -->
+ <item>$Global:</item>
+ <item>$Local:</item>
+ <item>$Private:</item>
+ <item>$Script:</item>
+ <item>$Using:</item>
+ <item>$Workflow:</item>
+ <item>$Alias:</item>
+ <item>$Env:</item>
+ <item>$Function:</item>
+ <item>$Variable:</item>
+
<item>$_</item>
<item>$True</item>
<item>$False</item>
- <item>$Env</item>
<item>$Null</item>
<item>$^</item>
<item>$$</item>
@@ -873,55 +828,176 @@
<item>$Host</item>
<item>$OFS</item>
</list>
+
+ <!-- https://learn.microsoft.com/en-us/powershell/scripting/developer/help/comment-based-help-keywords?view=powershell-7.3 -->
+ <list name="comment-based-help">
+ <item>.SYNOPSIS</item>
+ <item>.DESCRIPTION</item>
+ <item>.PARAMETER</item>
+ <item>.EXAMPLE</item>
+ <item>.INPUTS</item>
+ <item>.OUTPUTS</item>
+ <item>.NOTES</item>
+ <item>.LINK</item>
+ <item>.COMPONENT</item>
+ <item>.ROLE</item>
+ <item>.FUNCTIONALITY</item>
+ <item>.FORWARDHELPTARGETNAME</item>
+ <item>.FORWARDHELPCATEGORY</item>
+ <item>.REMOTEHELPRUNSPACE</item>
+ <item>.EXTERNALHELP</item>
+ </list>
+
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
+ <DetectSpaces attribute="Normal Text"/>
+ <IncludeRules context="FindSpecialSymbol"/>
+ <DetectChar attribute="Symbol" context="Attribute" char="["/>
+ <IncludeRules context="FindSpecialOtherSymbol"/>
<keyword attribute="Keyword" context="#stay" String="keywords"/>
- <keyword attribute="Data Type" context="#stay" String="types" />
- <IncludeRules context="Cmdlet" />
- <DetectChar attribute="String" context="String" char="&quot;"/>
- <Detect2Chars attribute="HereString" context="HereStringer" char="@" char1="&quot;" beginRegion="StringRegion"/>
- <IncludeRules context="##Doxygen" />
+ <keyword attribute="Control Flow" context="#stay" String="control-flow"/>
+ <keyword attribute="Function" context="#stay" String="cmdlets"/>
+ <IncludeRules context="FindIdentifiant"/>
+ <IncludeRules context="FindEscape"/>
+ </context>
+
+ <context attribute="Attribute" name="Attribute">
+ <DetectSpaces attribute="Normal Text"/>
+ <keyword attribute="Data Type" context="#stay" String="types"/>
+ <IncludeRules context="FindIdentifiant"/>
+ <DetectChar attribute="Symbol" context="#pop" char="]"/>
+ <IncludeRules context="FindSpecialSymbol"/>
+ <IncludeRules context="FindSpecialOtherSymbol"/>
+ <IncludeRules context="FindEscape"/>
+ </context>
+
+ <context attribute="Normal Text" name="FindSpecialSymbol">
+ <DetectChar attribute="String" context="StringDQ" char="&quot;"/>
+ <DetectChar attribute="String" context="StringSQ" char="'"/>
+ <StringDetect attribute="HereString" context="HereStringDQ" String="@&quot;" beginRegion="StringRegion"/>
+ <StringDetect attribute="HereString" context="HereStringSQ" String="@'" beginRegion="StringRegion"/>
+ <StringDetect attribute="Symbol" String="@("/>
<DetectChar attribute="Comment" context="Commentar 1" char="#"/>
- <Detect2Chars attribute="Comment" context="Commentar 2" char="&lt;" char1="#" beginRegion="CommentRegion"/>
+ <StringDetect attribute="Comment" context="Commentar 2" String="&lt;#" beginRegion="CommentRegion"/>
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="block1"/>
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="block1"/>
- <RegExpr attribute="Keyword" context="#stay" String="\b\$global(?=\s+(:))"/>
- <RegExpr attribute="Keyword" context="#stay" String="\b\$script(?=\s+(:))"/>
- <RegExpr attribute="Variable" context="#stay" String="\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*" />
- <keyword attribute="Special Variable" context="#stay" String="special-variables"/>
- <RegExpr attribute="Symbol" context="Member" String="[.]{1,1}" />
- <AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/.*&lt;=&gt;?[]|~^&#59;"/>
+ <DetectChar attribute="Symbol" context="Member" char="."/>
+ </context>
+
+ <context attribute="Normal Text" name="FindSpecialOtherSymbol">
+ <RegExpr attribute="Operator" String="(?&lt;=^|[\s(){}])-([ic]?(split|eq|ne|gt|ge|lt|le|like|notlike|match|notmatch|contains|notcontains|replace)|b?(and|or|xor)|join|not|isnot|is|as)(?=[\s(){}$]|$)"/>
+ <AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/*&lt;=&gt;?[]|~^;"/>
+ <IncludeRules context="FindVariable"/>
+ </context>
+
+ <context attribute="Normal Text" name="FindEscape">
+ <RegExpr attribute="String Char" String="`u\{[0-9A-Fa-f]+\}|`."/>
+ <RegExpr attribute="Escape" String="(?&lt;=\s)`"/>
+ </context>
+
+ <context attribute="Normal Text" name="FindVariable">
+ <StringDetect attribute="Variable Substitution" context="VarSubst" String="${" />
+ <StringDetect attribute="Symbol" context="VarCmd" String="$(" />
+ <RegExpr attribute="Variable" context="VariableScopeModifier" String="\$(?=&varscope;:)" insensitive="1"/>
+ <RegExpr attribute="Variable" String="\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|[?^$])"/>
+ </context>
+
+ <context attribute="Normal Text" name="FindIdentifiant">
+ <RegExpr attribute="Number" context="NumericSuffix" String="\b(0b[01]+|0x[0-9a-fA-F]+|([0-9]+(\.[0-9]*)?|\.[0-9]+)(e([-+][0-9]+|[0-9]*))?)(?=(u?[ysl]|[und])?([kmgtp]b)?\b)" insensitive="1"/>
+ <RegExpr String="[-\w]+"/>
</context>
- <context attribute="String" lineEndContext="#pop" name="String">
- <LineContinue attribute="String" context="#pop"/>
+ <context attribute="Numeric Suffix" name="NumericSuffix" fallthroughContext="#pop">
+ <DetectIdentifier attribute="Numeric Suffix" context="#pop"/>
+ </context>
+
+ <!-- $( -->
+ <context attribute="Normal Text" name="VarCmd">
+ <DetectChar attribute="Symbol" context="#pop" char=")"/>
+ <IncludeRules context="Normal"/>
+ </context>
+
+ <!-- ${ -->
+ <context attribute="Variable" name="VarSubst" fallthroughContext="VarNameSubst">
+ <DetectChar attribute="Variable Substitution" context="#pop" char="}"/>
+ <RegExpr attribute="Scope Modifier" context="VariableName" String="&varscope;:" insensitive="1"/>
+ </context>
+ <context attribute="Variable" name="VarNameSubst">
+ <DetectChar attribute="Variable Substitution" context="#pop#pop" char="}"/>
+ </context>
+
+ <!-- $xxx:varname -->
+ <context attribute="Normal Text" name="VariableScopeModifier" lineEndContext="#pop">
+ <DetectChar attribute="Symbol" context="#pop!VariableName" char=":"/>
+ <DetectIdentifier attribute="Scope Modifier"/>
+ </context>
+ <context attribute="Normal Text" name="VariableName" lineEndContext="#pop">
+ <RegExpr attribute="Variable" context="#pop" String="&varname;(:&varname;)*"/>
+ </context>
+
+ <context attribute="String" name="StringDQ">
+ <IncludeRules context="FindVariable"/>
+ <RegExpr attribute="String Char" String="`u\{[0-9A-Fa-f]+\}|`.|`$|&quot;&quot;"/>
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
- <context attribute="HereString" lineEndContext="#stay" name="HereStringer">
- <Detect2Chars attribute="HereString" context="#pop" char="&quot;" char1="@" endRegion="StringRegion"/>
+ <context attribute="String" name="StringSQ">
+ <StringDetect attribute="String Char" String="''"/>
+ <DetectChar attribute="String" context="#pop" char="'"/>
</context>
- <context attribute="Normal Text" lineEndContext="#pop" name="Member" fallthrough="true" fallthroughContext="#pop">
- <RegExpr attribute="Function" context="#pop" String="\b[_\w][_\w\d]*(?=[\s]*)" />
+
+ <context attribute="HereString" lineEndContext="#stay" name="HereStringDQ">
+ <IncludeRules context="FindVariable"/>
+ <StringDetect attribute="HereString" context="#pop" String="&quot;@" endRegion="StringRegion" column="0"/>
</context>
- <context attribute="Comment" lineEndContext="#pop" name="Commentar 1"/>
+ <context attribute="HereString" lineEndContext="#stay" name="HereStringSQ">
+ <StringDetect attribute="HereString" context="#pop" String="'@" endRegion="StringRegion" column="0"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="Member" fallthroughContext="#pop">
+ <RegExpr attribute="Function" context="#pop" String="[_[:alpha:]]\w*" />
+ </context>
+
+ <context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
+ <DetectSpaces />
+ <IncludeRules context="##Comments"/>
+ </context>
+
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
+ <DetectSpaces />
<Detect2Chars attribute="Comment" context="#pop" char="#" char1="&gt;" endRegion="CommentRegion"/>
+ <!-- no delimiter except spaces -->
+ <keyword context="CommentHelp" String="comment-based-help" weakDeliminator="!%&amp;()*+,-./:;$lt;=>?[\]^{|}~" firstNonSpace="1" lookAhead="1" insensitive="0"/>
+ <IncludeRules context="##Comments"/>
</context>
- <context attribute="Cmdlets" lineEndContext="#stay" name="Cmdlet">
- <keyword attribute="Function" context="#stay" String="cmdlets"/>
+ <context attribute="Comment-Based Help Keyword" lineEndContext="#pop" name="CommentHelp">
+ <DetectChar attribute="Symbol" char="."/>
+ <DetectIdentifier attribute="Comment-Based Help Keyword" context="CommentHelpParam"/>
+ </context>
+ <context attribute="Comment-Based Help Paramater" lineEndContext="#pop#pop" name="CommentHelpParam">
</context>
+
</contexts>
+
<itemDatas>
- <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
- <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
- <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/>
- <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/>
- <itemData name="String" defStyleNum="dsString"/>
- <itemData name="HereString" defStyleNum="dsVerbatimString"/>
- <itemData name="Comment" defStyleNum="dsComment"/>
- <itemData name="Cmdlets" defStyleNum="dsBuiltIn" spellChecking="false"/>
- <itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/>
- <itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/>
- <itemData name="Special Variable" defStyleNum="dsVariable" bold="1" spellChecking="false"/>
+ <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
+ <itemData name="Attribute" defStyleNum="dsAttribute" spellChecking="false"/>
+ <itemData name="Escape" defStyleNum="dsChar" spellChecking="false"/>
+ <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
+ <itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="false"/>
+ <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/>
+ <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/>
+ <itemData name="String" defStyleNum="dsString"/>
+ <itemData name="String Char" defStyleNum="dsChar" spellChecking="false"/>
+ <itemData name="HereString" defStyleNum="dsVerbatimString"/>
+ <itemData name="Number" defStyleNum="dsDecVal" spellChecking="false"/>
+ <itemData name="Numeric Suffix" defStyleNum="dsDataType" spellChecking="false"/>
+ <itemData name="Comment" defStyleNum="dsComment"/>
+ <itemData name="Comment-Based Help Keyword" defStyleNum="dsDocumentation" spellChecking="false"/>
+ <itemData name="Comment-Based Help Paramater" defStyleNum="dsSpecialString" spellChecking="false"/>
+ <itemData name="Symbol" defStyleNum="dsOperator" spellChecking="false"/>
+ <itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/>
+ <itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/>
+ <itemData name="Scope Modifier" defStyleNum="dsVariable" spellChecking="false" bold="1"/>
+ <itemData name="Variable Substitution" defStyleNum="dsPreprocessor" spellChecking="false"/>
</itemDatas>
</highlighting>
<general>
@@ -932,3 +1008,4 @@
<keywords casesensitive="0" weakDeliminator=":-"/>
</general>
</language>
+<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/python.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/python.xml
deleted file mode 100644
index 33a313a694..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/python.xml
+++ /dev/null
@@ -1,688 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language>
-<!-- Python syntax highlightning v0.9 by Per Wigren -->
-<!-- Python syntax highlighting v1.9 by Michael Bueker (improved keyword differentiation) -->
-<!-- Python syntax highlighting v1.97 by Paul Giannaros -->
-<!-- Python syntax highlighting v1.99 by Primoz Anzur -->
-<!-- Python syntax highlighting v2.01 by Paul Giannaros:
- * full format character support
- * unicode string modifier supported -->
-<!-- v2.02 remove RegExpr for nums and make indent consistent -->
-<!-- v2.03 highlight decorators, remove operator regex, don't highlight parens as operators -->
-<!-- v2.04 make alerts visible even if they are directly after ''' or # without a space -->
-<!-- v2.06 decorator names can (and often do) contain periods -->
-<!-- v2.07 add support for %prog and co, see bug 142832 -->
-<!-- v2.08 add missing overloaders, new Python 3 statements, builtins, and keywords -->
-<!-- v2.29 recognize escape sequenzes correctly -->
-<language name="Python" version="9" style="python" indenter="python" kateversion="5.0" section="Scripts" extensions="*.py;*.pyw;SConstruct;SConscript" mimetype="application/x-python;text/x-python;text/x-python3" casesensitive="1" author="Michael Bueker" license="">
- <highlighting>
- <list name="import">
- <item>import</item>
- <item>from</item>
- <item>as</item>
- </list>
- <list name="defs">
- <item>class</item>
- <item>def</item>
- <item>del</item>
- <item>global</item>
- <item>lambda</item>
- <item>nonlocal</item>
- </list>
- <list name="operators">
- <item>and</item>
- <item>in</item>
- <item>is</item>
- <item>not</item>
- <item>or</item>
- </list>
- <list name="flow">
- <item>assert</item>
- <item>break</item>
- <item>continue</item>
- <item>elif</item>
- <item>else</item>
- <item>except</item>
- <item>finally</item>
- <item>for</item>
- <item>if</item>
- <item>pass</item>
- <item>raise</item>
- <item>return</item>
- <item>try</item>
- <item>while</item>
- <item>with</item>
- <item>yield</item>
- <item>async</item>
- <item>await</item>
- </list>
- <list name="builtinfuncs">
- <item>__import__</item>
- <item>abs</item>
- <item>all</item>
- <item>any</item>
- <item>apply</item>
- <item>ascii</item>
- <item>basestring</item>
- <item>bin</item>
- <item>bool</item>
- <item>buffer</item>
- <item>bytearray</item>
- <item>bytes</item>
- <item>callable</item>
- <item>chr</item>
- <item>classmethod</item>
- <item>cmp</item>
- <item>coerce</item>
- <item>compile</item>
- <item>complex</item>
- <item>delattr</item>
- <item>dict</item>
- <item>dir</item>
- <item>divmod</item>
- <item>enumerate</item>
- <item>eval</item>
- <item>exec</item>
- <item>execfile</item>
- <item>file</item>
- <item>filter</item>
- <item>float</item>
- <item>format</item>
- <item>frozenset</item>
- <item>getattr</item>
- <item>globals</item>
- <item>hasattr</item>
- <item>hash</item>
- <item>help</item>
- <item>hex</item>
- <item>id</item>
- <item>input</item>
- <item>int</item>
- <item>intern</item>
- <item>isinstance</item>
- <item>issubclass</item>
- <item>iter</item>
- <item>len</item>
- <item>list</item>
- <item>locals</item>
- <item>long</item>
- <item>map</item>
- <item>max</item>
- <item>memoryview</item>
- <item>min</item>
- <item>next</item>
- <item>object</item>
- <item>oct</item>
- <item>open</item>
- <item>ord</item>
- <item>pow</item>
- <item>print</item>
- <item>property</item>
- <item>range</item>
- <item>raw_input</item>
- <item>reduce</item>
- <item>reload</item>
- <item>repr</item>
- <item>reversed</item>
- <item>round</item>
- <item>set</item>
- <item>setattr</item>
- <item>slice</item>
- <item>sorted</item>
- <item>staticmethod</item>
- <item>str</item>
- <item>sum</item>
- <item>super</item>
- <item>tuple</item>
- <item>type</item>
- <item>unichr</item>
- <item>unicode</item>
- <item>vars</item>
- <item>xrange</item>
- <item>zip</item>
- </list>
- <list name="specialvars">
- <item>None</item>
- <item>self</item>
- <item>True</item>
- <item>False</item>
- <item>NotImplemented</item>
- <item>Ellipsis</item>
- <item>__debug__</item>
- <item>__file__</item>
- <item>__name__</item>
- </list>
- <list name="bindings">
- <item>SIGNAL</item>
- <item>SLOT</item>
- <item>connect</item>
- </list>
- <list name="overloaders">
- <item>__new__</item>
- <item>__init__</item>
- <item>__del__</item>
- <item>__repr__</item>
- <item>__str__</item>
- <item>__lt__</item>
- <item>__le__</item>
- <item>__eq__</item>
- <item>__ne__</item>
- <item>__gt__</item>
- <item>__ge__</item>
- <item>__cmp__</item>
- <item>__rcmp__</item>
- <item>__hash__</item>
- <item>__nonzero__</item>
- <item>__unicode__</item>
- <item>__getattr__</item>
- <item>__setattr__</item>
- <item>__delattr__</item>
- <item>__getattribute__</item>
- <item>__get__</item>
- <item>__set__</item>
- <item>__delete__</item>
- <item>__call__</item>
- <item>__len__</item>
- <item>__getitem__</item>
- <item>__setitem__</item>
- <item>__delitem__</item>
- <item>__iter__</item>
- <item>__reversed__</item>
- <item>__contains__</item>
- <item>__getslice__</item>
- <item>__setslice__</item>
- <item>__delslice__</item>
- <item>__add__</item>
- <item>__sub__</item>
- <item>__mul__</item>
- <item>__floordiv__</item>
- <item>__mod__</item>
- <item>__divmod__</item>
- <item>__pow__</item>
- <item>__lshift__</item>
- <item>__rshift__</item>
- <item>__and__</item>
- <item>__xor__</item>
- <item>__or__</item>
- <item>__div__</item>
- <item>__truediv__</item>
- <item>__radd__</item>
- <item>__rsub__</item>
- <item>__rmul__</item>
- <item>__rdiv__</item>
- <item>__rtruediv__</item>
- <item>__rfloordiv__</item>
- <item>__rmod__</item>
- <item>__rdivmod__</item>
- <item>__rpow__</item>
- <item>__rlshift__</item>
- <item>__rrshift__</item>
- <item>__rand__</item>
- <item>__rxor__</item>
- <item>__ror__</item>
- <item>__iadd__</item>
- <item>__isub__</item>
- <item>__imul__</item>
- <item>__idiv__</item>
- <item>__itruediv__</item>
- <item>__ifloordiv__</item>
- <item>__imod__</item>
- <item>__ipow__</item>
- <item>__ilshift__</item>
- <item>__irshift__</item>
- <item>__iand__</item>
- <item>__ixor__</item>
- <item>__ior__</item>
- <item>__neg__</item>
- <item>__pos__</item>
- <item>__abs__</item>
- <item>__invert__</item>
- <item>__complex__</item>
- <item>__int__</item>
- <item>__long__</item>
- <item>__float__</item>
- <item>__oct__</item>
- <item>__hex__</item>
- <item>__index__</item>
- <item>__coerce__</item>
- <item>__enter__</item>
- <item>__exit__</item>
- <item>__bytes__</item>
- <item>__format__</item>
- <item>__next__</item>
- <item>__dir__</item>
- <item>__await__</item>
- <item>__aiter__</item>
- <item>__anext__</item>
- <item>__aenter__</item>
- <item>__aexit__</item>
- </list>
- <list name="exceptions">
- <!--
- Exceptions list resources used:
- - http://docs.python.org/2.7/library/exceptions.html#exception-hierarchy
- - http://docs.python.org/3.4/library/exceptions.html#exception-hierarchy
- -->
- <item>ArithmeticError</item>
- <item>AssertionError</item>
- <item>AttributeError</item>
- <item>BaseException</item>
- <item>BlockingIOError</item>
- <item>BrokenPipeError</item>
- <item>BufferError</item>
- <item>BytesWarning</item>
- <item>ChildProcessError</item>
- <item>ConnectionAbortedError</item>
- <item>ConnectionError</item>
- <item>ConnectionRefusedError</item>
- <item>ConnectionResetError</item>
- <item>DeprecationWarning</item>
- <item>EnvironmentError</item>
- <item>EOFError</item>
- <item>Exception</item>
- <item>FileExistsError</item>
- <item>FileNotFoundError</item>
- <item>FloatingPointError</item>
- <item>FutureWarning</item>
- <item>GeneratorExit</item>
- <item>ImportError</item>
- <item>ImportWarning</item>
- <item>IndentationError</item>
- <item>IndexError</item>
- <item>InterruptedError</item>
- <item>IOError</item>
- <item>IsADirectoryError</item>
- <item>KeyboardInterrupt</item>
- <item>KeyError</item>
- <item>LookupError</item>
- <item>MemoryError</item>
- <item>NameError</item>
- <item>NotADirectoryError</item>
- <item>NotImplementedError</item>
- <item>OSError</item>
- <item>OverflowError</item>
- <item>PendingDeprecationWarning</item>
- <item>PermissionError</item>
- <item>ProcessLookupError</item>
- <item>ReferenceError</item>
- <item>ResourceWarning</item>
- <item>RuntimeError</item>
- <item>RuntimeWarning</item>
- <item>StandardError</item>
- <item>StopIteration</item>
- <item>SyntaxError</item>
- <item>SyntaxWarning</item>
- <item>SystemError</item>
- <item>SystemExit</item>
- <item>TabError</item>
- <item>TimeoutError</item>
- <item>TypeError</item>
- <item>UnboundLocalError</item>
- <item>UnicodeDecodeError</item>
- <item>UnicodeEncodeError</item>
- <item>UnicodeError</item>
- <item>UnicodeTranslateError</item>
- <item>UnicodeWarning</item>
- <item>UserWarning</item>
- <item>ValueError</item>
- <item>Warning</item>
- <item>WindowsError</item>
- <item>ZeroDivisionError</item>
- </list>
- <contexts>
- <context name="Normal" attribute="Normal Text" lineEndContext="#stay">
- <keyword attribute="Import" String="import" context="#stay"/>
- <keyword attribute="Definition Keyword" String="defs" context="#stay"/>
- <keyword attribute="Operator Keyword" String="operators" context="#stay"/>
- <keyword attribute="Flow Control Keyword" String="flow" context="#stay"/>
- <keyword attribute="Builtin Function" String="builtinfuncs" context="#stay"/>
- <keyword attribute="Special Variable" String="specialvars" context="#stay"/>
- <keyword attribute="Extensions" String="bindings" context="#stay"/>
- <keyword attribute="Exceptions" String="exceptions" context="#stay"/>
- <keyword attribute="Overloaders" String="overloaders" context="#stay"/>
- <RegExpr attribute="Normal Text" String="[a-zA-Z_][a-zA-Z_0-9]{2,}" context="#stay"/>
-
- <RegExpr attribute="Complex" String=" ((([0-9]*\.[0-9]+|[0-9]+\.)|([0-9]+|([0-9]*\.[0-9]+|[0-9]+\.))[eE](\+|-)?[0-9]+)|[0-9]+)[jJ]" context="#stay"/>
- <Float attribute="Float" context="#stay" />
- <HlCHex attribute="Hex" context="#stay"/>
- <HlCOct attribute="Octal" context="#stay"/>
- <Int attribute="Int" context="Int Suffixes"/>
-
- <RegExpr attribute="Int" String=" ([0-9]+_)+[0-9]+" context="#stay"/>
- <RegExpr attribute="Float" String=" ([0-9]+_)+[0-9]+\.[0-9]+" context="#stay"/>
- <RegExpr attribute="Hex" String=" [0-9]x([A-F0-9]+_)+[A-F0-9]+" context="#stay"/>
-
- <DetectChar attribute="Normal Text" char="{" context="Dictionary" beginRegion="Dictionary"/>
- <DetectChar attribute="Normal Text" char="[" context="List" beginRegion="List"/>
- <DetectChar attribute="Normal Text" char="(" context="Tuple" beginRegion="Tuple"/>
-
- <IncludeRules context="CommentVariants" />
-
- <DetectChar attribute="Comment" char="#" context="Hash comment"/>
-
- <IncludeRules context="StringVariants" />
-
- <RegExpr attribute="Decorator" String="@[_a-zA-Z][\._a-zA-Z0-9]*" firstNonSpace="true"/>
- <AnyChar attribute="Operator" String="+*/%\|=;\!&lt;&gt;!^&amp;~-@" context="#stay"/>
- </context>
-
- <context name="Int Suffixes" attribute="Int" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
- <StringDetect attribute="Int" context="#pop" String="L" insensitive="true"/>
- </context>
-
- <context name="#CheckForString" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
- <DetectSpaces/>
- <LineContinue attribute="Normal Text" context="CheckForStringNext"/>
- </context>
-
- <context name="CheckForStringNext" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
- <DetectSpaces/>
- <LineContinue attribute="Normal Text" context="CheckForStringNext"/>
- <IncludeRules context="StringVariants"/>
- </context>
-
- <context name="StringVariants" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces/>
-
- <RegExpr attribute="String" String="u?'''" insensitive="true" context="Triple A-string" beginRegion="Triple A-region"/>
- <RegExpr attribute="String" String="u?&quot;&quot;&quot;" insensitive="true" context="Triple Q-string" beginRegion="Triple Q-region"/>
- <RegExpr attribute="String" String="u?'" insensitive="true" context="Single A-string"/>
- <RegExpr attribute="String" String="u?&quot;" insensitive="true" context="Single Q-string"/>
-
- <RegExpr attribute="Raw String" String="(u?r|ru)'''" insensitive="true" context="Raw Triple A-string" beginRegion="Triple A-region"/>
- <RegExpr attribute="Raw String" String="(u?r|ru)&quot;&quot;&quot;" insensitive="true" context="Raw Triple Q-string" beginRegion="Triple Q-region"/>
- <RegExpr attribute="Raw String" String="(u?r|ru)'" insensitive="true" context="Raw A-string"/>
- <RegExpr attribute="Raw String" String="(u?r|ru)&quot;" insensitive="true" context="Raw Q-string"/>
-
- <StringDetect attribute="F-String" String="f'''" insensitive="true" context="Triple A-F-String" beginRegion="Triple A-region"/>
- <StringDetect attribute="F-String" String="f&quot;&quot;&quot;" insensitive="true" context="Triple Q-F-String" beginRegion="Triple Q-region"/>
- <StringDetect attribute="F-String" String="f'" insensitive="true" context="Single A-F-String"/>
- <StringDetect attribute="F-String" String="f&quot;" insensitive="true" context="Single Q-F-String"/>
-
- <RegExpr attribute="Raw F-String" String="(fr|rf)'''" insensitive="true" context="Raw Triple A-F-String" beginRegion="Triple A-region"/>
- <RegExpr attribute="Raw F-String" String="(fr|rf)&quot;&quot;&quot;" insensitive="true" context="Raw Triple Q-F-String" beginRegion="Triple Q-region"/>
- <RegExpr attribute="Raw F-String" String="(fr|rf)'" insensitive="true" context="Raw A-F-String"/>
- <RegExpr attribute="Raw F-String" String="(fr|rf)&quot;" insensitive="true" context="Raw Q-F-String"/>
- </context>
-
- <context name="CommentVariants" attribute="Normal Text" lineEndContext="#stay">
- <DetectSpaces/>
-
- <RegExpr attribute="Comment" String="u?'''" insensitive="true" firstNonSpace="true" context="Triple A-comment" beginRegion="Triple A-region"/>
- <RegExpr attribute="Comment" String="u?&quot;&quot;&quot;" insensitive="true" firstNonSpace="true" context="Triple Q-comment" beginRegion="Triple Q-region"/>
- <RegExpr attribute="Comment" String="u?'" insensitive="true" firstNonSpace="true" context="Single A-comment"/>
- <RegExpr attribute="Comment" String="u?&quot;" insensitive="true" firstNonSpace="true" context="Single Q-comment"/>
-
- <RegExpr attribute="Comment" String="(u?r|ru)'''" insensitive="true" firstNonSpace="true" context="Triple A-comment" beginRegion="Triple A-region"/>
- <RegExpr attribute="Comment" String="(u?r|ru)&quot;&quot;&quot;" insensitive="true" firstNonSpace="true" context="Triple Q-comment" beginRegion="Triple Q-region"/>
- <RegExpr attribute="Comment" String="(u?r|ru)'" insensitive="true" firstNonSpace="true" context="Single A-comment"/>
- <RegExpr attribute="Comment" String="(u?r|ru)&quot;" insensitive="true" firstNonSpace="true" context="Single Q-comment"/>
- </context>
-
- <context name="Dictionary" attribute="Normal Text" lineEndContext="#stay" noIndentationBasedFolding="true">
- <DetectSpaces/>
- <DetectChar attribute="Normal Text" char="}" context="#pop" endRegion="Dictionary"/>
- <IncludeRules context="StringVariants" />
- <IncludeRules context="Normal" />
- </context>
-
- <context name="List" attribute="Normal Text" lineEndContext="#stay" noIndentationBasedFolding="true">
- <DetectSpaces/>
- <DetectChar attribute="Normal Text" char="]" context="#pop" endRegion="List"/>
- <IncludeRules context="StringVariants" />
- <IncludeRules context="Normal" />
- </context>
-
- <context name="Tuple" attribute="Normal Text" lineEndContext="#stay" noIndentationBasedFolding="true">
- <DetectSpaces/>
- <DetectChar attribute="Normal Text" char=")" context="#pop" endRegion="Tuple"/>
- <IncludeRules context="StringVariants" />
- <IncludeRules context="Normal" />
- </context>
-
- <!-- Comments -->
-
- <context name="Hash comment" attribute="Comment" lineEndContext="#pop">
- <IncludeRules context="##Alerts" />
- <IncludeRules context="##Modelines" />
- </context>
-
- <context name="Triple A-comment" attribute="Comment" lineEndContext="#stay" noIndentationBasedFolding="true">
- <IncludeRules context="stringescape"/>
- <StringDetect attribute="Comment" String="'''" context="#pop" endRegion="Triple A-region"/>
- <IncludeRules context="##Alerts" />
- </context>
-
- <context name="Triple Q-comment" attribute="Comment" lineEndContext="#stay" noIndentationBasedFolding="true">
- <IncludeRules context="stringescape"/>
- <StringDetect attribute="Comment" String="&quot;&quot;&quot;" context="#pop" endRegion="Triple Q-region"/>
- <IncludeRules context="##Alerts" />
- </context>
-
- <context name="Single A-comment" attribute="Comment" lineEndContext="#stay">
- <IncludeRules context="stringescape"/>
- <DetectChar attribute="Comment" char="'" context="#pop"/>
- <IncludeRules context="##Alerts" />
- </context>
-
- <context name="Single Q-comment" attribute="Comment" lineEndContext="#stay">
- <IncludeRules context="stringescape"/>
- <DetectChar attribute="Comment" char="&quot;" context="#pop"/>
- <IncludeRules context="##Alerts" />
- </context>
-
- <!-- Strings -->
-
- <!-- format characters -->
- <context name="stringformat" attribute="String Substitution" lineEndContext="#stay">
- <!-- Python 2 style. Syntax:
- 1. start character '%'
- 2. [optional] Mapping key, e.g. '(foo)'
- 3. [optional] Conversion flags, one of '#0- +'
- 4. [optional] Minimum width, integer or '*'
- 5. [optional] Precision, '.' followed by integer or '*'
- 6. [optional] Length modifier, one of 'hlL'
- 7. conversion type, one of 'crsdiouxXeEfFgG%'
- [Special cases: %prog and %default - see http://docs.python.org/library/optparse.html]
- -->
- <RegExpr attribute="String Substitution" String="%((\([a-zA-Z0-9_]+\))?[#0\- +]?([1-9][0-9]*|\*)?(\.([1-9][0-9]*|\*))?[hlL]?[crsdiouxXeEfFgG%]|prog|default)" context="#stay"/>
- <!-- http://docs.python.org/2/library/string.html#format-string-syntax:
- replacement_field ::= "{" [field_name] ["!" conversion] [":" format_spec] "}"
- field_name ::= arg_name ("." attribute_name | "[" element_index "]")*
- arg_name ::= [identifier | integer]
- attribute_name ::= identifier
- element_index ::= integer | index_string
- index_string ::= <any source character except "]"> +
- conversion ::= "r" | "s"
- format_spec ::= [[fill]align][sign][#][0][width][,][.precision][type]
- fill ::= <any character>
- align ::= "<" | ">" | "=" | "^"
- sign ::= "+" | "-" | " "
- width ::= integer
- precision ::= integer
- type ::= "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "n" | "o" | "s" | "x" | "X" | "%"
- -->
- <RegExpr attribute="String Substitution" String="\{(([a-zA-Z0-9_]+|[0-9]+)(\.[a-zA-Z0-9_]+|\[[^ \]]+\])*)?(![rs])?(:([^}]?[&lt;&gt;=^])?[ +-]?#?0?[0-9]*(\.[0-9]+)?[bcdeEfFgGnosxX%]?)?\}" context="#stay"/>
- <Detect2Chars attribute="String Substitution" char="{" char1="{" context="#stay" />
- <Detect2Chars attribute="String Substitution" char="}" char1="}" context="#stay" />
- </context>
-
- <!-- escape characters -->
- <context name="stringescape" attribute="String Char" lineEndContext="#stay">
- <!-- As this highlighting style is for both, Python 2 and 3,
- we do not know if a normal string is “unicode” or not. So we
- -->
- <RegExpr attribute="String Char" String="\\[\\'&quot;abfnrtv]" context="#stay"/>
- <RegExpr attribute="String Char" String="\\[0-7]{1,3}" context="#stay"/>
- <RegExpr attribute="String Char" String="\\x[0-9A-Fa-f]{2}" context="#stay"/>
- <RegExpr attribute="String Char" String="\\u[0-9A-Fa-f]{4}" context="#stay"/>
- <RegExpr attribute="String Char" String="\\U[0-9A-Fa-f]{8}" context="#stay"/>
- <RegExpr attribute="String Char" String="\\N\{[a-zA-Z0-9\- ]+\}" context="#stay"/>
- </context>
-
- <!-- f-literals -->
- <context name="stringinterpolation" attribute="F-String" lineEndContext="#stay">
- <Detect2Chars attribute="String Char" char="{" char1="{" context="#stay"/>
- <DetectChar attribute="String Substitution" char="{" context="String Interpolation"/>
- </context>
- <context name="String Interpolation" attribute="String Substitution" lineEndContext="#stay">
- <DetectChar attribute="Error" char="\" context="#pop"/>
- <RegExpr attribute="String Substitution" String="(![rs])?(:([^}]?[&lt;&gt;=^])?[ +-]?#?0?[0-9]*(\.[0-9]+)?[bcdeEfFgGnosxX%]?)?\}" context="#pop"/>
- <IncludeRules context="Normal"/> <!-- TODO: create expression context instead -->
- </context>
-
-
- <!--
- It follows a Binary tree of string kinds (not even touching byte literals).
- The levels are:
- 1. triple- vs. single-quoted
- 2. apostrophe vs. quotation mark
- 3. static vs. interpolated (f-literal)
- 4. escaped vs. raw
- Adding byte literals wouldn’t make the current 2⁴ into 2⁵ contexts, as there are no byte f-literals
- -->
-
-
- <!-- Triple-quoted A-strings -->
- <context name="Triple A-string" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="true">
- <IncludeRules context="stringescape"/>
- <IncludeRules context="stringformat"/>
- <StringDetect attribute="String" String="'''" context="#pop#CheckForString" endRegion="Triple A-region"/>
- </context>
-
- <context name="Raw Triple A-string" attribute="Raw String" lineEndContext="#stay" noIndentationBasedFolding="true">
- <HlCStringChar attribute="Raw String" context="#stay"/>
- <IncludeRules context="stringformat"/>
- <StringDetect attribute="Raw String" String="'''" context="#pop#CheckForString" endRegion="Triple A-region"/>
- </context>
-
- <context name="Triple A-F-String" attribute="F-String" lineEndContext="#stay" noIndentationBasedFolding="true">
- <IncludeRules context="stringescape"/>
- <IncludeRules context="stringinterpolation"/>
- <StringDetect attribute="F-String" String="'''" context="#pop#CheckForString" endRegion="Triple A-region"/>
- </context>
-
- <context name="Raw Triple A-F-String" attribute="Raw F-String" lineEndContext="#stay" noIndentationBasedFolding="true">
- <HlCStringChar attribute="Raw F-String" context="#stay"/>
- <IncludeRules context="stringinterpolation"/>
- <StringDetect attribute="Raw F-String" String="'''" context="#pop#CheckForString" endRegion="Triple A-region"/>
- </context>
-
- <!-- Triple-quoted Q-strings -->
- <context name="Triple Q-string" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="true">
- <IncludeRules context="stringescape"/>
- <IncludeRules context="stringformat"/>
- <StringDetect attribute="String" String="&quot;&quot;&quot;" context="#pop#CheckForString" endRegion="Triple Q-region"/>
- </context>
-
- <context name="Raw Triple Q-string" attribute="Raw String" lineEndContext="#stay" noIndentationBasedFolding="true">
- <HlCStringChar attribute="Raw String" context="#stay"/>
- <IncludeRules context="stringformat"/>
- <StringDetect attribute="Raw String" String="&quot;&quot;&quot;" context="#pop#CheckForString" endRegion="Triple Q-region"/>
- </context>
-
- <context name="Triple Q-F-String" attribute="F-String" lineEndContext="#stay" noIndentationBasedFolding="true">
- <IncludeRules context="stringescape"/>
- <IncludeRules context="stringinterpolation"/>
- <StringDetect attribute="F-String" String="&quot;&quot;&quot;" context="#pop#CheckForString" endRegion="Triple Q-region"/>
- </context>
-
- <context name="Raw Triple Q-F-String" attribute="Raw F-String" lineEndContext="#stay" noIndentationBasedFolding="true">
- <HlCStringChar attribute="Raw F-String" context="#stay"/>
- <IncludeRules context="stringinterpolation"/>
- <StringDetect attribute="Raw F-String" String="&quot;&quot;&quot;" context="#pop#CheckForString" endRegion="Triple Q-region"/>
- </context>
-
-
- <!-- Single-quoted A-strings -->
- <context name="Single A-string" attribute="String" lineEndContext="#stay">
- <IncludeRules context="stringescape"/>
- <IncludeRules context="stringformat"/>
- <DetectChar attribute="String" char="'" context="#pop#CheckForString"/>
- </context>
-
- <context name="Raw A-string" attribute="Raw String" lineEndContext="#stay">
- <HlCStringChar attribute="Raw String" context="#stay"/>
- <IncludeRules context="stringformat"/>
- <DetectChar attribute="Raw String" char="'" context="#pop#CheckForString"/>
- </context>
-
- <context name="Single A-F-String" attribute="F-String" lineEndContext="#stay">
- <IncludeRules context="stringescape"/>
- <IncludeRules context="stringinterpolation"/>
- <DetectChar attribute="F-String" char="'" context="#pop#CheckForString"/>
- </context>
-
- <context name="Raw A-F-String" attribute="Raw F-String" lineEndContext="#stay">
- <HlCStringChar attribute="Raw F-String" context="#stay"/>
- <IncludeRules context="stringinterpolation"/>
- <DetectChar attribute="Raw F-String" char="'" context="#pop#CheckForString"/>
- </context>
-
- <!-- Single-quoted Q-strings -->
- <context name="Single Q-string" attribute="String" lineEndContext="#stay">
- <IncludeRules context="stringescape"/>
- <IncludeRules context="stringformat"/>
- <DetectChar attribute="String" char="&quot;" context="#pop#CheckForString"/>
- </context>
-
- <context name="Raw Q-string" attribute="Raw String" lineEndContext="#stay">
- <HlCStringChar attribute="Raw String" context="#stay"/>
- <IncludeRules context="stringformat"/>
- <DetectChar attribute="Raw String" char="&quot;" context="#pop#CheckForString"/>
- </context>
-
- <context name="Single Q-F-String" attribute="F-String" lineEndContext="#stay">
- <IncludeRules context="stringescape"/>
- <IncludeRules context="stringinterpolation"/>
- <DetectChar attribute="F-String" char="&quot;" context="#pop#CheckForString"/>
- </context>
-
- <context name="Raw Q-F-String" attribute="Raw F-String" lineEndContext="#stay">
- <HlCStringChar attribute="Raw F-String" context="#stay"/>
- <IncludeRules context="stringinterpolation"/>
- <DetectChar attribute="Raw F-String" char="&quot;" context="#pop#CheckForString"/>
- </context>
- </contexts>
-
- <itemDatas>
- <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
- <itemData name="Definition Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
- <itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/>
- <itemData name="Operator Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
- <itemData name="Flow Control Keyword" defStyleNum="dsControlFlow" spellChecking="false"/>
- <itemData name="Builtin Function" defStyleNum="dsBuiltIn" spellChecking="false"/>
- <itemData name="Special Variable" defStyleNum="dsVariable" spellChecking="false"/>
- <itemData name="Extensions" defStyleNum="dsExtension" spellChecking="false"/>
- <itemData name="Exceptions" defStyleNum="dsPreprocessor" spellChecking="false"/>
- <itemData name="Overloaders" defStyleNum="dsFunction" spellChecking="false"/>
- <itemData name="Import" defStyleNum="dsImport" spellChecking="false"/>
- <itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/>
- <itemData name="Int" defStyleNum="dsDecVal" spellChecking="false"/>
- <itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/>
- <itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false"/>
- <itemData name="Complex" defStyleNum="dsOthers" spellChecking="false"/>
- <itemData name="Comment" defStyleNum="dsComment"/>
- <itemData name="String" defStyleNum="dsString"/>
- <itemData name="Raw String" defStyleNum="dsVerbatimString"/>
- <itemData name="F-String" defStyleNum="dsSpecialString"/>
- <itemData name="Raw F-String" defStyleNum="dsVerbatimString"/>
- <itemData name="String Char" defStyleNum="dsChar" spellChecking="false"/>
- <itemData name="String Substitution" defStyleNum="dsSpecialChar" spellChecking="false"/>
- <itemData name="Decorator" defStyleNum="dsAttribute" spellChecking="false"/>
- <itemData name="Error" defStyleNum="dsError"/>
- </itemDatas>
- </highlighting>
- <general>
- <folding indentationsensitive="1" />
- <emptyLines>
- <emptyLine regexpr="(?:\s+|\s*#.*)"/>
- </emptyLines>
- <comments>
- <comment name="singleLine" start="#" position="afterwhitespace"/>
- </comments>
- <keywords casesensitive="1" additionalDeliminator="#'"/>
- </general>
-</language>
-
-<!-- kate: space-indent off; indent-width 4; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/qdocconf.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/qdocconf.xml
index 0efd6edc3f..dfd8008d98 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/qdocconf.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/qdocconf.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd">
+<!DOCTYPE language>
<language name="QDoc Configuration"
- version="1"
+ version="3"
kateversion="5.0"
section="Configuration"
extensions="*.qdocconf"
@@ -84,7 +84,7 @@
<contexts>
<context name="key-context" attribute="Normal Text" lineEndContext="#stay">
- <DetectChar char="#" context="comment-context" column="0"/>
+ <DetectChar char="#" attribute="Comment" context="comment-context" column="0"/>
<keyword attribute="Keyword" String="key-names"/>
<keyword attribute="Function" String="function-names"/>
<DetectChar char="=" context="value-context"/>
@@ -112,7 +112,8 @@
</context>
<context name="comment-context" attribute="Comment" lineEndContext="#pop">
- <IncludeRules context="##Alerts"/>
+ <DetectSpaces />
+ <IncludeRules context="##Comments"/>
</context>
</contexts>
@@ -134,3 +135,4 @@
<keywords casesensitive="1" weakDeliminator="-/"/>
</general>
</language>
+<!-- kate: replace-tabs on; tab-width 4; indent-width 4; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/ruby.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/ruby.xml
index a451e1442f..7c1163910f 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/ruby.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/ruby.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd">
+<!DOCTYPE language>
<!--
Ruby syntax highlighting definition for Kate.
@@ -31,7 +31,7 @@
<!-- Hold the "language" opening tag on a single line, as mentioned in "language.dtd". -->
<language name="Ruby" section="Scripts"
- version="10" kateversion="3.3"
+ version="18" kateversion="5.0"
extensions="*.rb;*.rjs;*.rxml;*.xml.erb;*.js.erb;*.rake;Rakefile;Gemfile;*.gemspec;Vagrantfile"
mimetype="application/x-ruby"
style="ruby" indenter="ruby"
@@ -183,6 +183,8 @@
<item>extend</item>
<item>include</item>
<item>prepend</item>
+ <item>refine</item>
+ <item>using</item>
</list>
<contexts>
@@ -191,19 +193,17 @@
<LineContinue attribute="Normal Text" context="Line Continue"/>
<!-- __END__ token on own line. -->
- <RegExpr attribute="Keyword" String="__END__$" context="DATA" column="0"/>
+ <RegExpr attribute="Keyword" String="^__END__$" context="DATA" column="0"/>
<!-- "shebang" line -->
- <RegExpr attribute="Keyword" String="#!\/.*" context="#stay" column="0"/>
+ <RegExpr attribute="Keyword" String="^#!\/.*" context="#stay" column="0"/>
<!-- "def" - "end" blocks -->
<!-- check for statement modifiers with regexes -->
<DetectChar attribute="Operator" char="{" context="Find closing block brace" beginRegion="def block"/>
- <RegExpr attribute="Keyword" String="(\=|\(|\[|\{)\s*(if|unless|while|until)\b" context="#stay" beginRegion="def block"/>
- <RegExpr attribute="Keyword" String="(while|until)\b(?!.*\bdo\b)" context="#stay" beginRegion="def block" />
- <RegExpr attribute="Keyword" String="\;\s*(while|until)\b(?!.*\bdo\b)" context="#stay" beginRegion="def block"/>
+ <DetectChar attribute="Delimiter" char="}" context="check_div_1" endRegion="def block"/>
+ <RegExpr attribute="Keyword" String="[=([]\s*(if|unless|while|until)\b|(while|until)\b(?!.*\bdo\b)|\;\s*(while|until)\b(?!.*\bdo\b)|\;\s*(if|unless)\b" context="#stay" beginRegion="def block"/>
<RegExpr attribute="Keyword" String="(if|unless)\b" context="#stay" beginRegion="def block" firstNonSpace="true"/>
- <RegExpr attribute="Keyword" String="\;\s*(if|unless)\b" context="#stay" beginRegion="def block"/>
<WordDetect attribute="Keyword" String="class" context="no_heredoc" beginRegion="def block"/>
<WordDetect attribute="Keyword" String="module" context="#stay" beginRegion="def block"/>
<WordDetect attribute="Keyword" String="begin" context="#stay" beginRegion="def block"/>
@@ -236,8 +236,7 @@
<!-- (global) vars starting with $
Match them before $_.
-->
- <RegExpr attribute="Global Variable" String="\$[a-zA-Z_0-9]+" context="check_div_1"/>
- <RegExpr attribute="Global Variable" String="\$\-[a-zA-Z_]\b" context="check_div_1"/>
+ <RegExpr attribute="Global Variable" String="\$[a-zA-Z_0-9]+|\$\-[a-zA-Z_]\b" context="check_div_1"/>
<!-- special-character globals -->
<RegExpr attribute="Default globals" String="\$[\d_*`+@;,.~=\!\$:?'/\\\-\&amp;&quot;&gt;&lt;]" context="check_div_1"/>
<RegExpr attribute="Global Constant" String="\b[_A-Z]+[A-Z_0-9]+\b" context="check_div_2"/>
@@ -269,21 +268,16 @@
<DetectChar attribute="Operator" char="." context="#stay"/>
<Detect2Chars attribute="Operator" char="&amp;" char1="&amp;" context="#stay"/>
<Detect2Chars attribute="Operator" char="|" char1="|" context="#stay"/>
- <RegExpr attribute="Operator" String="\s[\?\:\%]\s" context="#stay"/>
- <RegExpr attribute="Operator" String="[|&amp;&lt;&gt;\^\+*~\-=]+" context="#stay"/>
- <!-- regexp hack -->
- <RegExpr attribute="Operator" String="\s!" context="#stay"/>
- <RegExpr attribute="Operator" String="/=\s" context="#stay" insensitive="0"/>
+ <!-- \s! is regexp hack -->
+ <RegExpr attribute="Operator" String="\s[\?\:\%]\s|[|&amp;&lt;&gt;\^\+*~\-=]+|\s!|/=\s" context="#stay"/>
<Detect2Chars attribute="Operator" char="%" char1="=" context="#stay"/>
<Detect2Chars attribute="Operator" char=":" char1=":" context="Member Access"/>
- <RegExpr attribute="Symbol" String=":(@{1,2}|\$)?[a-zA-Z_][a-zA-Z0-9_]*[=?!]?" context="check_div_1"/>
- <RegExpr attribute="Symbol" String=":\[\]=?" context="check_div_1"/>
+ <RegExpr attribute="Symbol" String=":(@{1,2}|\$)?[a-zA-Z_][a-zA-Z0-9_]*[=?!]?|:\[\]=?" context="check_div_1"/>
<!-- Do not send to "check_div_1" context!:
after detecting these rules (": ") there can be a regular expression (see bug: #361875) -->
- <RegExpr attribute="Symbol" String="(@{1,2}|\$)?[a-zA-Z_][a-zA-Z0-9_]*[=?!]?: " context="#stay"/>
- <RegExpr attribute="Symbol" String="\[\]=?: " context="#stay"/>
+ <RegExpr attribute="Symbol" String="(@{1,2}|\$)?[a-zA-Z_][a-zA-Z0-9_]*[=?!]?: |\[\]=?: " context="#stay"/>
<DetectChar attribute="String" char="&quot;" context="Quoted String"/>
<DetectChar attribute="Raw String" char="'" context="Apostrophed String"/>
@@ -291,14 +285,12 @@
<Detect2Chars attribute="Normal Text" char="?" char1="#" context="#stay"/>
- <RegExpr attribute="Comment" String="#\s*BEGIN.*$" context="#stay" beginRegion="marker" column="0"/>
- <RegExpr attribute="Comment" String="#\s*END.*$" context="#stay" endRegion="marker" column="0"/>
+ <RegExpr attribute="Comment" String="^#\s*BEGIN.*$" context="#stay" beginRegion="marker" column="0"/>
+ <RegExpr attribute="Comment" String="^#\s*END.*$" context="#stay" endRegion="marker" column="0"/>
<DetectChar attribute="Comment" char="#" context="General Comment"/>
<DetectChar attribute="Delimiter" char="[" context="#stay"/>
<DetectChar attribute="Delimiter" char="]" context="check_div_1"/>
- <DetectChar attribute="Delimiter" char="{" context="#stay" beginRegion="def block"/>
- <DetectChar attribute="Delimiter" char="}" context="check_div_1" endRegion="def block"/>
<RegExpr attribute="Instance Variable" String="@[a-zA-Z_0-9]+" context="check_div_1"/>
<RegExpr attribute="Class Variable" String="@@[a-zA-Z_0-9]+" context="check_div_1"/>
@@ -320,20 +312,20 @@
<!-- A slash is always a division operator, even if preceeded by whitespace -->
<context name="check_div_1" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop" lineEndContext="#pop">
- <RegExpr attribute="Normal Text" String="\s*" context="#stay"/>
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
<AnyChar attribute="Operator" String="/%" context="#pop"/>
</context>
<!-- Same as check_div_1, but with double pop to exit the surrounding context -->
<context name="check_div_1_pop" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop#pop" lineEndContext="#pop#pop">
- <RegExpr attribute="Normal Text" String="\s*" context="#stay"/>
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
<AnyChar attribute="Operator" String="/%" context="#pop#pop"/>
</context>
<!-- A slash is division operator if it's the first character, or if preceeded and followed by whitespace -->
<context name="check_div_2" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop" lineEndContext="#pop">
<AnyChar attribute="Operator" String="/%" context="#pop"/>
- <RegExpr attribute="Normal Text" String="\s+" context="check_div_2_internal"/>
+ <DetectSpaces attribute="Normal Text" context="check_div_2_internal"/>
</context>
<!-- Internal context used by check_div_2 -->
@@ -345,7 +337,7 @@
<!-- Same as check_div_2, but with double pop to exit the surrounding context -->
<context name="check_div_2_pop" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop#pop" lineEndContext="#pop#pop">
<AnyChar attribute="Operator" String="/%" context="#pop#pop"/>
- <RegExpr attribute="Normal Text" String="\s+" context="check_div_2_pop_internal"/>
+ <DetectSpaces attribute="Normal Text" context="check_div_2_pop_internal"/>
</context>
<!-- Internal context used by check_div_2_pop -->
@@ -355,8 +347,7 @@
</context>
<context name="Line Continue" attribute="Normal Text" lineEndContext="#pop">
- <RegExpr attribute="Keyword" String="(while|until)\b(?!.*\bdo\b)" context="#stay" firstNonSpace="true"/>
- <RegExpr attribute="Keyword" String="(if|unless)\b" context="#stay" firstNonSpace="true"/>
+ <RegExpr attribute="Keyword" String="(while|until)\b(?!.*\bdo\b)|(if|unless)\b" context="#stay" firstNonSpace="true"/>
<IncludeRules context="Normal"/>
</context>
@@ -369,6 +360,7 @@
<Detect2Chars attribute="String" char="\" char1="\" context="#stay"/>
<Detect2Chars attribute="String" char="\" char1="&quot;" context="#stay"/>
<RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/>
+ <Detect2Chars attribute="Substitution" char="#" char1="$" context="Short Subst"/>
<Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/>
<DetectChar char="&quot;" attribute="String" context="check_div_1_pop"/>
</context>
@@ -383,18 +375,21 @@
<Detect2Chars attribute="String" char="\" char1="\" context="#stay"/>
<Detect2Chars attribute="String" char="\" char1="`" context="#stay"/>
<RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/>
+ <Detect2Chars attribute="Substitution" char="#" char1="$" context="Short Subst"/>
<Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/>
<DetectChar char="`" attribute="Command" context="check_div_1_pop"/>
</context>
<context name="Embedded documentation" attribute="Blockcomment" lineEndContext="#stay">
<RegExpr attribute="Comment" String="^=end(?:\s.*|$)" context="#pop" endRegion="comment block" column="0"/>
- <IncludeRules context="##Alerts" />
+ <DetectSpaces />
+ <IncludeRules context="##Comments" />
</context>
<context name="RegEx 1" attribute="Regular Expression" lineEndContext="#stay">
<Detect2Chars attribute="Regular Expression" char="\" char1="/" context="#stay"/>
<RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/>
+ <Detect2Chars attribute="Substitution" char="#" char1="$" context="Short Subst"/>
<Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/>
<RegExpr attribute="Regular Expression" String="/[uiomxn]*" context="check_div_1_pop"/>
</context>
@@ -409,6 +404,7 @@
<context name="Short Subst" attribute="Substitution" lineEndContext="#pop">
<!-- Check for e.g.: "#@var#@@xy" -->
<RegExpr attribute="Substitution" String="#@{1,2}" context="#stay"/>
+ <Detect2Chars attribute="Substitution" char="#" char1="$" context="#stay"/>
<RegExpr attribute="Substitution" String="\w(?!\w)" context="#pop"/>
</context>
@@ -431,7 +427,8 @@
</context>
<context name="General Comment" attribute="Comment" lineEndContext="#pop">
- <IncludeRules context="##Alerts" />
+ <DetectSpaces />
+ <IncludeRules context="##Comments" />
</context>
<!-- HEREDOC support
@@ -440,15 +437,11 @@
<!-- here we markup the heredoc markers -->
<context name="find_heredoc" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
<RegExpr attribute="Keyword" context="apostrophed_normal_heredoc" String="'(\w+)'" />
- <RegExpr attribute="Keyword" context="normal_heredoc" String="(\w+)" />
- <RegExpr attribute="Keyword" context="normal_heredoc" String="&quot;(\w+)&quot;" />
- <RegExpr attribute="Keyword" context="normal_heredoc" String="`(\w+)`" />
+ <RegExpr attribute="Keyword" context="normal_heredoc" String="(?|(\w+)|&quot;(\w+)&quot;|`(\w+)`)" />
</context>
<context name="find_indented_heredoc" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
<RegExpr attribute="Keyword" context="apostrophed_indented_heredoc" String="'(\w+)'" />
- <RegExpr attribute="Keyword" context="indented_heredoc" String="(\w+)" />
- <RegExpr attribute="Keyword" context="indented_heredoc" String="&quot;(\w+)&quot;" />
- <RegExpr attribute="Keyword" context="indented_heredoc" String="`(\w+)`" />
+ <RegExpr attribute="Keyword" context="indented_heredoc" String="(?|(\w+)|&quot;(\w+)&quot;|`(\w+)`)" />
</context>
<!-- these are the real heredoc contexts -->
<context name="indented_heredoc" attribute="Here Document" lineEndContext="#stay" dynamic="true">
@@ -460,16 +453,17 @@
</context>
<context name="normal_heredoc" attribute="Here Document" lineEndContext="#stay" dynamic="true">
- <RegExpr attribute="Keyword" context="#pop#pop" String="%1$" dynamic="true" endRegion="HereDocument" column="0"/>
+ <RegExpr attribute="Keyword" context="#pop#pop" String="^%1$" dynamic="true" endRegion="HereDocument" column="0"/>
<IncludeRules context="heredoc_rules" />
</context>
<context name="apostrophed_normal_heredoc" attribute="Here Document" lineEndContext="#stay" dynamic="true">
- <RegExpr attribute="Keyword" context="#pop#pop" String="%1$" dynamic="true" endRegion="HereDocument" column="0"/>
+ <RegExpr attribute="Keyword" context="#pop#pop" String="^%1$" dynamic="true" endRegion="HereDocument" column="0"/>
</context>
<!-- rules for heredoc types -->
<context name="heredoc_rules" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/>
+ <Detect2Chars attribute="Substitution" char="#" char1="$" context="Short Subst"/>
<Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/>
</context>
@@ -478,8 +472,8 @@
<DetectSpaces />
<Detect2Chars attribute="Operator" char="&lt;" char1="&lt;" context="#pop"/>
<!-- comments -->
- <RegExpr attribute="Comment" String="#\s*BEGIN.*$" context="#stay" beginRegion="marker" column="0"/>
- <RegExpr attribute="Comment" String="#\s*END.*$" context="#stay" endRegion="marker" column="0"/>
+ <RegExpr attribute="Comment" String="^#\s*BEGIN.*$" context="#stay" beginRegion="marker" column="0"/>
+ <RegExpr attribute="Comment" String="^#\s*END.*$" context="#stay" endRegion="marker" column="0"/>
<DetectChar attribute="Comment" char="#" context="General Comment"/>
</context>
@@ -599,13 +593,14 @@
-->
<context name="gdl_dq_string_5" attribute="String" lineEndContext="#stay" dynamic="true">
<IncludeRules context="dq_string_rules" />
- <RegExpr attribute="String" String="\\%1" context="#stay" dynamic="true" />
+ <StringDetect attribute="String" String="\%1" context="#stay" dynamic="true" />
<RegExpr attribute="GDL input" context="#pop#pop" String="\s*%1" dynamic="true" endRegion="GdlInput" />
</context>
<!-- rules to be included in all dq_string contexts -->
<context name="dq_string_rules" attribute="String" lineEndContext="#stay" >
<Detect2Chars attribute="String" char="\" char1="\" context="#stay"/>
<RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/>
+ <Detect2Chars attribute="Substitution" char="#" char1="$" context="Short Subst"/>
<Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/>
</context>
@@ -664,7 +659,7 @@
-->
<context name="gdl_token_array_5" attribute="String" lineEndContext="#stay" dynamic="true">
<IncludeRules context="token_array_rules" />
- <RegExpr attribute="String" String="\\%1" context="#stay" dynamic="true"/>
+ <StringDetect attribute="String" String="\%1" context="#stay" dynamic="true"/>
<RegExpr attribute="GDL input" context="#pop#pop" String="\s*%1" dynamic="true" endRegion="GdlInput" />
</context>
@@ -728,7 +723,7 @@
-->
<context name="gdl_apostrophed_5" attribute="Raw String" lineEndContext="#stay" dynamic="true">
<IncludeRules context="apostrophed_rules" />
- <RegExpr attribute="Raw String" String="\\%1" context="#stay" dynamic="true"/>
+ <StringDetect attribute="Raw String" String="\%1" context="#stay" dynamic="true"/>
<RegExpr attribute="GDL input" context="#pop#pop" String="\s*%1" dynamic="true" endRegion="GdlInput" />
</context>
@@ -792,7 +787,7 @@
-->
<context name="gdl_shell_command_5" attribute="Command" lineEndContext="#stay" dynamic="true">
<IncludeRules context="shell_command_rules" />
- <RegExpr attribute="Command" String="\\%1" context="#stay" dynamic="true" />
+ <StringDetect attribute="Command" String="\%1" context="#stay" dynamic="true" />
<RegExpr attribute="GDL input" context="#pop#pop" String="\s*%1" dynamic="true" endRegion="GdlInput" />
</context>
@@ -800,6 +795,7 @@
<context name="shell_command_rules" attribute="Command" lineEndContext="#stay" >
<Detect2Chars attribute="Command" char="\" char1="\" context="#stay"/>
<RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/>
+ <Detect2Chars attribute="Substitution" char="#" char1="$" context="Short Subst"/>
<Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/>
</context>
@@ -858,7 +854,7 @@
-->
<context name="gdl_regexpr_5" attribute="Regular Expression" lineEndContext="#stay" dynamic="true">
<IncludeRules context="regexpr_rules" />
- <RegExpr attribute="Regular Expression" String="\\%1" context="#stay" dynamic="true" />
+ <StringDetect attribute="Regular Expression" String="\%1" context="#stay" dynamic="true" />
<RegExpr attribute="GDL input" context="#pop#pop" String="\s*%1[uiomxn]*" dynamic="true" endRegion="GdlInput" />
</context>
@@ -866,6 +862,7 @@
<context name="regexpr_rules" attribute="Regular Expression" lineEndContext="#stay" >
<Detect2Chars attribute="Regular Expression" char="\" char1="\" context="#stay"/>
<RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/>
+ <Detect2Chars attribute="Substitution" char="#" char1="$" context="Short Subst"/>
<Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/>
</context>
@@ -878,9 +875,9 @@
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
- <itemData name="Keyword" defStyleNum="dsKeyword"/>
+ <itemData name="Keyword" defStyleNum="dsControlFlow"/>
<itemData name="Attribute Definition" defStyleNum="dsOthers"/>
- <itemData name="Access Control" defStyleNum="dsKeyword" color="#0000FF"/>
+ <itemData name="Access Control" defStyleNum="dsAttribute" bold="1"/> <!-- #0000FF -->
<itemData name="Definition" defStyleNum="dsKeyword"/>
<itemData name="Pseudo variable" defStyleNum="dsDecVal"/>
@@ -891,24 +888,24 @@
<itemData name="Hex" defStyleNum="dsBaseN"/>
<itemData name="Bin" defStyleNum="dsBaseN"/>
- <itemData name="Symbol" defStyleNum="dsString" color="#D40000"/>
+ <itemData name="Symbol" defStyleNum="dsWarning" bold="0" underline="0"/> <!-- #D40000 -->
<itemData name="String" defStyleNum="dsString"/>
- <itemData name="Raw String" defStyleNum="dsString" color="#DD4A4A" selColor="#DD4A4A"/>
- <itemData name="Command" defStyleNum="dsString" color="#AA3000"/>
- <itemData name="Message" defStyleNum="dsNormal" color="#4000A7"/> <!-- #4A00C0 -->
- <itemData name="Regular Expression" defStyleNum="dsOthers" color="#4A5704"/>
- <itemData name="Substitution" defStyleNum="dsOthers"/>
+ <itemData name="Raw String" defStyleNum="dsVerbatimString" /> <!-- #DD4A4A -->
+ <itemData name="Command" defStyleNum="dsInformation"/> <!-- #AA3000 -->
+ <itemData name="Message" defStyleNum="dsAttribute" bold="0"/> <!-- #4000A7 -->
+ <itemData name="Regular Expression" defStyleNum="dsSpecialString"/> <!-- #4A5704 -->
+ <itemData name="Substitution" defStyleNum="dsSpecialChar"/>
<itemData name="Data" defStyleNum="dsNormal"/>
<!-- short for 'general delimited input' -->
<itemData name="GDL input" defStyleNum="dsOthers" />
- <itemData name="Default globals" defStyleNum="dsDataType" color="#C00000" bold="1"/>
- <itemData name="Global Variable" defStyleNum="dsDataType" color="#C00000"/>
- <itemData name="Global Constant" defStyleNum="dsDataType" color="#bb1188" bold="1"/>
+ <itemData name="Default globals" defStyleNum="dsVariable" bold="1"/> <!-- #C00000 -->
+ <itemData name="Global Variable" defStyleNum="dsVariable"/> <!-- #C00000 -->
+ <itemData name="Global Constant" defStyleNum="dsConstant" bold="1"/> <!-- #bb1188 -->
<itemData name="Constant" defStyleNum="dsDataType"/>
- <itemData name="Constant Value" defStyleNum="dsDataType" color="#bb1188"/>
- <itemData name="Kernel methods" defStyleNum="dsNormal" color="#000080" selColor="#ffffff"/> <!-- #CC0E86 -->
- <itemData name="Module mixin methods" defStyleNum="dsNormal" color="#000080" selColor="#ffffff"/> <!-- #CC0E86 -->
+ <itemData name="Constant Value" defStyleNum="dsConstant" bold="0"/> <!-- #bb1188 -->
+ <itemData name="Kernel methods" defStyleNum="dsFunction" bold="1"/> <!-- #CC0E86 -->
+ <itemData name="Module mixin methods" defStyleNum="dsFunction" bold="1"/> <!-- #CC0E86 -->
<itemData name="Member" defStyleNum="dsNormal"/>
<itemData name="Instance Variable" defStyleNum="dsOthers"/>
<itemData name="Class Variable" defStyleNum="dsOthers"/>
@@ -916,15 +913,15 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Blockcomment" defStyleNum="dsComment"/>
- <itemData name="Here Document" defStyleNum="dsOthers"/>
+ <itemData name="Here Document" defStyleNum="dsDocumentation"/>
- <itemData name="Delimiter" defStyleNum="dsNormal" color="#FF9FEC"/>
- <itemData name="Operator" defStyleNum="dsNormal" color="#FF9FEC"/>
+ <itemData name="Delimiter" defStyleNum="dsKeyword"/> <!-- #FF9FEC -->
+ <itemData name="Operator" defStyleNum="dsKeyword"/> <!-- #FF9FEC -->
</itemDatas>
</highlighting>
<general>
<comments>
- <comment name="singleLine" start="#"/>
+ <comment name="singleLine" start="#" position="afterwhitespace"/>
</comments>
<keywords casesensitive="1" weakDeliminator="!?"/>
</general>
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/spdx-comments.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/spdx-comments.xml
new file mode 100644
index 0000000000..2b89fc5ac7
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/spdx-comments.xml
@@ -0,0 +1,591 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language>
+<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT *****
+ cd data/generators
+ # increase version of spdx-comments.xml.tpl then
+ ./generate-spdx-syntax.py > ../syntax/spdx-comments.xml
+-->
+<language
+ version="6"
+ kateversion="3.1"
+ name="SPDX-Comments"
+ section="Other"
+ extensions=""
+ mimetype=""
+ author="Alex Turbov (i.zaufi@gmail.com)"
+ license="MIT"
+ hidden="true"
+ >
+ <highlighting>
+ <list name="tags">
+ <item>SPDX-License-Identifier:</item>
+ <item>SPDX-FileContributor:</item>
+ <item>SPDX-FileCopyrightText:</item>
+ <item>SPDX-LicenseInfoInFile:</item>
+ </list>
+
+ <list name="operators">
+ <item>AND</item>
+ <item>OR</item>
+ <item>WITH</item>
+ </list>
+
+ <list name="licenses">
+ <item>bzip2-1.0.6</item>
+ <item>Intel-ACPI</item>
+ <item>XSkat</item>
+ <item>CC-BY-NC-SA-2.0</item>
+ <item>Plexus</item>
+ <item>Giftware</item>
+ <item>BitTorrent-1.0</item>
+ <item>APSL-1.1</item>
+ <item>UPL-1.0</item>
+ <item>Caldera</item>
+ <item>Zend-2.0</item>
+ <item>CUA-OPL-1.0</item>
+ <item>JPNIC</item>
+ <item>SAX-PD</item>
+ <item>CC-BY-ND-2.5</item>
+ <item>eGenix</item>
+ <item>LGPLLR</item>
+ <item>OLDAP-2.2.2</item>
+ <item>CC-BY-ND-3.0-DE</item>
+ <item>IPA</item>
+ <item>NCSA</item>
+ <item>W3C</item>
+ <item>Adobe-2006</item>
+ <item>Net-SNMP</item>
+ <item>CC-BY-SA-4.0</item>
+ <item>YPL-1.0</item>
+ <item>MITNFA</item>
+ <item>PHP-3.01</item>
+ <item>BSD-Source-Code</item>
+ <item>CC-BY-SA-2.5</item>
+ <item>Motosoto</item>
+ <item>OSL-1.1</item>
+ <item>NGPL</item>
+ <item>CC-BY-2.5-AU</item>
+ <item>Unicode-TOU</item>
+ <item>BSD-3-Clause-No-Nuclear-License</item>
+ <item>OPUBL-1.0</item>
+ <item>CC-BY-NC-SA-2.0-UK</item>
+ <item>NLOD-2.0</item>
+ <item>gnuplot</item>
+ <item>EPICS</item>
+ <item>Info-ZIP</item>
+ <item>OLDAP-2.0</item>
+ <item>CERN-OHL-P-2.0</item>
+ <item>BSD-3-Clause-No-Nuclear-Warranty</item>
+ <item>AML</item>
+ <item>MulanPSL-1.0</item>
+ <item>Multics</item>
+ <item>VSL-1.0</item>
+ <item>RSA-MD</item>
+ <item>CC-PDDC</item>
+ <item>CC-BY-SA-2.1-JP</item>
+ <item>LPPL-1.2</item>
+ <item>Spencer-94</item>
+ <item>OLDAP-1.2</item>
+ <item>O-UDA-1.0</item>
+ <item>OLDAP-2.7</item>
+ <item>Glulxe</item>
+ <item>iMatix</item>
+ <item>TAPR-OHL-1.0</item>
+ <item>NBPL-1.0</item>
+ <item>LiLiQ-R-1.1</item>
+ <item>Noweb</item>
+ <item>CC0-1.0</item>
+ <item>BSD-Protection</item>
+ <item>CC-BY-NC-2.5</item>
+ <item>Zlib</item>
+ <item>GFDL-1.3-invariants-or-later</item>
+ <item>CC-BY-3.0-AT</item>
+ <item>LPPL-1.3c</item>
+ <item>EPL-1.0</item>
+ <item>GFDL-1.1-invariants-or-later</item>
+ <item>ANTLR-PD-fallback</item>
+ <item>OLDAP-2.4</item>
+ <item>OLDAP-2.3</item>
+ <item>ZPL-2.1</item>
+ <item>Apache-2.0</item>
+ <item>SGI-B-2.0</item>
+ <item>Hippocratic-2.1</item>
+ <item>CC-BY-SA-3.0-DE</item>
+ <item>CC-BY-NC-SA-1.0</item>
+ <item>LGPL-2.1-or-later</item>
+ <item>CC-BY-3.0-US</item>
+ <item>TCP-wrappers</item>
+ <item>GFDL-1.2-invariants-or-later</item>
+ <item>Eurosym</item>
+ <item>LPPL-1.0</item>
+ <item>SGI-B-1.0</item>
+ <item>APL-1.0</item>
+ <item>libtiff</item>
+ <item>AFL-2.1</item>
+ <item>CC-BY-NC-1.0</item>
+ <item>GD</item>
+ <item>AFL-1.1</item>
+ <item>CC-BY-NC-ND-3.0-IGO</item>
+ <item>Unicode-DFS-2015</item>
+ <item>GFDL-1.2-only</item>
+ <item>MPL-1.1</item>
+ <item>GPL-2.0-only</item>
+ <item>CC-BY-NC-4.0</item>
+ <item>FreeImage</item>
+ <item>SHL-0.51</item>
+ <item>CNRI-Jython</item>
+ <item>ZPL-1.1</item>
+ <item>Afmparse</item>
+ <item>OLDAP-2.1</item>
+ <item>Rdisc</item>
+ <item>Imlib2</item>
+ <item>BSD-4-Clause-Shortened</item>
+ <item>Sendmail</item>
+ <item>CC-BY-2.5</item>
+ <item>AAL</item>
+ <item>MPL-2.0-no-copyleft-exception</item>
+ <item>CC-BY-NC-ND-2.5</item>
+ <item>CC-BY-3.0-NL</item>
+ <item>LPL-1.02</item>
+ <item>ECL-1.0</item>
+ <item>OFL-1.0-no-RFN</item>
+ <item>CC-BY-NC-SA-3.0-DE</item>
+ <item>CC-BY-SA-3.0</item>
+ <item>NTP</item>
+ <item>MPL-2.0</item>
+ <item>APSL-1.2</item>
+ <item>GFDL-1.2-no-invariants-only</item>
+ <item>Artistic-2.0</item>
+ <item>RSCPL</item>
+ <item>Sleepycat</item>
+ <item>xpp</item>
+ <item>CDLA-Sharing-1.0</item>
+ <item>ClArtistic</item>
+ <item>AGPL-1.0-only</item>
+ <item>CC-BY-3.0-DE</item>
+ <item>AFL-2.0</item>
+ <item>Intel</item>
+ <item>GFDL-1.1-no-invariants-or-later</item>
+ <item>APAFML</item>
+ <item>SISSL</item>
+ <item>Naumen</item>
+ <item>HTMLTIDY</item>
+ <item>OLDAP-2.8</item>
+ <item>blessing</item>
+ <item>CC-BY-ND-2.0</item>
+ <item>OGTSL</item>
+ <item>LGPL-2.0-or-later</item>
+ <item>Parity-7.0.0</item>
+ <item>CC-BY-ND-1.0</item>
+ <item>dvipdfm</item>
+ <item>CNRI-Python</item>
+ <item>BSD-4-Clause-UC</item>
+ <item>NLOD-1.0</item>
+ <item>MS-RL</item>
+ <item>CC-BY-NC-SA-4.0</item>
+ <item>HaskellReport</item>
+ <item>CC-BY-1.0</item>
+ <item>UCL-1.0</item>
+ <item>Mup</item>
+ <item>SMPPL</item>
+ <item>PHP-3.0</item>
+ <item>GL2PS</item>
+ <item>CrystalStacker</item>
+ <item>W3C-20150513</item>
+ <item>NIST-PD-fallback</item>
+ <item>OGL-UK-1.0</item>
+ <item>CPL-1.0</item>
+ <item>LGPL-2.1-only</item>
+ <item>ZPL-2.0</item>
+ <item>Frameworx-1.0</item>
+ <item>AGPL-3.0-only</item>
+ <item>DRL-1.0</item>
+ <item>EFL-2.0</item>
+ <item>Spencer-99</item>
+ <item>CAL-1.0-Combined-Work-Exception</item>
+ <item>GFDL-1.1-invariants-only</item>
+ <item>TCL</item>
+ <item>SHL-0.5</item>
+ <item>OFL-1.0-RFN</item>
+ <item>CERN-OHL-W-2.0</item>
+ <item>Glide</item>
+ <item>mpich2</item>
+ <item>psutils</item>
+ <item>SPL-1.0</item>
+ <item>Apache-1.1</item>
+ <item>CC-BY-ND-4.0</item>
+ <item>FreeBSD-DOC</item>
+ <item>SCEA</item>
+ <item>Latex2e</item>
+ <item>Artistic-1.0-cl8</item>
+ <item>SGI-B-1.1</item>
+ <item>NRL</item>
+ <item>SWL</item>
+ <item>Zed</item>
+ <item>CERN-OHL-1.1</item>
+ <item>RHeCos-1.1</item>
+ <item>JasPer-2.0</item>
+ <item>SSPL-1.0</item>
+ <item>OLDAP-1.4</item>
+ <item>libpng-2.0</item>
+ <item>CNRI-Python-GPL-Compatible</item>
+ <item>Aladdin</item>
+ <item>CECILL-1.0</item>
+ <item>Ruby</item>
+ <item>NPL-1.1</item>
+ <item>ImageMagick</item>
+ <item>Cube</item>
+ <item>GFDL-1.1-only</item>
+ <item>CC-BY-2.0</item>
+ <item>AFL-1.2</item>
+ <item>CC-BY-SA-2.0</item>
+ <item>CECILL-2.0</item>
+ <item>MIT-advertising</item>
+ <item>CC-BY-NC-SA-2.5</item>
+ <item>Artistic-1.0</item>
+ <item>OSL-3.0</item>
+ <item>X11</item>
+ <item>Bahyph</item>
+ <item>OLDAP-2.0.1</item>
+ <item>EUDatagrid</item>
+ <item>MTLL</item>
+ <item>GFDL-1.2-invariants-only</item>
+ <item>GFDL-1.3-no-invariants-or-later</item>
+ <item>curl</item>
+ <item>LAL-1.3</item>
+ <item>DSDP</item>
+ <item>CERN-OHL-1.2</item>
+ <item>TOSL</item>
+ <item>CC-BY-3.0</item>
+ <item>Qhull</item>
+ <item>GFDL-1.3-no-invariants-only</item>
+ <item>TORQUE-1.1</item>
+ <item>MS-PL</item>
+ <item>Apache-1.0</item>
+ <item>copyleft-next-0.3.1</item>
+ <item>GFDL-1.2-or-later</item>
+ <item>MulanPSL-2.0</item>
+ <item>FSFAP</item>
+ <item>Xerox</item>
+ <item>CDDL-1.0</item>
+ <item>GFDL-1.3-invariants-only</item>
+ <item>etalab-2.0</item>
+ <item>XFree86-1.1</item>
+ <item>SNIA</item>
+ <item>LPPL-1.1</item>
+ <item>CATOSL-1.1</item>
+ <item>TU-Berlin-2.0</item>
+ <item>GFDL-1.3-or-later</item>
+ <item>LAL-1.2</item>
+ <item>ICU</item>
+ <item>FTL</item>
+ <item>MirOS</item>
+ <item>CC-BY-NC-ND-3.0</item>
+ <item>OSET-PL-2.1</item>
+ <item>CC-BY-NC-ND-2.0</item>
+ <item>SISSL-1.2</item>
+ <item>Wsuipa</item>
+ <item>Zimbra-1.4</item>
+ <item>Linux-OpenIB</item>
+ <item>OLDAP-2.5</item>
+ <item>AMPAS</item>
+ <item>GPL-1.0-or-later</item>
+ <item>BUSL-1.1</item>
+ <item>Adobe-Glyph</item>
+ <item>0BSD</item>
+ <item>W3C-19980720</item>
+ <item>FSFUL</item>
+ <item>CC-BY-NC-SA-3.0</item>
+ <item>DOC</item>
+ <item>TMate</item>
+ <item>MIT-open-group</item>
+ <item>AMDPLPA</item>
+ <item>Condor-1.1</item>
+ <item>PolyForm-Noncommercial-1.0.0</item>
+ <item>BSD-3-Clause-No-Military-License</item>
+ <item>CC-BY-4.0</item>
+ <item>OGL-Canada-2.0</item>
+ <item>CC-BY-NC-SA-3.0-IGO</item>
+ <item>EFL-1.0</item>
+ <item>Newsletr</item>
+ <item>copyleft-next-0.3.0</item>
+ <item>GPL-3.0-or-later</item>
+ <item>CDLA-Permissive-2.0</item>
+ <item>CC-BY-ND-3.0</item>
+ <item>C-UDA-1.0</item>
+ <item>Barr</item>
+ <item>Vim</item>
+ <item>BitTorrent-1.1</item>
+ <item>CDL-1.0</item>
+ <item>CC-BY-SA-1.0</item>
+ <item>ADSL</item>
+ <item>PostgreSQL</item>
+ <item>OFL-1.1</item>
+ <item>NPL-1.0</item>
+ <item>xinetd</item>
+ <item>LGPL-2.0-only</item>
+ <item>zlib-acknowledgement</item>
+ <item>OLDAP-2.2.1</item>
+ <item>APSL-1.0</item>
+ <item>BSD-3-Clause-LBNL</item>
+ <item>GLWTPL</item>
+ <item>LGPL-3.0-only</item>
+ <item>OGC-1.0</item>
+ <item>Dotseqn</item>
+ <item>MakeIndex</item>
+ <item>GPL-3.0-only</item>
+ <item>BSD-3-Clause-No-Nuclear-License-2014</item>
+ <item>GPL-1.0-only</item>
+ <item>IJG</item>
+ <item>AGPL-1.0-or-later</item>
+ <item>OFL-1.1-no-RFN</item>
+ <item>BSL-1.0</item>
+ <item>Libpng</item>
+ <item>CC-BY-NC-3.0</item>
+ <item>CC-BY-NC-2.0</item>
+ <item>Unlicense</item>
+ <item>LPL-1.0</item>
+ <item>bzip2-1.0.5</item>
+ <item>Entessa</item>
+ <item>BSD-2-Clause-Patent</item>
+ <item>ECL-2.0</item>
+ <item>Crossword</item>
+ <item>CC-BY-NC-ND-1.0</item>
+ <item>OCLC-2.0</item>
+ <item>CECILL-1.1</item>
+ <item>CECILL-2.1</item>
+ <item>OGDL-Taiwan-1.0</item>
+ <item>Abstyles</item>
+ <item>libselinux-1.0</item>
+ <item>ANTLR-PD</item>
+ <item>GPL-2.0-or-later</item>
+ <item>IPL-1.0</item>
+ <item>MIT-enna</item>
+ <item>CPOL-1.02</item>
+ <item>CC-BY-SA-3.0-AT</item>
+ <item>BSD-1-Clause</item>
+ <item>NTP-0</item>
+ <item>SugarCRM-1.1.3</item>
+ <item>MIT</item>
+ <item>OFL-1.1-RFN</item>
+ <item>Watcom-1.0</item>
+ <item>CC-BY-NC-SA-2.0-FR</item>
+ <item>ODbL-1.0</item>
+ <item>FSFULLR</item>
+ <item>OLDAP-1.3</item>
+ <item>SSH-OpenSSH</item>
+ <item>BSD-2-Clause</item>
+ <item>HPND</item>
+ <item>Zimbra-1.3</item>
+ <item>Borceux</item>
+ <item>OLDAP-1.1</item>
+ <item>OFL-1.0</item>
+ <item>NASA-1.3</item>
+ <item>VOSTROM</item>
+ <item>MIT-0</item>
+ <item>ISC</item>
+ <item>Unicode-DFS-2016</item>
+ <item>BlueOak-1.0.0</item>
+ <item>LiLiQ-Rplus-1.1</item>
+ <item>NOSL</item>
+ <item>SMLNJ</item>
+ <item>CPAL-1.0</item>
+ <item>PSF-2.0</item>
+ <item>RPL-1.5</item>
+ <item>MIT-Modern-Variant</item>
+ <item>Nokia</item>
+ <item>GFDL-1.1-no-invariants-only</item>
+ <item>PDDL-1.0</item>
+ <item>EUPL-1.0</item>
+ <item>CDDL-1.1</item>
+ <item>GFDL-1.3-only</item>
+ <item>OLDAP-2.6</item>
+ <item>JSON</item>
+ <item>LGPL-3.0-or-later</item>
+ <item>Fair</item>
+ <item>OSL-2.1</item>
+ <item>LPPL-1.3a</item>
+ <item>NAIST-2003</item>
+ <item>CC-BY-NC-ND-4.0</item>
+ <item>CC-BY-NC-3.0-DE</item>
+ <item>OPL-1.0</item>
+ <item>HPND-sell-variant</item>
+ <item>QPL-1.0</item>
+ <item>EUPL-1.2</item>
+ <item>GFDL-1.2-no-invariants-or-later</item>
+ <item>NCGL-UK-2.0</item>
+ <item>Beerware</item>
+ <item>BSD-3-Clause-Open-MPI</item>
+ <item>CECILL-B</item>
+ <item>EPL-2.0</item>
+ <item>MIT-feh</item>
+ <item>RPL-1.1</item>
+ <item>CDLA-Permissive-1.0</item>
+ <item>Python-2.0</item>
+ <item>MPL-1.0</item>
+ <item>GFDL-1.1-or-later</item>
+ <item>diffmark</item>
+ <item>OpenSSL</item>
+ <item>OSL-1.0</item>
+ <item>Parity-6.0.0</item>
+ <item>YPL-1.1</item>
+ <item>SSH-short</item>
+ <item>IBM-pibs</item>
+ <item>Xnet</item>
+ <item>TU-Berlin-1.0</item>
+ <item>CAL-1.0</item>
+ <item>AFL-3.0</item>
+ <item>CECILL-C</item>
+ <item>OGL-UK-3.0</item>
+ <item>BSD-3-Clause-Clear</item>
+ <item>BSD-3-Clause-Modification</item>
+ <item>CC-BY-SA-2.0-UK</item>
+ <item>Saxpath</item>
+ <item>NLPL</item>
+ <item>SimPL-2.0</item>
+ <item>psfrag</item>
+ <item>Spencer-86</item>
+ <item>OCCT-PL</item>
+ <item>CERN-OHL-S-2.0</item>
+ <item>ErlPL-1.1</item>
+ <item>MIT-CMU</item>
+ <item>NIST-PD</item>
+ <item>OSL-2.0</item>
+ <item>APSL-2.0</item>
+ <item>Leptonica</item>
+ <item>PolyForm-Small-Business-1.0.0</item>
+ <item>LiLiQ-P-1.1</item>
+ <item>NetCDF</item>
+ <item>OML</item>
+ <item>AGPL-3.0-or-later</item>
+ <item>OLDAP-2.2</item>
+ <item>BSD-3-Clause</item>
+ <item>WTFPL</item>
+ <item>OGL-UK-2.0</item>
+ <item>BSD-3-Clause-Attribution</item>
+ <item>RPSL-1.0</item>
+ <item>CC-BY-NC-ND-3.0-DE</item>
+ <item>EUPL-1.1</item>
+ <item>Sendmail-8.23</item>
+ <item>ODC-By-1.0</item>
+ <item>D-FSL-1.0</item>
+ <item>BSD-4-Clause</item>
+ <item>BSD-2-Clause-Views</item>
+ <item>Artistic-1.0-Perl</item>
+ <item>NPOSL-3.0</item>
+ <item>gSOAP-1.3b</item>
+ <item>Interbase-1.0</item>
+ </list>
+
+ <list name="deprecated-licenses">
+ <item>GPL-1.0</item>
+ <item>GPL-2.0-with-GCC-exception</item>
+ <item>wxWindows</item>
+ <item>Nunit</item>
+ <item>GFDL-1.1</item>
+ <item>GPL-2.0</item>
+ <item>GFDL-1.2</item>
+ <item>LGPL-2.0</item>
+ <item>GPL-3.0-with-autoconf-exception</item>
+ <item>GFDL-1.3</item>
+ <item>BSD-2-Clause-NetBSD</item>
+ <item>LGPL-3.0</item>
+ <item>GPL-2.0-with-classpath-exception</item>
+ <item>GPL-3.0-with-GCC-exception</item>
+ <item>BSD-2-Clause-FreeBSD</item>
+ <item>GPL-3.0</item>
+ <item>GPL-2.0-with-font-exception</item>
+ <item>eCos-2.0</item>
+ <item>GPL-2.0-with-bison-exception</item>
+ <item>GPL-2.0-with-autoconf-exception</item>
+ <item>AGPL-1.0</item>
+ <item>AGPL-3.0</item>
+ <item>LGPL-2.1</item>
+ <item>StandardML-NJ</item>
+ </list>
+
+ <list name="exceptions">
+ <item>GPL-CC-1.0</item>
+ <item>openvpn-openssl-exception</item>
+ <item>WxWindows-exception-3.1</item>
+ <item>GPL-3.0-linking-exception</item>
+ <item>i2p-gpl-java-exception</item>
+ <item>OpenJDK-assembly-exception-1.0</item>
+ <item>mif-exception</item>
+ <item>CLISP-exception-2.0</item>
+ <item>freertos-exception-2.0</item>
+ <item>Bison-exception-2.2</item>
+ <item>OCCT-exception-1.0</item>
+ <item>Autoconf-exception-2.0</item>
+ <item>LLVM-exception</item>
+ <item>GCC-exception-3.1</item>
+ <item>Font-exception-2.0</item>
+ <item>Libtool-exception</item>
+ <item>u-boot-exception-2.0</item>
+ <item>Swift-exception</item>
+ <item>eCos-exception-2.0</item>
+ <item>OCaml-LGPL-linking-exception</item>
+ <item>Qt-GPL-exception-1.0</item>
+ <item>Linux-syscall-note</item>
+ <item>Bootloader-exception</item>
+ <item>PS-or-PDF-font-exception-20170817</item>
+ <item>Universal-FOSS-exception-1.0</item>
+ <item>Classpath-exception-2.0</item>
+ <item>Qwt-exception-1.0</item>
+ <item>LZMA-exception</item>
+ <item>Autoconf-exception-3.0</item>
+ <item>DigiRule-FOSS-exception</item>
+ <item>389-exception</item>
+ <item>SHL-2.0</item>
+ <item>GCC-exception-2.0</item>
+ <item>GPL-3.0-linking-source-exception</item>
+ <item>Qt-LGPL-exception-1.1</item>
+ <item>Fawkes-Runtime-exception</item>
+ <item>gnu-javamail-exception</item>
+ <item>FLTK-exception</item>
+ <item>LGPL-3.0-linking-exception</item>
+ <item>SHL-2.1</item>
+ </list>
+
+ <list name="deprecated-exceptions">
+ <item>Nokia-Qt-exception-1.1</item>
+ </list>
+
+ <contexts>
+
+ <context name="Normal" attribute="SPDX Tag" lineEndContext="#pop">
+ <WordDetect String="SPDX-License-Identifier:" attribute="SPDX Tag" context="license-expression" />
+ <keyword String="tags" attribute="SPDX Tag" />
+ </context>
+
+ <context name="license-expression" attribute="SPDX Value" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
+ <DetectSpaces/>
+ <AnyChar String="()+" context="#stay" attribute="SPDX License Expression Operator" />
+ <keyword String="licenses" context="#stay" attribute="SPDX License" />
+ <keyword String="deprecated-licenses" context="#stay" attribute="SPDX Deprecated License" />
+ <keyword String="exceptions" context="#stay" attribute="SPDX License Exception" />
+ <keyword String="deprecated-exceptions" context="#stay" attribute="SPDX Deprecated License Exception" />
+ <keyword String="operators" context="#stay" attribute="SPDX License Expression Operator" />
+ <RegExpr attribute="SPDX License" context="#stay" String="\bLicenseRef-[^\s]+" />
+ </context>
+
+ </contexts>
+
+ <itemDatas>
+ <itemData name="SPDX Tag" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
+ <itemData name="SPDX Value" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
+ <itemData name="SPDX License" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
+ <itemData name="SPDX License Exception" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
+ <itemData name="SPDX Deprecated License" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
+ <itemData name="SPDX Deprecated License Exception" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
+ <itemData name="SPDX License Expression Operator" defStyleNum="dsOperator" italic="true" spellChecking="false" />
+ </itemDatas>
+
+ </highlighting>
+
+ <general>
+ <keywords casesensitive="1" weakDeliminator=":-." />
+ </general>
+
+</language>
+<!-- kate: indent-width 2; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/toml.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/toml.xml
new file mode 100644
index 0000000000..d643069bf8
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/toml.xml
@@ -0,0 +1,183 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language
+[
+ <!ENTITY more "(_[0-9]++)*+">
+ <!ENTITY int "(0|[1-9][0-9]*+&more;)">
+ <!ENTITY frac "\.[0-9]+&more;">
+ <!ENTITY exp "[eE][+-]?[0-9]+&more;">
+
+ <!ENTITY offset "[+-][0-9][0-9]:[0-9][0-9]">
+ <!ENTITY time "[0-9][0-9]:[0-9][0-9]:[0-9][0-9](\.[0-9]+)?">
+ <!ENTITY datetime "[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]([T ]&time;(&offset;|Z)?)?|&time;">
+]>
+<!-- https://github.com/toml-lang/toml -->
+<!-- https://toml.io/en/v1.0.0 -->
+<language
+ name="TOML"
+ section="Configuration"
+ extensions="Cargo.lock;*.toml;*.rc;*.conf;*.cfg;*.cf;*.cnf;*.ini;mirrorlist"
+ mimetype="text/x-toml;application/toml"
+ version="13"
+ kateversion="5.0"
+ author="flying-sheep@web.de"
+ license="LGPLv2+"
+ priority="-1"
+ >
+<highlighting>
+ <list name="bools">
+ <item>true</item>
+ <item>false</item>
+ </list>
+
+ <contexts>
+ <context attribute="Error" lineEndContext="#stay" name="Toml">
+ <DetectSpaces attribute="Whitespace"/>
+ <Detect2Chars attribute="TableHeader" context="NestedTableHeader" char="[" char1="[" endRegion="Table"/>
+ <DetectChar attribute="TableHeader" context="TableHeader" char="[" endRegion="Table"/>
+ <DetectChar attribute="Assignment" context="Value" char="="/>
+ <DetectChar char="#" attribute="Comment" context="Comment"/>
+ <IncludeRules context="FindKey"/>
+ </context>
+
+
+ <context attribute="Key" lineEndContext="#stay" name="FindKey">
+ <DetectChar attribute="Key" char="."/>
+ <RegExpr attribute="Key" context="#stay" String="[A-Za-z0-9_-]+"/>
+ <DetectChar attribute="Key" context="QuotedKey" char="&quot;"/>
+ <DetectChar attribute="Key" context="LitQuotedKey" char="'"/>
+ </context>
+
+
+ <!-- table headers -->
+ <context attribute="TableHeader" fallthrough="true" fallthroughContext="#pop" lineEndContext="#pop" name="TableHeader">
+ <DetectChar attribute="TableHeader" context="#pop" char="]" beginRegion="Table"/>
+ <IncludeRules context="TableHeaderCommon"/>
+ </context>
+
+ <context attribute="TableHeader" fallthrough="true" fallthroughContext="#pop" lineEndContext="#pop" name="NestedTableHeader">
+ <Detect2Chars attribute="TableHeader" context="#pop" char="]" char1="]" beginRegion="Table"/>
+ <IncludeRules context="TableHeaderCommon"/>
+ </context>
+
+ <context attribute="TableHeader" lineEndContext="#pop" name="TableHeaderCommon">
+ <DetectSpaces attribute="Whitespace"/>
+ <DetectChar attribute="TableHeader" char="."/>
+ <RegExpr attribute="TableHeader" context="#stay" String="[A-Za-z0-9_-]+"/>
+ <DetectChar attribute="TableHeader" context="QuotedKey" char="&quot;"/>
+ <DetectChar attribute="TableHeader" context="LitQuotedKey" char="'"/>
+ </context>
+
+
+ <!-- values -->
+ <context attribute="Error" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop" name="Value">
+ <DetectSpaces attribute="Whitespace"/>
+ <WordDetect attribute="Boolean true" context="#pop" String="true"/>
+ <WordDetect attribute="Boolean false" context="#pop" String="false"/>
+ <StringDetect attribute="String" context="#pop!MultilineString" String="&quot;&quot;&quot;"/>
+ <DetectChar attribute="String" context="#pop!String" char="&quot;"/>
+ <StringDetect attribute="String" context="#pop!LitMultilineString" String="'''"/>
+ <DetectChar attribute="String" context="#pop!LitString" char="'"/>
+ <DetectChar attribute="Array" context="#pop!Array" char="["/>
+ <DetectChar attribute="InlineTable" context="#pop!InlineTable" char="{"/>
+ <RegExpr attribute="Date" context="#pop" String="&datetime;"/>
+ <RegExpr attribute="Int" context="#pop" String="[+-]?(0x[0-9a-fA-F]+(_[0-9a-fA-F]+)*|0o[0-7]+(_[0-7]+)*|0b[01]+(_[01]+)*|&int;(?!(\.|[eE][+-]?)[0-9]))"/>
+ <RegExpr attribute="Float" context="#pop" String="[+-]?(&int;(&frac;(&exp;)?|&exp;)|inf|nan)"/>
+ </context>
+
+ <context attribute="Comment" lineEndContext="#pop" name="Comment">
+ <DetectSpaces/>
+ <IncludeRules context="##Comments"/>
+ <DetectIdentifier/>
+ </context>
+
+
+ <!-- Quoted keys and Strings-->
+ <context attribute="Key" lineEndContext="#pop" name="QuotedKey">
+ <DetectChar attribute="Key" context="#pop" char="&quot;"/>
+ <IncludeRules context="FindEscapedChar"/>
+ </context>
+
+ <context attribute="String" lineEndContext="#pop" name="String">
+ <DetectChar attribute="String" context="#pop" char="&quot;"/>
+ <IncludeRules context="FindEscapedChar"/>
+ </context>
+
+ <context attribute="String" lineEndContext="#stay" name="MultilineString">
+ <StringDetect attribute="String" context="#pop" String="&quot;&quot;&quot;&quot;&quot;"/>
+ <StringDetect attribute="String" context="#pop" String="&quot;&quot;&quot;&quot;"/>
+ <StringDetect attribute="String" context="#pop" String="&quot;&quot;&quot;"/>
+ <LineContinue attribute="Escape" context="#stay"/>
+ <IncludeRules context="FindEscapedChar"/>
+ </context>
+
+ <context attribute="String" lineEndContext="#pop" name="FindEscapedChar">
+ <RegExpr attribute="Escape" String="\\[btnfr&quot;\\]|\\u[0-9a-fA-F]{4}|\\U[0-9a-fA-F]{8}" context="#stay"/>
+ <RegExpr attribute="Error" String="\\[uU][0-9a-fA-F]*|\\." context="#stay"/>
+ </context>
+
+ <context attribute="Key" lineEndContext="#pop" name="LitQuotedKey">
+ <DetectChar attribute="Key" context="#pop" char="'"/>
+ </context>
+
+ <context attribute="LitString" lineEndContext="#pop" name="LitString">
+ <DetectChar attribute="String" context="#pop" char="'"/>
+ </context>
+
+ <context attribute="LitString" lineEndContext="#stay" name="LitMultilineString">
+ <StringDetect attribute="String" context="#pop" String="'''''"/>
+ <StringDetect attribute="String" context="#pop" String="''''"/>
+ <StringDetect attribute="String" context="#pop" String="'''"/>
+ </context>
+
+
+ <!-- Arrays -->
+ <context attribute="Array" lineEndContext="#stay" name="Array" fallthrough="true" fallthroughContext="InArray">
+ <DetectSpaces attribute="Whitespace"/>
+ <DetectChar context="#pop" attribute="Array" char="]"/>
+ <DetectChar attribute="Comment" context="Comment" char="#"/>
+ <DetectChar context="InArray" attribute="NextEntry" char=","/>
+ </context>
+ <context attribute="Error" lineEndContext="#stay" name="InArray">
+ <DetectChar context="#pop#pop" attribute="Array" char="]"/>
+ <DetectChar context="#stay" attribute="Error" char=","/>
+ <DetectChar attribute="Comment" context="Comment" char="#"/>
+ <IncludeRules context="Value"/>
+ </context>
+
+ <context attribute="InlineTable" lineEndContext="#stay" name="InlineTable">
+ <DetectChar attribute="Assignment" context="Value" char="="/>
+ <DetectChar char="#" attribute="Comment" context="Comment"/>
+ <DetectChar context="#pop" attribute="InlineTable" char="}"/>
+ <DetectChar context="#stay" attribute="NextEntry" char=","/>
+ <IncludeRules context="FindKey"/>
+ </context>
+
+ </contexts>
+ <itemDatas>
+ <itemData name="Whitespace" defStyleNum="dsNormal"/>
+ <itemData name="Key" defStyleNum="dsDataType"/>
+ <itemData name="TableHeader" defStyleNum="dsKeyword"/>
+ <itemData name="Assignment" defStyleNum="dsOperator"/>
+ <itemData name="Comment" defStyleNum="dsComment"/>
+
+ <itemData name="Date" defStyleNum="dsBaseN"/>
+ <itemData name="Float" defStyleNum="dsFloat"/>
+ <itemData name="Int" defStyleNum="dsDecVal"/>
+ <itemData name="Boolean true" defStyleNum="dsConstant"/>
+ <itemData name="Boolean false" defStyleNum="dsConstant"/>
+ <itemData name="String" defStyleNum="dsString"/>
+ <itemData name="LitString" defStyleNum="dsVerbatimString"/>
+ <itemData name="Escape" defStyleNum="dsSpecialChar"/>
+ <itemData name="Array" defStyleNum="dsOperator"/>
+ <itemData name="InlineTable" defStyleNum="dsOperator"/>
+ <itemData name="NextEntry" defStyleNum="dsOperator"/>
+
+ <itemData name="Error" defStyleNum="dsError"/>
+ </itemDatas>
+</highlighting>
+<general>
+ <comments>
+ <comment name="singleLine" start="#" position="afterwhitespace"/>
+ </comments>
+</general>
+</language>
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/valgrind-suppression.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/valgrind-suppression.xml
index 7fe3dd474e..e795aca79f 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/valgrind-suppression.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/valgrind-suppression.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd">
-<language name="Valgrind Suppression" section="Other" extensions="*.supp;" mimetype="" version="2" kateversion="2.4" author="Milian Wolff (mail@milianw.de)" license="LGPL">
+<!DOCTYPE language>
+<language name="Valgrind Suppression" section="Other" extensions="*.supp;" mimetype="" version="4" kateversion="5.0" author="Milian Wolff (mail@milianw.de)" license="LGPL">
<highlighting>
<contexts>
<context name="File" attribute="Normal Text" lineEndContext="#stay">
@@ -9,7 +9,7 @@
</context>
<context name="Rule" attribute="Normal Text" lineEndContext="#stay" >
- <RegExpr attribute="RuleName" String="^[^\}]+$" context="Rule2" />
+ <RegExpr attribute="RuleName" String="^[^\}]+$" context="Rule2" column="0" />
<DetectChar char="}" attribute="Normal Text" context="#pop" firstNonSpace="true" />
</context>
@@ -25,7 +25,7 @@
<context name="Comment" attribute="Comment" lineEndContext="#pop">
<DetectSpaces />
- <IncludeRules context="##Alerts" />
+ <IncludeRules context="##Comments" />
<DetectIdentifier />
</context>
</contexts>
@@ -49,3 +49,4 @@
</general>
</language>
+<!-- kate: replace-tabs on; indent-width 2; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/xml.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/xml.xml
index ad34a450b6..da1910e26c 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/xml.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/xml.xml
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd"
+<!DOCTYPE language
[
<!-- names must start with a letter, ideogram or underscore. \w matches any
word character *or* a number, hence the lookahead -->
<!ENTITY name "(?![0-9])[\w_:][\w.:_-]*">
- <!ENTITY entref "&amp;(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
+ <!ENTITY entref "&amp;(?:#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
]>
-<language name="XML" version="9" kateversion="3.4" section="Markup" extensions="*.docbook;*.xml;*.rc;*.daml;*.rdf;*.rss;*.xspf;*.xsd;*.svg;*.ui;*.kcfg;*.qrc;*.wsdl;*.scxml;*.xbel;*.dae;*.sch;*.brd" mimetype="text/xml;text/book;text/daml;text/rdf;application/rss+xml;application/xspf+xml;image/svg+xml;application/x-designer;application/x-xbel;application/xml;application/scxml+xml" casesensitive="1" indenter="xml" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
+<language name="XML" version="20" kateversion="5.0" section="Markup" extensions="*.page;*.docbook;*.xml;*ui.rc;*.daml;*.rdf;*.rss;*.xspf;*.xsd;*.svg;*.ui;*.kcfg;*.qrc;*.wsdl;*.scxml;*.xbel;*.dae;*.sch;*.brd" mimetype="text/xml;text/book;text/daml;text/rdf;application/rss+xml;application/xspf+xml;image/svg+xml;application/x-designer;application/x-xbel;application/xml;application/scxml+xml;application/vnd.oasis.opendocument.text-flat-xml;application/vnd.oasis.opendocument.graphics-flat-xml;application/vnd.oasis.opendocument.presentation-flat-xml;application/vnd.oasis.opendocument.spreadsheet-flat-xml;application/gpx+xml" casesensitive="1" indenter="xml" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
<highlighting>
<contexts>
@@ -16,13 +16,13 @@
<context name="FindXML" attribute="Normal Text" lineEndContext="#stay">
<DetectSpaces />
+ <DetectIdentifier />
+ <RegExpr attribute="Element Symbols" context="ElementTagName" String="&lt;(?=(&name;))" beginRegion="element" />
<StringDetect attribute="Comment" context="Comment" String="&lt;!--" beginRegion="comment" />
- <StringDetect attribute="CDATA" context="CDATA" String="&lt;![CDATA[" beginRegion="cdata" />
- <RegExpr attribute="Doctype" context="Doctype" String="&lt;!DOCTYPE\s+" beginRegion="doctype" />
- <RegExpr attribute="Processing Instruction" context="PI" String="&lt;\?[\w:_-]*" beginRegion="pi" />
- <RegExpr attribute="Element" context="Element" String="&lt;&name;" beginRegion="element" />
+ <StringDetect attribute="CDATA" context="CDATAStart" String="&lt;![CDATA[" lookAhead="true" />
+ <RegExpr attribute="Doctype Symbols" context="DoctypeTagName" String="&lt;!(?=DOCTYPE(\s|$))" beginRegion="doctype" />
+ <IncludeRules context="FindProcessingInstruction" />
<IncludeRules context="FindEntityRefs" />
- <DetectIdentifier />
</context>
<context name="FindEntityRefs" attribute="Other Text" lineEndContext="#stay">
@@ -33,44 +33,76 @@
<context name="FindPEntityRefs" attribute="Other Text" lineEndContext="#stay">
<RegExpr attribute="EntityRef" context="#stay" String="&entref;" />
<RegExpr attribute="PEntityRef" context="#stay" String="%&name;;" />
- <AnyChar attribute="Error" context="#stay" String="&amp;%" />
+ <AnyChar attribute="Error" context="#stay" String="&amp;%&lt;" />
</context>
<context name="Comment" attribute="Comment" lineEndContext="#stay">
<DetectSpaces />
<StringDetect attribute="Comment" context="#pop" String="--&gt;" endRegion="comment" />
- <RegExpr attribute="Error" context="#stay" String="-(-(?!-&gt;))+" />
- <IncludeRules context="##Alerts" />
+ <RegExpr attribute="Error" context="#stay" String="-(?:\-(?!-&gt;))+" />
+ <IncludeRules context="##Comments" />
<DetectIdentifier />
</context>
+ <context name="CDATAStart" attribute="Other Text" lineEndContext="#pop">
+ <StringDetect attribute="CDATA Symbols" context="#stay" String="&lt;![" beginRegion="cdata" />
+ <StringDetect attribute="CDATA" context="#stay" String="CDATA" />
+ <DetectChar attribute="CDATA Symbols" context="#pop!CDATA" char="[" />
+ </context>
<context name="CDATA" attribute="Other Text" lineEndContext="#stay">
<DetectSpaces />
<DetectIdentifier />
- <StringDetect attribute="CDATA" context="#pop" String="]]&gt;" endRegion="cdata" />
+ <StringDetect attribute="CDATA Symbols" context="#pop" String="]]&gt;" endRegion="cdata" />
<StringDetect attribute="EntityRef" context="#stay" String="]]&amp;gt;" />
</context>
+ <context name="FindProcessingInstruction" attribute="Other Text" lineEndContext="#stay">
+ <RegExpr attribute="PI Symbols" context="PI TagName" String="&lt;\?(?=([\w:_-]*))" beginRegion="pi" />
+ </context>
+ <context name="PI TagName" attribute="Other Text" lineEndContext="#pop!PI" fallthrough="true" fallthroughContext="#pop!PI">
+ <RegExpr attribute="Processing Instruction" context="#pop!PI-XML" String="xml(?=\s|$)" insensitive="true" />
+ <StringDetect attribute="Processing Instruction" context="#pop!PI" String="%1" dynamic="true" />
+ </context>
<context name="PI" attribute="Other Text" lineEndContext="#stay">
- <Detect2Chars attribute="Processing Instruction" context="#pop" char="?" char1="&gt;" endRegion="pi" />
+ <Detect2Chars attribute="PI Symbols" context="#pop" char="?" char1="&gt;" endRegion="pi" />
+ </context>
+ <context name="PI-XML" attribute="Other Text" lineEndContext="#stay">
+ <IncludeRules context="PI" />
+ <RegExpr attribute="Attribute" context="#stay" String="(?:^|\s+)&name;" />
+ <DetectChar attribute="Attribute Separator" context="Value" char="=" />
</context>
+ <context name="DoctypeTagName" attribute="Other Text" lineEndContext="#pop">
+ <StringDetect attribute="Doctype" context="#pop!DoctypeVariableName" String="DOCTYPE" />
+ </context>
+ <context name="DoctypeVariableName" attribute="Other Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop!Doctype">
+ <DetectSpaces />
+ <RegExpr attribute="Doctype Name" context="#pop!Doctype" String="&name;" />
+ </context>
<context name="Doctype" attribute="Other Text" lineEndContext="#stay">
- <DetectChar attribute="Doctype" context="#pop" char="&gt;" endRegion="doctype" />
- <DetectChar attribute="Doctype" context="Doctype Internal Subset" char="[" beginRegion="int_subset" />
+ <DetectChar attribute="Doctype Symbols" context="#pop" char="&gt;" endRegion="doctype" />
+ <DetectChar attribute="Doctype Symbols" context="Doctype Internal Subset" char="[" beginRegion="int_subset" />
</context>
<context name="Doctype Internal Subset" attribute="Other Text" lineEndContext="#stay">
- <DetectChar attribute="Doctype" context="#pop" char="]" endRegion="int_subset" />
- <RegExpr attribute="Doctype" context="Doctype Markupdecl" String="&lt;!(ELEMENT|ENTITY|ATTLIST|NOTATION)\b" />
+ <DetectSpaces />
+ <DetectChar attribute="Doctype Symbols" context="#pop" char="]" endRegion="int_subset" />
+ <RegExpr attribute="Doctype Symbols" context="Doctype Markupdecl TagName" String="&lt;!(?=(ELEMENT|ENTITY|ATTLIST|NOTATION)\b)" />
<StringDetect attribute="Comment" context="Comment" String="&lt;!--" beginRegion="comment" />
- <RegExpr attribute="Processing Instruction" context="PI" String="&lt;\?[\w:_-]*" beginRegion="pi" />
+ <IncludeRules context="FindProcessingInstruction" />
<IncludeRules context="FindPEntityRefs" />
</context>
+ <context name="Doctype Markupdecl TagName" attribute="Other Text" lineEndContext="#pop">
+ <DetectIdentifier attribute="Doctype" context="#pop!Doctype Markupdecl VariableName" />
+ </context>
+ <context name="Doctype Markupdecl VariableName" attribute="Other Text" lineEndContext="#pop!Doctype Markupdecl" fallthrough="true" fallthroughContext="#pop!Doctype Markupdecl">
+ <DetectSpaces />
+ <RegExpr attribute="Doctype Name" context="#pop!Doctype Markupdecl" String="&name;" />
+ </context>
<context name="Doctype Markupdecl" attribute="Other Text" lineEndContext="#stay">
- <DetectChar attribute="Doctype" context="#pop" char="&gt;" />
+ <DetectChar attribute="Doctype Symbols" context="#pop" char="&gt;" />
<DetectChar attribute="Value" context="Doctype Markupdecl DQ" char="&quot;" />
<DetectChar attribute="Value" context="Doctype Markupdecl SQ" char="&apos;" />
</context>
@@ -85,26 +117,31 @@
<IncludeRules context="FindPEntityRefs" />
</context>
+ <context name="ElementTagName" attribute="Other Text" lineEndContext="#pop!Element">
+ <StringDetect attribute="Element" context="#pop!Element" String="%1" dynamic="true" />
+ </context>
<context name="Element" attribute="Other Text" lineEndContext="#stay">
- <Detect2Chars attribute="Element" context="#pop" char="/" char1="&gt;" endRegion="element" />
- <DetectChar attribute="Element" context="El Content" char="&gt;" />
- <RegExpr attribute="Attribute" context="Attribute" String="^&name;" />
- <RegExpr attribute="Attribute" context="Attribute" String="\s+&name;" />
+ <Detect2Chars attribute="Element Symbols" context="#pop" char="/" char1="&gt;" endRegion="element" />
+ <DetectChar attribute="Element Symbols" context="El Content" char="&gt;" />
+ <RegExpr attribute="Attribute" context="Attribute" String="(?:^|\s+)&name;" />
<RegExpr attribute="Error" context="#stay" String="\S" />
</context>
<context name="El Content" attribute="Other Text" lineEndContext="#stay">
- <RegExpr attribute="Element" context="El End" String="&lt;/&name;" />
+ <RegExpr attribute="Element Symbols" context="El End TagName" String="&lt;/(?=(&name;))" />
<IncludeRules context="FindXML" />
</context>
+ <context name="El End TagName" attribute="Other Text" lineEndContext="#pop!El End">
+ <StringDetect attribute="Element" context="#pop!El End" String="%1" dynamic="true" />
+ </context>
<context name="El End" attribute="Other Text" lineEndContext="#stay">
- <DetectChar attribute="Element" context="#pop#pop#pop" char="&gt;" endRegion="element" />
+ <DetectChar attribute="Element Symbols" context="#pop#pop#pop" char="&gt;" endRegion="element" />
<RegExpr attribute="Error" context="#stay" String="\S" />
</context>
<context name="Attribute" attribute="Other Text" lineEndContext="#stay">
- <DetectChar attribute="Attribute" context="Value" char="=" />
+ <DetectChar attribute="Attribute Separator" context="#pop!Value" char="=" />
<RegExpr attribute="Error" context="#stay" String="\S" />
</context>
@@ -115,35 +152,42 @@
</context>
<context name="Value DQ" attribute="Value" lineEndContext="#stay">
- <DetectChar attribute="Value" context="#pop#pop#pop" char="&quot;" />
+ <DetectChar attribute="Value" context="#pop#pop" char="&quot;" />
<IncludeRules context="FindEntityRefs" />
</context>
<context name="Value SQ" attribute="Value" lineEndContext="#stay">
- <DetectChar attribute="Value" context="#pop#pop#pop" char="&apos;" />
+ <DetectChar attribute="Value" context="#pop#pop" char="&apos;" />
<IncludeRules context="FindEntityRefs" />
</context>
</contexts>
<itemDatas>
- <itemData name="Normal Text" defStyleNum="dsNormal" />
- <itemData name="Other Text" defStyleNum="dsNormal" />
- <itemData name="Comment" defStyleNum="dsComment" spellChecking="false" />
- <itemData name="CDATA" defStyleNum="dsBaseN" bold="1" spellChecking="false" />
- <itemData name="Processing Instruction" defStyleNum="dsKeyword" spellChecking="false" />
- <itemData name="Doctype" defStyleNum="dsDataType" bold="1" spellChecking="false" />
- <itemData name="Element" defStyleNum="dsKeyword" spellChecking="false" />
- <itemData name="Attribute" defStyleNum="dsOthers" spellChecking="false" />
- <itemData name="Value" defStyleNum="dsString" spellChecking="false" />
- <itemData name="EntityRef" defStyleNum="dsDecVal" spellChecking="false" />
- <itemData name="PEntityRef" defStyleNum="dsDecVal" spellChecking="false" />
- <itemData name="Error" defStyleNum="dsError" spellChecking="false" />
+ <itemData name="Normal Text" defStyleNum="dsNormal" />
+ <itemData name="Other Text" defStyleNum="dsNormal" />
+ <itemData name="Comment" defStyleNum="dsComment" spellChecking="true" />
+ <itemData name="CDATA" defStyleNum="dsBaseN" bold="1" italic="0" spellChecking="false" />
+ <itemData name="CDATA Symbols" defStyleNum="dsBaseN" bold="0" italic="0" spellChecking="false" />
+ <itemData name="Processing Instruction" defStyleNum="dsFunction" bold="1" italic="0" spellChecking="false" />
+ <itemData name="PI Symbols" defStyleNum="dsFunction" bold="0" italic="0" spellChecking="false" />
+ <itemData name="Doctype" defStyleNum="dsDataType" bold="1" italic="0" spellChecking="false" />
+ <itemData name="Doctype Name" defStyleNum="dsDataType" bold="0" italic="0" spellChecking="false" />
+ <itemData name="Doctype Symbols" defStyleNum="dsDataType" bold="0" italic="0" spellChecking="false" />
+ <itemData name="Element" defStyleNum="dsKeyword" spellChecking="false" />
+ <itemData name="Element Symbols" defStyleNum="dsNormal" spellChecking="false" />
+ <itemData name="Attribute" defStyleNum="dsOthers" spellChecking="false" />
+ <itemData name="Attribute Separator" defStyleNum="dsOthers" spellChecking="false" />
+ <itemData name="Value" defStyleNum="dsString" spellChecking="false" />
+ <itemData name="EntityRef" defStyleNum="dsDecVal" spellChecking="false" />
+ <itemData name="PEntityRef" defStyleNum="dsDecVal" spellChecking="false" />
+ <itemData name="Error" defStyleNum="dsError" spellChecking="false" />
</itemDatas>
</highlighting>
<general>
<comments>
- <comment name="multiLine" start="&lt;!--" end="--&gt;" />
+ <comment name="multiLine" start="&lt;!--" end="--&gt;" region="comment" />
</comments>
</general>
</language>
+<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/yacc.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/yacc.xml
index 06d6492ff1..4129a09bd7 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/syntax/yacc.xml
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/yacc.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd">
+<!DOCTYPE language>
<!--
========================================================================
YACC.XML supports syntax highlighting for Yacc/Bison source under Kate.
@@ -12,12 +12,12 @@ This code is released under the LGPL as part of kdelibs/kate.
== UPDATE HISTORY ==
2018-02-20 // Nibaldo González <nibgonz@gmail.com>
- Fix '$' symbol, highlighted as 'dsError' by C++ (isocpp.xml).
+ Fix '$' symbol, highlighted as 'dsError' by C++ (isocpp.xml).
Update syntax for Bison (3.0.4):
- Add declarations, directives in rules and the '@' variable.
- - Allow a tag in '%union', declarations in multiple lines and
+ - Allow a tag in '%union', declarations in multiple lines and
grammar declarations in the grammar rules section.
- - The ';' char is not necessary to finish a rule. Allow '; |'
+ - The ';' char is not necessary to finish a rule. Allow '; |'
within rules.
Add mimetypes and extensions '*.ypp' & '*.y++'.
@@ -32,7 +32,7 @@ This code is released under the LGPL as part of kdelibs/kate.
========================================================================
-->
-<language name="Yacc/Bison" version="5" kateversion="5.0" section="Sources" extensions="*.y;*.yy;*.ypp;*.y++" mimetype="text/x-yacc;text/x-bison" priority="5" author="Jan Villat (jan.villat@net2000.ch)" license="LGPL">
+<language name="Yacc/Bison" version="9" kateversion="5.79" section="Sources" extensions="*.y;*.yy;*.ypp;*.y++" mimetype="text/x-yacc;text/x-bison" priority="5" author="Jan Villat (jan.villat@net2000.ch)" license="LGPL">
<highlighting>
<contexts>
@@ -62,7 +62,7 @@ This code is released under the LGPL as part of kdelibs/kate.
<WordDetect attribute="Directive" context="Percent Command In" String="%&lt;flag&gt;" />
<!-- Any word followed by '%' (End with ';' or '%') -->
<DetectChar attribute="Directive" context="Percent Command" char="%" />
- </context>
+ </context>
<context name="Grammar Declarations" attribute="Normal Text" lineEndContext="#stay">
<WordDetect attribute="Directive" context="Union Start" String="%union" />
<WordDetect attribute="Directive" context="Union Start" String="%code" />
@@ -74,7 +74,7 @@ This code is released under the LGPL as part of kdelibs/kate.
<IncludeRules context="Comment" />
<DetectSpaces />
<DetectChar attribute="Normal Text" context="Union In" char="{" beginRegion="union" />
- <RegExpr attribute="Normal Text" context="#pop!Union Tag" String="[^\s\{](?=(\s|$|//))" />
+ <RegExpr attribute="Normal Text" context="#pop!Union Tag" String="[^\s\{](?=\s|$|//)" />
</context>
<context name="Union Tag" attribute="Normal Text" lineEndContext="#stay">
<IncludeRules context="Comment" />
@@ -112,7 +112,7 @@ This code is released under the LGPL as part of kdelibs/kate.
<IncludeRules context="Symbol-Variable" />
<IncludeRules context="##C++" />
</context>
- <context name="Code-Symbols End" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop!Percent Command In">
+ <context name="Code-Symbols End" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!Percent Command In">
<IncludeRules context="Comment" />
<DetectSpaces />
<DetectChar attribute="Normal Text" context="#pop" char=";" lookAhead="true" />
@@ -139,13 +139,13 @@ This code is released under the LGPL as part of kdelibs/kate.
<WordDetect attribute="Directive" context="#stay" String="%merge" />
<!-- Finish rule without the ';' character (see the 'rhses.1' rule in the 'src/parse-gram.y' file, from the Bison source) -->
- <RegExpr attribute="Open Rule" context="#pop" String="[\w\-\.](?=[\w\-\.]*:)" column="0" endRegion="rule" />
+ <RegExpr attribute="Open Rule" context="#pop" String="^[\w\-\.](?=[\w\-\.]*:)" column="0" endRegion="rule" />
<Detect2Chars attribute="Content-Type Delimiter" context="#pop" char="%" char1="%" lookAhead="true" firstNonSpace="true" endRegion="rule" />
- <RegExpr attribute="Directive" context="#pop" String="%(union|code|destructor|printer|start|(no\-)?default\-prec|nterm|token|type|left|right|nonassoc|precedence)\b" lookAhead="true" column="0" endRegion="rule" />
+ <RegExpr attribute="Directive" context="#pop" String="^%(?:union|code|destructor|printer|start|(?:no\-)?default\-prec|nterm|token|type|left|right|nonassoc|precedence)\b" lookAhead="true" column="0" endRegion="rule" />
</context>
- <!-- The Bison parser allows to have ';' followed by '|', without the rule ending.
+ <!-- The Bison parser allows to have ';' followed by '|', without the rule ending.
The problem here is that the ';' char has endRegion="rule" (although it is not very relevant). -->
- <context name="Rule End" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop#pop">
+ <context name="Rule End" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop#pop">
<DetectSpaces />
<DetectChar attribute="Normal Text" context="#stay" char=";" />
<DetectChar attribute="Normal Text" context="#pop" char="|" />
@@ -164,7 +164,7 @@ This code is released under the LGPL as part of kdelibs/kate.
<WordDetect attribute="Directive" context="Percent Command In" String="%left" />
<WordDetect attribute="Directive" context="Percent Command In" String="%right" />
<WordDetect attribute="Directive" context="Percent Command In" String="%nonassoc" />
- <WordDetect attribute="Directive" context="Percent Command In" String="%precedence" />
+ <WordDetect attribute="Directive" context="Percent Command In" String="%precedence" />
<DetectChar attribute="Rule" context="#pop" char="%" /> <!-- End when there is an invalid declaration -->
<DetectChar attribute="Normal Text" context="#pop" char=";" />
@@ -195,17 +195,17 @@ This code is released under the LGPL as part of kdelibs/kate.
</context>
<context name="Comment" attribute="Comment" lineEndContext="#stay">
- <Detect2Chars attribute="Comment" context="CommentStar" char="/" char1="*" />
+ <Detect2Chars attribute="Comment" context="CommentStar" char="/" char1="*" beginRegion="comment" />
<Detect2Chars attribute="Comment" context="CommentSlash" char="/" char1="/" />
</context>
<context name="CommentStar" attribute="Comment" lineEndContext="#stay">
- <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" />
- <IncludeRules context="##Alerts" />
- <IncludeRules context="##Modelines" />
+ <DetectSpaces />
+ <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="comment" />
+ <IncludeRules context="##Comments" />
</context>
<context name="CommentSlash" attribute="Comment" lineEndContext="#pop">
- <IncludeRules context="##Alerts" />
- <IncludeRules context="##Modelines" />
+ <DetectSpaces />
+ <IncludeRules context="##Comments" />
</context>
<context name="StringOrChar" attribute="Normal Text" lineEndContext="#stay">
@@ -229,12 +229,12 @@ This code is released under the LGPL as part of kdelibs/kate.
</context>
<context name="Symbol-Variable" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Directive" context="Dol" char="$" />
- <RegExpr attribute="Directive" context="#stay" String="@(\$?)(\d+|[A-Za-z_]\w*)?" />
+ <RegExpr attribute="Directive" context="#stay" String="@\$?(?:\d+|[A-Za-z_]\w*)?" />
</context>
- <context name="Dol" attribute="Normal Text" fallthrough="true" fallthroughContext="DolEnd" lineEndContext="#stay">
+ <context name="Dol" attribute="Normal Text" fallthroughContext="DolEnd" lineEndContext="#stay">
<RegExpr attribute="Data Type" context="DolEnd" String="&lt;[^&gt;]+&gt;" />
</context>
- <context name="DolEnd" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop#pop">
+ <context name="DolEnd" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop#pop">
<RegExpr attribute="Directive" context="#pop#pop" String="@?\d+" />
<DetectChar attribute="Directive" context="#pop#pop" char="$" />
<DetectIdentifier attribute="Directive" context="#pop#pop" />
@@ -259,7 +259,7 @@ This code is released under the LGPL as part of kdelibs/kate.
</highlighting>
<general>
<comments>
- <comment name="multiLine" start="/*" end="*/" />
+ <comment name="multiLine" start="/*" end="*/" region="comment" />
<comment name="singleLine" start="//" />
</comments>
</general>
diff --git a/src/libs/3rdparty/syntax-highlighting/data/syntax/yaml.xml b/src/libs/3rdparty/syntax-highlighting/data/syntax/yaml.xml
new file mode 100644
index 0000000000..120dbd55f7
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/syntax/yaml.xml
@@ -0,0 +1,642 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language
+[
+ <!ENTITY null "(?:null|Null|NULL|~)">
+ <!ENTITY bool "(?:y|Y|yes|Yes|YES|n|N|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)">
+
+ <!ENTITY int "(?:0|[\-\+]?[1-9][0-9_]*)">
+ <!ENTITY intOther "[\-\+]?0(?:x_*[0-9a-fA-F][0-9a-fA-F_]*|o?_*[0-7][0-7_]*|b_*[01][01_]*)"> <!-- Hex, Octal, Binary -->
+ <!ENTITY intBase60 "[\-\+]?[1-9][0-9_]*(?:\:[0-5]?[0-9])+">
+ <!ENTITY allInt "(?:&intBase60;|&intOther;|&int;)">
+
+ <!ENTITY float "[\-\+]?(?:[0-9][0-9_]*\.[0-9\._]*|\._*[0-9][0-9\._]*)(?:[eE][\-\+]?[0-9]+)?">
+ <!ENTITY floatExp "[\-\+]?[0-9][0-9_]*[eE][\-\+]?[0-9]+">
+ <!ENTITY floatBase60 "[\-\+]?[0-9][0-9_]*(?:\:[0-5]?[0-9])+\.[0-9_]*">
+ <!ENTITY inf "[\-\+]?\.(?:inf|Inf|INF)\b">
+ <!ENTITY nan "\.(?:nan|NaN|NAN)\b">
+ <!ENTITY allFloat "(?:&float;|&floatExp;|&floatBase60;|&inf;|&nan;)">
+
+ <!ENTITY endValue "(?:\s*$|\s+#)">
+ <!ENTITY endValueInline "\s*[:,\[\]\{\}]">
+ <!ENTITY space "[ ]">
+
+ <!-- Key quoted -->
+ <!ENTITY keyDQ "&quot;(?:\\.|[^&quot;])+&quot;\s*">
+ <!ENTITY keySQ "'(?:[^']|'')+'\s*">
+ <!-- Literal/folded operator -->
+ <!ENTITY literalOp "[\|&gt;][\-\+]?">
+ <!-- Key after "?" or "-", used to detect literal/folded operator -->
+ <!ENTITY keyAfterOp "(?:[^&quot;'#\-\?\s][^:#]*|\-(?:[^\s:#][^:#]*)?|&keyDQ;|&keySQ;)">
+
+ <!ENTITY dataTypes "!!\S+">
+ <!ENTITY alias "&amp;\S+">
+ <!ENTITY reference "\*\S+">
+
+ <!ENTITY dpointsHashAttrPreInline1 "[^\s&quot;'#\-,\}\s][^:#,\}]*(?=\:(?:\s|$))">
+ <!ENTITY dpointsHashAttrPreInline2 "\-(?:[^\s:#,\}][^:#,\}]*)?(?=\:(?:\s|$))">
+ <!ENTITY dpointsHashAttrPreInline3 "&keyDQ;(?=\:(?:\s|$))">
+ <!ENTITY dpointsHashAttrPreInline4 "&keySQ;(?=\:(?:\s|$))">
+
+ <!ENTITY dpointsListAttrPreInline1 "[^&quot;'#\-,\]\s][^:#,\]]*(?=\:(?:\s|$))">
+ <!ENTITY dpointsListAttrPreInline2 "\-(?:[^\s:#,\]][^:#,\]]*)?(?=\:(?:\s|$))">
+ <!ENTITY dpointsListAttrPreInline3 "&keyDQ;(?=\:(?:\s|$))">
+ <!ENTITY dpointsListAttrPreInline4 "&keySQ;(?=\:(?:\s|$))">
+
+ <!ENTITY dpointsAttrPre1 "[^&quot;'#\-\s][^:#]*(?=\:(?:\s|$))">
+ <!ENTITY dpointsAttrPre2 "\-(?:[^\s:#][^:#]*)?(?=\:(?:\s|$))">
+ <!ENTITY dpointsAttrPre3 "&keyDQ;(?=\:(?:\s|$))">
+ <!ENTITY dpointsAttrPre4 "&keySQ;(?=\:(?:\s|$))">
+
+]>
+
+<!-- Author: Dr Orlovsky MA <maxim@orlovsky.info> //-->
+<!-- Modifications (YAML 1.2), values & support for literal/folded style:
+ Nibaldo González S. <nibgonz@gmail.com>
+ These modifications are under the MIT license. //-->
+<language name="YAML" version="11" kateversion="5.0" section="Markup"
+ extensions="*.yaml;*.yml" mimetype="text/yaml" priority="9"
+ author="Dr Orlovsky MA (dr.orlovsky@gmail.com), Nibaldo González (nibgonz@gmail.com)" license="LGPL">
+ <highlighting>
+ <contexts>
+ <context attribute="Attribute" lineEndContext="#stay" name="normal" >
+ <StringDetect attribute="Document Header" context="header" String="---" column="0"/>
+ <RegExpr attribute="End of Document" context="EOD" String="^\.\.\.$" column="0"/>
+ <DetectChar attribute="Directive" context="directive" char="%" column="0"/>
+
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
+
+ <!-- Literal/Folded Style -->
+ <IncludeRules context="find-literal-block" />
+
+ <RegExpr attribute="Operator" firstNonSpace="true" context="dash" String="\-(?=\s|$)" />
+ <DetectChar attribute="Operator" firstNonSpace="true" context="mapping-key" char="?" />
+
+ <DetectChar attribute="Operator" firstNonSpace="true" context="list" char="[" beginRegion="List" />
+ <DetectChar attribute="Operator" firstNonSpace="true" context="hash" char="{" beginRegion="Hash" />
+
+ <RegExpr attribute="Data Types" firstNonSpace="true" context="after-data" String="&dataTypes;" />
+ <RegExpr attribute="Alias" firstNonSpace="true" context="after-data" String="&alias;" />
+ <RegExpr attribute="Reference" firstNonSpace="true" context="after-data" String="&reference;" />
+
+ <RegExpr attribute="Key" context="dpoints-attribute-pre" String="&dpointsAttrPre1;|&dpointsAttrPre2;|&dpointsAttrPre3;|&dpointsAttrPre4;"/>
+ <RegExpr attribute="Key Points Operator" context="attribute-pre" String=":(?=\s|$)"/>
+
+ <DetectChar attribute="String" firstNonSpace="true" context="string" char="'" beginRegion="String" />
+ <DetectChar attribute="String" firstNonSpace="true" context="stringx" char="&quot;" beginRegion="String" />
+ <IncludeRules context="values-firstnonspace" />
+ <DetectSpaces/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="mapping-key" fallthrough="true" fallthroughContext="#pop">
+ <RegExpr attribute="Comment" context="#pop!comment" String="(?:^|\s+)#" />
+ <DetectSpaces />
+ <RegExpr attribute="Operator" context="#pop!dash" String="\-(?=\s|$)" />
+ <RegExpr attribute="Data Types" context="#pop!after-data" String="&dataTypes;" />
+ <RegExpr attribute="Alias" context="#pop!after-data" String="&alias;" />
+ <RegExpr attribute="Reference" context="#pop!after-data" String="&reference;" />
+
+ <DetectChar attribute="Operator" context="#pop!list" char="[" beginRegion="List" />
+ <DetectChar attribute="Operator" context="#pop!hash" char="{" beginRegion="Hash" />
+ <DetectChar attribute="String" context="#pop!string" char="'" beginRegion="String" />
+ <DetectChar attribute="String" context="#pop!stringx" char="&quot;" beginRegion="String" />
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop" name="dash" fallthrough="true" fallthroughContext="#pop">
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
+ <DetectSpaces/>
+ <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" />
+ <RegExpr attribute="Alias" context="#stay" String="&alias;" />
+ <RegExpr attribute="Reference" context="#stay" String="&reference;" />
+ <IncludeRules context="values" />
+ <DetectChar attribute="Operator" context="#pop!mapping-key" char="?" />
+ <RegExpr attribute="Operator" context="#stay" String="\-(?=\s|$)" />
+
+ <DetectChar attribute="Operator" context="#pop!list" char="[" beginRegion="List" />
+ <DetectChar attribute="Operator" context="#pop!hash" char="{" beginRegion="Hash" />
+ <DetectChar attribute="String" context="#pop!string" char="'" beginRegion="String" />
+ <DetectChar attribute="String" context="#pop!stringx" char="&quot;" beginRegion="String" />
+ </context>
+
+ <!-- Highlight lists, hashes and strings after a data type, reference or alias -->
+ <context attribute="Normal Text" lineEndContext="#pop" name="after-data" fallthrough="true" fallthroughContext="#pop">
+ <RegExpr attribute="Comment" context="#pop!comment" String="(?:^|\s+)#" />
+ <DetectSpaces />
+ <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" />
+ <RegExpr attribute="Alias" context="#stay" String="&alias;" />
+ <RegExpr attribute="Reference" context="#stay" String="&reference;" />
+
+ <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" />
+ <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" />
+ <DetectChar attribute="String" context="string" char="'" beginRegion="String" />
+ <DetectChar attribute="String" context="stringx" char="&quot;" beginRegion="String" />
+ </context>
+
+ <context attribute="Document Header" lineEndContext="#pop" name="header">
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
+ <RegExpr attribute="Literal/Folded Operator" context="header-literal-operator" String="\s&literalOp;(?=&endValue;)" lookAhead="true" />
+ </context>
+ <context attribute="Document Header" lineEndContext="#pop#pop" name="header-literal-operator" fallthrough="true" fallthroughContext="#pop">
+ <DetectSpaces />
+ <RegExpr attribute="Literal/Folded Operator" context="#pop#pop!literal-block-simple" String="&literalOp;" beginRegion="Literal" />
+ </context>
+
+ <context attribute="End of Document" lineEndContext="#stay" name="EOD">
+ </context>
+
+ <context attribute="Directive" lineEndContext="#pop" name="directive">
+ </context>
+
+ <context attribute="Attribute" lineEndContext="#pop#pop" name="attribute">
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
+ </context>
+
+ <context attribute="Attribute" lineEndContext="#stay" name="list-attribute-inline">
+ <AnyChar attribute="Operator" context="#pop#pop" lookAhead="true" String=",]" />
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
+ </context>
+ <context attribute="Attribute" lineEndContext="#stay" name="hash-attribute-inline">
+ <AnyChar attribute="Operator" context="#pop#pop" lookAhead="true" String=",}" />
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
+ </context>
+
+ <!-- Attribute -->
+ <context attribute="Attribute" lineEndContext="#pop" name="dpoints-attribute-pre" fallthrough="true" fallthroughContext="#pop!attribute-pre">
+ <DetectChar attribute="Key Points Operator" context="#pop!attribute-pre" char=":" /> <!-- Highlight two points after Key -->
+ </context>
+ <context attribute="Attribute" lineEndContext="#pop" name="attribute-pre" fallthrough="true" fallthroughContext="attribute">
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
+ <DetectSpaces/>
+ <DetectChar attribute="Operator" context="#stay" char="?" />
+ <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" />
+ <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" />
+ <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" />
+ <DetectChar attribute="String" context="attribute-string" char="'" beginRegion="String" />
+ <DetectChar attribute="String" context="attribute-stringx" char="&quot;" beginRegion="String" />
+ <RegExpr attribute="Alias" context="#stay" String="&alias;(?=\s+[\[\{])" />
+ <RegExpr attribute="Reference" context="#stay" String="&reference;(?=\s+[\[\{])" />
+ <RegExpr attribute="Alias" context="attribute" String="&alias;" />
+ <RegExpr attribute="Reference" context="attribute" String="&reference;" />
+ <IncludeRules context="values" />
+ <RegExpr attribute="Literal/Folded Operator" context="#stay" String="&literalOp;(?=&endValue;)" />
+ </context>
+
+ <context attribute="Attribute" lineEndContext="#pop" name="default-attribute-pre-inline">
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
+ <DetectSpaces/>
+
+ <DetectChar attribute="Operator" context="#stay" char="?" />
+ <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" />
+ <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" />
+ <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" />
+ <DetectChar attribute="String" context="attribute-string-inline" char="'" beginRegion="String" />
+ <DetectChar attribute="String" context="attribute-stringx-inline" char="&quot;" beginRegion="String" />
+ <RegExpr attribute="Alias" context="#stay" String="&alias;(?=\s+[\[\{])" />
+ <RegExpr attribute="Reference" context="#stay" String="&reference;(?=\s+[\[\{])" />
+ </context>
+
+ <!-- Attribute Inline, Within List -->
+ <context attribute="Attribute" lineEndContext="#pop" name="dpoints-list-attribute-pre-inline" fallthrough="true" fallthroughContext="#pop!list-attribute-pre-inline">
+ <DetectChar attribute="Key Points Operator" context="#pop!list-attribute-pre-inline" char=":" /> <!-- Highlight two points after Key -->
+ </context>
+ <context attribute="Attribute" lineEndContext="#pop" name="list-attribute-pre-inline" fallthrough="true" fallthroughContext="list-attribute-inline">
+ <IncludeRules context="default-attribute-pre-inline" />
+ <RegExpr attribute="Alias" context="list-attribute-inline" String="&alias;" />
+ <RegExpr attribute="Reference" context="list-attribute-inline" String="&reference;" />
+
+ <AnyChar attribute="Operator" context="#pop" lookAhead="true" String=",]" />
+ <IncludeRules context="values-inline" />
+ </context>
+
+ <!-- Attribute Inline, Within Hash -->
+ <context attribute="Attribute" lineEndContext="#pop" name="dpoints-hash-attribute-pre-inline" fallthrough="true" fallthroughContext="#pop!hash-attribute-pre-inline">
+ <DetectChar attribute="Key Points Operator" context="#pop!hash-attribute-pre-inline" char=":" /> <!-- Highlight two points after Key -->
+ </context>
+ <context attribute="Attribute" lineEndContext="#pop" name="hash-attribute-pre-inline" fallthrough="true" fallthroughContext="hash-attribute-inline">
+ <IncludeRules context="default-attribute-pre-inline" />
+ <RegExpr attribute="Alias" context="hash-attribute-inline" String="&alias;" />
+ <RegExpr attribute="Reference" context="hash-attribute-inline" String="&reference;" />
+
+ <AnyChar attribute="Operator" context="#pop" lookAhead="true" String=",}" />
+ <IncludeRules context="values-inline" />
+ </context>
+
+ <!-- List -->
+ <!-- Context "find-values-list" highlights values and then sends to "list-element" -->
+ <context attribute="List" lineEndContext="#stay" name="list" fallthrough="true" fallthroughContext="#pop!find-values-list" noIndentationBasedFolding="true">
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
+ <DetectSpaces />
+ <DetectChar attribute="Operator" context="#pop!find-values-list" char="?" />
+ </context>
+ <context attribute="List" lineEndContext="#stay" name="list-element" noIndentationBasedFolding="true">
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
+
+ <DetectChar attribute="Operator" context="#pop" char="]" endRegion="List" />
+ <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" />
+ <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" />
+
+ <RegExpr attribute="Key" context="dpoints-list-attribute-pre-inline" String="&dpointsListAttrPreInline1;|&dpointsListAttrPreInline2;|&dpointsListAttrPreInline3;|&dpointsListAttrPreInline4;"/>
+ <RegExpr attribute="Key Points Operator" context="list-attribute-pre-inline" String=":(?=\s|$)" firstNonSpace="true" />
+
+ <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" />
+ <RegExpr attribute="Alias" context="#stay" String="&alias;" />
+ <RegExpr attribute="Reference" context="#stay" String="&reference;" />
+ <DetectChar attribute="String" context="string" char="'" beginRegion="String" />
+ <DetectChar attribute="String" context="stringx" char="&quot;" beginRegion="String" />
+
+ <DetectChar attribute="Operator" context="#pop!list" char="," />
+ <IncludeRules context="values-list" />
+ </context>
+
+ <!-- Hash -->
+ <context attribute="Hash" lineEndContext="#stay" name="hash" fallthrough="true" fallthroughContext="#pop!hash-element" noIndentationBasedFolding="true">
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
+ <DetectSpaces />
+ <DetectChar attribute="Operator" context="#pop!hash-element" char="?" />
+ </context>
+ <context attribute="Hash" lineEndContext="#stay" name="hash-element" noIndentationBasedFolding="true">
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
+ <DetectSpaces/>
+
+ <RegExpr attribute="Key" context="dpoints-hash-attribute-pre-inline" String="&dpointsHashAttrPreInline1;|&dpointsHashAttrPreInline2;|&dpointsHashAttrPreInline3;|&dpointsHashAttrPreInline4;"/>
+ <RegExpr attribute="Key Points Operator" context="hash-attribute-pre-inline" String=":(?=\s|$)"/>
+
+ <DetectChar attribute="Operator" context="#pop" char="}" endRegion="Hash" />
+ <DetectChar attribute="Operator" context="#pop!hash" char="," />
+
+ <!-- This improves highlighting in keys with multiple lines -->
+ <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" />
+ <RegExpr attribute="Alias" context="#stay" String="&alias;" />
+ <RegExpr attribute="Reference" context="#stay" String="&reference;" />
+ <DetectChar attribute="String" context="string" char="'" beginRegion="String" />
+ <DetectChar attribute="String" context="stringx" char="&quot;" beginRegion="String" />
+ </context>
+
+ <!-- Strings -->
+ <context attribute="String" lineEndContext="#stay" name="attribute-string" noIndentationBasedFolding="true">
+ <DetectIdentifier />
+ <IncludeRules context="escaped-char-singleq" />
+ <DetectChar attribute="String" context="attribute-end" char="'" endRegion="String" />
+ </context>
+
+ <context attribute="String" lineEndContext="#stay" name="attribute-stringx" noIndentationBasedFolding="true">
+ <DetectIdentifier />
+ <IncludeRules context="escaped-char-doubleq" />
+ <DetectChar attribute="String" context="attribute-end" char="&quot;" endRegion="String" />
+ </context>
+
+ <context attribute="String" lineEndContext="#stay" name="attribute-string-inline" noIndentationBasedFolding="true">
+ <DetectIdentifier />
+ <IncludeRules context="escaped-char-singleq" />
+ <DetectChar attribute="String" context="attribute-end-inline" char="'" endRegion="String" />
+ </context>
+
+ <context attribute="String" lineEndContext="#stay" name="attribute-stringx-inline" noIndentationBasedFolding="true">
+ <DetectIdentifier />
+ <IncludeRules context="escaped-char-doubleq" />
+ <DetectChar attribute="String" context="attribute-end-inline" char="&quot;" endRegion="String" />
+ </context>
+
+ <context attribute="Error" lineEndContext="#pop#pop#pop" name="attribute-end">
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ </context>
+
+ <context attribute="Error" lineEndContext="#pop#pop#pop" name="attribute-end-inline">
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s+)#" />
+ <DetectSpaces attribute="Normal Text" context="#stay"/>
+ <AnyChar context="#pop#pop#pop" lookAhead="true" String="}],"/>
+ </context>
+
+ <context attribute="String" lineEndContext="#stay" name="string" noIndentationBasedFolding="true">
+ <DetectIdentifier />
+ <IncludeRules context="escaped-char-singleq" />
+ <DetectChar attribute="String" context="#pop" char="'" endRegion="String" />
+ </context>
+
+ <context attribute="String" lineEndContext="#stay" name="stringx" noIndentationBasedFolding="true">
+ <DetectIdentifier />
+ <IncludeRules context="escaped-char-doubleq" />
+ <DetectChar attribute="String" context="#pop" char="&quot;" endRegion="String" />
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="escaped-char-doubleq">
+ <RegExpr attribute="Escaped Character" context="#stay" String="\\(?:[\s0abtnvfre&quot;/\\N_Lp]|x[a-fA-F0-9]{2}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8})"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="escaped-char-singleq">
+ <Detect2Chars attribute="Escaped Character" context="#stay" char="'" char1="'" />
+ </context>
+
+ <context attribute="Comment" lineEndContext="#pop" name="comment">
+ <DetectSpaces />
+ <IncludeRules context="##Comments" />
+ </context>
+
+ <!-- Values -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="values">
+ <RegExpr attribute="Null" context="#stay" String="&null;(?=&endValue;)"/>
+ <RegExpr attribute="Boolean" context="#stay" String="&bool;(?=&endValue;)"/>
+ <RegExpr attribute="Float" context="#stay" String="&allFloat;(?=&endValue;)"/>
+ <RegExpr attribute="Integer" context="#stay" String="&allInt;(?=&endValue;)"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="values-firstnonspace">
+ <RegExpr attribute="Null" firstNonSpace="true" context="#stay" String="&null;(?=&endValue;)"/>
+ <RegExpr attribute="Boolean" firstNonSpace="true" context="#stay" String="&bool;(?=&endValue;)"/>
+ <RegExpr attribute="Float" firstNonSpace="true" context="#stay" String="&allFloat;(?=&endValue;)"/>
+ <RegExpr attribute="Integer" firstNonSpace="true" context="#stay" String="&allInt;(?=&endValue;)"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="values-inline">
+ <RegExpr attribute="Null" context="#stay" String="&null;(?=&endValueInline;|&endValue;)"/>
+ <RegExpr attribute="Boolean" context="#stay" String="&bool;(?=&endValueInline;|&endValue;)"/>
+ <RegExpr attribute="Float" context="#stay" String="&allFloat;(?=&endValueInline;|&endValue;)"/>
+ <RegExpr attribute="Integer" context="#stay" String="&allInt;(?=&endValueInline;|&endValue;)"/>
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="values-list">
+ <RegExpr attribute="Null" context="#stay" String="(?:\s|^)&null;(?=&endValueInline;|&endValue;)"/>
+ <RegExpr attribute="Boolean" context="#stay" String="(?:\s|^)&bool;(?=&endValueInline;|&endValue;)"/>
+ <RegExpr attribute="Float" context="#stay" String="(?:\s|^)&allFloat;(?=&endValueInline;|&endValue;)"/>
+ <RegExpr attribute="Integer" context="#stay" String="(?:\s|^)&allInt;(?=&endValueInline;|&endValue;)"/>
+ </context>
+ <!-- If the value is found immediately at the beginning of the list item -->
+ <context attribute="Normal Text" lineEndContext="#pop!list-element" name="find-values-list" fallthrough="true" fallthroughContext="#pop!list-element">
+ <RegExpr attribute="Null" context="#pop!list-element" String="&null;(?=&endValueInline;|&endValue;)"/>
+ <RegExpr attribute="Boolean" context="#pop!list-element" String="&bool;(?=&endValueInline;|&endValue;)"/>
+ <RegExpr attribute="Float" context="#pop!list-element" String="&allFloat;(?=&endValueInline;|&endValue;)"/>
+ <RegExpr attribute="Integer" context="#pop!list-element" String="&allInt;(?=&endValueInline;|&endValue;)"/>
+ </context>
+
+ <!-- Literal/Folded Style: http://yaml.org/spec/1.2/spec.html#id2795688 -->
+
+ <context attribute="Normal Text" lineEndContext="#stay" name="find-literal-block">
+ <!-- Do not allow indentation with tabs: -->
+ <RegExpr attribute="Alert" context="#stay" column="0"
+ String="^&space;*\t+\s*(?=(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|&lt;&gt;&quot;'])?&literalOp;&endValue;)" />
+
+ <!-- CASE 1: The literal/folded operator is the first character of a line.
+ The text after a space is considered literal.
+ Ex:
+ > |
+ > ^Start the literal text
+ -->
+ <RegExpr attribute="Literal/Folded Operator" context="literal-block-simple" column="0"
+ String="^&literalOp;(?=&endValue;)" beginRegion="Literal" />
+
+ <!-- CASE 2: Only the literal/folded operator is present in a line, after a space (the indentation
+ is captured). The text with the same indentation of the operator will be highlighted as literal.
+ Ex:
+ > key:
+ > |
+ > ^Start the literal text
+
+ However, in this case, the correct way is to use the indentation of the block, not the
+ indentation of the the operator. The problem is that it is difficult to capture.
+ > key1:
+ > key2:
+ > key3:
+ > |
+ > ^Block indentation (correct literal text)
+ -->
+ <RegExpr attribute="Literal/Folded Operator" context="literal-block-only-operator" column="0"
+ String="^(&space;+)&literalOp;(?=&endValue;)" beginRegion="Literal" />
+
+ <!-- CASE 3: There is a Key before the literal/folded operator (Key indentation is captured).
+ The text with the Key's indentation plus a space is considered literal.
+ Ex:
+ > key: |
+ > ^Start the literal text
+ > key: !!type >-
+ > ^Start the folded text
+ -->
+ <RegExpr attribute="Key Points Operator" context="literal-block-key" column="0"
+ String="^(&space;*)\:(?=\s+(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|&lt;&gt;&quot;'])?&literalOp;&endValue;)" />
+ <RegExpr attribute="Key" context="literal-block-key" column="0"
+ String="^(&space;*)(?:[^&quot;'#\-\?\s][^:#]*|\-(?:[^\s:#][^:#]*)?|&keyDQ;|&keySQ;)(?=\:\s+(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|&lt;&gt;&quot;'])?&literalOp;&endValue;)" />
+
+ <!-- CASE 4: Is there an operator "?" or "-" at the beginning of the line.
+ NOTE: Nested characters "-" and "?" are considered as part of the indentation.
+ Therefore, the indentation of the Key or the last operator "?" or "-" is captured.
+ Ex:
+ > ? |
+ > ^Start the literal Text
+ > ? - - |
+ > ^Start the literal text
+ > - Key: |
+ > ^Start the literal text
+ > ? - - - - Key: |
+ > ^Start the literal text
+ -->
+ <RegExpr context="start-literal-block-withdash" lookAhead="true" column="0"
+ String="^&space;*(?:\?&space;*|\-&space;+){1,6}(?:(?:&keyDQ;|&keySQ;|[^#\-\?\s]|\-[^\s#])(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|&lt;&gt;&quot;'])?)?&literalOp;&endValue;" />
+
+ <!-- CASE 5: Literal/folded operator after a data type or other content.
+ Ex:
+ > !!type |
+ > ^Start the literal text
+ > key1:
+ > key2:
+ > !!type |
+ > ^Start the literal text
+ -->
+ <RegExpr context="start-literal-block-other" lookAhead="true" column="0"
+ String="^&space;*(?:(?:[&amp;\*]|!!)\S+\s+)+&literalOp;&endValue;" />
+ </context>
+
+ <!-- If the line with the literal operator starts with the "-" or "?" operator.
+ NOTE: The indentation capture is limited to 6 nested operators. -->
+ <context attribute="Normal Text" lineEndContext="#pop" name="start-literal-block-withdash" noIndentationBasedFolding="true">
+ <!-- With Key: Capture the Key indentation -->
+ <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s2" String="^(&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/>
+ <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s3" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/>
+ <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s4" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/>
+ <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s5" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/>
+ <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s6" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/>
+ <RegExpr attribute="Operator" context="#pop!literal-block-key-withdash-s7" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)(?=&keyAfterOp;:\s)" column="0"/>
+ <!-- Without Key: Capture the indentation of the last operator "?" or "-" -->
+ <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s1" String="^(&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/>
+ <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s2" String="^(&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/>
+ <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s3" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/>
+ <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s4" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/>
+ <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s5" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/>
+ <RegExpr attribute="Operator" context="#pop!literal-block-withdash-s6" String="^(&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-](&space;*)[\?\-]\s*(?=[^#\-\?\s]|\-[^\s#])" column="0"/>
+ </context>
+ <!-- Capture the indentation of data type, reference or alias -->
+ <context attribute="Normal Text" lineEndContext="#pop" name="start-literal-block-other" noIndentationBasedFolding="true">
+ <!-- The text with the same indentation will be considered literal -->
+ <RegExpr attribute="Data Types" context="#pop!literal-block-after-data" String="^(&space;+)&dataTypes;" column="0" />
+ <RegExpr attribute="Alias" context="#pop!literal-block-after-data" String="^(&space;+)&alias;" column="0" />
+ <RegExpr attribute="Reference" context="#pop!literal-block-after-data" String="^(&space;+)&reference;" column="0" />
+ <!-- The text after a space will be considered literal (empty text is captured) -->
+ <RegExpr attribute="Data Types" context="#pop!literal-block-withdash-s1" String="^()&dataTypes;" column="0" />
+ <RegExpr attribute="Alias" context="#pop!literal-block-withdash-s1" String="^()&alias;" column="0" />
+ <RegExpr attribute="Reference" context="#pop!literal-block-withdash-s1" String="^()&reference;" column="0" />
+ </context>
+
+ <!-- Highlight data/attribute before the literal operator (Note that if there is a line
+ break within a string or bracket, the literal line will not be highlighted). -->
+ <context attribute="Attribute" lineEndContext="#pop#pop" name="before-literal-operator" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Operator" context="#pop!end-literal-operator" String="&literalOp;(?=&endValue;)" beginRegion="Literal" />
+
+ <RegExpr attribute="Error" context="#pop#pop" String="(?:[&amp;\*]|!!)\S*&literalOp;(?=&endValue;)" />
+ <RegExpr attribute="Data Types" context="#stay" String="&dataTypes;" />
+ <RegExpr attribute="Alias" context="#stay" String="&alias;" />
+ <RegExpr attribute="Reference" context="#stay" String="&reference;" />
+
+ <DetectChar attribute="Operator" context="list" char="[" beginRegion="List" />
+ <DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" />
+ <DetectChar attribute="String" context="string" char="'" beginRegion="String" />
+ <DetectChar attribute="String" context="stringx" char="&quot;" beginRegion="String" />
+ </context>
+
+ <context attribute="Normal Text" lineEndContext="#pop#pop" name="dpoints-key-before-literal-operator" fallthrough="true" fallthroughContext="#pop#pop" noIndentationBasedFolding="true">
+ <DetectChar attribute="Key Points Operator" context="#pop!key-before-literal-operator" char=":" />
+ </context>
+ <context attribute="Attribute" lineEndContext="#pop#pop" name="key-before-literal-operator" noIndentationBasedFolding="true">
+ <IncludeRules context="before-literal-operator" />
+ <DetectChar attribute="Operator" context="#stay" char="?" />
+ </context>
+ <context attribute="Attribute" lineEndContext="#pop" name="end-literal-operator" noIndentationBasedFolding="true">
+ <RegExpr attribute="Comment" context="#pop!comment" String="(?:^|\s+)#" />
+ </context>
+
+ <!-- Common rules for the content of the literal blocks -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-default" noIndentationBasedFolding="true">
+ <!-- End literal/folded block -->
+ <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" />
+ <!-- Find literal/folded operator -->
+ <RegExpr context="before-literal-operator" String="\S" lookAhead="true" />
+ </context>
+ <context attribute="Normal Text" lineEndContext="#pop" name="literal-block-key-default" noIndentationBasedFolding="true">
+ <!-- End literal/folded block -->
+ <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" />
+ <!-- Detect Key before the literal/folded operator -->
+ <RegExpr attribute="Key" context="dpoints-key-before-literal-operator" String="&keyAfterOp;(?=:\s)" />
+ <RegExpr attribute="Normal Text" context="#pop" String="\S" lookAhead="true" endRegion="Literal" />
+ </context>
+
+ <!-- Content of the literal block: -->
+
+ <!-- If the literal operator is starting the line (after a space, use block indentation) -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-only-operator" dynamic="true" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1.*$" dynamic="true" column="0" />
+
+ <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" />
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s)#" />
+ <RegExpr context="#pop" String="\S" lookAhead="true" endRegion="Literal" />
+ </context>
+ <!-- If the literal operator is the first character of a line (or after header) -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-simple" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^\s.*$" column="0" />
+
+ <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" />
+ <RegExpr attribute="Comment" context="comment" String="(?:^|\s)#" />
+ </context>
+ <!-- If there is a data type or other content before the liretal operator (use block indentation) -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-after-data" dynamic="true" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1.*$" dynamic="true" column="0" />
+
+ <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" />
+ <RegExpr context="before-literal-operator" String="\S" lookAhead="true" />
+ </context>
+ <!-- If there is a key before the literal operator -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key" dynamic="true" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1\s.*$" dynamic="true" column="0" />
+
+ <RegExpr attribute="Normal Text" context="#pop" String="^\s*\S" lookAhead="true" column="0" endRegion="Literal" />
+ <!-- Attribute of the Key (the Key was previously highlighted) -->
+ <RegExpr attribute="Key Points Operator" context="key-before-literal-operator" String=":\s" />
+ <RegExpr context="key-before-literal-operator" String="\S" lookAhead="true" />
+ </context>
+
+ <!-- If there are dashes/"?" before the literal operator -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s1" dynamic="true" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1\s.*$" dynamic="true" column="0" />
+ <IncludeRules context="literal-block-default" />
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s2" dynamic="true" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2&space;\s.*$" dynamic="true" column="0" />
+ <IncludeRules context="literal-block-default" />
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s3" dynamic="true" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3&space;{2}\s.*$" dynamic="true" column="0" />
+ <IncludeRules context="literal-block-default" />
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s4" dynamic="true" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4&space;{3}\s.*$" dynamic="true" column="0" />
+ <IncludeRules context="literal-block-default" />
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s5" dynamic="true" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5&space;{4}\s.*$" dynamic="true" column="0" />
+ <IncludeRules context="literal-block-default" />
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-withdash-s6" dynamic="true" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5%6&space;{5}\s.*$" dynamic="true" column="0" />
+ <IncludeRules context="literal-block-default" />
+ </context>
+ <!-- If there are dashes/"?" and a Key before the literal operator -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s2" dynamic="true" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2&space;\s.*$" dynamic="true" column="0" />
+ <IncludeRules context="literal-block-key-default" />
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s3" dynamic="true" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3&space;{2}\s.*$" dynamic="true" column="0" />
+ <IncludeRules context="literal-block-key-default" />
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s4" dynamic="true" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4&space;{3}\s.*$" dynamic="true" column="0" />
+ <IncludeRules context="literal-block-key-default" />
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s5" dynamic="true" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5&space;{4}\s.*$" dynamic="true" column="0" />
+ <IncludeRules context="literal-block-key-default" />
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s6" dynamic="true" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5%6&space;{5}\s.*$" dynamic="true" column="0" />
+ <IncludeRules context="literal-block-key-default" />
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="literal-block-key-withdash-s7" dynamic="true" noIndentationBasedFolding="true">
+ <RegExpr attribute="Literal/Folded Block" context="#stay" String="^%1%2%3%4%5%6%7&space;{6}\s.*$" dynamic="true" column="0" />
+ <IncludeRules context="literal-block-key-default" />
+ </context>
+ </contexts>
+
+ <itemDatas>
+ <itemData name="Normal Text" defStyleNum="dsAttribute" />
+ <itemData name="Attribute" defStyleNum="dsAttribute" />
+ <itemData name="List" defStyleNum="dsAttribute" />
+ <itemData name="Hash" defStyleNum="dsAttribute" />
+ <itemData name="Comment" defStyleNum="dsComment" />
+ <itemData name="End of Document" defStyleNum="dsComment" />
+ <itemData name="Document Header" defStyleNum="dsPreprocessor" />
+ <itemData name="Data Types" defStyleNum="dsOthers" />
+ <itemData name="Alias" defStyleNum="dsOthers" />
+ <itemData name="Reference" defStyleNum="dsOthers" />
+ <itemData name="Key" defStyleNum="dsFunction" bold="1" />
+ <itemData name="Directive" defStyleNum="dsPreprocessor" />
+ <itemData name="Key Points Operator" defStyleNum="dsKeyword" />
+ <itemData name="Operator" defStyleNum="dsKeyword" />
+ <itemData name="String" defStyleNum="dsString" />
+ <itemData name="Escaped Character" defStyleNum="dsSpecialChar" />
+ <itemData name="Literal/Folded Operator" defStyleNum="dsChar" bold="1" />
+ <itemData name="Literal/Folded Block" defStyleNum="dsNormal" />
+ <itemData name="Null" defStyleNum="dsChar" />
+ <itemData name="Boolean" defStyleNum="dsChar" />
+ <itemData name="Integer" defStyleNum="dsDecVal" />
+ <itemData name="Float" defStyleNum="dsFloat" />
+ <itemData name="Error" defStyleNum="dsError" />
+ <itemData name="Alert" defStyleNum="dsAlert" backgroundColor="#EF9A9A" />
+ </itemDatas>
+ </highlighting>
+
+ <general>
+ <folding indentationsensitive="1" />
+ <emptyLines>
+ <emptyLine regexpr="(?:\s+|\s*#.*)"/>
+ </emptyLines>
+ <comments>
+ <comment name="singleLine" start="#" position="afterwhitespace" />
+ </comments>
+ <keywords casesensitive="1"/>
+ </general>
+</language>
+<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/atom-one-dark.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/atom-one-dark.theme
new file mode 100644
index 0000000000..358c8a5c70
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/atom-one-dark.theme
@@ -0,0 +1,370 @@
+{
+ "custom-styles": {
+ "Diff": {
+ "Added line": {
+ "selected-text-color": "#98c379",
+ "text-color": "#98c379"
+ },
+ "Changed line (new)": {
+ "selected-text-color": "#98c379",
+ "text-color": "#98c379"
+ },
+ "Changed line (old)": {
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ },
+ "Removed line": {
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ }
+ },
+ "Go": {
+ "Predeclared Identifier": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ }
+ },
+ "INI Files": {
+ "Assignment": {
+ "selected-text-color": "#abb2bf",
+ "text-color": "#abb2bf"
+ },
+ "Section": {
+ "selected-text-color": "#56b6c2",
+ "text-color": "#56b6c2"
+ }
+ },
+ "JavaScript": {
+ "Built-in Objects": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ },
+ "Function Declaration": {
+ "selected-text-color": "#56b6c2",
+ "text-color": "#56b6c2"
+ },
+ "Function Name": {
+ "selected-text-color": "#56b6c2",
+ "text-color": "#56b6c2"
+ },
+ "Module": {
+ "selected-text-color": "#c678dd",
+ "text-color": "#c678dd"
+ },
+ "Object Member": {
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ },
+ "Object Method (Built-in)": {
+ "selected-text-color": "#56b6c2",
+ "text-color": "#56b6c2"
+ }
+ },
+ "Markdown": {
+ "Code": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ },
+ "Emphasis Text": {
+ "selected-text-color": "#c678dd",
+ "text-color": "#c678dd"
+ },
+ "Fenced Code": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ },
+ "Header H1": {
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ },
+ "Header H2": {
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ },
+ "Header H3": {
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ },
+ "Header H4": {
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ },
+ "Header H5": {
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ },
+ "Header H6": {
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ },
+ "Link": {
+ "selected-text-color": "#c678dd",
+ "text-color": "#c678dd"
+ },
+ "Reference-Link Name": {
+ "selected-text-color": "#56b6c2",
+ "text-color": "#56b6c2"
+ },
+ "Reference-Link Target": {
+ "selected-text-color": "#56b6c2",
+ "text-color": "#56b6c2"
+ },
+ "Reference-Link Target: Link": {
+ "selected-text-color": "#c678dd",
+ "text-color": "#c678dd"
+ },
+ "Reference-Link: Email": {
+ "selected-text-color": "#c678dd",
+ "text-color": "#c678dd"
+ },
+ "Reference-Link: Link": {
+ "selected-text-color": "#c678dd",
+ "text-color": "#c678dd"
+ },
+ "Strong Text": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ }
+ },
+ "Python": {
+ "Builtin Function": {
+ "selected-text-color": "#56b6c2",
+ "text-color": "#56b6c2"
+ },
+ "String Substitution": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ }
+ },
+ "Rust": {
+ "Lifetime": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ },
+ "Macro": {
+ "selected-text-color": "#56b6c2",
+ "text-color": "#56b6c2"
+ },
+ "Self": {
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ },
+ "Trait": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ },
+ "Type": {
+ "selected-text-color": "#56b6c2",
+ "text-color": "#56b6c2"
+ }
+ },
+ "TypeScript": {
+ "Built-in Objects": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ },
+ "Module": {
+ "selected-text-color": "#c678dd",
+ "text-color": "#c678dd"
+ },
+ "Object Member": {
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ },
+ "Object Method (Built-in)": {
+ "italic": false,
+ "selected-text-color": "#56b6c2",
+ "text-color": "#56b6c2"
+ },
+ "Reserved": {
+ "italic": false
+ },
+ "Types": {
+ "selected-text-color": "#56b6c2",
+ "text-color": "#56b6c2"
+ }
+ },
+ "XML": {
+ "Attribute": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ },
+ "Element": {
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ }
+ }
+ },
+ "editor-colors": {
+ "BackgroundColor": "#282c34",
+ "BracketMatching": "#8e44ad",
+ "CodeFolding": "#363c4a",
+ "CurrentLine": "#0A99BBFF",
+ "CurrentLineNumber": "#abb2bf",
+ "IconBorder": "#282c34",
+ "IndentationLine": "#3a3f44",
+ "LineNumbers": "#636D83",
+ "MarkBookmark": "#0404bf",
+ "MarkBreakpointActive": "#8b0607",
+ "MarkBreakpointDisabled": "#820683",
+ "MarkBreakpointReached": "#6d6e07",
+ "MarkError": "#c24038",
+ "MarkExecution": "#4d4e50",
+ "MarkWarning": "#d19a66",
+ "ModifiedLines": "#e06c75",
+ "ReplaceHighlight": "#a34f56",
+ "SavedLines": "#98c379",
+ "SearchHighlight": "#3D528BFF",
+ "Separator": "#3f4347",
+ "SpellChecking": "#c24038",
+ "TabMarker": "#21252B",
+ "TemplateBackground": "#31363b",
+ "TemplateFocusedPlaceholder": "#123723",
+ "TemplatePlaceholder": "#123723",
+ "TemplateReadOnlyPlaceholder": "#4d1f24",
+ "TextSelection": "#363c4a",
+ "WordWrapMarker": "#3a3f44"
+ },
+ "metadata": {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2016 GitHub Inc.",
+ "SPDX-FileCopyrightText: 2020 Waqar Ahmed <waqar.17a@gmail.com>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "name": "Atom One Dark",
+ "revision": 3
+ },
+ "text-styles": {
+ "Alert": {
+ "background-color": "#4d1f24",
+ "bold": true,
+ "selected-text-color": "#95da4c",
+ "text-color": "#95da4c"
+ },
+ "Annotation": {
+ "selected-text-color": "#98c379",
+ "text-color": "#98c379"
+ },
+ "Attribute": {
+ "selected-text-color": "#c678dd",
+ "text-color": "#c678dd"
+ },
+ "BaseN": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ },
+ "BuiltIn": {
+ "selected-text-color": "#c678dd",
+ "text-color": "#c678dd"
+ },
+ "Char": {
+ "selected-text-color": "#98c379",
+ "text-color": "#98c379"
+ },
+ "Comment": {
+ "italic": true,
+ "selected-text-color": "#5c6370",
+ "text-color": "#5c6370"
+ },
+ "CommentVar": {
+ "italic": true,
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ },
+ "Constant": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ },
+ "ControlFlow": {
+ "selected-text-color": "#c678dd",
+ "text-color": "#c678dd"
+ },
+ "DataType": {
+ "selected-text-color": "#c678dd",
+ "text-color": "#c678dd"
+ },
+ "DecVal": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ },
+ "Documentation": {
+ "selected-text-color": "#da4453",
+ "text-color": "#a43340"
+ },
+ "Error": {
+ "selected-text-color": "#f44747",
+ "text-color": "#f44747",
+ "underline": true
+ },
+ "Extension": {
+ "bold": true,
+ "selected-text-color": "#61afef",
+ "text-color": "#61afef"
+ },
+ "Float": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ },
+ "Function": {
+ "selected-text-color": "#61afef",
+ "text-color": "#61afef"
+ },
+ "Import": {
+ "selected-text-color": "#98c379",
+ "text-color": "#98c379"
+ },
+ "Information": {
+ "selected-text-color": "#e46700",
+ "text-color": "#c45b00"
+ },
+ "Keyword": {
+ "selected-text-color": "#c678dd",
+ "text-color": "#c678dd"
+ },
+ "Normal": {
+ "selected-text-color": "#abb2bf",
+ "text-color": "#abb2bf"
+ },
+ "Operator": {
+ "selected-text-color": "#c678dd",
+ "text-color": "#c678dd"
+ },
+ "Others": {
+ "selected-text-color": "#27ae60",
+ "text-color": "#27ae60"
+ },
+ "Preprocessor": {
+ "selected-text-color": "#c678dd",
+ "text-color": "#c678dd"
+ },
+ "RegionMarker": {
+ "background-color": "#153042",
+ "selected-text-color": "#3daee9",
+ "text-color": "#2980b9"
+ },
+ "SpecialChar": {
+ "selected-text-color": "#56b6c2",
+ "text-color": "#56b6c2"
+ },
+ "SpecialString": {
+ "selected-text-color": "#da4453",
+ "text-color": "#da4453"
+ },
+ "String": {
+ "selected-text-color": "#98c379",
+ "text-color": "#98c379"
+ },
+ "Variable": {
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ },
+ "VerbatimString": {
+ "selected-text-color": "#da4453",
+ "text-color": "#da4453"
+ },
+ "Warning": {
+ "selected-text-color": "#da4453",
+ "text-color": "#da4453"
+ }
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/atom-one-light.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/atom-one-light.theme
new file mode 100644
index 0000000000..62cec7394e
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/atom-one-light.theme
@@ -0,0 +1,377 @@
+{
+ "custom-styles": {
+ "Diff": {
+ "Added line": {
+ "selected-text-color": "#98c379",
+ "text-color": "#98c379"
+ },
+ "Changed line (new)": {
+ "selected-text-color": "#98c379",
+ "text-color": "#98c379"
+ },
+ "Changed line (old)": {
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ },
+ "Removed line": {
+ "selected-text-color": "#e06c75",
+ "text-color": "#e06c75"
+ }
+ },
+ "Go": {
+ "Predeclared Identifier": {
+ "selected-text-color": "#986801",
+ "text-color": "#986801"
+ }
+ },
+ "INI Files": {
+ "Assignment": {
+ "selected-text-color": "#383a42",
+ "text-color": "#383a42"
+ },
+ "Section": {
+ "selected-text-color": "#4078f2",
+ "text-color": "#4078f2"
+ }
+ },
+ "JavaScript": {
+ "Built-in Objects": {
+ "selected-text-color": "#986801",
+ "text-color": "#986801"
+ },
+ "Function Declaration": {
+ "selected-text-color": "#0184bc",
+ "text-color": "#0184bc"
+ },
+ "Function Name": {
+ "selected-text-color": "#0184bc",
+ "text-color": "#0184bc"
+ },
+ "Module": {
+ "selected-text-color": "#a626a4",
+ "text-color": "#a626a4"
+ },
+ "Object Member": {
+ "selected-text-color": "#e45649",
+ "text-color": "#e45649"
+ },
+ "Object Method (Built-in)": {
+ "selected-text-color": "#0184bc",
+ "text-color": "#0184bc"
+ }
+ },
+ "Markdown": {
+ "Code": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ },
+ "Emphasis Text": {
+ "selected-text-color": "#a626a4",
+ "text-color": "#a626a4"
+ },
+ "Fenced Code": {
+ "selected-text-color": "#d19a66",
+ "text-color": "#d19a66"
+ },
+ "Header H1": {
+ "selected-text-color": "#e45649",
+ "text-color": "#e45649"
+ },
+ "Header H2": {
+ "selected-text-color": "#e45649",
+ "text-color": "#e45649"
+ },
+ "Header H3": {
+ "selected-text-color": "#e45649",
+ "text-color": "#e45649"
+ },
+ "Header H4": {
+ "selected-text-color": "#e45649",
+ "text-color": "#e45649"
+ },
+ "Header H5": {
+ "selected-text-color": "#e45649",
+ "text-color": "#e45649"
+ },
+ "Header H6": {
+ "selected-text-color": "#e45649",
+ "text-color": "#e45649"
+ },
+ "Line Break": {
+ "text-color": "#383a42"
+ },
+ "Link": {
+ "selected-text-color": "#a626a4",
+ "text-color": "#a626a4"
+ },
+ "Reference-Link Name": {
+ "selected-text-color": "#4078f2",
+ "text-color": "#4078f2"
+ },
+ "Reference-Link Target": {
+ "selected-text-color": "#4078f2",
+ "text-color": "#4078f2"
+ },
+ "Reference-Link Target: Link": {
+ "selected-text-color": "#a626a4",
+ "text-color": "#a626a4"
+ },
+ "Reference-Link: Email": {
+ "selected-text-color": "#a626a4",
+ "text-color": "#a626a4"
+ },
+ "Reference-Link: Link": {
+ "selected-text-color": "#a626a4",
+ "text-color": "#a626a4"
+ },
+ "Strong Text": {
+ "selected-text-color": "#986801",
+ "text-color": "#986801"
+ }
+ },
+ "Python": {
+ "Builtin Function": {
+ "selected-text-color": "#0184bc",
+ "text-color": "#0184bc"
+ },
+ "Import": {
+ "selected-text-color": "#a626a4",
+ "text-color": "#a626a4"
+ },
+ "String Substitution": {
+ "selected-text-color": "#986801",
+ "text-color": "#986801"
+ }
+ },
+ "Rust": {
+ "Lifetime": {
+ "selected-text-color": "#986801",
+ "text-color": "#986801"
+ },
+ "Macro": {
+ "selected-text-color": "#4078f2",
+ "text-color": "#4078f2"
+ },
+ "Self": {
+ "selected-text-color": "#e45649",
+ "text-color": "#e45649"
+ },
+ "Trait": {
+ "selected-text-color": "#986801",
+ "text-color": "#986801"
+ },
+ "Type": {
+ "selected-text-color": "#0184bc",
+ "text-color": "#0184bc"
+ }
+ },
+ "TypeScript": {
+ "Built-in Objects": {
+ "selected-text-color": "#986801",
+ "text-color": "#986801"
+ },
+ "Module": {
+ "selected-text-color": "#a626a4",
+ "text-color": "#a626a4"
+ },
+ "Object Member": {
+ "selected-text-color": "#e45649",
+ "text-color": "#e45649"
+ },
+ "Object Method (Built-in)": {
+ "italic": false,
+ "selected-text-color": "#0184bc",
+ "text-color": "#0184bc"
+ },
+ "Reserved": {
+ "italic": false
+ },
+ "Types": {
+ "selected-text-color": "#4078f2",
+ "text-color": "#4078f2"
+ }
+ },
+ "XML": {
+ "Attribute": {
+ "selected-text-color": "#986801",
+ "text-color": "#986801"
+ },
+ "Element": {
+ "selected-text-color": "#e45649",
+ "text-color": "#e45649"
+ }
+ }
+ },
+ "editor-colors": {
+ "BackgroundColor": "#fafafa",
+ "BracketMatching": "#ff6e6e",
+ "CodeFolding": "#e5e5e6",
+ "CurrentLine": "#0C383A42",
+ "CurrentLineNumber": "#383a42",
+ "IconBorder": "#fafafa",
+ "IndentationLine": "#626772",
+ "LineNumbers": "#9D9D9F",
+ "MarkBookmark": "#0404bf",
+ "MarkBreakpointActive": "#8b0607",
+ "MarkBreakpointDisabled": "#820683",
+ "MarkBreakpointReached": "#6d6e07",
+ "MarkError": "#c24038",
+ "MarkExecution": "#4d4e50",
+ "MarkWarning": "#ce7c2b",
+ "ModifiedLines": "#e06c75",
+ "ReplaceHighlight": "#ef747e",
+ "SavedLines": "#98c379",
+ "SearchHighlight": "#33526FFF",
+ "Separator": "#a6b0ba",
+ "SpellChecking": "#c24038",
+ "TabMarker": "#8894a6",
+ "TemplateBackground": "#31363b",
+ "TemplateFocusedPlaceholder": "#123723",
+ "TemplatePlaceholder": "#123723",
+ "TemplateReadOnlyPlaceholder": "#4d1f24",
+ "TextSelection": "#e5e5e6",
+ "WordWrapMarker": "#cddff1"
+ },
+ "metadata": {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2016 GitHub Inc.",
+ "SPDX-FileCopyrightText: 2020 Waqar Ahmed <waqar.17a@gmail.com>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "name": "Atom One Light",
+ "revision": 4
+ },
+ "text-styles": {
+ "Alert": {
+ "background-color": "#4d1f24",
+ "bold": true,
+ "selected-text-color": "#95da4c",
+ "text-color": "#95da4c"
+ },
+ "Annotation": {
+ "selected-text-color": "#50a14f",
+ "text-color": "#50a14f"
+ },
+ "Attribute": {
+ "selected-text-color": "#a626a4",
+ "text-color": "#a626a4"
+ },
+ "BaseN": {
+ "selected-text-color": "#986801",
+ "text-color": "#986801"
+ },
+ "BuiltIn": {
+ "selected-text-color": "#a626a4",
+ "text-color": "#a626a4"
+ },
+ "Char": {
+ "selected-text-color": "#50a14f",
+ "text-color": "#50a14f"
+ },
+ "Comment": {
+ "italic": true,
+ "selected-text-color": "#a0a1a7",
+ "text-color": "#a0a1a7"
+ },
+ "CommentVar": {
+ "italic": true,
+ "selected-text-color": "#e45649",
+ "text-color": "#e45649"
+ },
+ "Constant": {
+ "selected-text-color": "#986801",
+ "text-color": "#986801"
+ },
+ "ControlFlow": {
+ "selected-text-color": "#a626a4",
+ "text-color": "#a626a4"
+ },
+ "DataType": {
+ "selected-text-color": "#a626a4",
+ "text-color": "#a626a4"
+ },
+ "DecVal": {
+ "selected-text-color": "#986801",
+ "text-color": "#986801"
+ },
+ "Documentation": {
+ "selected-text-color": "#da4453",
+ "text-color": "#e45649"
+ },
+ "Error": {
+ "selected-text-color": "#f44747",
+ "text-color": "#f44747",
+ "underline": true
+ },
+ "Extension": {
+ "bold": true,
+ "selected-text-color": "#4078f2",
+ "text-color": "#4078f2"
+ },
+ "Float": {
+ "selected-text-color": "#986801",
+ "text-color": "#986801"
+ },
+ "Function": {
+ "selected-text-color": "#4078f2",
+ "text-color": "#4078f2"
+ },
+ "Import": {
+ "selected-text-color": "#50a14f",
+ "text-color": "#50a14f"
+ },
+ "Information": {
+ "selected-text-color": "#e46700",
+ "text-color": "#c45b00"
+ },
+ "Keyword": {
+ "selected-text-color": "#a626a4",
+ "text-color": "#a626a4"
+ },
+ "Normal": {
+ "selected-text-color": "#383a42",
+ "text-color": "#383a42"
+ },
+ "Operator": {
+ "selected-text-color": "#a626a4",
+ "text-color": "#a626a4"
+ },
+ "Others": {
+ "selected-text-color": "#27ae60",
+ "text-color": "#27ae60"
+ },
+ "Preprocessor": {
+ "selected-text-color": "#a626a4",
+ "text-color": "#a626a4"
+ },
+ "RegionMarker": {
+ "background-color": "#153042",
+ "selected-text-color": "#3daee9",
+ "text-color": "#2980b9"
+ },
+ "SpecialChar": {
+ "selected-text-color": "#0184bc",
+ "text-color": "#0184bc"
+ },
+ "SpecialString": {
+ "selected-text-color": "#da4453",
+ "text-color": "#da4453"
+ },
+ "String": {
+ "selected-text-color": "#50a14f",
+ "text-color": "#50a14f"
+ },
+ "Variable": {
+ "selected-text-color": "#e45649",
+ "text-color": "#e45649"
+ },
+ "VerbatimString": {
+ "selected-text-color": "#da4453",
+ "text-color": "#da4453"
+ },
+ "Warning": {
+ "selected-text-color": "#da4453",
+ "text-color": "#da4453"
+ }
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/ayu-dark.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/ayu-dark.theme
new file mode 100644
index 0000000000..fea8def01f
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/ayu-dark.theme
@@ -0,0 +1,205 @@
+{
+ "_comments": [
+ "Last update: Jul 28, 2021 (revision 4)",
+ "This file has been converted from: https://github.com/dempfi/ayu",
+ "Also see: https://github.com/ayu-theme"
+ ],
+ "metadata": {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2016 Ike Ku",
+ "SPDX-FileCopyrightText: 2020 Nibaldo González <nibgonz@gmail.com>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "name": "ayu Dark",
+ "revision": 4
+ },
+ "editor-colors": {
+ "BackgroundColor": "#0a0e14",
+ "BracketMatching": "#1e232d",
+ "CodeFolding": "#121a23",
+ "CurrentLine": "#00010a",
+ "CurrentLineNumber": "#414857",
+ "IconBorder": "#0e1218",
+ "IndentationLine": "#252b35",
+ "LineNumbers": "#323844",
+ "MarkBookmark": "#59c2ff",
+ "MarkBreakpointActive": "#f07178",
+ "MarkBreakpointDisabled": "#ffee99",
+ "MarkBreakpointReached": "#e6b673",
+ "MarkError": "#ff3333",
+ "MarkExecution": "#95e6cb",
+ "MarkWarning": "#c2d94c",
+ "ModifiedLines": "#6994bf",
+ "ReplaceHighlight": "#705728",
+ "SavedLines": "#91b362",
+ "SearchHighlight": "#414857",
+ "Separator": "#151a1e",
+ "SpellChecking": "#d96c75",
+ "TabMarker": "#1d222b",
+ "TemplateBackground": "#030810",
+ "TemplateFocusedPlaceholder": "#3c4250",
+ "TemplatePlaceholder": "#2b303a",
+ "TemplateReadOnlyPlaceholder": "#0d1016",
+ "TextSelection": "#273747",
+ "WordWrapMarker": "#1e222b"
+ },
+ "text-styles": {
+ "Alert": {
+ "background-color": "#2a0f15",
+ "bold": true,
+ "selected-text-color": "#ff3333",
+ "text-color": "#ff3333"
+ },
+ "Annotation": {
+ "selected-text-color": "#e6b673",
+ "text-color": "#e6b673"
+ },
+ "Attribute": {
+ "selected-text-color": "#59c2ff",
+ "text-color": "#59c2ff"
+ },
+ "BaseN": {
+ "selected-text-color": "#e6b450",
+ "text-color": "#e6b450"
+ },
+ "BuiltIn": {
+ "selected-text-color": "#95e6cb",
+ "text-color": "#95e6cb"
+ },
+ "Char": {
+ "selected-text-color": "#95e6cb",
+ "text-color": "#95e6cb"
+ },
+ "Comment": {
+ "italic": true,
+ "selected-text-color": "#626a73",
+ "text-color": "#626a73"
+ },
+ "CommentVar": {
+ "selected-text-color": "#ffee99",
+ "text-color": "#ffee99"
+ },
+ "Constant": {
+ "selected-text-color": "#ffee99",
+ "text-color": "#ffee99"
+ },
+ "ControlFlow": {
+ "bold": true,
+ "selected-text-color": "#ff8f40",
+ "text-color": "#ff8f40"
+ },
+ "DataType": {
+ "selected-text-color": "#ff8f40",
+ "text-color": "#ff8f40"
+ },
+ "DecVal": {
+ "selected-text-color": "#e6b450",
+ "text-color": "#e6b450"
+ },
+ "Documentation": {
+ "selected-text-color": "#626a73",
+ "text-color": "#626a73"
+ },
+ "Error": {
+ "selected-text-color": "#ff3333",
+ "text-color": "#ff3333",
+ "underline": true
+ },
+ "Extension": {
+ "bold": true,
+ "selected-text-color": "#59c2ff",
+ "text-color": "#59c2ff"
+ },
+ "Float": {
+ "selected-text-color": "#e6b450",
+ "text-color": "#e6b450"
+ },
+ "Function": {
+ "selected-text-color": "#ffb454",
+ "text-color": "#ffb454"
+ },
+ "Import": {
+ "selected-text-color": "#c2d94c",
+ "text-color": "#c2d94c"
+ },
+ "Information": {
+ "selected-text-color": "#e6b450",
+ "text-color": "#e6b450"
+ },
+ "Keyword": {
+ "bold": true,
+ "selected-text-color": "#ff8f40",
+ "text-color": "#ff8f40"
+ },
+ "Normal": {
+ "selected-text-color": "#b3b1ad",
+ "text-color": "#b3b1ad"
+ },
+ "Operator": {
+ "selected-text-color": "#f29668",
+ "text-color": "#f29668"
+ },
+ "Others": {
+ "selected-text-color": "#39bae6",
+ "text-color": "#39bae6"
+ },
+ "Preprocessor": {
+ "selected-text-color": "#f07178",
+ "text-color": "#f07178"
+ },
+ "RegionMarker": {
+ "background-color": "#173649",
+ "selected-text-color": "#59c2ff",
+ "text-color": "#59c2ff"
+ },
+ "SpecialChar": {
+ "selected-text-color": "#95e6cb",
+ "text-color": "#95e6cb"
+ },
+ "SpecialString": {
+ "selected-text-color": "#95e6cb",
+ "text-color": "#95e6cb"
+ },
+ "String": {
+ "selected-text-color": "#c2d94c",
+ "text-color": "#c2d94c"
+ },
+ "Variable": {
+ "selected-text-color": "#39bae6",
+ "text-color": "#39bae6"
+ },
+ "VerbatimString": {
+ "selected-text-color": "#99ca44",
+ "text-color": "#99ca44"
+ },
+ "Warning": {
+ "selected-text-color": "#f07178",
+ "text-color": "#f07178"
+ }
+ },
+ "custom-styles": {
+ "XML": {
+ "Attribute": {
+ "selected-text-color": "#ffb454",
+ "text-color": "#ffb454"
+ },
+ "Element": {
+ "selected-text-color": "#39bae6",
+ "text-color": "#39bae6",
+ "bold": false
+ },
+ "Element Symbols": {
+ "selected-text-color": "#307896",
+ "text-color": "#22647d"
+ },
+ "EntityRef": {
+ "selected-text-color": "#95e6cb",
+ "text-color": "#95e6cb"
+ },
+ "PEntityRef": {
+ "selected-text-color": "#95e6cb",
+ "text-color": "#95e6cb"
+ }
+ }
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/ayu-light.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/ayu-light.theme
new file mode 100644
index 0000000000..30e119ed1b
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/ayu-light.theme
@@ -0,0 +1,180 @@
+{
+ "_comments": [
+ "Last update: Jul 28, 2021 (revision 3)",
+ "This file has been converted from: https://github.com/dempfi/ayu",
+ "Also see: https://github.com/ayu-theme"
+ ],
+ "metadata": {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2016 Ike Ku",
+ "SPDX-FileCopyrightText: 2020 Nibaldo González <nibgonz@gmail.com>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "name": "ayu Light",
+ "revision": 3
+ },
+ "editor-colors": {
+ "BackgroundColor": "#fafafa",
+ "BracketMatching": "#d9dbdd",
+ "CodeFolding": "#ffe6dc",
+ "CurrentLine": "#eff0f2",
+ "CurrentLineNumber": "#767676",
+ "IconBorder": "#f3f3f3",
+ "IndentationLine": "#dcdee1",
+ "LineNumbers": "#9f9f9f",
+ "MarkBookmark": "#399ee6",
+ "MarkBreakpointActive": "#f07171",
+ "MarkBreakpointDisabled": "#a37acc",
+ "MarkBreakpointReached": "#e6ba7e",
+ "MarkError": "#f51818",
+ "MarkExecution": "#4cbf99",
+ "MarkWarning": "#86b300",
+ "ModifiedLines": "#709ecc",
+ "ReplaceHighlight": "#b0d4e4",
+ "SavedLines": "#99bf4d",
+ "SearchHighlight": "#fdd1bc",
+ "Separator": "#e0dfdf",
+ "SpellChecking": "#f27983",
+ "TabMarker": "#dcdee1",
+ "TemplateBackground": "#f7f7f7",
+ "TemplateFocusedPlaceholder": "#bec1c6",
+ "TemplatePlaceholder": "#dddfe1",
+ "TemplateReadOnlyPlaceholder": "#ffffff",
+ "TextSelection": "#d1e4f4",
+ "WordWrapMarker": "#e9eaeb"
+ },
+ "text-styles": {
+ "Alert": {
+ "background-color": "#faefef",
+ "bold": true,
+ "selected-text-color": "#f51818",
+ "text-color": "#f51818"
+ },
+ "Annotation": {
+ "selected-text-color": "#e6ba7e",
+ "text-color": "#e6ba7e"
+ },
+ "Attribute": {
+ "selected-text-color": "#399ee6",
+ "text-color": "#399ee6"
+ },
+ "BaseN": {
+ "selected-text-color": "#ff9940",
+ "text-color": "#ff9940"
+ },
+ "BuiltIn": {
+ "selected-text-color": "#4cbf99",
+ "text-color": "#4cbf99"
+ },
+ "Char": {
+ "selected-text-color": "#4cbf99",
+ "text-color": "#4cbf99"
+ },
+ "Comment": {
+ "italic": true,
+ "selected-text-color": "#607880",
+ "text-color": "#607880"
+ },
+ "CommentVar": {
+ "selected-text-color": "#a37acc",
+ "text-color": "#a37acc"
+ },
+ "Constant": {
+ "selected-text-color": "#a37acc",
+ "text-color": "#a37acc"
+ },
+ "ControlFlow": {
+ "bold": true,
+ "selected-text-color": "#fa8d3e",
+ "text-color": "#fa8d3e"
+ },
+ "DataType": {
+ "selected-text-color": "#fa8d3e",
+ "text-color": "#fa8d3e"
+ },
+ "DecVal": {
+ "selected-text-color": "#ff9940",
+ "text-color": "#ff9940"
+ },
+ "Documentation": {
+ "selected-text-color": "#607880",
+ "text-color": "#607880"
+ },
+ "Error": {
+ "selected-text-color": "#f51818",
+ "text-color": "#f51818",
+ "underline": true
+ },
+ "Extension": {
+ "bold": true,
+ "selected-text-color": "#399ee6",
+ "text-color": "#399ee6"
+ },
+ "Float": {
+ "selected-text-color": "#ff9940",
+ "text-color": "#ff9940"
+ },
+ "Function": {
+ "selected-text-color": "#f2ae49",
+ "text-color": "#f2ae49"
+ },
+ "Import": {
+ "selected-text-color": "#86b300",
+ "text-color": "#86b300"
+ },
+ "Information": {
+ "selected-text-color": "#ff9940",
+ "text-color": "#ff9940"
+ },
+ "Keyword": {
+ "bold": true,
+ "selected-text-color": "#fa8d3e",
+ "text-color": "#fa8d3e"
+ },
+ "Normal": {
+ "selected-text-color": "#575f66",
+ "text-color": "#575f66"
+ },
+ "Operator": {
+ "selected-text-color": "#ed9366",
+ "text-color": "#ed9366"
+ },
+ "Others": {
+ "selected-text-color": "#55b4d4",
+ "text-color": "#55b4d4"
+ },
+ "Preprocessor": {
+ "selected-text-color": "#f07171",
+ "text-color": "#f07171"
+ },
+ "RegionMarker": {
+ "background-color": "#ddecf3",
+ "selected-text-color": "#399ee6",
+ "text-color": "#399ee6"
+ },
+ "SpecialChar": {
+ "selected-text-color": "#4cbf99",
+ "text-color": "#4cbf99"
+ },
+ "SpecialString": {
+ "selected-text-color": "#4cbf99",
+ "text-color": "#4cbf99"
+ },
+ "String": {
+ "selected-text-color": "#86b300",
+ "text-color": "#86b300"
+ },
+ "Variable": {
+ "selected-text-color": "#55b4d4",
+ "text-color": "#55b4d4"
+ },
+ "VerbatimString": {
+ "selected-text-color": "#729800",
+ "text-color": "#729800"
+ },
+ "Warning": {
+ "selected-text-color": "#f07171",
+ "text-color": "#f07171"
+ }
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/ayu-mirage.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/ayu-mirage.theme
new file mode 100644
index 0000000000..005d6a0ad2
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/ayu-mirage.theme
@@ -0,0 +1,205 @@
+{
+ "_comments": [
+ "Last update: Jul 28, 2021 (revision 4)",
+ "This file has been converted from: https://github.com/dempfi/ayu",
+ "Also see: https://github.com/ayu-theme"
+ ],
+ "metadata": {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2016 Ike Ku",
+ "SPDX-FileCopyrightText: 2020 Nibaldo González <nibgonz@gmail.com>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "name": "ayu Mirage",
+ "revision": 4
+ },
+ "editor-colors": {
+ "BackgroundColor": "#1f2430",
+ "BracketMatching": "#383e4c",
+ "CodeFolding": "#252c3e",
+ "CurrentLine": "#191e2a",
+ "CurrentLineNumber": "#606979",
+ "IconBorder": "#222733",
+ "IndentationLine": "#383f4c",
+ "LineNumbers": "#444b59",
+ "MarkBookmark": "#73d0ff",
+ "MarkBreakpointActive": "#f28779",
+ "MarkBreakpointDisabled": "#d4bfff",
+ "MarkBreakpointReached": "#ffe6b3",
+ "MarkError": "#ff3333",
+ "MarkExecution": "#95e6cb",
+ "MarkWarning": "#bae67e",
+ "ModifiedLines": "#77a8d9",
+ "ReplaceHighlight": "#7f553b",
+ "SavedLines": "#a6cc70",
+ "SearchHighlight": "#606979",
+ "Separator": "#2c313d",
+ "SpellChecking": "#f27983",
+ "TabMarker": "#303642",
+ "TemplateBackground": "#1d222e",
+ "TemplateFocusedPlaceholder": "#596171",
+ "TemplatePlaceholder": "#434957",
+ "TemplateReadOnlyPlaceholder": "#232834",
+ "TextSelection": "#33415e",
+ "WordWrapMarker": "#303642"
+ },
+ "text-styles": {
+ "Alert": {
+ "background-color": "#332430",
+ "bold": true,
+ "selected-text-color": "#ff3333",
+ "text-color": "#ff3333"
+ },
+ "Annotation": {
+ "selected-text-color": "#ffe6b3",
+ "text-color": "#ffe6b3"
+ },
+ "Attribute": {
+ "selected-text-color": "#73d0ff",
+ "text-color": "#73d0ff"
+ },
+ "BaseN": {
+ "selected-text-color": "#ffcc66",
+ "text-color": "#ffcc66"
+ },
+ "BuiltIn": {
+ "selected-text-color": "#95e6cb",
+ "text-color": "#95e6cb"
+ },
+ "Char": {
+ "selected-text-color": "#95e6cb",
+ "text-color": "#95e6cb"
+ },
+ "Comment": {
+ "italic": true,
+ "selected-text-color": "#5c6773",
+ "text-color": "#5c6773"
+ },
+ "CommentVar": {
+ "selected-text-color": "#d4bfff",
+ "text-color": "#d4bfff"
+ },
+ "Constant": {
+ "selected-text-color": "#d4bfff",
+ "text-color": "#d4bfff"
+ },
+ "ControlFlow": {
+ "bold": true,
+ "selected-text-color": "#ffa759",
+ "text-color": "#ffa759"
+ },
+ "DataType": {
+ "selected-text-color": "#ffa759",
+ "text-color": "#ffa759"
+ },
+ "DecVal": {
+ "selected-text-color": "#ffcc66",
+ "text-color": "#ffcc66"
+ },
+ "Documentation": {
+ "selected-text-color": "#5c6773",
+ "text-color": "#5c6773"
+ },
+ "Error": {
+ "selected-text-color": "#ff3333",
+ "text-color": "#ff3333",
+ "underline": true
+ },
+ "Extension": {
+ "bold": true,
+ "selected-text-color": "#73d0ff",
+ "text-color": "#73d0ff"
+ },
+ "Float": {
+ "selected-text-color": "#ffcc66",
+ "text-color": "#ffcc66"
+ },
+ "Function": {
+ "selected-text-color": "#ffd580",
+ "text-color": "#ffd580"
+ },
+ "Import": {
+ "selected-text-color": "#bae67e",
+ "text-color": "#bae67e"
+ },
+ "Information": {
+ "selected-text-color": "#ffcc66",
+ "text-color": "#ffcc66"
+ },
+ "Keyword": {
+ "bold": true,
+ "selected-text-color": "#ffa759",
+ "text-color": "#ffa759"
+ },
+ "Normal": {
+ "selected-text-color": "#cbccc6",
+ "text-color": "#cbccc6"
+ },
+ "Operator": {
+ "selected-text-color": "#f29e74",
+ "text-color": "#f29e74"
+ },
+ "Others": {
+ "selected-text-color": "#5ccfe6",
+ "text-color": "#5ccfe6"
+ },
+ "Preprocessor": {
+ "selected-text-color": "#f28779",
+ "text-color": "#f28779"
+ },
+ "RegionMarker": {
+ "background-color": "#2a4254",
+ "selected-text-color": "#73d0ff",
+ "text-color": "#73d0ff"
+ },
+ "SpecialChar": {
+ "selected-text-color": "#95e6cb",
+ "text-color": "#95e6cb"
+ },
+ "SpecialString": {
+ "selected-text-color": "#95e6cb",
+ "text-color": "#95e6cb"
+ },
+ "String": {
+ "selected-text-color": "#bae67e",
+ "text-color": "#bae67e"
+ },
+ "Variable": {
+ "selected-text-color": "#5ccfe6",
+ "text-color": "#5ccfe6"
+ },
+ "VerbatimString": {
+ "selected-text-color": "#82e26a",
+ "text-color": "#82e26a"
+ },
+ "Warning": {
+ "selected-text-color": "#f28779",
+ "text-color": "#f28779"
+ }
+ },
+ "custom-styles": {
+ "XML": {
+ "Attribute": {
+ "selected-text-color": "#ffd580",
+ "text-color": "#ffd580"
+ },
+ "Element": {
+ "selected-text-color": "#5ccfe6",
+ "text-color": "#5ccfe6",
+ "bold": false
+ },
+ "Element Symbols": {
+ "selected-text-color": "#4788a2",
+ "text-color": "#3d7a8b"
+ },
+ "EntityRef": {
+ "selected-text-color": "#95e6cb",
+ "text-color": "#95e6cb"
+ },
+ "PEntityRef": {
+ "selected-text-color": "#95e6cb",
+ "text-color": "#95e6cb"
+ }
+ }
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/breeze-dark.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/breeze-dark.theme
index 8147948eeb..1ad7fffee3 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/themes/breeze-dark.theme
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/breeze-dark.theme
@@ -1,6 +1,11 @@
{
"metadata" : {
- "revision" : 2,
+ "copyright": [
+ "SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>",
+ "SPDX-FileCopyrightText: 2016 Dominik Haumann <dhaumann@kde.org>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "revision" : 7,
"name" : "Breeze Dark"
},
"text-styles": {
@@ -31,8 +36,8 @@
"bold" : true
},
"Operator" : {
- "text-color" : "#cfcfc2",
- "selected-text-color" : "#cfcfc2"
+ "text-color" : "#3f8058",
+ "selected-text-color" : "#54aa75"
},
"BuiltIn" : {
"text-color" : "#7f8c8d",
@@ -142,33 +147,33 @@
}
},
"editor-colors": {
- "background-color" : "#232629",
- "code-folding" : "#224e65",
- "bracket-matching" : "#8e44ad",
- "current-line" : "#2A2E32",
- "icon-border" : "#31363b",
- "indentation-line" : "#3a3f44",
- "line-numbers" : "#7a7c7d",
- "current-line-number" : "#a5a6a8",
- "mark-bookmark" : "#0404bf",
- "mark-breakpoint-active" : "#8b0607",
- "mark-breakpoint-reached" : "#6d6e07",
- "mark-breakpoint-disabled" : "#820683",
- "mark-execution" : "#4d4e50",
- "mark-warning" : "#f67400",
- "mark-error" : "#da4453",
- "modified-lines" : "#c04900",
- "replace-highlight" : "#808021",
- "saved-lines" : "#1c8042",
- "search-highlight" : "#218058",
- "selection" : "#2d5c76",
- "separator" : "#7a7c7d",
- "spell-checking" : "#c0392b",
- "tab-marker" : "#4d4d4d",
- "template-background" : "#31363b",
- "template-placeholder" : "#123723",
- "template-focused-placeholder" : "#123723",
- "template-read-only-placeholder" : "#4d1f24",
- "word-wrap-marker" : "#3a3f44"
+ "BackgroundColor" : "#232629",
+ "CodeFolding" : "#224e65",
+ "BracketMatching" : "#8e44ad",
+ "CurrentLine" : "#2A2E32",
+ "IconBorder" : "#31363b",
+ "IndentationLine" : "#3a3f44",
+ "LineNumbers" : "#7a7c7d",
+ "CurrentLineNumber" : "#a5a6a8",
+ "MarkBookmark" : "#0404bf",
+ "MarkBreakpointActive" : "#8b0607",
+ "MarkBreakpointReached" : "#6d6e07",
+ "MarkBreakpointDisabled" : "#820683",
+ "MarkExecution" : "#4d4e50",
+ "MarkWarning" : "#f67400",
+ "MarkError" : "#da4453",
+ "ModifiedLines" : "#c04900",
+ "ReplaceHighlight" : "#808021",
+ "SavedLines" : "#1c8042",
+ "SearchHighlight" : "#218058",
+ "TextSelection" : "#2d5c76",
+ "Separator" : "#3f4347",
+ "SpellChecking" : "#c0392b",
+ "TabMarker" : "#4d4d4d",
+ "TemplateBackground" : "#31363b",
+ "TemplatePlaceholder" : "#123723",
+ "TemplateFocusedPlaceholder" : "#123723",
+ "TemplateReadOnlyPlaceholder" : "#4d1f24",
+ "WordWrapMarker" : "#3a3f44"
}
}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/default.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/breeze-light.theme
index e9c5c838d3..6dee8dd777 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/themes/default.theme
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/breeze-light.theme
@@ -1,7 +1,12 @@
{
"metadata" : {
- "revision" : 3,
- "name" : "Default"
+ "copyright": [
+ "SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>",
+ "SPDX-FileCopyrightText: 2016 Dominik Haumann <dhaumann@kde.org>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "revision" : 9,
+ "name" : "Breeze Light"
},
"text-styles": {
"Normal" : {
@@ -31,8 +36,8 @@
"bold" : true
},
"Operator" : {
- "text-color" : "#1f1c1b",
- "selected-text-color" : "#ffffff"
+ "text-color" : "#ca60ca",
+ "selected-text-color" : "#a44ea4"
},
"BuiltIn" : {
"text-color" : "#644a9b",
@@ -65,7 +70,7 @@
"selected-text-color" : "#9c0e0e"
},
"VerbatimString" : {
- "text-color" : "#bf0303",
+ "text-color" : "#e31616",
"selected-text-color" : "#9c0e0e"
},
"SpecialString" : {
@@ -142,33 +147,33 @@
}
},
"editor-colors": {
- "background-color" : "#ffffff",
- "code-folding" : "#94caef",
- "bracket-matching" : "#ffff00",
- "current-line" : "#f8f7f6",
- "icon-border" : "#f0f0f0",
- "indentation-line" : "#d2d2d2",
- "line-numbers" : "#a0a0a0",
- "current-line-number" : "#1e1e1e",
- "mark-bookmark" : "#0000ff",
- "mark-breakpoint-active" : "#ff0000",
- "mark-breakpoint-reached" : "#ffff00",
- "mark-breakpoint-disabled" : "#ff00ff",
- "mark-execution" : "#a0a0a4",
- "mark-warning" : "#00ff00",
- "mark-error" : "#ff0000",
- "modified-lines" : "#fdbc4b",
- "replace-highlight" : "#00ff00",
- "saved-lines" : "#2ecc71",
- "search-highlight" : "#ffff00",
- "selection" : "#94caef",
- "separator" : "#898887",
- "spell-checking" : "#bf0303",
- "tab-marker" : "#d2d2d2",
- "template-background" : "#d6d2d0",
- "template-placeholder" : "#baf8ce",
- "template-focused-placeholder" : "#76da98",
- "template-read-only-placeholder" : "#f6e6e6",
- "word-wrap-marker" : "#ededed"
+ "BackgroundColor" : "#ffffff",
+ "CodeFolding" : "#94caef",
+ "BracketMatching" : "#ffff00",
+ "CurrentLine" : "#f8f7f6",
+ "IconBorder" : "#f0f0f0",
+ "IndentationLine" : "#d2d2d2",
+ "LineNumbers" : "#a0a0a0",
+ "CurrentLineNumber" : "#1e1e1e",
+ "MarkBookmark" : "#0000ff",
+ "MarkBreakpointActive" : "#ff0000",
+ "MarkBreakpointReached" : "#ffff00",
+ "MarkBreakpointDisabled" : "#ff00ff",
+ "MarkExecution" : "#a0a0a4",
+ "MarkWarning" : "#00ff00",
+ "MarkError" : "#ff0000",
+ "ModifiedLines" : "#fdbc4b",
+ "ReplaceHighlight" : "#00ff00",
+ "SavedLines" : "#2ecc71",
+ "SearchHighlight" : "#ffff00",
+ "TextSelection" : "#94caef",
+ "Separator" : "#d5d5d5",
+ "SpellChecking" : "#bf0303",
+ "TabMarker" : "#d2d2d2",
+ "TemplateBackground" : "#d6d2d0",
+ "TemplatePlaceholder" : "#baf8ce",
+ "TemplateFocusedPlaceholder" : "#76da98",
+ "TemplateReadOnlyPlaceholder" : "#f6e6e6",
+ "WordWrapMarker" : "#ededed"
}
}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/dracula.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/dracula.theme
new file mode 100644
index 0000000000..b388396050
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/dracula.theme
@@ -0,0 +1,705 @@
+{
+ "custom-styles": {
+ "Alerts": {
+ "Region Marker": {
+ "selected-text-color": "#6db8c7",
+ "text-color": "#6db8c7"
+ }
+ },
+ "Apache Configuration": {
+ "Directives": {
+ "bold": false
+ }
+ },
+ "Bash": {
+ "Path": {
+ "selected-text-color": "#f1fa8c",
+ "text-color": "#f1fa8c"
+ },
+ "Redirection": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "Variable": {
+ "selected-text-color": "#bd93f9",
+ "text-color": "#bd93f9"
+ }
+ },
+ "C": {
+ "Prep. Lib": {
+ "selected-text-color": "#f1fa8c",
+ "text-color": "#f1fa8c"
+ }
+ },
+ "C++": {
+ "Qt Macros": {
+ "bold": false,
+ "selected-text-color": "#50fa7b",
+ "text-color": "#50fa7b"
+ }
+ },
+ "CMake": {
+ "Builtin Variable": {
+ "selected-text-color": "#ffb86c",
+ "text-color": "#ffb86c"
+ }
+ },
+ "CSS": {
+ "Color": {
+ "bold": false
+ },
+ "Property": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Selector Class": {
+ "italic": true
+ },
+ "Selector Id": {
+ "bold": false,
+ "selected-text-color": "#50fa7b",
+ "text-color": "#50fa7b"
+ },
+ "Selector Pseudo": {
+ "selected-text-color": "#50fa7b",
+ "text-color": "#50fa7b"
+ },
+ "Selector Tag": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "Unit": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ }
+ },
+ "D": {
+ "Attribute": {
+ "bold": false
+ },
+ "Declarator": {
+ "bold": false
+ },
+ "Deprecated": {
+ "bold": false
+ },
+ "Expression": {
+ "bold": false
+ },
+ "Module": {
+ "bold": false
+ },
+ "Property": {
+ "bold": false
+ },
+ "Template": {
+ "bold": false
+ }
+ },
+ "Diff": {
+ "Added line": {
+ "selected-text-color": "#5fde38",
+ "text-color": "#50fa7b"
+ },
+ "Changed line (new)": {
+ "background-color": "#50fa7b",
+ "selected-text-color": "#5fde38",
+ "text-color": "#50fa7b"
+ },
+ "Changed line (old)": {
+ "selected-text-color": "#e66eb4",
+ "text-color": "#ff79c6"
+ },
+ "Removed line": {
+ "selected-text-color": "#e66eb4",
+ "text-color": "#ff79c6"
+ }
+ },
+ "Doxygen": {
+ "Custom Tags": {
+ "selected-text-color": "#d465a7",
+ "text-color": "#d465a7"
+ },
+ "Description": {
+ "selected-text-color": "#c58e53",
+ "text-color": "#c58e53"
+ },
+ "Entities": {
+ "bold": false
+ },
+ "HTML Tag": {
+ "bold": false,
+ "selected-text-color": "#d465a7",
+ "text-color": "#d465a7"
+ },
+ "Region": {
+ "selected-text-color": "#6db8c7",
+ "text-color": "#6db8c7"
+ },
+ "Tags": {
+ "bold": false,
+ "selected-text-color": "#d465a7",
+ "text-color": "#d465a7"
+ },
+ "Word": {
+ "bold": false,
+ "selected-text-color": "#c58e53",
+ "text-color": "#c58e53"
+ }
+ },
+ "GNU Assembler": {
+ "Label": {
+ "underline": true
+ }
+ },
+ "Go": {
+ "Builtin Function": {
+ "selected-text-color": "#50fa7b",
+ "text-color": "#50fa7b"
+ }
+ },
+ "HTML": {
+ "Doctype": {
+ "bold": false,
+ "italic": false,
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ }
+ },
+ "ISO C++": {
+ "Prep. Lib": {
+ "selected-text-color": "#f1fa8c",
+ "text-color": "#f1fa8c"
+ },
+ "Standard Suffix": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "UDL Numeric Suffix": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "UDL String Suffix": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ }
+ },
+ "Intel x86 (NASM)": {
+ "Label": {
+ "underline": true
+ },
+ "Registers": {
+ "selected-text-color": "#ffb86c",
+ "text-color": "#ffb86c"
+ }
+ },
+ "JSON": {
+ "Style_Keyword": {
+ "selected-text-color": "#bd93f9",
+ "text-color": "#bd93f9"
+ },
+ "Style_String_Key": {
+ "italic": false
+ }
+ },
+ "JavaScript": {
+ "Built-in Objects": {
+ "italic": true
+ },
+ "Function (Built-in)": {
+ "selected-text-color": "#50fa7b",
+ "text-color": "#50fa7b"
+ },
+ "Object Member": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ }
+ },
+ "JavaScript React (JSX)": {
+ "Attribute": {
+ "italic": true
+ },
+ "Component Tag": {
+ "bold": false,
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ }
+ },
+ "Makefile": {
+ "Operator": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "Prereq": {
+ "italic": false,
+ "selected-text-color": "#f1fa8c",
+ "text-color": "#f1fa8c"
+ },
+ "Target": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Variable": {
+ "selected-text-color": "#ffb86c",
+ "text-color": "#ffb86c"
+ }
+ },
+ "Markdown": {
+ "Blockquote: Link": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Email": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Emphasis Text": {
+ "selected-text-color": "#f1fa8c",
+ "text-color": "#f1fa8c"
+ },
+ "Header H1": {
+ "selected-text-color": "#bd93f9",
+ "text-color": "#bd93f9"
+ },
+ "Header H2": {
+ "selected-text-color": "#bd93f9",
+ "text-color": "#bd93f9"
+ },
+ "Header H3": {
+ "selected-text-color": "#bd93f9",
+ "text-color": "#bd93f9"
+ },
+ "Header H4": {
+ "selected-text-color": "#bd93f9",
+ "text-color": "#bd93f9"
+ },
+ "Header H5": {
+ "selected-text-color": "#bd93f9",
+ "text-color": "#bd93f9"
+ },
+ "Header H6": {
+ "selected-text-color": "#bd93f9",
+ "text-color": "#bd93f9"
+ },
+ "Inline Image": {
+ "selected-text-color": "#ffb86c",
+ "text-color": "#ffb86c"
+ },
+ "Inline Image: Link": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Link": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "List: Emphasis Text": {
+ "selected-text-color": "#f1fa8c",
+ "text-color": "#f1fa8c"
+ },
+ "List: Link": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "List: Strong Text": {
+ "selected-text-color": "#ffb86c",
+ "text-color": "#ffb86c"
+ },
+ "Normal Text: Link": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Reference Image": {
+ "selected-text-color": "#ffb86c",
+ "text-color": "#ffb86c"
+ },
+ "Reference-Link": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Reference-Link Name": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6",
+ "underline": false
+ },
+ "Reference-Link Target": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "Reference-Link Target: Link": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Reference-Link: Link": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Strong Text": {
+ "selected-text-color": "#ffb86c",
+ "text-color": "#ffb86c"
+ }
+ },
+ "Modelines": {
+ "Variable": {
+ "selected-text-color": "#c58e53",
+ "text-color": "#c58e53"
+ }
+ },
+ "PHP/PHP": {
+ "Backslash Code": {
+ "bold": false,
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "Control Structures": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "Library Constant": {
+ "bold": false,
+ "selected-text-color": "#bd93f9",
+ "text-color": "#bd93f9"
+ },
+ "Special Variable": {
+ "bold": false,
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ },
+ "Variable": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ }
+ },
+ "Python": {
+ "Builtin Function": {
+ "selected-text-color": "#50fa7b",
+ "text-color": "#50fa7b"
+ },
+ "Special Variable": {
+ "selected-text-color": "#bd93f9",
+ "text-color": "#bd93f9"
+ }
+ },
+ "QMake": {
+ "Backslash Code": {
+ "bold": false
+ },
+ "Predefined Variable": {
+ "bold": false,
+ "selected-text-color": "#ffb86c",
+ "text-color": "#ffb86c"
+ }
+ },
+ "Ruby": {
+ "Access Control": {
+ "bold": false,
+ "selected-text-color": "#50fa7b",
+ "text-color": "#50fa7b"
+ },
+ "Default globals": {
+ "bold": false
+ },
+ "Definition": {
+ "selected-text-color": "#50fa7b",
+ "text-color": "#50fa7b"
+ },
+ "Global Constant": {
+ "bold": false,
+ "italic": true,
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Kernel methods": {
+ "bold": false,
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Message": {
+ "selected-text-color": "#50fa7b",
+ "text-color": "#50fa7b"
+ },
+ "Module mixin methods": {
+ "bold": false
+ },
+ "Pseudo variable": {
+ "selected-text-color": "#50fa7b",
+ "text-color": "#50fa7b"
+ }
+ },
+ "Rust": {
+ "Attribute": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ },
+ "CConstant": {
+ "bold": false
+ },
+ "CType": {
+ "italic": true,
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Constant": {
+ "bold": false
+ },
+ "Definition": {
+ "selected-text-color": "#50fa7b",
+ "text-color": "#50fa7b"
+ },
+ "Lifetime": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "Macro": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Scope": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ },
+ "Self": {
+ "italic": true,
+ "selected-text-color": "#bd93f9",
+ "text-color": "#bd93f9"
+ },
+ "Trait": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ }
+ },
+ "SPDX-Comments": {
+ "SPDX Deprecated License": {
+ "selected-text-color": "#d465a7",
+ "text-color": "#d465a7"
+ },
+ "SPDX Deprecated License Exception": {
+ "selected-text-color": "#d465a7",
+ "text-color": "#d465a7"
+ },
+ "SPDX License": {
+ "selected-text-color": "#d465a7",
+ "text-color": "#d465a7"
+ },
+ "SPDX License Exception": {
+ "selected-text-color": "#d465a7",
+ "text-color": "#d465a7"
+ },
+ "SPDX Tag": {
+ "selected-text-color": "#d465a7",
+ "text-color": "#d465a7"
+ },
+ "SPDX Value": {
+ "selected-text-color": "#d465a7",
+ "text-color": "#d465a7"
+ }
+ },
+ "TypeScript": {
+ "Built-in Objects": {
+ "italic": true
+ },
+ "Function (Built-in)": {
+ "selected-text-color": "#50fa7b",
+ "text-color": "#50fa7b"
+ },
+ "Object Member": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ }
+ },
+ "TypeScript React (TSX)": {
+ "Attribute": {
+ "italic": true
+ },
+ "Component Tag": {
+ "bold": false,
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ }
+ },
+ "YAML": {
+ "Attribute": {
+ "selected-text-color": "#f1fa8c",
+ "text-color": "#f1fa8c"
+ },
+ "Key": {
+ "bold": false,
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "List": {
+ "selected-text-color": "#f1fa8c",
+ "text-color": "#f1fa8c"
+ }
+ }
+ },
+ "editor-colors": {
+ "BackgroundColor": "#282a36",
+ "BracketMatching": "#7c62a5",
+ "CodeFolding": "#44475a",
+ "CurrentLine": "#44475a",
+ "CurrentLineNumber": "#f8f8f2",
+ "IconBorder": "#282a36",
+ "IndentationLine": "#6272a4",
+ "LineNumbers": "#6272a4",
+ "MarkBookmark": "#8be9fd",
+ "MarkBreakpointActive": "#ff5555",
+ "MarkBreakpointDisabled": "#bd93f9",
+ "MarkBreakpointReached": "#f1fa8c",
+ "MarkError": "#ff5555",
+ "MarkExecution": "#44475a",
+ "MarkWarning": "#ffb86c",
+ "ModifiedLines": "#ff79c6",
+ "ReplaceHighlight": "#2c8843",
+ "SavedLines": "#50fa7b",
+ "SearchHighlight": "#566591",
+ "Separator": "#45474e",
+ "SpellChecking": "#ff5555",
+ "TabMarker": "#6272a4",
+ "TemplateBackground": "#282a36",
+ "TemplateFocusedPlaceholder": "#282a36",
+ "TemplatePlaceholder": "#282a36",
+ "TemplateReadOnlyPlaceholder": "#44475a",
+ "TextSelection": "#44475a",
+ "WordWrapMarker": "#282a36"
+ },
+ "metadata": {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2016 Dracula Theme",
+ "SPDX-FileCopyrightText: 2020 Christoph Cullmann <cullmann@kde.org>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "name": "Dracula",
+ "revision": 8
+ },
+ "text-styles": {
+ "Alert": {
+ "bold": true,
+ "selected-text-color": "#ff5555",
+ "text-color": "#ff5555"
+ },
+ "Annotation": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "Attribute": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "BaseN": {
+ "selected-text-color": "#bd93f9",
+ "text-color": "#bd93f9"
+ },
+ "BuiltIn": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Char": {
+ "selected-text-color": "#f1fa8c",
+ "text-color": "#f1fa8c"
+ },
+ "Comment": {
+ "selected-text-color": "#6272a4",
+ "text-color": "#6272a4"
+ },
+ "CommentVar": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Constant": {
+ "bold": true,
+ "selected-text-color": "#bd93f9",
+ "text-color": "#bd93f9"
+ },
+ "ControlFlow": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "DataType": {
+ "italic": true,
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "DecVal": {
+ "selected-text-color": "#bd93f9",
+ "text-color": "#bd93f9"
+ },
+ "Documentation": {
+ "selected-text-color": "#ffb86c",
+ "text-color": "#ffb86c"
+ },
+ "Error": {
+ "selected-text-color": "#ff5555",
+ "text-color": "#ff5555",
+ "underline": true
+ },
+ "Extension": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "Float": {
+ "selected-text-color": "#bd93f9",
+ "text-color": "#bd93f9"
+ },
+ "Function": {
+ "selected-text-color": "#50fa7b",
+ "text-color": "#50fa7b"
+ },
+ "Import": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "Information": {
+ "selected-text-color": "#f1fa8c",
+ "text-color": "#f1fa8c"
+ },
+ "Keyword": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "Normal": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ },
+ "Operator": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ },
+ "Others": {
+ "selected-text-color": "#50fa7b",
+ "text-color": "#50fa7b"
+ },
+ "Preprocessor": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "RegionMarker": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "SpecialChar": {
+ "selected-text-color": "#ff79c6",
+ "text-color": "#ff79c6"
+ },
+ "SpecialString": {
+ "selected-text-color": "#f1fa8c",
+ "text-color": "#f1fa8c"
+ },
+ "String": {
+ "selected-text-color": "#f1fa8c",
+ "text-color": "#f1fa8c"
+ },
+ "Variable": {
+ "selected-text-color": "#8be9fd",
+ "text-color": "#8be9fd"
+ },
+ "VerbatimString": {
+ "selected-text-color": "#d7e60a",
+ "text-color": "#d7e60a"
+ },
+ "Warning": {
+ "selected-text-color": "#ff5555",
+ "text-color": "#ff5555"
+ }
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/falcon.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/falcon.theme
new file mode 100644
index 0000000000..1ebf8c6946
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/falcon.theme
@@ -0,0 +1,184 @@
+{
+ "_comments": [
+ "A theme focused on ergonomics, using the 3 digit Tango color palette"
+ ],
+ "metadata": {
+ "name": "Falcon",
+ "revision": 4,
+ "license": "SPDX-License-Identifier: MIT",
+ "copyright": [ "SPDX-FileCopyrightText: 2021 Alberto Salvia Novella <https://es20490446e.wordpress.com>" ]
+ },
+ "custom-styles": {
+ "Bash": {
+ "Normal Text": {
+ "text-color": "#bbbbbb"
+ }
+ }
+ },
+ "editor-colors": {
+ "BackgroundColor": "#223333",
+ "BracketMatching": "#555555",
+ "CodeFolding": "#224488",
+ "CurrentLine": "#555555",
+ "CurrentLineNumber": "#bbbbbb",
+ "IconBorder": "#223333",
+ "IndentationLine": "#888888",
+ "LineNumbers": "#888888",
+ "MarkBookmark": "#7799cc",
+ "MarkBreakpointActive": "#ffaa33",
+ "MarkBreakpointDisabled": "#aa77aa",
+ "MarkBreakpointReached": "#449900",
+ "MarkError": "#ef2929",
+ "MarkExecution": "#888888",
+ "MarkWarning": "#aa77aa",
+ "ModifiedLines": "#aa0000",
+ "ReplaceHighlight": "#224488",
+ "SavedLines": "#449900",
+ "SearchHighlight": "#224488",
+ "Separator": "#555753",
+ "SpellChecking": "#ef2929",
+ "TabMarker": "#555555",
+ "TemplateBackground": "#223333",
+ "TemplateFocusedPlaceholder": "#23321a",
+ "TemplatePlaceholder": "#23321a",
+ "TemplateReadOnlyPlaceholder": "#451e1a",
+ "TextSelection": "#3366aa",
+ "WordWrapMarker": "#555753"
+ },
+ "text-styles": {
+ "Alert": {
+ "background-color": "#320000",
+ "bold": true,
+ "selected-text-color": "#ffaa33",
+ "text-color": "#ee2222"
+ },
+ "Annotation": {
+ "selected-text-color": "#ddddcc",
+ "text-color": "#aa77aa"
+ },
+ "Attribute": {
+ "selected-text-color": "#ddddcc",
+ "text-color": "#aa77aa"
+ },
+ "BaseN": {
+ "selected-text-color": "#ffee44",
+ "text-color": "#eedd00"
+ },
+ "BuiltIn": {
+ "selected-text-color": "#ddddcc",
+ "text-color": "#7799cc"
+ },
+ "Char": {
+ "selected-text-color": "#ffaa33",
+ "text-color": "#ffaa33"
+ },
+ "Comment": {
+ "selected-text-color": "#eeeeec",
+ "text-color": "#888888"
+ },
+ "CommentVar": {
+ "selected-text-color": "#ddddcc",
+ "text-color": "#aa77aa"
+ },
+ "Constant": {
+ "bold": true,
+ "selected-text-color": "#ffee44",
+ "text-color": "#eedd00"
+ },
+ "ControlFlow": {
+ "bold": true,
+ "selected-text-color": "#ffee44",
+ "text-color": "#eedd00"
+ },
+ "DataType": {
+ "selected-text-color": "#ddddcc",
+ "text-color": "#7799cc"
+ },
+ "DecVal": {
+ "selected-text-color": "#ffee44",
+ "text-color": "#eedd00"
+ },
+ "Documentation": {
+ "selected-text-color": "#eeeeee",
+ "text-color": "#d3d7cf"
+ },
+ "Error": {
+ "selected-text-color": "#ffaa33",
+ "text-color": "#ee2222",
+ "underline": true
+ },
+ "Extension": {
+ "bold": true,
+ "selected-text-color": "#ddddcc",
+ "text-color": "#7799cc"
+ },
+ "Float": {
+ "selected-text-color": "#ffaa33",
+ "text-color": "#ffaa33"
+ },
+ "Function": {
+ "bold": true,
+ "selected-text-color": "#ddddcc",
+ "text-color": "#7799cc"
+ },
+ "Import": {
+ "selected-text-color": "#88ee33",
+ "text-color": "#88ee33"
+ },
+ "Information": {
+ "selected-text-color": "#eeeeee",
+ "text-color": "#ddddcc"
+ },
+ "Keyword": {
+ "bold": true,
+ "selected-text-color": "#ddddcc",
+ "text-color": "#aa77aa"
+ },
+ "Normal": {
+ "selected-text-color": "#eeeeee",
+ "text-color": "#ddddcc"
+ },
+ "Operator": {
+ "selected-text-color": "#ffee44",
+ "text-color": "#eedd00"
+ },
+ "Others": {
+ "selected-text-color": "#ffee44",
+ "text-color": "#eedd00"
+ },
+ "Preprocessor": {
+ "selected-text-color": "#ddddcc",
+ "text-color": "#aa77aa"
+ },
+ "RegionMarker": {
+ "background-color": "#0d1932",
+ "selected-text-color": "#ddddcc",
+ "text-color": "#7799cc"
+ },
+ "SpecialChar": {
+ "selected-text-color": "#ffaa33",
+ "text-color": "#ffaa33"
+ },
+ "SpecialString": {
+ "selected-text-color": "#eeeeee",
+ "text-color": "#ddddcc"
+ },
+ "String": {
+ "selected-text-color": "#eeeeee",
+ "text-color": "#ddddcc"
+ },
+ "Variable": {
+ "bold": true,
+ "selected-text-color": "#ffaa33",
+ "text-color": "#ffaa33"
+ },
+ "VerbatimString": {
+ "selected-text-color": "#ffaa33",
+ "text-color": "#ffaa33"
+ },
+ "Warning": {
+ "selected-text-color": "#ffee44",
+ "text-color": "#eedd00"
+ }
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/github-dark.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/github-dark.theme
new file mode 100644
index 0000000000..a699638532
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/github-dark.theme
@@ -0,0 +1,216 @@
+{
+ "custom-styles": {
+ "INI Files": {
+ "Section": {
+ "selected-text-color": "#b392f0",
+ "text-color": "#b392f0"
+ }
+ },
+ "Python": {
+ "Builtin Function": {
+ "selected-text-color": "#b392f0",
+ "text-color": "#b392f0"
+ },
+ "Import": {
+ "selected-text-color": "#f97583",
+ "text-color": "#f97583"
+ },
+ "Special Variable": {
+ "selected-text-color": "#79b8ff",
+ "text-color": "#79b8ff"
+ }
+ },
+ "Rust": {
+ "Attribute": {
+ "selected-text-color": "#e1e4e8",
+ "text-color": "#e1e4e8"
+ },
+ "Macro": {
+ "selected-text-color": "#79b8ff",
+ "text-color": "#79b8ff"
+ },
+ "Self": {
+ "selected-text-color": "#79b8ff",
+ "text-color": "#79b8ff"
+ },
+ "Trait": {
+ "selected-text-color": "#e1e4e8",
+ "text-color": "#e1e4e8"
+ }
+ },
+ "XML": {
+ "Element": {
+ "selected-text-color": "#85e89d",
+ "text-color": "#85e89d"
+ }
+ }
+ },
+ "editor-colors": {
+ "BackgroundColor": "#24292e",
+ "BracketMatching": "#65676a",
+ "CodeFolding": "#253749",
+ "CurrentLine": "#2b3036",
+ "CurrentLineNumber": "#e1e4e8",
+ "IconBorder": "#24292e",
+ "IndentationLine": "#d7dbe0",
+ "LineNumbers": "#444d56",
+ "MarkBookmark": "#8be9fd",
+ "MarkBreakpointActive": "#ff5555",
+ "MarkBreakpointDisabled": "#bd93f9",
+ "MarkBreakpointReached": "#f1fa8c",
+ "MarkError": "#b31d28",
+ "MarkExecution": "#44475a",
+ "MarkWarning": "#ffab70",
+ "ModifiedLines": "#f97583",
+ "ReplaceHighlight": "#40c661",
+ "SavedLines": "#28a745",
+ "SearchHighlight": "#404030",
+ "Separator": "#1b1f23",
+ "SpellChecking": "#ff5555",
+ "TabMarker": "#444d56",
+ "TemplateBackground": "#23241e",
+ "TemplateFocusedPlaceholder": "#22231d",
+ "TemplatePlaceholder": "#22231d",
+ "TemplateReadOnlyPlaceholder": "#262721",
+ "TextSelection": "#253749",
+ "WordWrapMarker": "#2f3031"
+ },
+ "metadata": {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2020 GitHub Inc.",
+ "SPDX-FileCopyrightText: 2020 Waqar Ahmed <waqar.17a@gmail.com>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "name": "GitHub Dark",
+ "revision": 3
+ },
+ "text-styles": {
+ "Alert": {
+ "bold": true,
+ "selected-text-color": "#ff5555",
+ "text-color": "#ff5555"
+ },
+ "Annotation": {
+ "selected-text-color": "#6a737d",
+ "text-color": "#6a737d"
+ },
+ "Attribute": {
+ "selected-text-color": "#f97583",
+ "text-color": "#f97583"
+ },
+ "BaseN": {
+ "selected-text-color": "#79b8ff",
+ "text-color": "#79b8ff"
+ },
+ "BuiltIn": {
+ "selected-text-color": "#f97583",
+ "text-color": "#f97583"
+ },
+ "Char": {
+ "selected-text-color": "#9ecbff",
+ "text-color": "#9ecbff"
+ },
+ "Comment": {
+ "selected-text-color": "#6a737d",
+ "text-color": "#6a737d"
+ },
+ "CommentVar": {
+ "selected-text-color": "#6a737d",
+ "text-color": "#6a737d"
+ },
+ "Constant": {
+ "selected-text-color": "#79b8ff",
+ "text-color": "#79b8ff"
+ },
+ "ControlFlow": {
+ "selected-text-color": "#f97583",
+ "text-color": "#f97583"
+ },
+ "DataType": {
+ "selected-text-color": "#f97583",
+ "text-color": "#f97583"
+ },
+ "DecVal": {
+ "selected-text-color": "#79b8ff",
+ "text-color": "#79b8ff"
+ },
+ "Documentation": {
+ "selected-text-color": "#6a737d",
+ "text-color": "#6a737d"
+ },
+ "Error": {
+ "selected-text-color": "#ff5555",
+ "text-color": "#ff5555",
+ "underline": true
+ },
+ "Extension": {
+ "bold": true,
+ "selected-text-color": "#f97583",
+ "text-color": "#f97583"
+ },
+ "Float": {
+ "selected-text-color": "#79b8ff",
+ "text-color": "#79b8ff"
+ },
+ "Function": {
+ "selected-text-color": "#b392f0",
+ "text-color": "#b392f0"
+ },
+ "Import": {
+ "selected-text-color": "#9ecbff",
+ "text-color": "#9ecbff"
+ },
+ "Information": {
+ "selected-text-color": "#6a737d",
+ "text-color": "#6a737d"
+ },
+ "Keyword": {
+ "selected-text-color": "#f97583",
+ "text-color": "#f97583"
+ },
+ "Normal": {
+ "selected-text-color": "#e1e4e8",
+ "text-color": "#e1e4e8"
+ },
+ "Operator": {
+ "selected-text-color": "#e1e4e8",
+ "text-color": "#e1e4e8"
+ },
+ "Others": {
+ "selected-text-color": "#b392f0",
+ "text-color": "#b392f0"
+ },
+ "Preprocessor": {
+ "selected-text-color": "#f97583",
+ "text-color": "#f97583"
+ },
+ "RegionMarker": {
+ "selected-text-color": "#6a737d",
+ "text-color": "#6a737d"
+ },
+ "SpecialChar": {
+ "selected-text-color": "#79b8ff",
+ "text-color": "#79b8ff"
+ },
+ "SpecialString": {
+ "selected-text-color": "#9ecbff",
+ "text-color": "#9ecbff"
+ },
+ "String": {
+ "selected-text-color": "#9ecbff",
+ "text-color": "#9ecbff"
+ },
+ "Variable": {
+ "selected-text-color": "#ffab70",
+ "text-color": "#ffab70"
+ },
+ "VerbatimString": {
+ "selected-text-color": "#41a0ff",
+ "text-color": "#41a0ff"
+ },
+ "Warning": {
+ "selected-text-color": "#ff5555",
+ "text-color": "#ff5555"
+ }
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/github-light.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/github-light.theme
new file mode 100644
index 0000000000..ed56418fde
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/github-light.theme
@@ -0,0 +1,216 @@
+{
+ "custom-styles": {
+ "INI Files": {
+ "Section": {
+ "selected-text-color": "#6f42c1",
+ "text-color": "#6f42c1"
+ }
+ },
+ "Python": {
+ "Builtin Function": {
+ "selected-text-color": "#6f42c1",
+ "text-color": "#6f42c1"
+ },
+ "Import": {
+ "selected-text-color": "#d73a49",
+ "text-color": "#d73a49"
+ },
+ "Special Variable": {
+ "selected-text-color": "#005cc5",
+ "text-color": "#005cc5"
+ }
+ },
+ "Rust": {
+ "Attribute": {
+ "selected-text-color": "#24292e",
+ "text-color": "#24292e"
+ },
+ "Macro": {
+ "selected-text-color": "#005cc5",
+ "text-color": "#005cc5"
+ },
+ "Self": {
+ "selected-text-color": "#005cc5",
+ "text-color": "#005cc5"
+ },
+ "Trait": {
+ "selected-text-color": "#24292e",
+ "text-color": "#24292e"
+ }
+ },
+ "XML": {
+ "Element": {
+ "selected-text-color": "#22863a",
+ "text-color": "#22863a"
+ }
+ }
+ },
+ "editor-colors": {
+ "BackgroundColor": "#ffffff",
+ "BracketMatching": "#bef5cb",
+ "CodeFolding": "#f6f8fa",
+ "CurrentLine": "#f6f8fa",
+ "CurrentLineNumber": "#24292e",
+ "IconBorder": "#ffffff",
+ "IndentationLine": "#d7dbe0",
+ "LineNumbers": "#c7c2bc",
+ "MarkBookmark": "#8be9fd",
+ "MarkBreakpointActive": "#ff5555",
+ "MarkBreakpointDisabled": "#bd93f9",
+ "MarkBreakpointReached": "#f1fa8c",
+ "MarkError": "#b31d28",
+ "MarkExecution": "#44475a",
+ "MarkWarning": "#e36209",
+ "ModifiedLines": "#d73a49",
+ "ReplaceHighlight": "#50fa7b",
+ "SavedLines": "#28a745",
+ "SearchHighlight": "#ffea7f",
+ "Separator": "#e1e4e8",
+ "SpellChecking": "#ff5555",
+ "TabMarker": "#d1d5da",
+ "TemplateBackground": "#23241e",
+ "TemplateFocusedPlaceholder": "#22231d",
+ "TemplatePlaceholder": "#22231d",
+ "TemplateReadOnlyPlaceholder": "#262721",
+ "TextSelection": "#dee6fc",
+ "WordWrapMarker": "#e1e4e8"
+ },
+ "metadata": {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2020 GitHub Inc.",
+ "SPDX-FileCopyrightText: 2020 Waqar Ahmed <waqar.17a@gmail.com>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "name": "GitHub Light",
+ "revision": 3
+ },
+ "text-styles": {
+ "Alert": {
+ "bold": true,
+ "selected-text-color": "#ff5555",
+ "text-color": "#ff5555"
+ },
+ "Annotation": {
+ "selected-text-color": "#6a737d",
+ "text-color": "#6a737d"
+ },
+ "Attribute": {
+ "selected-text-color": "#d73a49",
+ "text-color": "#d73a49"
+ },
+ "BaseN": {
+ "selected-text-color": "#005cc5",
+ "text-color": "#005cc5"
+ },
+ "BuiltIn": {
+ "selected-text-color": "#d73a49",
+ "text-color": "#d73a49"
+ },
+ "Char": {
+ "selected-text-color": "#032f62",
+ "text-color": "#032f62"
+ },
+ "Comment": {
+ "selected-text-color": "#6a737d",
+ "text-color": "#6a737d"
+ },
+ "CommentVar": {
+ "selected-text-color": "#6a737d",
+ "text-color": "#6a737d"
+ },
+ "Constant": {
+ "selected-text-color": "#005cc5",
+ "text-color": "#005cc5"
+ },
+ "ControlFlow": {
+ "selected-text-color": "#d73a49",
+ "text-color": "#d73a49"
+ },
+ "DataType": {
+ "selected-text-color": "#d73a49",
+ "text-color": "#d73a49"
+ },
+ "DecVal": {
+ "selected-text-color": "#005cc5",
+ "text-color": "#005cc5"
+ },
+ "Documentation": {
+ "selected-text-color": "#6a737d",
+ "text-color": "#6a737d"
+ },
+ "Error": {
+ "selected-text-color": "#ff5555",
+ "text-color": "#ff5555",
+ "underline": true
+ },
+ "Extension": {
+ "bold": true,
+ "selected-text-color": "#d73a49",
+ "text-color": "#d73a49"
+ },
+ "Float": {
+ "selected-text-color": "#005cc5",
+ "text-color": "#005cc5"
+ },
+ "Function": {
+ "selected-text-color": "#6f42c1",
+ "text-color": "#6f42c1"
+ },
+ "Import": {
+ "selected-text-color": "#032f62",
+ "text-color": "#032f62"
+ },
+ "Information": {
+ "selected-text-color": "#6a737d",
+ "text-color": "#6a737d"
+ },
+ "Keyword": {
+ "selected-text-color": "#d73a49",
+ "text-color": "#d73a49"
+ },
+ "Normal": {
+ "selected-text-color": "#24292e",
+ "text-color": "#24292e"
+ },
+ "Operator": {
+ "selected-text-color": "#24292e",
+ "text-color": "#24292e"
+ },
+ "Others": {
+ "selected-text-color": "#6f42c1",
+ "text-color": "#6f42c1"
+ },
+ "Preprocessor": {
+ "selected-text-color": "#d73a49",
+ "text-color": "#d73a49"
+ },
+ "RegionMarker": {
+ "selected-text-color": "#6a737d",
+ "text-color": "#6a737d"
+ },
+ "SpecialChar": {
+ "selected-text-color": "#005cc5",
+ "text-color": "#005cc5"
+ },
+ "SpecialString": {
+ "selected-text-color": "#032f62",
+ "text-color": "#032f62"
+ },
+ "String": {
+ "selected-text-color": "#032f62",
+ "text-color": "#032f62"
+ },
+ "Variable": {
+ "selected-text-color": "#e36209",
+ "text-color": "#e36209"
+ },
+ "VerbatimString": {
+ "selected-text-color": "#034c95",
+ "text-color": "#034c95"
+ },
+ "Warning": {
+ "selected-text-color": "#ff5555",
+ "text-color": "#ff5555"
+ }
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/gruvbox-dark.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/gruvbox-dark.theme
new file mode 100644
index 0000000000..0e006ab46e
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/gruvbox-dark.theme
@@ -0,0 +1,185 @@
+{
+ "_comments": [
+ "Last update: Jul 28, 2021 (revision 3)",
+ "This file has been converted from: https://github.com/morhetz/gruvbox"
+ ],
+ "metadata" : {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2017 Pavel Pertsev <morhetz@gmail.com>",
+ "SPDX-FileCopyrightText: 2020 Frederik Banning <laubblaeser@live.com>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "name" : "gruvbox Dark",
+ "revision" : 3
+ },
+ "text-styles": {
+ "Normal" : {
+ "text-color" : "#ebdbb2",
+ "selected-text-color" : "#ebdbb2",
+ "bold" : false,
+ "italic" : false,
+ "underline" : false,
+ "strike-through" : false
+ },
+ "Keyword" : {
+ "text-color" : "#ebdbb2",
+ "selected-text-color" : "#ebdbb2",
+ "bold" : true
+ },
+ "Function" : {
+ "text-color" : "#689d6a",
+ "selected-text-color" : "#8ec07c"
+ },
+ "Variable" : {
+ "text-color" : "#458588",
+ "selected-text-color" : "#83a598"
+ },
+ "ControlFlow" : {
+ "text-color" : "#cc241d",
+ "selected-text-color" : "#fb4934",
+ "bold" : true
+ },
+ "Operator" : {
+ "text-color" : "#ebdbb2",
+ "selected-text-color" : "#ebdbb2"
+ },
+ "BuiltIn" : {
+ "text-color" : "#d65d0e",
+ "selected-text-color" : "#fe8019"
+ },
+ "Extension" : {
+ "text-color" : "#689d6a",
+ "selected-text-color" : "#8ec07c",
+ "bold" : true
+ },
+ "Preprocessor" : {
+ "text-color" : "#d65d0e",
+ "selected-text-color" : "#fe8019"
+ },
+ "Attribute" : {
+ "text-color" : "#d79921",
+ "selected-text-color" : "#fabd2f"
+ },
+ "Char" : {
+ "text-color" : "#b16286",
+ "selected-text-color" : "#d3869b"
+ },
+ "SpecialChar" : {
+ "text-color" : "#b16286",
+ "selected-text-color" : "#d3869b"
+ },
+ "String" : {
+ "text-color" : "#98971a",
+ "selected-text-color" : "#b8bb26"
+ },
+ "VerbatimString" : {
+ "text-color" : "#848216",
+ "selected-text-color" : "#b8bb26"
+ },
+ "SpecialString" : {
+ "text-color" : "#98971a",
+ "selected-text-color" : "#b8bb26"
+ },
+ "Import" : {
+ "text-color" : "#689d6a",
+ "selected-text-color" : "#8ec07c"
+ },
+ "DataType" : {
+ "text-color" : "#d79921",
+ "selected-text-color" : "#fabd2f"
+ },
+ "DecVal" : {
+ "text-color" : "#f67400",
+ "selected-text-color" : "#f67400"
+ },
+ "BaseN" : {
+ "text-color" : "#f67400",
+ "selected-text-color" : "#f67400"
+ },
+ "Float" : {
+ "text-color" : "#f67400",
+ "selected-text-color" : "#f67400"
+ },
+ "Constant" : {
+ "text-color" : "#b16286",
+ "selected-text-color" : "#d3869b",
+ "bold" : true
+ },
+ "Comment" : {
+ "text-color" : "#928374",
+ "selected-text-color" : "#a89984"
+ },
+ "Documentation" : {
+ "text-color" : "#98971a",
+ "selected-text-color" : "#b8bb26"
+ },
+ "Annotation" : {
+ "text-color" : "#98971a",
+ "selected-text-color" : "#b8bb26"
+ },
+ "CommentVar" : {
+ "text-color" : "#928374",
+ "selected-text-color" : "#a89984"
+ },
+ "RegionMarker" : {
+ "text-color" : "#928374",
+ "selected-text-color" : "#a89984",
+ "background-color" : "#1d2021"
+ },
+ "Information" : {
+ "text-color" : "#282828",
+ "selected-text-color" : "#282828",
+ "background-color" : "#83a598"
+ },
+ "Warning" : {
+ "text-color" : "#282828",
+ "selected-text-color" : "#282828",
+ "background-color" : "#fabd2f"
+ },
+ "Alert" : {
+ "text-color" : "#282828",
+ "selected-text-color" : "#282828",
+ "background-color" : "#cc241d",
+ "bold" : true
+ },
+ "Error" : {
+ "text-color" : "#cc241d",
+ "selected-text-color" : "#fb4934",
+ "underline" : true
+ },
+ "Others" : {
+ "text-color" : "#689d6a",
+ "selected-text-color" : "#8ec07c"
+ }
+ },
+ "editor-colors": {
+ "BackgroundColor" : "#282828",
+ "CodeFolding" : "#1d2021",
+ "BracketMatching" : "#a89984",
+ "CurrentLine" : "#32302f",
+ "IconBorder" : "#282828",
+ "IndentationLine" : "#504945",
+ "LineNumbers" : "#ebdbb2",
+ "CurrentLineNumber" : "#ebdbb2",
+ "MarkBookmark" : "#458588",
+ "MarkBreakpointActive" : "#cc241d",
+ "MarkBreakpointReached" : "#98971a",
+ "MarkBreakpointDisabled" : "#b16286",
+ "MarkExecution" : "#ebdbb2",
+ "MarkWarning" : "#d65d0e",
+ "MarkError" : "#cc241d",
+ "ModifiedLines" : "#fe8019",
+ "ReplaceHighlight" : "#b8bb26",
+ "SavedLines" : "#689d6a",
+ "SearchHighlight" : "#8ec07c",
+ "TextSelection" : "#504945",
+ "Separator" : "#504945",
+ "SpellChecking" : "#cc241d",
+ "TabMarker" : "#504945",
+ "TemplateBackground" : "#282828",
+ "TemplatePlaceholder" : "#98971a",
+ "TemplateFocusedPlaceholder" : "#b8bb26",
+ "TemplateReadOnlyPlaceholder" : "#fb4934",
+ "WordWrapMarker" : "#a89984"
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/gruvbox-light.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/gruvbox-light.theme
new file mode 100644
index 0000000000..937a43d084
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/gruvbox-light.theme
@@ -0,0 +1,185 @@
+{
+ "_comments": [
+ "Last update: Jul 28, 2021 (revision 3)",
+ "This file has been converted from: https://github.com/morhetz/gruvbox"
+ ],
+ "metadata" : {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2017 Pavel Pertsev <morhetz@gmail.com>",
+ "SPDX-FileCopyrightText: 2020 Frederik Banning <laubblaeser@live.com>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "name" : "gruvbox Light",
+ "revision" : 3
+ },
+ "text-styles": {
+ "Normal" : {
+ "text-color" : "#3c3836",
+ "selected-text-color" : "#3c3836",
+ "bold" : false,
+ "italic" : false,
+ "underline" : false,
+ "strike-through" : false
+ },
+ "Keyword" : {
+ "text-color" : "#3c3836",
+ "selected-text-color" : "#3c3836",
+ "bold" : true
+ },
+ "Function" : {
+ "text-color" : "#689d6a",
+ "selected-text-color" : "#427b58"
+ },
+ "Variable" : {
+ "text-color" : "#458588",
+ "selected-text-color" : "#076678"
+ },
+ "ControlFlow" : {
+ "text-color" : "#cc241d",
+ "selected-text-color" : "#9d0006",
+ "bold" : true
+ },
+ "Operator" : {
+ "text-color" : "#3c3836",
+ "selected-text-color" : "#3c3836"
+ },
+ "BuiltIn" : {
+ "text-color" : "#d65d0e",
+ "selected-text-color" : "#af3a03"
+ },
+ "Extension" : {
+ "text-color" : "#689d6a",
+ "selected-text-color" : "#427b58",
+ "bold" : true
+ },
+ "Preprocessor" : {
+ "text-color" : "#d65d0e",
+ "selected-text-color" : "#af3a03"
+ },
+ "Attribute" : {
+ "text-color" : "#d79921",
+ "selected-text-color" : "#b57614"
+ },
+ "Char" : {
+ "text-color" : "#b16286",
+ "selected-text-color" : "#8f3f71"
+ },
+ "SpecialChar" : {
+ "text-color" : "#b16286",
+ "selected-text-color" : "#8f3f71"
+ },
+ "String" : {
+ "text-color" : "#98971a",
+ "selected-text-color" : "#79740e"
+ },
+ "VerbatimString" : {
+ "text-color" : "#848216",
+ "selected-text-color" : "#79740e"
+ },
+ "SpecialString" : {
+ "text-color" : "#98971a",
+ "selected-text-color" : "#79740e"
+ },
+ "Import" : {
+ "text-color" : "#689d6a",
+ "selected-text-color" : "#427b58"
+ },
+ "DataType" : {
+ "text-color" : "#d79921",
+ "selected-text-color" : "#b57614"
+ },
+ "DecVal" : {
+ "text-color" : "#f67400",
+ "selected-text-color" : "#f67400"
+ },
+ "BaseN" : {
+ "text-color" : "#f67400",
+ "selected-text-color" : "#f67400"
+ },
+ "Float" : {
+ "text-color" : "#f67400",
+ "selected-text-color" : "#f67400"
+ },
+ "Constant" : {
+ "text-color" : "#b16286",
+ "selected-text-color" : "#8f3f71",
+ "bold" : true
+ },
+ "Comment" : {
+ "text-color" : "#928374",
+ "selected-text-color" : "#a89984"
+ },
+ "Documentation" : {
+ "text-color" : "#98971a",
+ "selected-text-color" : "#79740e"
+ },
+ "Annotation" : {
+ "text-color" : "#98971a",
+ "selected-text-color" : "#79740e"
+ },
+ "CommentVar" : {
+ "text-color" : "#928374",
+ "selected-text-color" : "#a89984"
+ },
+ "RegionMarker" : {
+ "text-color" : "#928374",
+ "selected-text-color" : "#a89984",
+ "background-color" : "#f9f5d7"
+ },
+ "Information" : {
+ "text-color" : "#282828",
+ "selected-text-color" : "#282828",
+ "background-color" : "#83a598"
+ },
+ "Warning" : {
+ "text-color" : "#282828",
+ "selected-text-color" : "#282828",
+ "background-color" : "#fabd2f"
+ },
+ "Alert" : {
+ "text-color" : "#282828",
+ "selected-text-color" : "#282828",
+ "background-color" : "#cc241d",
+ "bold" : true
+ },
+ "Error" : {
+ "text-color" : "#cc241d",
+ "selected-text-color" : "#9d0006",
+ "underline" : true
+ },
+ "Others" : {
+ "text-color" : "#689d6a",
+ "selected-text-color" : "#427b58"
+ }
+ },
+ "editor-colors": {
+ "BackgroundColor" : "#fbf1c7",
+ "CodeFolding" : "#f9f5d7",
+ "BracketMatching" : "#a89984",
+ "CurrentLine" : "#f2e5bc",
+ "IconBorder" : "#fbf1c7",
+ "IndentationLine" : "#d5c4a1",
+ "LineNumbers" : "#3c3836",
+ "CurrentLineNumber" : "#3c3836",
+ "MarkBookmark" : "#458588",
+ "MarkBreakpointActive" : "#cc241d",
+ "MarkBreakpointReached" : "#98971a",
+ "MarkBreakpointDisabled" : "#b16286",
+ "MarkExecution" : "#3c3836",
+ "MarkWarning" : "#d65d0e",
+ "MarkError" : "#cc241d",
+ "ModifiedLines" : "#af3a03",
+ "ReplaceHighlight" : "#79740e",
+ "SavedLines" : "#689d6a",
+ "SearchHighlight" : "#427b58",
+ "TextSelection" : "#d5c4a1",
+ "Separator" : "#d5c4a1",
+ "SpellChecking" : "#cc241d",
+ "TabMarker" : "#d5c4a1",
+ "TemplateBackground" : "#fbf1c7",
+ "TemplatePlaceholder" : "#98971a",
+ "TemplateFocusedPlaceholder" : "#79740e",
+ "TemplateReadOnlyPlaceholder" : "#9d0006",
+ "WordWrapMarker" : "#a89984"
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/homunculus.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/homunculus.theme
new file mode 100644
index 0000000000..ab48ead170
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/homunculus.theme
@@ -0,0 +1,177 @@
+{
+ "custom-styles": {
+ "Common Lisp": {
+ "Brackets": {
+ "selected-text-color": "#904200",
+ "text-color": "#005f88"
+ }
+ }
+ },
+ "editor-colors": {
+ "BackgroundColor": "#f7f3f3",
+ "BracketMatching": "#fceae2",
+ "CodeFolding": "#94caef",
+ "CurrentLine": "#daecf7",
+ "CurrentLineNumber": "#1e1e1e",
+ "IconBorder": "#f0f0f0",
+ "IndentationLine": "#d2d2d2",
+ "LineNumbers": "#a0a0a0",
+ "MarkBookmark": "#005275",
+ "MarkBreakpointActive": "#ff0000",
+ "MarkBreakpointDisabled": "#ff00ff",
+ "MarkBreakpointReached": "#ffff00",
+ "MarkError": "#ff0000",
+ "MarkExecution": "#a0a0a4",
+ "MarkWarning": "#00ff00",
+ "ModifiedLines": "#fdbc4b",
+ "ReplaceHighlight": "#25d970",
+ "SavedLines": "#2ecc71",
+ "SearchHighlight": "#e0af82",
+ "Separator": "#d5d5d5",
+ "SpellChecking": "#bf0303",
+ "TabMarker": "#d2d2d2",
+ "TemplateBackground": "#d6d2d0",
+ "TemplateFocusedPlaceholder": "#76da98",
+ "TemplatePlaceholder": "#baf8ce",
+ "TemplateReadOnlyPlaceholder": "#f6e6e6",
+ "TextSelection": "#bcbcbc",
+ "WordWrapMarker": "#ededed"
+ },
+ "metadata": {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2021 shenlebantongying <shenlebantongying@gmail.com>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "name": "Homunculus",
+ "revision": 1
+ },
+ "text-styles": {
+ "Alert": {
+ "background-color": "#f7e6e6",
+ "bold": true,
+ "selected-text-color": "#9c0e0e",
+ "text-color": "#bf0303"
+ },
+ "Annotation": {
+ "selected-text-color": "#000000",
+ "text-color": "#ca60ca"
+ },
+ "Attribute": {
+ "selected-text-color": "#000000",
+ "text-color": "#0057ae"
+ },
+ "BaseN": {
+ "selected-text-color": "#000000",
+ "text-color": "#b08000"
+ },
+ "BuiltIn": {
+ "selected-text-color": "#000000",
+ "text-color": "#644a9b"
+ },
+ "Char": {
+ "selected-text-color": "#000000",
+ "text-color": "#924c9d"
+ },
+ "Comment": {
+ "selected-text-color": "#000000",
+ "text-color": "#505050"
+ },
+ "CommentVar": {
+ "selected-text-color": "#ffffff",
+ "text-color": "#0095ff"
+ },
+ "Constant": {
+ "selected-text-color": "#000000",
+ "text-color": "#aa5500"
+ },
+ "ControlFlow": {
+ "selected-text-color": "#000000",
+ "text-color": "#005f88"
+ },
+ "DataType": {
+ "selected-text-color": "#000000",
+ "text-color": "#0057ae"
+ },
+ "DecVal": {
+ "selected-text-color": "#000000",
+ "text-color": "#b08000"
+ },
+ "Documentation": {
+ "selected-text-color": "#000000",
+ "text-color": "#2a486a"
+ },
+ "Error": {
+ "selected-text-color": "#9c0e0e",
+ "text-color": "#bf0303",
+ "underline": true
+ },
+ "Extension": {
+ "selected-text-color": "#000000",
+ "text-color": "#0095ff"
+ },
+ "Float": {
+ "selected-text-color": "#000000",
+ "text-color": "#b08000"
+ },
+ "Function": {
+ "selected-text-color": "#000000",
+ "text-color": "#721045"
+ },
+ "Import": {
+ "selected-text-color": "#000000",
+ "text-color": "#813e00"
+ },
+ "Information": {
+ "selected-text-color": "#000000",
+ "text-color": "#b08000"
+ },
+ "Keyword": {
+ "selected-text-color": "#000000",
+ "text-color": "#5317ac"
+ },
+ "Normal": {
+ "selected-text-color": "#000000",
+ "text-color": "#303030"
+ },
+ "Operator": {
+ "selected-text-color": "#000000",
+ "text-color": "#b455b4"
+ },
+ "Others": {
+ "selected-text-color": "#000000",
+ "text-color": "#006e28"
+ },
+ "Preprocessor": {
+ "selected-text-color": "#000000",
+ "text-color": "#006e28"
+ },
+ "RegionMarker": {
+ "selected-text-color": "#000000",
+ "text-color": "#0057ae"
+ },
+ "SpecialChar": {
+ "selected-text-color": "#000000",
+ "text-color": "#3daee9"
+ },
+ "SpecialString": {
+ "selected-text-color": "#000000",
+ "text-color": "#854001"
+ },
+ "String": {
+ "selected-text-color": "#000000",
+ "text-color": "#2544bb"
+ },
+ "Variable": {
+ "selected-text-color": "#000000",
+ "text-color": "#0057ae"
+ },
+ "VerbatimString": {
+ "selected-text-color": "#000000",
+ "text-color": "#2544bb"
+ },
+ "Warning": {
+ "selected-text-color": "#9c0e0e",
+ "text-color": "#bf0303"
+ }
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/monokai.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/monokai.theme
new file mode 100644
index 0000000000..e0026ca3b3
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/monokai.theme
@@ -0,0 +1,394 @@
+{
+ "custom-styles": {
+ "C": {
+ "Prep. Lib": {
+ "selected-text-color": "#e6db74",
+ "text-color": "#e6db74"
+ }
+ },
+ "C++": {
+ "Qt Classes": {
+ "bold": false,
+ "selected-text-color": "#66d9ef",
+ "text-color": "#66d9ef"
+ },
+ "Qt Macros": {
+ "bold": false,
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ },
+ "Qt Types": {
+ "bold": false,
+ "selected-text-color": "#66D9EF",
+ "text-color": "#66D9EF"
+ }
+ },
+ "CMake": {
+ "Builtin Variable": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ },
+ "False Special Arg": {
+ "selected-text-color": "#e03232",
+ "text-color": "#e03232"
+ },
+ "True Special Arg": {
+ "selected-text-color": "#38bd38",
+ "text-color": "#38bd38"
+ }
+ },
+ "Doxygen": {
+ "Tags": {
+ "bold": false,
+ "selected-text-color": "#52afbf",
+ "text-color": "#52afbf"
+ },
+ "Word": {
+ "bold": false,
+ "selected-text-color": "#7ba822",
+ "text-color": "#7ba822",
+ "underline": true
+ }
+ },
+ "Diff": {
+ "Added line": {
+ "selected-text-color": "#a6e22e",
+ "text-color": "#a6e22e"
+ },
+ "Changed line (new)": {
+ "selected-text-color": "#a6e22e",
+ "text-color": "#a6e22e"
+ },
+ "Changed line (old)": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ },
+ "Removed line": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ }
+ },
+ "Go": {
+ "Builtin Function": {
+ "selected-text-color": "#a6e22e",
+ "text-color": "#a6e22e"
+ },
+ "Predeclared Identifier": {
+ "selected-text-color": "#ae81ff",
+ "text-color": "#ae81ff"
+ }
+ },
+ "ISO C++": {
+ "Attribute": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ },
+ "Boost Stuff": {
+ "bold": false
+ },
+ "Prep. Lib": {
+ "selected-text-color": "#e6db74",
+ "text-color": "#e6db74"
+ },
+ "Standard Attribute": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ },
+ "Standard Macros": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ },
+ "Standard Suffix": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ },
+ "UDL Numeric Suffix": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ },
+ "UDL String Suffix": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ }
+ },
+ "JSON": {
+ "Style_String_Key": {
+ "italic": false,
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ }
+ },
+ "JavaScript": {
+ "Object Member": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ },
+ "Substitution": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ }
+ },
+ "JavaScript React (JSX)": {
+ "Component Tag": {
+ "bold": false,
+ "selected-text-color": "#66d9ef",
+ "text-color": "#66d9ef"
+ }
+ },
+ "Makefile": {
+ "FuncParam": {
+ "selected-text-color": "#fd971f",
+ "text-color": "#fd971f"
+ },
+ "Target": {
+ "selected-text-color": "#a6e22e",
+ "text-color": "#a6e22e"
+ },
+ "Variable": {
+ "italic": false,
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ }
+ },
+ "Markdown": {
+ "Emphasis Text": {
+ "selected-text-color": "#66D9EF",
+ "text-color": "#66D9EF"
+ },
+ "Reference-Link ID": {
+ "selected-text-color": "#ae81ff",
+ "text-color": "#ae81ff"
+ },
+ "Reference-Link Name": {
+ "selected-text-color": "#ae81ff",
+ "text-color": "#ae81ff"
+ },
+ "Reference-Link Target": {
+ "selected-text-color": "#ae81ff",
+ "text-color": "#ae81ff"
+ },
+ "Strong Text": {
+ "selected-text-color": "#66d9ef",
+ "text-color": "#66d9ef"
+ }
+ },
+ "Python": {
+ "Import": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ }
+ },
+ "Rust": {
+ "Definition": {
+ "selected-text-color": "#a6e22e",
+ "text-color": "#a6e22e"
+ },
+ "Lifetime": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ },
+ "Macro": {
+ "selected-text-color": "#a6e22e",
+ "text-color": "#a6e22e"
+ },
+ "Self": {
+ "selected-text-color": "#fd971f",
+ "text-color": "#fd971f"
+ }
+ },
+ "TypeScript": {
+ "Function (Built-in)": {
+ "selected-text-color": "#a6e22e",
+ "text-color": "#a6e22e"
+ },
+ "Object Member": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ },
+ "Substitution": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ }
+ },
+ "TypeScript React (TSX)": {
+ "Component Tag": {
+ "bold": false,
+ "selected-text-color": "#66d9ef",
+ "text-color": "#66d9ef"
+ },
+ "Substitution": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ }
+ }
+ },
+ "editor-colors": {
+ "BackgroundColor": "#272822",
+ "BracketMatching": "#5b5a4a",
+ "CodeFolding": "#3a3b32",
+ "CurrentLine": "#3e3d32",
+ "CurrentLineNumber": "#d1d931",
+ "IconBorder": "#272822",
+ "IndentationLine": "#6272a4",
+ "LineNumbers": "#909194",
+ "MarkBookmark": "#66D9EF",
+ "MarkBreakpointActive": "#ff5555",
+ "MarkBreakpointDisabled": "#bd93f9",
+ "MarkBreakpointReached": "#f1fa8c",
+ "MarkError": "#ff5555",
+ "MarkExecution": "#44475a",
+ "MarkWarning": "#ffb86c",
+ "ModifiedLines": "#ff473d",
+ "ReplaceHighlight": "#735d16",
+ "SavedLines": "#20e852",
+ "SearchHighlight": "#245676",
+ "Separator": "#45474e",
+ "SpellChecking": "#ff5555",
+ "TabMarker": "#6272a4",
+ "TemplateBackground": "#23241e",
+ "TemplateFocusedPlaceholder": "#22231d",
+ "TemplatePlaceholder": "#22231d",
+ "TemplateReadOnlyPlaceholder": "#262721",
+ "TextSelection": "#3f413e",
+ "WordWrapMarker": "#282a36"
+ },
+ "metadata": {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2006 Wimer Hazenberg",
+ "SPDX-FileCopyrightText: 2020 Waqar Ahmed <waqar.17a@gmail.com>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "name": "Monokai",
+ "revision": 6
+ },
+ "text-styles": {
+ "Alert": {
+ "bold": true,
+ "selected-text-color": "#ff5555",
+ "text-color": "#ff5555"
+ },
+ "Annotation": {
+ "selected-text-color": "#75715e",
+ "text-color": "#75715e"
+ },
+ "Attribute": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ },
+ "BaseN": {
+ "selected-text-color": "#ae81ff",
+ "text-color": "#ae81ff"
+ },
+ "BuiltIn": {
+ "selected-text-color": "#66D9EF",
+ "text-color": "#66D9EF"
+ },
+ "Char": {
+ "selected-text-color": "#e6db74",
+ "text-color": "#e6db74"
+ },
+ "Comment": {
+ "selected-text-color": "#75715e",
+ "text-color": "#75715e"
+ },
+ "CommentVar": {
+ "selected-text-color": "#75715e",
+ "text-color": "#75715e"
+ },
+ "Constant": {
+ "selected-text-color": "#ae81ff",
+ "text-color": "#ae81ff"
+ },
+ "ControlFlow": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ },
+ "DataType": {
+ "italic": true,
+ "selected-text-color": "#66d9ef",
+ "text-color": "#66d9ef"
+ },
+ "DecVal": {
+ "selected-text-color": "#ae81ff",
+ "text-color": "#ae81ff"
+ },
+ "Documentation": {
+ "selected-text-color": "#75715e",
+ "text-color": "#75715e"
+ },
+ "Error": {
+ "selected-text-color": "#ff5555",
+ "text-color": "#ff5555",
+ "underline": true
+ },
+ "Extension": {
+ "bold": true,
+ "selected-text-color": "#a6e22e",
+ "text-color": "#a6e22e"
+ },
+ "Float": {
+ "selected-text-color": "#ae81ff",
+ "text-color": "#ae81ff"
+ },
+ "Function": {
+ "selected-text-color": "#a6e22e",
+ "text-color": "#a6e22e"
+ },
+ "Import": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ },
+ "Information": {
+ "selected-text-color": "#f1fa8c",
+ "text-color": "#f1fa8c"
+ },
+ "Keyword": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ },
+ "Normal": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ },
+ "Operator": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ },
+ "Others": {
+ "selected-text-color": "#a6e22e",
+ "text-color": "#a6e22e"
+ },
+ "Preprocessor": {
+ "selected-text-color": "#f92672",
+ "text-color": "#f92672"
+ },
+ "RegionMarker": {
+ "selected-text-color": "#75715e",
+ "text-color": "#75715e"
+ },
+ "SpecialChar": {
+ "selected-text-color": "#ae81ff",
+ "text-color": "#ae81ff"
+ },
+ "SpecialString": {
+ "selected-text-color": "#e6db74",
+ "text-color": "#e6db74"
+ },
+ "String": {
+ "selected-text-color": "#e6db74",
+ "text-color": "#e6db74"
+ },
+ "Variable": {
+ "selected-text-color": "#f8f8f2",
+ "text-color": "#f8f8f2"
+ },
+ "VerbatimString": {
+ "selected-text-color": "#d8c72c",
+ "text-color": "#d8c72c"
+ },
+ "Warning": {
+ "selected-text-color": "#ff5555",
+ "text-color": "#ff5555"
+ }
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/nord.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/nord.theme
new file mode 100644
index 0000000000..dbe44d9b09
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/nord.theme
@@ -0,0 +1,181 @@
+{
+ "_comments": [
+ "Last update: Jul 28, 2020 (revision 3)",
+ "This theme has been adapted from: https://www.nordtheme.com"
+ ],
+ "metadata": {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2016 Arctic Ice Studio <development@arcticicestudio.com>",
+ "SPDX-FileCopyrightText: 2016 Sven Greb <development@svengreb.de>",
+ "SPDX-FileCopyrightText: 2020 Nibaldo González <nibgonz@gmail.com>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "name": "Nord",
+ "revision": 3
+ },
+ "editor-colors": {
+ "BackgroundColor": "#2e3440",
+ "BracketMatching": "#4c566a",
+ "CodeFolding": "#434c5e",
+ "CurrentLine": "#3b4252",
+ "CurrentLineNumber": "#616e88",
+ "IconBorder": "#2e3440",
+ "IndentationLine": "#434c5e",
+ "LineNumbers": "#4c566a",
+ "MarkBookmark": "#55749a",
+ "MarkBreakpointActive": "#79aab9",
+ "MarkBreakpointDisabled": "#b48ead",
+ "MarkBreakpointReached": "#91a97e",
+ "MarkError": "#a95862",
+ "MarkExecution": "#4c566a",
+ "MarkWarning": "#d0b47d",
+ "ModifiedLines": "#ebcb8b",
+ "ReplaceHighlight": "#8e6057",
+ "SavedLines": "#a3be8c",
+ "SearchHighlight": "#5f8491",
+ "Separator": "#3b4252",
+ "SpellChecking": "#bf616a",
+ "TabMarker": "#3e4656",
+ "TemplateBackground": "#3b4252",
+ "TemplateFocusedPlaceholder": "#81a1c1",
+ "TemplatePlaceholder": "#5e81ac",
+ "TemplateReadOnlyPlaceholder": "#4c566a",
+ "TextSelection": "#4c566a",
+ "WordWrapMarker": "#3f4859"
+ },
+ "text-styles": {
+ "Alert": {
+ "background-color": "#3b4252",
+ "bold": true,
+ "selected-text-color": "#bf616a",
+ "text-color": "#bf616a"
+ },
+ "Annotation": {
+ "selected-text-color": "#d08770",
+ "text-color": "#d08770"
+ },
+ "Attribute": {
+ "selected-text-color": "#8fbcbb",
+ "text-color": "#8fbcbb"
+ },
+ "BaseN": {
+ "selected-text-color": "#b48ead",
+ "text-color": "#b48ead"
+ },
+ "BuiltIn": {
+ "italic": true,
+ "selected-text-color": "#88c0d0",
+ "text-color": "#88c0d0"
+ },
+ "Char": {
+ "selected-text-color": "#ebcb8b",
+ "text-color": "#ebcb8b"
+ },
+ "Comment": {
+ "selected-text-color": "#616e88",
+ "text-color": "#616e88"
+ },
+ "CommentVar": {
+ "selected-text-color": "#e5e9f0",
+ "text-color": "#e5e9f0"
+ },
+ "Constant": {
+ "bold": true,
+ "selected-text-color": "#eceff4",
+ "text-color": "#eceff4"
+ },
+ "ControlFlow": {
+ "bold": true,
+ "selected-text-color": "#81a1c1",
+ "text-color": "#81a1c1"
+ },
+ "DataType": {
+ "selected-text-color": "#81a1c1",
+ "text-color": "#81a1c1"
+ },
+ "DecVal": {
+ "selected-text-color": "#b48ead",
+ "text-color": "#b48ead"
+ },
+ "Documentation": {
+ "selected-text-color": "#5e81ac",
+ "text-color": "#5e81ac"
+ },
+ "Error": {
+ "selected-text-color": "#bf616a",
+ "text-color": "#bf616a",
+ "underline": true
+ },
+ "Extension": {
+ "bold": true,
+ "selected-text-color": "#8fbcbb",
+ "text-color": "#8fbcbb"
+ },
+ "Float": {
+ "selected-text-color": "#b48ead",
+ "text-color": "#b48ead"
+ },
+ "Function": {
+ "selected-text-color": "#88c0d0",
+ "text-color": "#88c0d0"
+ },
+ "Import": {
+ "selected-text-color": "#a3be8c",
+ "text-color": "#a3be8c"
+ },
+ "Information": {
+ "selected-text-color": "#ebcb8b",
+ "text-color": "#ebcb8b"
+ },
+ "Keyword": {
+ "bold": true,
+ "selected-text-color": "#81a1c1",
+ "text-color": "#81a1c1"
+ },
+ "Normal": {
+ "selected-text-color": "#d8dee9",
+ "text-color": "#d8dee9"
+ },
+ "Operator": {
+ "selected-text-color": "#81a1c1",
+ "text-color": "#81a1c1"
+ },
+ "Others": {
+ "selected-text-color": "#8fbcbb",
+ "text-color": "#8fbcbb"
+ },
+ "Preprocessor": {
+ "selected-text-color": "#5e81ac",
+ "text-color": "#5e81ac"
+ },
+ "RegionMarker": {
+ "background-color": "#3b4252",
+ "selected-text-color": "#88c0d0",
+ "text-color": "#88c0d0"
+ },
+ "SpecialChar": {
+ "selected-text-color": "#ebcb8b",
+ "text-color": "#ebcb8b"
+ },
+ "SpecialString": {
+ "selected-text-color": "#d08770",
+ "text-color": "#d08770"
+ },
+ "String": {
+ "selected-text-color": "#a3be8c",
+ "text-color": "#a3be8c"
+ },
+ "Variable": {
+ "selected-text-color": "#5e81ac",
+ "text-color": "#5e81ac"
+ },
+ "VerbatimString": {
+ "selected-text-color": "#8dae70",
+ "text-color": "#8dae70"
+ },
+ "Warning": {
+ "selected-text-color": "#bf616a",
+ "text-color": "#bf616a"
+ }
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/oblivion.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/oblivion.theme
new file mode 100644
index 0000000000..87dac8a5d3
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/oblivion.theme
@@ -0,0 +1,179 @@
+{
+ "_comments": [
+ "This theme has been adapted from the GtkSourceView Oblivion theme"
+ ],
+ "metadata": {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2007 Paolo Borelli <pborelli@gnome.org>, GtkSourceView team",
+ "SPDX-FileCopyrightText: 2020 Alexander Schlarb <alexander@ninetailed.ninja>"
+ ],
+ "name": "Oblivion",
+ "revision": 2,
+ "license": "SPDX-License-Identifier: MIT"
+ },
+ "text-styles": {
+ "Alert": {
+ "background-color": "#451e1a",
+ "bold": true,
+ "selected-text-color": "#e85848",
+ "text-color": "#e85848"
+ },
+ "Annotation": {
+ "selected-text-color": "#ad7fa8",
+ "text-color": "#ad7fa8"
+ },
+ "Attribute": {
+ "selected-text-color": "#ad7fa8",
+ "text-color": "#ad7fa8"
+ },
+ "BaseN": {
+ "selected-text-color": "#fce94f",
+ "text-color": "#edd400"
+ },
+ "BuiltIn": {
+ "selected-text-color": "#729fcf",
+ "text-color": "#729fcf"
+ },
+ "Char": {
+ "selected-text-color": "#fcaf3e",
+ "text-color": "#ce5c00"
+ },
+ "Comment": {
+ "selected-text-color": "#8ae234",
+ "text-color": "#30a100"
+ },
+ "CommentVar": {
+ "selected-text-color": "#ad7fa8",
+ "text-color": "#ad7fa8"
+ },
+ "Constant": {
+ "bold": true,
+ "selected-text-color": "#ffffff",
+ "text-color": "#edd400"
+ },
+ "ControlFlow": {
+ "bold": true,
+ "selected-text-color": "#ffffff",
+ "text-color": "#ffffff"
+ },
+ "DataType": {
+ "selected-text-color": "#508ed8",
+ "text-color": "#508ed8"
+ },
+ "DecVal": {
+ "selected-text-color": "#fce94f",
+ "text-color": "#edd400"
+ },
+ "Documentation": {
+ "selected-text-color": "#8ae234",
+ "text-color": "#4e9a06"
+ },
+ "Error": {
+ "selected-text-color": "#e85848",
+ "text-color": "#e85848",
+ "underline": true
+ },
+ "Extension": {
+ "bold": true,
+ "selected-text-color": "#508ed8",
+ "text-color": "#508ed8"
+ },
+ "Float": {
+ "selected-text-color": "#fcaf3e",
+ "text-color": "#ce5c00"
+ },
+ "Function": {
+ "bold": true,
+ "selected-text-color": "#729fcf",
+ "text-color": "#729fcf"
+ },
+ "Import": {
+ "selected-text-color": "#ad7fa8",
+ "text-color": "#ad7fa8"
+ },
+ "Information": {
+ "selected-text-color": "#c0a25f",
+ "text-color": "#c0a25f"
+ },
+ "Keyword": {
+ "bold": true,
+ "selected-text-color": "#ffffff",
+ "text-color": "#ffffff"
+ },
+ "Normal": {
+ "selected-text-color": "#eeeeec",
+ "text-color": "#d3d7c1"
+ },
+ "Operator": {
+ "selected-text-color": "#eeeeec",
+ "text-color": "#eeeeec"
+ },
+ "Others": {
+ "selected-text-color": "#fce94f",
+ "text-color": "#edd400"
+ },
+ "Preprocessor": {
+ "selected-text-color": "#ad7fa8",
+ "text-color": "#ad7fa8"
+ },
+ "RegionMarker": {
+ "background-color": "#1c2c3f",
+ "selected-text-color": "#508ed8",
+ "text-color": "#508ed8"
+ },
+ "SpecialChar": {
+ "selected-text-color": "#fcaf3e",
+ "text-color": "#ce5c00"
+ },
+ "SpecialString": {
+ "selected-text-color": "#fce94f",
+ "text-color": "#fce94f"
+ },
+ "String": {
+ "selected-text-color": "#fce94f",
+ "text-color": "#edd400"
+ },
+ "Variable": {
+ "selected-text-color": "#ce5c00",
+ "text-color": "#ce5c00"
+ },
+ "VerbatimString": {
+ "selected-text-color": "#fce94f",
+ "text-color": "#c4a000"
+ },
+ "Warning": {
+ "selected-text-color": "#e85848",
+ "text-color": "#e85848"
+ }
+ },
+ "editor-colors": {
+ "BackgroundColor": "#201f1f",
+ "BracketMatching": "#8f5902",
+ "CodeFolding": "#19395f",
+ "CurrentLine": "#2e3436",
+ "CurrentLineNumber": "#ffffff",
+ "IconBorder": "#302f2f",
+ "IndentationLine": "#989595",
+ "LineNumbers": "#e0dedb",
+ "MarkBookmark": "#0000cc",
+ "MarkBreakpointActive": "#cc0000",
+ "MarkBreakpointDisabled": "#cc00cc",
+ "MarkBreakpointReached": "#00cc00",
+ "MarkError": "#cc0000",
+ "MarkExecution": "#888a85",
+ "MarkWarning": "#ad7fa8",
+ "ModifiedLines": "#cc0000",
+ "ReplaceHighlight": "#356703",
+ "SavedLines": "#4e9a06",
+ "SearchHighlight": "#4e9a06",
+ "Separator": "#787775",
+ "SpellChecking": "#e85848",
+ "TabMarker": "#555753",
+ "TemplateBackground": "#302f2f",
+ "TemplateFocusedPlaceholder": "#23321a",
+ "TemplatePlaceholder": "#23321a",
+ "TemplateReadOnlyPlaceholder": "#451e1a",
+ "TextSelection": "#184880",
+ "WordWrapMarker": "#3c3a3a"
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/printing.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/printing.theme
index a6048ed01a..49bbe6419f 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/themes/printing.theme
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/printing.theme
@@ -1,6 +1,11 @@
{
"metadata" : {
- "revision" : 3,
+ "copyright": [
+ "SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>",
+ "SPDX-FileCopyrightText: 2016 Dominik Haumann <dhaumann@kde.org>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "revision" : 5,
"name" : "Printing"
},
"text-styles": {
@@ -64,7 +69,7 @@
"selected-text-color" : "#9c0e0e"
},
"VerbatimString" : {
- "text-color" : "#bf0303",
+ "text-color" : "#ea0404",
"selected-text-color" : "#9c0e0e"
},
"SpecialString" : {
@@ -141,33 +146,33 @@
}
},
"editor-colors": {
- "background-color" : "#ffffff",
- "code-folding" : "#94caef",
- "bracket-matching" : "#edf9ff",
- "current-line" : "#f8f7f6",
- "icon-border" : "#d6d2d0",
- "indentation-line" : "#d2d2d2",
- "line-numbers" : "#221f1e",
- "current-line-number" : "#221f1e",
- "mark-bookmark" : "#0000ff",
- "mark-breakpoint-active" : "#ff0000",
- "mark-breakpoint-reached" : "#ffff00",
- "mark-breakpoint-disabled" : "#ff00ff",
- "mark-execution" : "#a0a0a4",
- "mark-warning" : "#00ff00",
- "mark-error" : "#ff0000",
- "modified-lines" : "#f6e6e6",
- "replace-highlight" : "#00ff00",
- "saved-lines" : "#baf8ce",
- "search-highlight" : "#ffff00",
- "selection" : "#94caef",
- "separator" : "#898887",
- "spell-checking" : "#bf0303",
- "tab-marker" : "#d2d2d2",
- "template-background" : "#d6d2d0",
- "template-placeholder" : "#baf8ce",
- "template-focused-placeholder" : "#76da98",
- "template-read-only-placeholder" : "#f6e6e6",
- "word-wrap-marker" : "#ededed"
+ "BackgroundColor" : "#ffffff",
+ "CodeFolding" : "#94caef",
+ "BracketMatching" : "#edf9ff",
+ "CurrentLine" : "#f8f7f6",
+ "IconBorder" : "#d6d2d0",
+ "IndentationLine" : "#d2d2d2",
+ "LineNumbers" : "#221f1e",
+ "CurrentLineNumber" : "#221f1e",
+ "MarkBookmark" : "#0000ff",
+ "MarkBreakpointActive" : "#ff0000",
+ "MarkBreakpointReached" : "#ffff00",
+ "MarkBreakpointDisabled" : "#ff00ff",
+ "MarkExecution" : "#a0a0a4",
+ "MarkWarning" : "#00ff00",
+ "MarkError" : "#ff0000",
+ "ModifiedLines" : "#f6e6e6",
+ "ReplaceHighlight" : "#00ff00",
+ "SavedLines" : "#baf8ce",
+ "SearchHighlight" : "#ffff00",
+ "TextSelection" : "#94caef",
+ "Separator" : "#221f1e",
+ "SpellChecking" : "#bf0303",
+ "TabMarker" : "#d2d2d2",
+ "TemplateBackground" : "#d6d2d0",
+ "TemplatePlaceholder" : "#baf8ce",
+ "TemplateFocusedPlaceholder" : "#76da98",
+ "TemplateReadOnlyPlaceholder" : "#f6e6e6",
+ "WordWrapMarker" : "#ededed"
}
}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/radical.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/radical.theme
new file mode 100644
index 0000000000..ec0eb8ca9f
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/radical.theme
@@ -0,0 +1,182 @@
+{
+ "_comments": [
+ "Last update: Sep 23, 2020 (revision 2)",
+ "This file has been converted from: https://github.com/dhedgecock/radical-vscode"
+ ],
+ "metadata": {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2018 Dan Hedgecock",
+ "SPDX-FileCopyrightText: 2020 Nibaldo González <nibgonz@gmail.com>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "name": "Radical",
+ "revision": 2
+ },
+ "editor-colors": {
+ "BackgroundColor": "#141322",
+ "BracketMatching": "#4f2e93",
+ "CodeFolding": "#1e1836",
+ "CurrentLine": "#231630",
+ "CurrentLineNumber": "#d0fff4",
+ "IconBorder": "#141322",
+ "IndentationLine": "#353541",
+ "LineNumbers": "#415e6c",
+ "MarkBookmark": "#391ab5",
+ "MarkBreakpointActive": "#fa61b8",
+ "MarkBreakpointDisabled": "#83fee8",
+ "MarkBreakpointReached": "#fffc7e",
+ "MarkError": "#fc0065",
+ "MarkExecution": "#c8ff00",
+ "MarkWarning": "#ffd000",
+ "ModifiedLines": "#a3ff57",
+ "ReplaceHighlight": "#ffb000",
+ "SavedLines": "#ffb000",
+ "SearchHighlight": "#642581",
+ "Separator": "#252531",
+ "SpellChecking": "#ff1767",
+ "TabMarker": "#2e2e3a",
+ "TemplateBackground": "#1c1a30",
+ "TemplateFocusedPlaceholder": "#ff428e",
+ "TemplatePlaceholder": "#242560",
+ "TemplateReadOnlyPlaceholder": "#1a1b46",
+ "TextSelection": "#4f2e93",
+ "WordWrapMarker": "#100f1a"
+ },
+ "text-styles": {
+ "Alert": {
+ "background-color": "#2f183b",
+ "bold": true,
+ "selected-text-color": "#ff427b",
+ "text-color": "#ff427b"
+ },
+ "Annotation": {
+ "selected-text-color": "#fda8bc",
+ "text-color": "#fda8bc"
+ },
+ "Attribute": {
+ "selected-text-color": "#5af5f0",
+ "text-color": "#5af5f0"
+ },
+ "BaseN": {
+ "selected-text-color": "#f834bb",
+ "text-color": "#f834bb"
+ },
+ "BuiltIn": {
+ "selected-text-color": "#999ee1",
+ "text-color": "#999ee1"
+ },
+ "Char": {
+ "selected-text-color": "#dff959",
+ "text-color": "#dff959"
+ },
+ "Comment": {
+ "italic": true,
+ "selected-text-color": "#45898c",
+ "text-color": "#45898c"
+ },
+ "CommentVar": {
+ "selected-text-color": "#a8c0c2",
+ "text-color": "#a8c0c2"
+ },
+ "Constant": {
+ "bold": true,
+ "selected-text-color": "#fa61b8",
+ "text-color": "#fa61b8"
+ },
+ "ControlFlow": {
+ "bold": true,
+ "selected-text-color": "#d5358f",
+ "text-color": "#d5358f"
+ },
+ "DataType": {
+ "selected-text-color": "#ff85a1",
+ "text-color": "#ff85a1"
+ },
+ "DecVal": {
+ "selected-text-color": "#fa61b8",
+ "text-color": "#fa61b8"
+ },
+ "Documentation": {
+ "selected-text-color": "#75b7bb",
+ "text-color": "#75b7bb"
+ },
+ "Error": {
+ "bold": true,
+ "italic": true,
+ "selected-text-color": "#ff427b",
+ "text-color": "#ff427b",
+ "underline": true
+ },
+ "Extension": {
+ "bold": true,
+ "selected-text-color": "#a8ffdb",
+ "text-color": "#a8ffdb"
+ },
+ "Float": {
+ "selected-text-color": "#f834bb",
+ "text-color": "#f834bb"
+ },
+ "Function": {
+ "selected-text-color": "#a9fef7",
+ "text-color": "#a9fef7"
+ },
+ "Import": {
+ "selected-text-color": "#a9fef7",
+ "text-color": "#a9fef7"
+ },
+ "Information": {
+ "selected-text-color": "#ffd000",
+ "text-color": "#ffd000"
+ },
+ "Keyword": {
+ "bold": true,
+ "selected-text-color": "#d5358f",
+ "text-color": "#d5358f"
+ },
+ "Normal": {
+ "selected-text-color": "#7c9c9e",
+ "text-color": "#7c9c9e"
+ },
+ "Operator": {
+ "selected-text-color": "#d5358f",
+ "text-color": "#d5358f"
+ },
+ "Others": {
+ "selected-text-color": "#5effbd",
+ "text-color": "#5effbd"
+ },
+ "Preprocessor": {
+ "selected-text-color": "#d5358f",
+ "text-color": "#d5358f"
+ },
+ "RegionMarker": {
+ "background-color": "#242560",
+ "selected-text-color": "#baf7fc",
+ "text-color": "#baf7fc"
+ },
+ "SpecialChar": {
+ "selected-text-color": "#c3f920",
+ "text-color": "#c3f920"
+ },
+ "SpecialString": {
+ "selected-text-color": "#ff96aa",
+ "text-color": "#ff96aa"
+ },
+ "String": {
+ "selected-text-color": "#a9fef7",
+ "text-color": "#a9fef7"
+ },
+ "Variable": {
+ "selected-text-color": "#c7e3ee",
+ "text-color": "#c7e3ee"
+ },
+ "VerbatimString": {
+ "selected-text-color": "#a8ffdb",
+ "text-color": "#a8ffdb"
+ },
+ "Warning": {
+ "selected-text-color": "#ff427b",
+ "text-color": "#ff427b"
+ }
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/solarized-dark.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/solarized-dark.theme
index 42a6eacbe8..1fe48bacd0 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/themes/solarized-dark.theme
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/solarized-dark.theme
@@ -1,6 +1,15 @@
{
+ "_comments": [
+ "This theme has been adapted from: https://ethanschoonover.com/solarized/"
+ ],
"metadata" : {
- "revision" : 1,
+ "copyright": [
+ "SPDX-FileCopyrightText: 2011 Ethan Schoonover",
+ "SPDX-FileCopyrightText: 2012 Dominik Haumann <dhaumann@kde.org>",
+ "SPDX-FileCopyrightText: 2018 Andrew Crouthamel <andrew.crouthamel@kdemail.net>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "revision" : 6,
"name" : "Solarized Dark"
},
"text-styles": {
@@ -14,8 +23,7 @@
},
"Keyword" : {
"text-color" : "#859900",
- "selected-text-color" : "#859900",
- "bold" : true
+ "selected-text-color" : "#859900"
},
"Function" : {
"text-color" : "#268bd2",
@@ -27,8 +35,7 @@
},
"ControlFlow" : {
"text-color" : "#859900",
- "selected-text-color" : "#859900",
- "bold" : true
+ "selected-text-color" : "#859900"
},
"Operator" : {
"text-color" : "#859900",
@@ -40,8 +47,7 @@
},
"Extension" : {
"text-color" : "#268bd2",
- "selected-text-color" : "#268bd2",
- "bold" : true
+ "selected-text-color" : "#268bd2"
},
"Preprocessor" : {
"text-color" : "#cb4b16",
@@ -64,8 +70,8 @@
"selected-text-color" : "#2aa198"
},
"VerbatimString" : {
- "text-color" : "#2aa198",
- "selected-text-color" : "#2aa198"
+ "text-color" : "#23877e",
+ "selected-text-color" : "#23877e"
},
"SpecialString" : {
"text-color" : "#dc322f",
@@ -77,8 +83,7 @@
},
"DataType" : {
"text-color" : "#b58900",
- "selected-text-color" : "#b58900",
- "bold" : true
+ "selected-text-color" : "#b58900"
},
"DecVal" : {
"text-color" : "#2aa198",
@@ -143,33 +148,45 @@
}
},
"editor-colors": {
- "background-color" : "#002b36",
- "code-folding" : "#6c71c4",
- "bracket-matching" : "#073642",
- "current-line" : "#073642",
- "icon-border" : "#073642",
- "indentation-line" : "#073642",
- "line-numbers" : "#586e75",
- "current-line-number" : "#586e75",
- "mark-bookmark" : "#268bd2",
- "mark-breakpoint-active" : "#dc322f",
- "mark-breakpoint-reached" : "#b58900",
- "mark-breakpoint-disabled" : "#d33682",
- "mark-execution" : "#586e75",
- "mark-warning" : "#cb4b16",
- "mark-error" : "#dc322f",
- "modified-lines" : "#cb4b16",
- "replace-highlight" : "#859900",
- "saved-lines" : "#2aa198",
- "search-highlight" : "#b58900",
- "selection" : "#eee8d5",
- "separator" : "#586e75",
- "spell-checking" : "#dc322f",
- "tab-marker" : "#586e75",
- "template-background" : "#073642",
- "template-placeholder" : "#073642",
- "template-focused-placeholder" : "#073642",
- "template-read-only-placeholder" : "#073642",
- "word-wrap-marker" : "#586e75"
+ "BackgroundColor" : "#002b36",
+ "CodeFolding": "#083d4a",
+ "BracketMatching" : "#083d4a",
+ "CurrentLine" : "#073642",
+ "IconBorder" : "#073642",
+ "IndentationLine" : "#083d4a",
+ "LineNumbers" : "#586e75",
+ "CurrentLineNumber": "#93a1a1",
+ "MarkBookmark" : "#268bd2",
+ "MarkBreakpointActive" : "#dc322f",
+ "MarkBreakpointReached" : "#b58900",
+ "MarkBreakpointDisabled" : "#d33682",
+ "MarkExecution" : "#586e75",
+ "MarkWarning" : "#cb4b16",
+ "MarkError" : "#dc322f",
+ "ModifiedLines" : "#cb4b16",
+ "ReplaceHighlight": "#3c4300",
+ "SavedLines" : "#2aa198",
+ "SearchHighlight": "#0a4d5e",
+ "TextSelection": "#083d4a",
+ "Separator" : "#1c3e49",
+ "SpellChecking" : "#dc322f",
+ "TabMarker" : "#586e75",
+ "TemplateBackground" : "#073642",
+ "TemplatePlaceholder" : "#073642",
+ "TemplateFocusedPlaceholder" : "#073642",
+ "TemplateReadOnlyPlaceholder" : "#073642",
+ "WordWrapMarker" : "#586e75"
+ },
+ "custom-styles": {
+ "XML": {
+ "Element": {
+ "selected-text-color": "#839496",
+ "text-color": "#268bd2"
+ },
+ "Element Symbols": {
+ "selected-text-color": "#586e75",
+ "text-color": "#657b83"
+ }
+ }
}
}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/solarized-light.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/solarized-light.theme
index 473f98add3..51c76faaec 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/themes/solarized-light.theme
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/solarized-light.theme
@@ -1,6 +1,15 @@
{
+ "_comments": [
+ "This theme has been adapted from: https://ethanschoonover.com/solarized/"
+ ],
"metadata" : {
- "revision" : 1,
+ "copyright": [
+ "SPDX-FileCopyrightText: 2011 Ethan Schoonover",
+ "SPDX-FileCopyrightText: 2012 Dominik Haumann <dhaumann@kde.org>",
+ "SPDX-FileCopyrightText: 2018 Andrew Crouthamel <andrew.crouthamel@kdemail.net>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "revision" : 5,
"name" : "Solarized Light"
},
"text-styles": {
@@ -64,8 +73,8 @@
"selected-text-color" : "#2aa198"
},
"VerbatimString" : {
- "text-color" : "#2aa198",
- "selected-text-color" : "#2aa198"
+ "text-color" : "#23837a",
+ "selected-text-color" : "#23837a"
},
"SpecialString" : {
"text-color" : "#dc322f",
@@ -143,33 +152,45 @@
}
},
"editor-colors": {
- "background-color" : "#fdf6e3",
- "code-folding" : "#6c71c4",
- "bracket-matching" : "#eee8d5",
- "current-line" : "#eee8d5",
- "icon-border" : "#eee8d5",
- "indentation-line" : "#eee8d5",
- "line-numbers" : "#93a1a1",
- "current-line-number" : "#93a1a1",
- "mark-bookmark" : "#268bd2",
- "mark-breakpoint-active" : "#dc322f",
- "mark-breakpoint-reached" : "#b58900",
- "mark-breakpoint-disabled" : "#d33682",
- "mark-execution" : "#93a1a1",
- "mark-warning" : "#cb4b16",
- "mark-error" : "#dc322f",
- "modified-lines" : "#cb4b16",
- "replace-highlight" : "#859900",
- "saved-lines" : "#2aa198",
- "search-highlight" : "#b58900",
- "selection" : "#073642",
- "separator" : "#93a1a1",
- "spell-checking" : "#dc322f",
- "tab-marker" : "#93a1a1",
- "template-background" : "#eee8d5",
- "template-placeholder" : "#eee8d5",
- "template-focused-placeholder" : "#eee8d5",
- "template-read-only-placeholder" : "#eee8d5",
- "word-wrap-marker" : "#93a1a1"
+ "BackgroundColor" : "#fdf6e3",
+ "CodeFolding" : "#6c71c4",
+ "BracketMatching" : "#eee8d5",
+ "CurrentLine" : "#eee8d5",
+ "IconBorder" : "#eee8d5",
+ "IndentationLine" : "#eee8d5",
+ "LineNumbers" : "#93a1a1",
+ "CurrentLineNumber" : "#93a1a1",
+ "MarkBookmark" : "#268bd2",
+ "MarkBreakpointActive" : "#dc322f",
+ "MarkBreakpointReached" : "#b58900",
+ "MarkBreakpointDisabled" : "#d33682",
+ "MarkExecution" : "#93a1a1",
+ "MarkWarning" : "#cb4b16",
+ "MarkError" : "#dc322f",
+ "ModifiedLines" : "#cb4b16",
+ "ReplaceHighlight" : "#859900",
+ "SavedLines" : "#2aa198",
+ "SearchHighlight" : "#b58900",
+ "TextSelection" : "#073642",
+ "Separator" : "#e0dccc",
+ "SpellChecking" : "#dc322f",
+ "TabMarker" : "#93a1a1",
+ "TemplateBackground" : "#eee8d5",
+ "TemplatePlaceholder" : "#eee8d5",
+ "TemplateFocusedPlaceholder" : "#eee8d5",
+ "TemplateReadOnlyPlaceholder" : "#eee8d5",
+ "WordWrapMarker" : "#93a1a1"
+ },
+ "custom-styles": {
+ "XML": {
+ "Element": {
+ "selected-text-color": "#268bd2",
+ "text-color": "#268bd2"
+ },
+ "Element Symbols": {
+ "selected-text-color": "#93a1a1",
+ "text-color": "#839496"
+ }
+ }
}
}
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/theme-data.qrc b/src/libs/3rdparty/syntax-highlighting/data/themes/theme-data.qrc
index 46af4213b5..8f4aa6c7e4 100644
--- a/src/libs/3rdparty/syntax-highlighting/data/themes/theme-data.qrc
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/theme-data.qrc
@@ -1,10 +1,26 @@
-<!DOCTYPE RCC>
-<RCC version="1.0">
- <qresource prefix="/org.kde.syntax-highlighting/themes">
- <file alias="default.theme">default.theme</file>
- <file alias="breeze-dark.theme">breeze-dark.theme</file>
- <file alias="printing.theme">printing.theme</file>
- <file alias="solarized-dark.theme">solarized-dark.theme</file>
- <file alias="solarized-light.theme">solarized-light.theme</file>
- </qresource>
+<RCC>
+ <qresource prefix="/org.kde.syntax-highlighting/themes">
+ <file>atom-one-dark.theme</file>
+ <file>atom-one-light.theme</file>
+ <file>ayu-dark.theme</file>
+ <file>ayu-light.theme</file>
+ <file>ayu-mirage.theme</file>
+ <file>breeze-dark.theme</file>
+ <file>breeze-light.theme</file>
+ <file>dracula.theme</file>
+ <file>falcon.theme</file>
+ <file>github-dark.theme</file>
+ <file>github-light.theme</file>
+ <file>gruvbox-dark.theme</file>
+ <file>gruvbox-light.theme</file>
+ <file>homunculus.theme</file>
+ <file>monokai.theme</file>
+ <file>nord.theme</file>
+ <file>oblivion.theme</file>
+ <file>printing.theme</file>
+ <file>radical.theme</file>
+ <file>solarized-dark.theme</file>
+ <file>solarized-light.theme</file>
+ <file>vim-dark.theme</file>
+ </qresource>
</RCC>
diff --git a/src/libs/3rdparty/syntax-highlighting/data/themes/vim-dark.theme b/src/libs/3rdparty/syntax-highlighting/data/themes/vim-dark.theme
new file mode 100644
index 0000000000..d039822cae
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/data/themes/vim-dark.theme
@@ -0,0 +1,180 @@
+{
+ "metadata" : {
+ "copyright": [
+ "SPDX-FileCopyrightText: 2012 Dominik Haumann <dhaumann@kde.org>",
+ "SPDX-FileCopyrightText: 2020 Nibaldo González <nibgonz@gmail.com>"
+ ],
+ "license": "SPDX-License-Identifier: MIT",
+ "revision" : 4,
+ "name" : "Vim Dark"
+ },
+ "text-styles": {
+ "Normal" : {
+ "text-color" : "#b2b2b2",
+ "selected-text-color" : "#b2b2b2",
+ "bold" : false,
+ "italic" : false,
+ "underline" : false,
+ "strike-through" : false
+ },
+ "Keyword" : {
+ "text-color" : "#5fd7ff",
+ "selected-text-color" : "#e0ffff",
+ "bold" : true
+ },
+ "Function" : {
+ "text-color" : "#cd00cd",
+ "selected-text-color" : "#cd00cd"
+ },
+ "Variable" : {
+ "text-color" : "#06989a",
+ "selected-text-color" : "#06989a"
+ },
+ "ControlFlow" : {
+ "text-color" : "#ffff54",
+ "selected-text-color" : "#ffff54",
+ "bold" : true
+ },
+ "Operator" : {
+ "text-color" : "#b2b2b2",
+ "selected-text-color" : "#b2b2b2"
+ },
+ "BuiltIn" : {
+ "text-color" : "#87ffaf",
+ "selected-text-color" : "#87ffaf",
+ "bold" : true
+ },
+ "Extension" : {
+ "text-color" : "#0095ff",
+ "selected-text-color" : "#0095ff",
+ "bold" : true
+ },
+ "Preprocessor" : {
+ "text-color" : "#87ffaf",
+ "selected-text-color" : "#87ffaf"
+ },
+ "Attribute" : {
+ "text-color" : "#ffffaf",
+ "selected-text-color" : "#ffffaf"
+ },
+ "Char" : {
+ "text-color" : "#ff5454",
+ "selected-text-color" : "#ff5454"
+ },
+ "SpecialChar" : {
+ "text-color" : "#0095ff",
+ "selected-text-color" : "#0095ff"
+ },
+ "String" : {
+ "text-color" : "#ff54ff",
+ "selected-text-color" : "#ff54ff"
+ },
+ "VerbatimString" : {
+ "text-color" : "#f000f0",
+ "selected-text-color" : "#f000f0"
+ },
+ "SpecialString" : {
+ "text-color" : "#ff5500",
+ "selected-text-color" : "#ff5500"
+ },
+ "Import" : {
+ "text-color" : "#ff54ff",
+ "selected-text-color" : "#ff54ff"
+ },
+ "DataType" : {
+ "text-color" : "#ffff54",
+ "selected-text-color" : "#ffff54"
+ },
+ "DecVal" : {
+ "text-color" : "#ff8b8b",
+ "selected-text-color" : "#ff8b8b"
+ },
+ "BaseN" : {
+ "text-color" : "#ff8b8b",
+ "selected-text-color" : "#ff8b8b"
+ },
+ "Float" : {
+ "text-color" : "#ff8b8b",
+ "selected-text-color" : "#ff8b8b"
+ },
+ "Constant" : {
+ "text-color" : "#af7f00",
+ "selected-text-color" : "#af7f00",
+ "bold" : true
+ },
+ "Comment" : {
+ "text-color" : "#54ffff",
+ "selected-text-color" : "#54ffff"
+ },
+ "Documentation" : {
+ "text-color" : "#e0ffff",
+ "selected-text-color" : "#e0ffff"
+ },
+ "Annotation" : {
+ "text-color" : "#ff00ff",
+ "selected-text-color" : "#ff00ff"
+ },
+ "CommentVar" : {
+ "text-color" : "#0095ff",
+ "selected-text-color" : "#0095ff"
+ },
+ "RegionMarker" : {
+ "text-color" : "#0095ff",
+ "selected-text-color" : "#0095ff",
+ "background-color" : "#22226d"
+ },
+ "Information" : {
+ "text-color" : "#ffaa00",
+ "selected-text-color" : "#ffaa00"
+ },
+ "Warning" : {
+ "text-color" : "#ff0000",
+ "selected-text-color" : "#ed1515"
+ },
+ "Alert" : {
+ "text-color" : "#ff0000",
+ "selected-text-color" : "#bf0303",
+ "background-color" : "#3f0000",
+ "bold" : true
+ },
+ "Error" : {
+ "text-color" : "#ff5500",
+ "selected-text-color" : "#ff5500",
+ "underline" : true
+ },
+ "Others" : {
+ "text-color" : "#54ff54",
+ "selected-text-color" : "#54ff54"
+ }
+ },
+ "editor-colors": {
+ "BackgroundColor" : "#000000",
+ "CodeFolding" : "#002b26",
+ "BracketMatching" : "#4400aa",
+ "CurrentLine" : "#17003b",
+ "IconBorder" : "#000000",
+ "IndentationLine" : "#2a00d2",
+ "LineNumbers" : "#005d7a",
+ "CurrentLineNumber" : "#005d7a",
+ "MarkBookmark" : "#0000ff",
+ "MarkBreakpointActive" : "#ff0000",
+ "MarkBreakpointReached" : "#ffff00",
+ "MarkBreakpointDisabled" : "#ff00ff",
+ "MarkExecution" : "#a0a0a4",
+ "MarkWarning" : "#00ff00",
+ "MarkError" : "#ff0000",
+ "ModifiedLines" : "#54ff54",
+ "ReplaceHighlight" : "#54ff54",
+ "SavedLines" : "#5454ff",
+ "SearchHighlight" : "#ffff00",
+ "TextSelection" : "#232323",
+ "Separator" : "#003344",
+ "SpellChecking" : "#ff0000",
+ "TabMarker" : "#414141",
+ "TemplateBackground" : "#cccccc",
+ "TemplatePlaceholder" : "#ccffcc",
+ "TemplateFocusedPlaceholder" : "#66ff66",
+ "TemplateReadOnlyPlaceholder" : "#ffcccc",
+ "WordWrapMarker" : "#262626"
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/examples/CMakeLists.txt b/src/libs/3rdparty/syntax-highlighting/examples/CMakeLists.txt
deleted file mode 100644
index 652b72cb0a..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/examples/CMakeLists.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-if(Qt5Widgets_FOUND)
- add_executable(codeeditor codeeditor.cpp main.cpp)
- target_link_libraries(codeeditor Qt5::Widgets KF5SyntaxHighlighting)
-endif()
diff --git a/src/libs/3rdparty/syntax-highlighting/examples/codeeditor.cpp b/src/libs/3rdparty/syntax-highlighting/examples/codeeditor.cpp
deleted file mode 100644
index 88f315462d..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/examples/codeeditor.cpp
+++ /dev/null
@@ -1,358 +0,0 @@
-/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-#include "codeeditor.h"
-
-#include <definition.h>
-#include <foldingregion.h>
-#include <syntaxhighlighter.h>
-#include <theme.h>
-
-#include <QApplication>
-#include <QDebug>
-#include <QFile>
-#include <QFileDialog>
-#include <QFontDatabase>
-#include <QMenu>
-#include <QPainter>
-#include <QPalette>
-
-class CodeEditorSidebar : public QWidget
-{
- Q_OBJECT
-public:
- explicit CodeEditorSidebar(CodeEditor *editor);
- QSize sizeHint() const Q_DECL_OVERRIDE;
-
-protected:
- void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
- void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
-
-private:
- CodeEditor *m_codeEditor;
-};
-
-CodeEditorSidebar::CodeEditorSidebar(CodeEditor *editor) :
- QWidget(editor),
- m_codeEditor(editor)
-{
-}
-
-QSize CodeEditorSidebar::sizeHint() const
-{
- return QSize(m_codeEditor->sidebarWidth(), 0);
-}
-
-void CodeEditorSidebar::paintEvent(QPaintEvent *event)
-{
- m_codeEditor->sidebarPaintEvent(event);
-}
-
-void CodeEditorSidebar::mouseReleaseEvent(QMouseEvent *event)
-{
- if (event->x() >= width() - m_codeEditor->fontMetrics().lineSpacing()) {
- auto block = m_codeEditor->blockAtPosition(event->y());
- if (!block.isValid() || !m_codeEditor->isFoldable(block))
- return;
- m_codeEditor->toggleFold(block);
- }
- QWidget::mouseReleaseEvent(event);
-}
-
-
-CodeEditor::CodeEditor(QWidget *parent) :
- QPlainTextEdit(parent),
- m_highlighter(new KSyntaxHighlighting::SyntaxHighlighter(document())),
- m_sideBar(new CodeEditorSidebar(this))
-{
- setFont(QFontDatabase::systemFont(QFontDatabase::FixedFont));
-
- setTheme((palette().color(QPalette::Base).lightness() < 128)
- ? m_repository.defaultTheme(KSyntaxHighlighting::Repository::DarkTheme)
- : m_repository.defaultTheme(KSyntaxHighlighting::Repository::LightTheme));
-
- connect(this, &QPlainTextEdit::blockCountChanged, this, &CodeEditor::updateSidebarGeometry);
- connect(this, &QPlainTextEdit::updateRequest, this, &CodeEditor::updateSidebarArea);
- connect(this, &QPlainTextEdit::cursorPositionChanged, this, &CodeEditor::highlightCurrentLine);
-
- updateSidebarGeometry();
- highlightCurrentLine();
-}
-
-CodeEditor::~CodeEditor()
-{
-}
-
-void CodeEditor::openFile(const QString& fileName)
-{
- QFile f(fileName);
- if (!f.open(QFile::ReadOnly)) {
- qWarning() << "Failed to open" << fileName << ":" << f.errorString();
- return;
- }
-
- clear();
-
- const auto def = m_repository.definitionForFileName(fileName);
- m_highlighter->setDefinition(def);
-
- setWindowTitle(fileName);
- setPlainText(QString::fromUtf8(f.readAll()));
-}
-
-void CodeEditor::contextMenuEvent(QContextMenuEvent *event)
-{
- auto menu = createStandardContextMenu(event->pos());
- menu->addSeparator();
- auto openAction = menu->addAction(QStringLiteral("Open File..."));
- connect(openAction, &QAction::triggered, this, [this]() {
- const auto fileName = QFileDialog::getOpenFileName(this, QStringLiteral("Open File"));
- if (!fileName.isEmpty())
- openFile(fileName);
- });
-
- // syntax selection
- auto hlActionGroup = new QActionGroup(menu);
- hlActionGroup->setExclusive(true);
- auto hlGroupMenu = menu->addMenu(QStringLiteral("Syntax"));
- QMenu *hlSubMenu = hlGroupMenu;
- QString currentGroup;
- foreach (const auto &def, m_repository.definitions()) {
- if (def.isHidden())
- continue;
- if (currentGroup != def.section()) {
- currentGroup = def.section();
- hlSubMenu = hlGroupMenu->addMenu(def.translatedSection());
- }
-
- Q_ASSERT(hlSubMenu);
- auto action = hlSubMenu->addAction(def.translatedName());
- action->setCheckable(true);
- action->setData(def.name());
- hlActionGroup->addAction(action);
- if (def.name() == m_highlighter->definition().name())
- action->setChecked(true);
- }
- connect(hlActionGroup, &QActionGroup::triggered, this, [this](QAction *action) {
- const auto defName = action->data().toString();
- const auto def = m_repository.definitionForName(defName);
- m_highlighter->setDefinition(def);
- });
-
- // theme selection
- auto themeGroup = new QActionGroup(menu);
- themeGroup->setExclusive(true);
- auto themeMenu = menu->addMenu(QStringLiteral("Theme"));
- foreach (const auto &theme, m_repository.themes()) {
- auto action = themeMenu->addAction(theme.translatedName());
- action->setCheckable(true);
- action->setData(theme.name());
- themeGroup->addAction(action);
- if (theme.name() == m_highlighter->theme().name())
- action->setChecked(true);
- }
- connect(themeGroup, &QActionGroup::triggered, this, [this](QAction *action) {
- const auto themeName = action->data().toString();
- const auto theme = m_repository.theme(themeName);
- setTheme(theme);
- });
-
- menu->exec(event->globalPos());
- delete menu;
-}
-
-void CodeEditor::resizeEvent(QResizeEvent *event)
-{
- QPlainTextEdit::resizeEvent(event);
- updateSidebarGeometry();
-}
-
-void CodeEditor::setTheme(const KSyntaxHighlighting::Theme &theme)
-{
- auto pal = qApp->palette();
- if (theme.isValid()) {
- pal.setColor(QPalette::Base, theme.editorColor(KSyntaxHighlighting::Theme::BackgroundColor));
- pal.setColor(QPalette::Text, theme.textColor(KSyntaxHighlighting::Theme::Normal));
- pal.setColor(QPalette::Highlight, theme.editorColor(KSyntaxHighlighting::Theme::TextSelection));
- }
- setPalette(pal);
-
- m_highlighter->setTheme(theme);
- m_highlighter->rehighlight();
- highlightCurrentLine();
-}
-
-int CodeEditor::sidebarWidth() const
-{
- int digits = 1;
- auto count = blockCount();
- while (count >= 10) {
- ++digits;
- count /= 10;
- }
- return 4 + fontMetrics().width(QLatin1Char('9')) * digits + fontMetrics().lineSpacing();
-}
-
-void CodeEditor::sidebarPaintEvent(QPaintEvent *event)
-{
- QPainter painter(m_sideBar);
- painter.fillRect(event->rect(), m_highlighter->theme().editorColor(KSyntaxHighlighting::Theme::IconBorder));
-
- auto block = firstVisibleBlock();
- auto blockNumber = block.blockNumber();
- int top = blockBoundingGeometry(block).translated(contentOffset()).top();
- int bottom = top + blockBoundingRect(block).height();
- const int currentBlockNumber = textCursor().blockNumber();
-
- const auto foldingMarkerSize = fontMetrics().lineSpacing();
-
- while (block.isValid() && top <= event->rect().bottom()) {
- if (block.isVisible() && bottom >= event->rect().top()) {
- const auto number = QString::number(blockNumber + 1);
- painter.setPen(m_highlighter->theme().editorColor(
- (blockNumber == currentBlockNumber) ? KSyntaxHighlighting::Theme::CurrentLineNumber
- : KSyntaxHighlighting::Theme::LineNumbers));
- painter.drawText(0, top, m_sideBar->width() - 2 - foldingMarkerSize, fontMetrics().height(), Qt::AlignRight, number);
- }
-
- // folding marker
- if (block.isVisible() && isFoldable(block)) {
- QPolygonF polygon;
- if (isFolded(block)) {
- polygon << QPointF(foldingMarkerSize * 0.4, foldingMarkerSize * 0.25);
- polygon << QPointF(foldingMarkerSize * 0.4, foldingMarkerSize * 0.75);
- polygon << QPointF(foldingMarkerSize * 0.8, foldingMarkerSize * 0.5);
- } else {
- polygon << QPointF(foldingMarkerSize * 0.25, foldingMarkerSize * 0.4);
- polygon << QPointF(foldingMarkerSize * 0.75, foldingMarkerSize * 0.4);
- polygon << QPointF(foldingMarkerSize * 0.5, foldingMarkerSize * 0.8);
- }
- painter.save();
- painter.setRenderHint(QPainter::Antialiasing);
- painter.setPen(Qt::NoPen);
- painter.setBrush(QColor(m_highlighter->theme().editorColor(KSyntaxHighlighting::Theme::CodeFolding)));
- painter.translate(m_sideBar->width() - foldingMarkerSize, top);
- painter.drawPolygon(polygon);
- painter.restore();
- }
-
- block = block.next();
- top = bottom;
- bottom = top + blockBoundingRect(block).height();
- ++blockNumber;
- }
-}
-
-void CodeEditor::updateSidebarGeometry()
-{
- setViewportMargins(sidebarWidth(), 0, 0, 0);
- const auto r = contentsRect();
- m_sideBar->setGeometry(QRect(r.left(), r.top(), sidebarWidth(), r.height()));
-}
-
-void CodeEditor::updateSidebarArea(const QRect& rect, int dy)
-{
- if (dy)
- m_sideBar->scroll(0, dy);
- else
- m_sideBar->update(0, rect.y(), m_sideBar->width(), rect.height());
-}
-
-void CodeEditor::highlightCurrentLine()
-{
- QTextEdit::ExtraSelection selection;
- selection.format.setBackground(QColor(m_highlighter->theme().editorColor(KSyntaxHighlighting::Theme::CurrentLine)));
- selection.format.setProperty(QTextFormat::FullWidthSelection, true);
- selection.cursor = textCursor();
- selection.cursor.clearSelection();
-
- QList<QTextEdit::ExtraSelection> extraSelections;
- extraSelections.append(selection);
- setExtraSelections(extraSelections);
-}
-
-QTextBlock CodeEditor::blockAtPosition(int y) const
-{
- auto block = firstVisibleBlock();
- if (!block.isValid())
- return QTextBlock();
-
- int top = blockBoundingGeometry(block).translated(contentOffset()).top();
- int bottom = top + blockBoundingRect(block).height();
- do {
- if (top <= y && y <= bottom)
- return block;
- block = block.next();
- top = bottom;
- bottom = top + blockBoundingRect(block).height();
- } while (block.isValid());
- return QTextBlock();
-}
-
-bool CodeEditor::isFoldable(const QTextBlock &block) const
-{
- return m_highlighter->startsFoldingRegion(block);
-}
-
-bool CodeEditor::isFolded(const QTextBlock &block) const
-{
- if (!block.isValid())
- return false;
- const auto nextBlock = block.next();
- if (!nextBlock.isValid())
- return false;
- return !nextBlock.isVisible();
-}
-
-void CodeEditor::toggleFold(const QTextBlock &startBlock)
-{
- // we also want to fold the last line of the region, therefore the ".next()"
- const auto endBlock = m_highlighter->findFoldingRegionEnd(startBlock).next();
-
- if (isFolded(startBlock)) {
- // unfold
- auto block = startBlock.next();
- while (block.isValid() && !block.isVisible()) {
- block.setVisible(true);
- block.setLineCount(block.layout()->lineCount());
- block = block.next();
- }
-
- } else {
- // fold
- auto block = startBlock.next();
- while (block.isValid() && block != endBlock) {
- block.setVisible(false);
- block.setLineCount(0);
- block = block.next();
- }
- }
-
- // redraw document
- document()->markContentsDirty(startBlock.position(), endBlock.position() - startBlock.position() + 1);
-
- // update scrollbars
- emit document()->documentLayout()->documentSizeChanged(document()->documentLayout()->documentSize());
-}
-
-#include "codeeditor.moc"
diff --git a/src/libs/3rdparty/syntax-highlighting/examples/codeeditor.h b/src/libs/3rdparty/syntax-highlighting/examples/codeeditor.h
deleted file mode 100644
index 1823b43e85..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/examples/codeeditor.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-#ifndef CODEEDITOR_H
-#define CODEEDITOR_H
-
-#include <repository.h>
-
-#include <QPlainTextEdit>
-
-namespace KSyntaxHighlighting {
-class SyntaxHighlighter;
-}
-
-class CodeEditorSidebar;
-
-class CodeEditor : public QPlainTextEdit
-{
- Q_OBJECT
-public:
- explicit CodeEditor(QWidget *parent = nullptr);
- ~CodeEditor();
-
- void openFile(const QString &fileName);
-
-protected:
- void contextMenuEvent(QContextMenuEvent *event) override;
- void resizeEvent(QResizeEvent *event) override;
-
-private:
- friend class CodeEditorSidebar;
- void setTheme(const KSyntaxHighlighting::Theme &theme);
- int sidebarWidth() const;
- void sidebarPaintEvent(QPaintEvent *event);
- void updateSidebarGeometry();
- void updateSidebarArea(const QRect &rect, int dy);
- void highlightCurrentLine();
-
- QTextBlock blockAtPosition(int y) const;
- bool isFoldable(const QTextBlock &block) const;
- bool isFolded(const QTextBlock &block) const;
- void toggleFold(const QTextBlock &block);
-
- KSyntaxHighlighting::Repository m_repository;
- KSyntaxHighlighting::SyntaxHighlighter *m_highlighter;
- CodeEditorSidebar *m_sideBar;
-};
-
-#endif // CODEEDITOR_H
diff --git a/src/libs/3rdparty/syntax-highlighting/examples/main.cpp b/src/libs/3rdparty/syntax-highlighting/examples/main.cpp
deleted file mode 100644
index 3fb542954d..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/examples/main.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-#include "codeeditor.h"
-
-#include <QApplication>
-#include <QCommandLineParser>
-#include <QFile>
-#include <QTextEdit>
-
-int main(int argc, char **argv)
-{
- QApplication app(argc, argv);
-
- QCommandLineParser parser;
- parser.addHelpOption();
- parser.addPositionalArgument(QStringLiteral("source"), QStringLiteral("The source file to highlight."));
- parser.process(app);
-
- CodeEditor edit;
- edit.resize(1024, 1024);
- edit.show();
- if (parser.positionalArguments().size() == 1)
- edit.openFile(parser.positionalArguments().at(0));
- return app.exec();
-}
diff --git a/src/libs/3rdparty/syntax-highlighting/metainfo.yaml b/src/libs/3rdparty/syntax-highlighting/metainfo.yaml
index 7a3220a31e..a82f7a986d 100644
--- a/src/libs/3rdparty/syntax-highlighting/metainfo.yaml
+++ b/src/libs/3rdparty/syntax-highlighting/metainfo.yaml
@@ -6,7 +6,7 @@ platforms:
- name: Linux
- name: FreeBSD
- name: Windows
- - name: MacOSX
+ - name: macOS
- name: Android
portingAid: false
deprecated: false
diff --git a/src/libs/3rdparty/syntax-highlighting/patches/0001-Remove-highlight-definitions-with-incompatible-licen.patch b/src/libs/3rdparty/syntax-highlighting/patches/0001-Remove-highlight-definitions-with-incompatible-licen.patch
deleted file mode 100644
index 7854f3a218..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/patches/0001-Remove-highlight-definitions-with-incompatible-licen.patch
+++ /dev/null
@@ -1,1381 +0,0 @@
-From 40ee252983bd0d74b43d204de195ef4426ccb690 Mon Sep 17 00:00:00 2001
-From: Alessandro Portale <alessandro.portale@qt.io>
-Date: Tue, 12 Feb 2019 19:43:26 +0100
-Subject: [PATCH 1/6] Remove highlight definitions with incompatible license
-
----
- data/syntax/4dos.xml | 924 ----
- data/syntax/abap.xml | 285 --
- data/syntax/abc.xml | 86 -
- data/syntax/actionscript.xml | 336 --
- data/syntax/ada.xml | 201 -
- data/syntax/adblock.xml | 87 -
- data/syntax/agda.xml | 107 -
- data/syntax/ahdl.xml | 145 -
- data/syntax/ahk.xml | 1143 -----
- data/syntax/ample.xml | 3234 ------------
- data/syntax/ansforth94.xml | 595 ---
- data/syntax/ansic89.xml | 134 -
- data/syntax/ansys.xml | 2056 --------
- data/syntax/apache.xml | 633 ---
- data/syntax/apparmor.xml | 1555 ------
- data/syntax/asm-avr.xml | 212 -
- data/syntax/asm-dsp56k.xml | 329 --
- data/syntax/asm-m68k.xml | 651 ---
- data/syntax/asm6502.xml | 117 -
- data/syntax/asn1.xml | 70 -
- data/syntax/asp.xml | 389 --
- data/syntax/awk.xml | 288 --
- data/syntax/bibtex.xml | 108 -
- data/syntax/bitbake.xml | 183 -
- data/syntax/bmethod.xml | 96 -
- data/syntax/boo.xml | 304 --
- data/syntax/c.xml | 260 -
- data/syntax/carto-css.xml | 405 --
- data/syntax/ccss.xml | 655 ---
- data/syntax/cg.xml | 273 -
- data/syntax/cgis.xml | 134 -
- data/syntax/changelog.xml | 29 -
- data/syntax/chicken.xml | 435 --
- data/syntax/cisco.xml | 302 --
- data/syntax/clipper.xml | 498 --
- data/syntax/clojure.xml | 883 ----
- data/syntax/coffee.xml | 340 --
- data/syntax/coldfusion.xml | 731 ---
- data/syntax/commonlisp.xml | 1177 -----
- data/syntax/component-pascal.xml | 172 -
- data/syntax/context.xml | 130 -
- data/syntax/cpp.xml | 2030 --------
- data/syntax/crk.xml | 163 -
- data/syntax/cs.xml | 168 -
- data/syntax/cubescript.xml | 456 --
- data/syntax/cue.xml | 74 -
- data/syntax/curry.xml | 364 --
- data/syntax/d.xml | 819 ---
- data/syntax/debianchangelog.xml | 241 -
- data/syntax/debiancontrol.xml | 65 -
- data/syntax/desktop.xml | 30 -
- data/syntax/diff.xml | 118 -
- data/syntax/djangotemplate.xml | 330 --
- data/syntax/dockerfile.xml | 67 -
- data/syntax/dosbat.xml | 309 --
- data/syntax/dot.xml | 172 -
- data/syntax/doxyfile.xml | 350 --
- data/syntax/doxygenlua.xml | 497 --
- data/syntax/e.xml | 260 -
- data/syntax/eiffel.xml | 125 -
- data/syntax/elixir.xml | 225 -
- data/syntax/email.xml | 101 -
- data/syntax/erlang.xml | 250 -
- data/syntax/euphoria.xml | 378 --
- data/syntax/fasm.xml | 898 ----
- data/syntax/fastq.xml | 35 -
- data/syntax/ferite.xml | 117 -
- data/syntax/fgl-4gl.xml | 363 --
- data/syntax/fgl-per.xml | 172 -
- data/syntax/fortran.xml | 584 ---
- data/syntax/freebasic.xml | 573 ---
- data/syntax/fsharp.xml | 283 --
- data/syntax/fstab.xml | 96 -
- data/syntax/ftl.xml | 84 -
- data/syntax/gap.xml | 7835 -----------------------------
- data/syntax/gcc.xml | 610 ---
- data/syntax/gcode.xml | 202 -
- data/syntax/gdb-bt.xml | 53 -
- data/syntax/gdb.xml | 72 -
- data/syntax/gdbinit.xml | 24 -
- data/syntax/gdl.xml | 313 --
- data/syntax/gettext.xml | 170 -
- data/syntax/git-ignore.xml | 41 -
- data/syntax/git-rebase.xml | 65 -
- data/syntax/gitolite.xml | 44 -
- data/syntax/glosstex.xml | 45 -
- data/syntax/glsl.xml | 1217 -----
- data/syntax/gnuassembler.xml | 303 --
- data/syntax/gnuplot.xml | 890 ----
- data/syntax/go.xml | 175 -
- data/syntax/grammar.xml | 145 -
- data/syntax/groovy.xml | 3889 --------------
- data/syntax/haml.xml | 500 --
- data/syntax/hamlet.xml | 104 -
- data/syntax/haskell.xml | 649 ---
- data/syntax/haxe.xml | 181 -
- data/syntax/hunspell-aff.xml | 239 -
- data/syntax/hunspell-dat.xml | 48 -
- data/syntax/hunspell-dic.xml | 85 -
- data/syntax/hunspell-idx.xml | 40 -
- data/syntax/idconsole.xml | 2145 --------
- data/syntax/idl.xml | 114 -
- data/syntax/ilerpg.xml | 701 ---
- data/syntax/inform.xml | 405 --
- data/syntax/intelhex.xml | 41 -
- data/syntax/isocpp.xml | 825 ---
- data/syntax/j.xml | 119 -
- data/syntax/jam.xml | 340 --
- data/syntax/javascript-react.xml | 259 -
- data/syntax/javascript.xml | 283 --
- data/syntax/jira.xml | 718 ---
- data/syntax/jsp.xml | 3061 -----------
- data/syntax/julia.xml | 289 --
- data/syntax/k.xml | 430 --
- data/syntax/kbasic.xml | 97 -
- data/syntax/kconfig.xml | 1144 -----
- data/syntax/kdesrc-buildrc.xml | 247 -
- data/syntax/kotlin.xml | 298 --
- data/syntax/latex.xml | 697 ---
- data/syntax/ld.xml | 84 -
- data/syntax/ldif.xml | 304 --
- data/syntax/less.xml | 1467 ------
- data/syntax/lex.xml | 144 -
- data/syntax/lilypond.xml | 1199 -----
- data/syntax/literate-curry.xml | 50 -
- data/syntax/literate-haskell.xml | 38 -
- data/syntax/logcat.xml | 202 -
- data/syntax/logtalk.xml | 248 -
- data/syntax/lpc.xml | 167 -
- data/syntax/lsl.xml | 1050 ----
- data/syntax/lua.xml | 538 --
- data/syntax/m3u.xml | 51 -
- data/syntax/m4.xml | 193 -
- data/syntax/mab.xml | 30 -
- data/syntax/magma.xml | 154 -
- data/syntax/mako.xml | 253 -
- data/syntax/mandoc.xml | 88 -
- data/syntax/mason.xml | 233 -
- data/syntax/mathematica.xml | 3229 ------------
- data/syntax/matlab.xml | 230 -
- data/syntax/maxima.xml | 1890 -------
- data/syntax/mediawiki.xml | 622 ---
- data/syntax/mel.xml | 1380 -----
- data/syntax/mergetagtext.xml | 145 -
- data/syntax/meson.xml | 117 -
- data/syntax/metafont.xml | 986 ----
- data/syntax/metamath.xml | 122 -
- data/syntax/mib.xml | 182 -
- data/syntax/mips.xml | 359 --
- data/syntax/modelica.xml | 260 -
- data/syntax/modelines.xml | 197 -
- data/syntax/modula-2-iso-only.xml | 342 --
- data/syntax/modula-2-pim-only.xml | 308 --
- data/syntax/modula-2-r10-only.xml | 347 --
- data/syntax/modula-2.xml | 1191 -----
- data/syntax/monobasic.xml | 216 -
- data/syntax/mup.xml | 865 ----
- data/syntax/nagios.xml | 83 -
- data/syntax/nasm.xml | 893 ----
- data/syntax/nemerle.xml | 208 -
- data/syntax/nesc.xml | 185 -
- data/syntax/noweb.xml | 52 -
- data/syntax/nsis.xml | 494 --
- data/syntax/objectivec.xml | 130 -
- data/syntax/objectivecpp.xml | 300 --
- data/syntax/ocaml.xml | 624 ---
- data/syntax/ocamllex.xml | 81 -
- data/syntax/ocamlyacc.xml | 160 -
- data/syntax/octave.xml | 2218 --------
- data/syntax/oors.xml | 87 -
- data/syntax/opal.xml | 331 --
- data/syntax/opencl.xml | 260 -
- data/syntax/openscad.xml | 164 -
- data/syntax/pango.xml | 160 -
- data/syntax/pascal.xml | 219 -
- data/syntax/pgn.xml | 108 -
- data/syntax/php.xml | 5705 ---------------------
- data/syntax/picsrc.xml | 401 --
- data/syntax/pig.xml | 205 -
- data/syntax/pike.xml | 121 -
- data/syntax/pli.xml | 454 --
- data/syntax/ply.xml | 54 -
- data/syntax/pony.xml | 314 --
- data/syntax/postscript.xml | 434 --
- data/syntax/povray.xml | 967 ----
- data/syntax/ppd.xml | 58 -
- data/syntax/praat.xml | 510 --
- data/syntax/progress.xml | 1707 -------
- data/syntax/prolog.xml | 1031 ----
- data/syntax/protobuf.xml | 120 -
- data/syntax/pug.xml | 118 -
- data/syntax/puppet.xml | 711 ---
- data/syntax/purebasic.xml | 1767 -------
- data/syntax/q.xml | 210 -
- data/syntax/qmake.xml | 659 ---
- data/syntax/qml.xml | 168 -
- data/syntax/r.xml | 152 -
- data/syntax/rapidq.xml | 432 --
- data/syntax/rdoc.xml | 388 --
- data/syntax/relaxng.xml | 119 -
- data/syntax/relaxngcompact.xml | 108 -
- data/syntax/replicode.xml | 196 -
- data/syntax/rest.xml | 108 -
- data/syntax/rexx.xml | 199 -
- data/syntax/rhtml.xml | 1237 -----
- data/syntax/rib.xml | 143 -
- data/syntax/rmarkdown.xml | 81 -
- data/syntax/roff.xml | 197 -
- data/syntax/rpmspec.xml | 505 --
- data/syntax/rsiidl.xml | 440 --
- data/syntax/rtf.xml | 49 -
- data/syntax/rust.xml | 374 --
- data/syntax/sather.xml | 141 -
- data/syntax/scala.xml | 3505 -------------
- data/syntax/scheme.xml | 394 --
- data/syntax/sci.xml | 1191 -----
- data/syntax/scss.xml | 2242 ---------
- data/syntax/sed.xml | 267 -
- data/syntax/selinux-cil.xml | 683 ---
- data/syntax/selinux-fc.xml | 299 --
- data/syntax/selinux.xml | 1627 ------
- data/syntax/sgml.xml | 46 -
- data/syntax/sieve.xml | 152 -
- data/syntax/sisu.xml | 154 -
- data/syntax/sml.xml | 104 -
- data/syntax/spice.xml | 51 -
- data/syntax/sql-mysql.xml | 481 --
- data/syntax/sql-oracle.xml | 1954 -------
- data/syntax/sql-postgresql.xml | 1074 ----
- data/syntax/sql.xml | 955 ----
- data/syntax/stan.xml | 129 -
- data/syntax/stata.xml | 3223 ------------
- data/syntax/stl.xml | 31 -
- data/syntax/systemc.xml | 133 -
- data/syntax/systemverilog.xml | 1005 ----
- data/syntax/tads3.xml | 176 -
- data/syntax/taskjuggler.xml | 390 --
- data/syntax/tcl.xml | 565 ---
- data/syntax/tcsh.xml | 810 ---
- data/syntax/template-toolkit.xml | 321 --
- data/syntax/texinfo.xml | 63 -
- data/syntax/textile.xml | 100 -
- data/syntax/tibasic.xml | 71 -
- data/syntax/tiger.xml | 96 -
- data/syntax/toml.xml | 135 -
- data/syntax/txt2tags.xml | 67 -
- data/syntax/uscript.xml | 188 -
- data/syntax/vala.xml | 288 --
- data/syntax/varnish.xml | 349 --
- data/syntax/varnish4.xml | 372 --
- data/syntax/varnishcc.xml | 101 -
- data/syntax/varnishcc4.xml | 128 -
- data/syntax/varnishtest.xml | 547 --
- data/syntax/varnishtest4.xml | 706 ---
- data/syntax/vcard.xml | 45 -
- data/syntax/velocity.xml | 51 -
- data/syntax/vera.xml | 648 ---
- data/syntax/verilog.xml | 252 -
- data/syntax/vhdl.xml | 654 ---
- data/syntax/vrml.xml | 139 -
- data/syntax/wavefront-obj.xml | 69 -
- data/syntax/winehq.xml | 34 -
- data/syntax/wml.xml | 209 -
- data/syntax/xharbour.xml | 539 --
- data/syntax/xmldebug.xml | 592 ---
- data/syntax/xonotic-console.xml | 5660 ---------------------
- data/syntax/xorg.xml | 65 -
- data/syntax/xslt.xml | 440 --
- data/syntax/xul.xml | 624 ---
- data/syntax/yacas.xml | 236 -
- data/syntax/yaml.xml | 572 ---
- data/syntax/yang.xml | 155 -
- data/syntax/zonnon.xml | 144 -
- data/syntax/zsh.xml | 959 ----
- 274 files changed, 145722 deletions(-)
- delete mode 100644 data/syntax/4dos.xml
- delete mode 100644 data/syntax/abap.xml
- delete mode 100644 data/syntax/abc.xml
- delete mode 100644 data/syntax/actionscript.xml
- delete mode 100644 data/syntax/ada.xml
- delete mode 100644 data/syntax/adblock.xml
- delete mode 100644 data/syntax/agda.xml
- delete mode 100644 data/syntax/ahdl.xml
- delete mode 100644 data/syntax/ahk.xml
- delete mode 100644 data/syntax/ample.xml
- delete mode 100644 data/syntax/ansforth94.xml
- delete mode 100644 data/syntax/ansic89.xml
- delete mode 100644 data/syntax/ansys.xml
- delete mode 100644 data/syntax/apache.xml
- delete mode 100644 data/syntax/apparmor.xml
- delete mode 100644 data/syntax/asm-avr.xml
- delete mode 100644 data/syntax/asm-dsp56k.xml
- delete mode 100644 data/syntax/asm-m68k.xml
- delete mode 100644 data/syntax/asm6502.xml
- delete mode 100644 data/syntax/asn1.xml
- delete mode 100644 data/syntax/asp.xml
- delete mode 100644 data/syntax/awk.xml
- delete mode 100644 data/syntax/bibtex.xml
- delete mode 100644 data/syntax/bitbake.xml
- delete mode 100644 data/syntax/bmethod.xml
- delete mode 100644 data/syntax/boo.xml
- delete mode 100644 data/syntax/c.xml
- delete mode 100644 data/syntax/carto-css.xml
- delete mode 100644 data/syntax/ccss.xml
- delete mode 100644 data/syntax/cg.xml
- delete mode 100644 data/syntax/cgis.xml
- delete mode 100644 data/syntax/changelog.xml
- delete mode 100644 data/syntax/chicken.xml
- delete mode 100644 data/syntax/cisco.xml
- delete mode 100644 data/syntax/clipper.xml
- delete mode 100644 data/syntax/clojure.xml
- delete mode 100644 data/syntax/coffee.xml
- delete mode 100644 data/syntax/coldfusion.xml
- delete mode 100644 data/syntax/commonlisp.xml
- delete mode 100644 data/syntax/component-pascal.xml
- delete mode 100644 data/syntax/context.xml
- delete mode 100644 data/syntax/cpp.xml
- delete mode 100644 data/syntax/crk.xml
- delete mode 100644 data/syntax/cs.xml
- delete mode 100644 data/syntax/cubescript.xml
- delete mode 100644 data/syntax/cue.xml
- delete mode 100644 data/syntax/curry.xml
- delete mode 100644 data/syntax/d.xml
- delete mode 100644 data/syntax/debianchangelog.xml
- delete mode 100644 data/syntax/debiancontrol.xml
- delete mode 100644 data/syntax/desktop.xml
- delete mode 100644 data/syntax/diff.xml
- delete mode 100644 data/syntax/djangotemplate.xml
- delete mode 100644 data/syntax/dockerfile.xml
- delete mode 100644 data/syntax/dosbat.xml
- delete mode 100644 data/syntax/dot.xml
- delete mode 100644 data/syntax/doxyfile.xml
- delete mode 100644 data/syntax/doxygenlua.xml
- delete mode 100644 data/syntax/e.xml
- delete mode 100644 data/syntax/eiffel.xml
- delete mode 100644 data/syntax/elixir.xml
- delete mode 100644 data/syntax/email.xml
- delete mode 100644 data/syntax/erlang.xml
- delete mode 100644 data/syntax/euphoria.xml
- delete mode 100644 data/syntax/fasm.xml
- delete mode 100644 data/syntax/fastq.xml
- delete mode 100644 data/syntax/ferite.xml
- delete mode 100644 data/syntax/fgl-4gl.xml
- delete mode 100644 data/syntax/fgl-per.xml
- delete mode 100644 data/syntax/fortran.xml
- delete mode 100644 data/syntax/freebasic.xml
- delete mode 100644 data/syntax/fsharp.xml
- delete mode 100644 data/syntax/fstab.xml
- delete mode 100644 data/syntax/ftl.xml
- delete mode 100644 data/syntax/gap.xml
- delete mode 100644 data/syntax/gcc.xml
- delete mode 100644 data/syntax/gcode.xml
- delete mode 100644 data/syntax/gdb-bt.xml
- delete mode 100644 data/syntax/gdb.xml
- delete mode 100644 data/syntax/gdbinit.xml
- delete mode 100644 data/syntax/gdl.xml
- delete mode 100644 data/syntax/gettext.xml
- delete mode 100644 data/syntax/git-ignore.xml
- delete mode 100644 data/syntax/git-rebase.xml
- delete mode 100644 data/syntax/gitolite.xml
- delete mode 100644 data/syntax/glosstex.xml
- delete mode 100644 data/syntax/glsl.xml
- delete mode 100644 data/syntax/gnuassembler.xml
- delete mode 100644 data/syntax/gnuplot.xml
- delete mode 100644 data/syntax/go.xml
- delete mode 100644 data/syntax/grammar.xml
- delete mode 100644 data/syntax/groovy.xml
- delete mode 100644 data/syntax/haml.xml
- delete mode 100644 data/syntax/hamlet.xml
- delete mode 100644 data/syntax/haskell.xml
- delete mode 100644 data/syntax/haxe.xml
- delete mode 100644 data/syntax/hunspell-aff.xml
- delete mode 100644 data/syntax/hunspell-dat.xml
- delete mode 100644 data/syntax/hunspell-dic.xml
- delete mode 100644 data/syntax/hunspell-idx.xml
- delete mode 100644 data/syntax/idconsole.xml
- delete mode 100644 data/syntax/idl.xml
- delete mode 100644 data/syntax/ilerpg.xml
- delete mode 100644 data/syntax/inform.xml
- delete mode 100644 data/syntax/intelhex.xml
- delete mode 100644 data/syntax/isocpp.xml
- delete mode 100644 data/syntax/j.xml
- delete mode 100644 data/syntax/jam.xml
- delete mode 100644 data/syntax/javascript-react.xml
- delete mode 100644 data/syntax/javascript.xml
- delete mode 100644 data/syntax/jira.xml
- delete mode 100644 data/syntax/jsp.xml
- delete mode 100644 data/syntax/julia.xml
- delete mode 100644 data/syntax/k.xml
- delete mode 100644 data/syntax/kbasic.xml
- delete mode 100644 data/syntax/kconfig.xml
- delete mode 100644 data/syntax/kdesrc-buildrc.xml
- delete mode 100644 data/syntax/kotlin.xml
- delete mode 100644 data/syntax/latex.xml
- delete mode 100644 data/syntax/ld.xml
- delete mode 100644 data/syntax/ldif.xml
- delete mode 100644 data/syntax/less.xml
- delete mode 100644 data/syntax/lex.xml
- delete mode 100644 data/syntax/lilypond.xml
- delete mode 100644 data/syntax/literate-curry.xml
- delete mode 100644 data/syntax/literate-haskell.xml
- delete mode 100644 data/syntax/logcat.xml
- delete mode 100644 data/syntax/logtalk.xml
- delete mode 100644 data/syntax/lpc.xml
- delete mode 100644 data/syntax/lsl.xml
- delete mode 100644 data/syntax/lua.xml
- delete mode 100644 data/syntax/m3u.xml
- delete mode 100644 data/syntax/m4.xml
- delete mode 100644 data/syntax/mab.xml
- delete mode 100644 data/syntax/magma.xml
- delete mode 100644 data/syntax/mako.xml
- delete mode 100644 data/syntax/mandoc.xml
- delete mode 100644 data/syntax/mason.xml
- delete mode 100644 data/syntax/mathematica.xml
- delete mode 100644 data/syntax/matlab.xml
- delete mode 100644 data/syntax/maxima.xml
- delete mode 100644 data/syntax/mediawiki.xml
- delete mode 100644 data/syntax/mel.xml
- delete mode 100644 data/syntax/mergetagtext.xml
- delete mode 100644 data/syntax/meson.xml
- delete mode 100644 data/syntax/metafont.xml
- delete mode 100644 data/syntax/metamath.xml
- delete mode 100644 data/syntax/mib.xml
- delete mode 100644 data/syntax/mips.xml
- delete mode 100644 data/syntax/modelica.xml
- delete mode 100644 data/syntax/modelines.xml
- delete mode 100644 data/syntax/modula-2-iso-only.xml
- delete mode 100644 data/syntax/modula-2-pim-only.xml
- delete mode 100644 data/syntax/modula-2-r10-only.xml
- delete mode 100644 data/syntax/modula-2.xml
- delete mode 100644 data/syntax/monobasic.xml
- delete mode 100644 data/syntax/mup.xml
- delete mode 100644 data/syntax/nagios.xml
- delete mode 100644 data/syntax/nasm.xml
- delete mode 100644 data/syntax/nemerle.xml
- delete mode 100644 data/syntax/nesc.xml
- delete mode 100644 data/syntax/noweb.xml
- delete mode 100644 data/syntax/nsis.xml
- delete mode 100644 data/syntax/objectivec.xml
- delete mode 100644 data/syntax/objectivecpp.xml
- delete mode 100644 data/syntax/ocaml.xml
- delete mode 100644 data/syntax/ocamllex.xml
- delete mode 100644 data/syntax/ocamlyacc.xml
- delete mode 100644 data/syntax/octave.xml
- delete mode 100644 data/syntax/oors.xml
- delete mode 100644 data/syntax/opal.xml
- delete mode 100644 data/syntax/opencl.xml
- delete mode 100644 data/syntax/openscad.xml
- delete mode 100644 data/syntax/pango.xml
- delete mode 100644 data/syntax/pascal.xml
- delete mode 100644 data/syntax/pgn.xml
- delete mode 100644 data/syntax/php.xml
- delete mode 100644 data/syntax/picsrc.xml
- delete mode 100644 data/syntax/pig.xml
- delete mode 100644 data/syntax/pike.xml
- delete mode 100644 data/syntax/pli.xml
- delete mode 100644 data/syntax/ply.xml
- delete mode 100644 data/syntax/pony.xml
- delete mode 100644 data/syntax/postscript.xml
- delete mode 100644 data/syntax/povray.xml
- delete mode 100644 data/syntax/ppd.xml
- delete mode 100644 data/syntax/praat.xml
- delete mode 100644 data/syntax/progress.xml
- delete mode 100644 data/syntax/prolog.xml
- delete mode 100644 data/syntax/protobuf.xml
- delete mode 100644 data/syntax/pug.xml
- delete mode 100644 data/syntax/puppet.xml
- delete mode 100644 data/syntax/purebasic.xml
- delete mode 100644 data/syntax/q.xml
- delete mode 100644 data/syntax/qmake.xml
- delete mode 100644 data/syntax/qml.xml
- delete mode 100644 data/syntax/r.xml
- delete mode 100644 data/syntax/rapidq.xml
- delete mode 100644 data/syntax/rdoc.xml
- delete mode 100644 data/syntax/relaxng.xml
- delete mode 100644 data/syntax/relaxngcompact.xml
- delete mode 100644 data/syntax/replicode.xml
- delete mode 100644 data/syntax/rest.xml
- delete mode 100644 data/syntax/rexx.xml
- delete mode 100644 data/syntax/rhtml.xml
- delete mode 100644 data/syntax/rib.xml
- delete mode 100644 data/syntax/rmarkdown.xml
- delete mode 100644 data/syntax/roff.xml
- delete mode 100644 data/syntax/rpmspec.xml
- delete mode 100644 data/syntax/rsiidl.xml
- delete mode 100644 data/syntax/rtf.xml
- delete mode 100644 data/syntax/rust.xml
- delete mode 100644 data/syntax/sather.xml
- delete mode 100644 data/syntax/scala.xml
- delete mode 100644 data/syntax/scheme.xml
- delete mode 100644 data/syntax/sci.xml
- delete mode 100644 data/syntax/scss.xml
- delete mode 100644 data/syntax/sed.xml
- delete mode 100644 data/syntax/selinux-cil.xml
- delete mode 100644 data/syntax/selinux-fc.xml
- delete mode 100644 data/syntax/selinux.xml
- delete mode 100644 data/syntax/sgml.xml
- delete mode 100644 data/syntax/sieve.xml
- delete mode 100644 data/syntax/sisu.xml
- delete mode 100644 data/syntax/sml.xml
- delete mode 100644 data/syntax/spice.xml
- delete mode 100644 data/syntax/sql-mysql.xml
- delete mode 100644 data/syntax/sql-oracle.xml
- delete mode 100644 data/syntax/sql-postgresql.xml
- delete mode 100644 data/syntax/sql.xml
- delete mode 100644 data/syntax/stan.xml
- delete mode 100644 data/syntax/stata.xml
- delete mode 100644 data/syntax/stl.xml
- delete mode 100644 data/syntax/systemc.xml
- delete mode 100644 data/syntax/systemverilog.xml
- delete mode 100644 data/syntax/tads3.xml
- delete mode 100644 data/syntax/taskjuggler.xml
- delete mode 100644 data/syntax/tcl.xml
- delete mode 100644 data/syntax/tcsh.xml
- delete mode 100644 data/syntax/template-toolkit.xml
- delete mode 100644 data/syntax/texinfo.xml
- delete mode 100644 data/syntax/textile.xml
- delete mode 100644 data/syntax/tibasic.xml
- delete mode 100644 data/syntax/tiger.xml
- delete mode 100644 data/syntax/toml.xml
- delete mode 100644 data/syntax/txt2tags.xml
- delete mode 100644 data/syntax/uscript.xml
- delete mode 100644 data/syntax/vala.xml
- delete mode 100644 data/syntax/varnish.xml
- delete mode 100644 data/syntax/varnish4.xml
- delete mode 100644 data/syntax/varnishcc.xml
- delete mode 100644 data/syntax/varnishcc4.xml
- delete mode 100644 data/syntax/varnishtest.xml
- delete mode 100644 data/syntax/varnishtest4.xml
- delete mode 100644 data/syntax/vcard.xml
- delete mode 100644 data/syntax/velocity.xml
- delete mode 100644 data/syntax/vera.xml
- delete mode 100644 data/syntax/verilog.xml
- delete mode 100644 data/syntax/vhdl.xml
- delete mode 100644 data/syntax/vrml.xml
- delete mode 100644 data/syntax/wavefront-obj.xml
- delete mode 100644 data/syntax/winehq.xml
- delete mode 100644 data/syntax/wml.xml
- delete mode 100644 data/syntax/xharbour.xml
- delete mode 100644 data/syntax/xmldebug.xml
- delete mode 100644 data/syntax/xonotic-console.xml
- delete mode 100644 data/syntax/xorg.xml
- delete mode 100644 data/syntax/xslt.xml
- delete mode 100644 data/syntax/xul.xml
- delete mode 100644 data/syntax/yacas.xml
- delete mode 100644 data/syntax/yaml.xml
- delete mode 100644 data/syntax/yang.xml
- delete mode 100644 data/syntax/zonnon.xml
- delete mode 100644 data/syntax/zsh.xml
-
-diff --git a/data/syntax/4dos.xml b/data/syntax/4dos.xml
-deleted file mode 100644
-index b5f72ec..0000000
-diff --git a/data/syntax/abap.xml b/data/syntax/abap.xml
-deleted file mode 100644
-index 12c604a..0000000
-diff --git a/data/syntax/abc.xml b/data/syntax/abc.xml
-deleted file mode 100644
-index a4c3d9f..0000000
-diff --git a/data/syntax/actionscript.xml b/data/syntax/actionscript.xml
-deleted file mode 100644
-index 89c91a9..0000000
-diff --git a/data/syntax/ada.xml b/data/syntax/ada.xml
-deleted file mode 100644
-index 64bb9b6..0000000
-diff --git a/data/syntax/adblock.xml b/data/syntax/adblock.xml
-deleted file mode 100644
-index 796b299..0000000
-diff --git a/data/syntax/agda.xml b/data/syntax/agda.xml
-deleted file mode 100644
-index 958bc95..0000000
-diff --git a/data/syntax/ahdl.xml b/data/syntax/ahdl.xml
-deleted file mode 100644
-index 76bd335..0000000
-diff --git a/data/syntax/ahk.xml b/data/syntax/ahk.xml
-deleted file mode 100644
-index 79965c4..0000000
-diff --git a/data/syntax/ample.xml b/data/syntax/ample.xml
-deleted file mode 100644
-index 2c77865..0000000
-diff --git a/data/syntax/ansforth94.xml b/data/syntax/ansforth94.xml
-deleted file mode 100644
-index 44876e8..0000000
-diff --git a/data/syntax/ansic89.xml b/data/syntax/ansic89.xml
-deleted file mode 100644
-index e442560..0000000
-diff --git a/data/syntax/ansys.xml b/data/syntax/ansys.xml
-deleted file mode 100644
-index d405220..0000000
-diff --git a/data/syntax/apache.xml b/data/syntax/apache.xml
-deleted file mode 100644
-index 732d769..0000000
-diff --git a/data/syntax/apparmor.xml b/data/syntax/apparmor.xml
-deleted file mode 100644
-index 0b81467..0000000
-diff --git a/data/syntax/asm-avr.xml b/data/syntax/asm-avr.xml
-deleted file mode 100644
-index 7075d10..0000000
-diff --git a/data/syntax/asm-dsp56k.xml b/data/syntax/asm-dsp56k.xml
-deleted file mode 100644
-index c9d7cd1..0000000
-diff --git a/data/syntax/asm-m68k.xml b/data/syntax/asm-m68k.xml
-deleted file mode 100644
-index bd5c36f..0000000
-diff --git a/data/syntax/asm6502.xml b/data/syntax/asm6502.xml
-deleted file mode 100644
-index 47e1179..0000000
-diff --git a/data/syntax/asn1.xml b/data/syntax/asn1.xml
-deleted file mode 100644
-index ec3432a..0000000
-diff --git a/data/syntax/asp.xml b/data/syntax/asp.xml
-deleted file mode 100644
-index e03e23b..0000000
-diff --git a/data/syntax/awk.xml b/data/syntax/awk.xml
-deleted file mode 100644
-index 9288a13..0000000
-diff --git a/data/syntax/bibtex.xml b/data/syntax/bibtex.xml
-deleted file mode 100644
-index 339f477..0000000
-diff --git a/data/syntax/bitbake.xml b/data/syntax/bitbake.xml
-deleted file mode 100644
-index 056edf6..0000000
-diff --git a/data/syntax/bmethod.xml b/data/syntax/bmethod.xml
-deleted file mode 100644
-index 153b114..0000000
-diff --git a/data/syntax/boo.xml b/data/syntax/boo.xml
-deleted file mode 100644
-index 26ec818..0000000
-diff --git a/data/syntax/c.xml b/data/syntax/c.xml
-deleted file mode 100644
-index 6f224fc..0000000
-diff --git a/data/syntax/carto-css.xml b/data/syntax/carto-css.xml
-deleted file mode 100644
-index 5ce4474..0000000
-diff --git a/data/syntax/ccss.xml b/data/syntax/ccss.xml
-deleted file mode 100644
-index 4648420..0000000
-diff --git a/data/syntax/cg.xml b/data/syntax/cg.xml
-deleted file mode 100644
-index 0ad61f1..0000000
-diff --git a/data/syntax/cgis.xml b/data/syntax/cgis.xml
-deleted file mode 100644
-index 5b718c7..0000000
-diff --git a/data/syntax/changelog.xml b/data/syntax/changelog.xml
-deleted file mode 100644
-index e004816..0000000
-diff --git a/data/syntax/chicken.xml b/data/syntax/chicken.xml
-deleted file mode 100644
-index eaa9e97..0000000
-diff --git a/data/syntax/cisco.xml b/data/syntax/cisco.xml
-deleted file mode 100644
-index c3d78f9..0000000
-diff --git a/data/syntax/clipper.xml b/data/syntax/clipper.xml
-deleted file mode 100644
-index 898ff31..0000000
-diff --git a/data/syntax/clojure.xml b/data/syntax/clojure.xml
-deleted file mode 100644
-index 855e01a..0000000
-diff --git a/data/syntax/coffee.xml b/data/syntax/coffee.xml
-deleted file mode 100644
-index 58dc498..0000000
-diff --git a/data/syntax/coldfusion.xml b/data/syntax/coldfusion.xml
-deleted file mode 100644
-index 1875eee..0000000
-diff --git a/data/syntax/commonlisp.xml b/data/syntax/commonlisp.xml
-deleted file mode 100644
-index 49dd7f5..0000000
-diff --git a/data/syntax/component-pascal.xml b/data/syntax/component-pascal.xml
-deleted file mode 100644
-index 5017e06..0000000
-diff --git a/data/syntax/context.xml b/data/syntax/context.xml
-deleted file mode 100644
-index c1f1296..0000000
-diff --git a/data/syntax/cpp.xml b/data/syntax/cpp.xml
-deleted file mode 100644
-index e370efb..0000000
-diff --git a/data/syntax/crk.xml b/data/syntax/crk.xml
-deleted file mode 100644
-index 211ddcc..0000000
-diff --git a/data/syntax/cs.xml b/data/syntax/cs.xml
-deleted file mode 100644
-index 264d1f4..0000000
-diff --git a/data/syntax/cubescript.xml b/data/syntax/cubescript.xml
-deleted file mode 100644
-index 5677dbf..0000000
-diff --git a/data/syntax/cue.xml b/data/syntax/cue.xml
-deleted file mode 100644
-index fc4eb1b..0000000
-diff --git a/data/syntax/curry.xml b/data/syntax/curry.xml
-deleted file mode 100644
-index b289f1c..0000000
-diff --git a/data/syntax/d.xml b/data/syntax/d.xml
-deleted file mode 100644
-index 91cb3e8..0000000
-diff --git a/data/syntax/debianchangelog.xml b/data/syntax/debianchangelog.xml
-deleted file mode 100644
-index 5de2900..0000000
-diff --git a/data/syntax/debiancontrol.xml b/data/syntax/debiancontrol.xml
-deleted file mode 100644
-index d3149c6..0000000
-diff --git a/data/syntax/desktop.xml b/data/syntax/desktop.xml
-deleted file mode 100644
-index fc508c4..0000000
-diff --git a/data/syntax/diff.xml b/data/syntax/diff.xml
-deleted file mode 100644
-index 0d2ade7..0000000
-diff --git a/data/syntax/djangotemplate.xml b/data/syntax/djangotemplate.xml
-deleted file mode 100644
-index 6b1fa4f..0000000
-diff --git a/data/syntax/dockerfile.xml b/data/syntax/dockerfile.xml
-deleted file mode 100644
-index 980fd04..0000000
-diff --git a/data/syntax/dosbat.xml b/data/syntax/dosbat.xml
-deleted file mode 100644
-index 807763b..0000000
-diff --git a/data/syntax/dot.xml b/data/syntax/dot.xml
-deleted file mode 100644
-index 6f8aacf..0000000
-diff --git a/data/syntax/doxyfile.xml b/data/syntax/doxyfile.xml
-deleted file mode 100644
-index 1002d67..0000000
-diff --git a/data/syntax/doxygenlua.xml b/data/syntax/doxygenlua.xml
-deleted file mode 100644
-index f3298b5..0000000
-diff --git a/data/syntax/e.xml b/data/syntax/e.xml
-deleted file mode 100644
-index 0b96d97..0000000
-diff --git a/data/syntax/eiffel.xml b/data/syntax/eiffel.xml
-deleted file mode 100644
-index 51420ec..0000000
-diff --git a/data/syntax/elixir.xml b/data/syntax/elixir.xml
-deleted file mode 100644
-index f7a4cab..0000000
-diff --git a/data/syntax/email.xml b/data/syntax/email.xml
-deleted file mode 100644
-index de1d44c..0000000
-diff --git a/data/syntax/erlang.xml b/data/syntax/erlang.xml
-deleted file mode 100644
-index 7bbcbc9..0000000
-diff --git a/data/syntax/euphoria.xml b/data/syntax/euphoria.xml
-deleted file mode 100644
-index ef28077..0000000
-diff --git a/data/syntax/fasm.xml b/data/syntax/fasm.xml
-deleted file mode 100644
-index 04158a5..0000000
-diff --git a/data/syntax/fastq.xml b/data/syntax/fastq.xml
-deleted file mode 100644
-index 30387fc..0000000
-diff --git a/data/syntax/ferite.xml b/data/syntax/ferite.xml
-deleted file mode 100644
-index 13951c7..0000000
-diff --git a/data/syntax/fgl-4gl.xml b/data/syntax/fgl-4gl.xml
-deleted file mode 100644
-index b546243..0000000
-diff --git a/data/syntax/fgl-per.xml b/data/syntax/fgl-per.xml
-deleted file mode 100644
-index b3cea4d..0000000
-diff --git a/data/syntax/fortran.xml b/data/syntax/fortran.xml
-deleted file mode 100644
-index 3baf579..0000000
-diff --git a/data/syntax/freebasic.xml b/data/syntax/freebasic.xml
-deleted file mode 100644
-index e7f3831..0000000
-diff --git a/data/syntax/fsharp.xml b/data/syntax/fsharp.xml
-deleted file mode 100644
-index ad42ca0..0000000
-diff --git a/data/syntax/fstab.xml b/data/syntax/fstab.xml
-deleted file mode 100644
-index c047037..0000000
-diff --git a/data/syntax/ftl.xml b/data/syntax/ftl.xml
-deleted file mode 100644
-index e20db76..0000000
-diff --git a/data/syntax/gap.xml b/data/syntax/gap.xml
-deleted file mode 100644
-index 43bcaff..0000000
-diff --git a/data/syntax/gcc.xml b/data/syntax/gcc.xml
-deleted file mode 100644
-index 258686d..0000000
-diff --git a/data/syntax/gcode.xml b/data/syntax/gcode.xml
-deleted file mode 100644
-index 23b6318..0000000
-diff --git a/data/syntax/gdb-bt.xml b/data/syntax/gdb-bt.xml
-deleted file mode 100644
-index 2ebe7e1..0000000
-diff --git a/data/syntax/gdb.xml b/data/syntax/gdb.xml
-deleted file mode 100644
-index ec385de..0000000
-diff --git a/data/syntax/gdbinit.xml b/data/syntax/gdbinit.xml
-deleted file mode 100644
-index 7999bf5..0000000
-diff --git a/data/syntax/gdl.xml b/data/syntax/gdl.xml
-deleted file mode 100644
-index 8966f5b..0000000
-diff --git a/data/syntax/gettext.xml b/data/syntax/gettext.xml
-deleted file mode 100644
-index 858fcf2..0000000
-diff --git a/data/syntax/git-ignore.xml b/data/syntax/git-ignore.xml
-deleted file mode 100644
-index ceb25e4..0000000
-diff --git a/data/syntax/git-rebase.xml b/data/syntax/git-rebase.xml
-deleted file mode 100644
-index 49c2dae..0000000
-diff --git a/data/syntax/gitolite.xml b/data/syntax/gitolite.xml
-deleted file mode 100644
-index d82838e..0000000
-diff --git a/data/syntax/glosstex.xml b/data/syntax/glosstex.xml
-deleted file mode 100644
-index 751cce4..0000000
-diff --git a/data/syntax/glsl.xml b/data/syntax/glsl.xml
-deleted file mode 100644
-index 09d171a..0000000
-diff --git a/data/syntax/gnuassembler.xml b/data/syntax/gnuassembler.xml
-deleted file mode 100644
-index 3820342..0000000
-diff --git a/data/syntax/gnuplot.xml b/data/syntax/gnuplot.xml
-deleted file mode 100644
-index 97ee96a..0000000
-diff --git a/data/syntax/go.xml b/data/syntax/go.xml
-deleted file mode 100644
-index 61d422d..0000000
-diff --git a/data/syntax/grammar.xml b/data/syntax/grammar.xml
-deleted file mode 100644
-index b797f3c..0000000
-diff --git a/data/syntax/groovy.xml b/data/syntax/groovy.xml
-deleted file mode 100644
-index 16118a9..0000000
-diff --git a/data/syntax/haml.xml b/data/syntax/haml.xml
-deleted file mode 100644
-index 1358edd..0000000
-diff --git a/data/syntax/hamlet.xml b/data/syntax/hamlet.xml
-deleted file mode 100644
-index 9d5b61b..0000000
-diff --git a/data/syntax/haskell.xml b/data/syntax/haskell.xml
-deleted file mode 100644
-index c105be9..0000000
-diff --git a/data/syntax/haxe.xml b/data/syntax/haxe.xml
-deleted file mode 100644
-index 3c8cd0d..0000000
-diff --git a/data/syntax/hunspell-aff.xml b/data/syntax/hunspell-aff.xml
-deleted file mode 100644
-index 843d505..0000000
-diff --git a/data/syntax/hunspell-dat.xml b/data/syntax/hunspell-dat.xml
-deleted file mode 100644
-index a57fd58..0000000
-diff --git a/data/syntax/hunspell-dic.xml b/data/syntax/hunspell-dic.xml
-deleted file mode 100644
-index d714d8d..0000000
-diff --git a/data/syntax/hunspell-idx.xml b/data/syntax/hunspell-idx.xml
-deleted file mode 100644
-index 27ba59a..0000000
-diff --git a/data/syntax/idconsole.xml b/data/syntax/idconsole.xml
-deleted file mode 100644
-index 5464bd9..0000000
-diff --git a/data/syntax/idl.xml b/data/syntax/idl.xml
-deleted file mode 100644
-index a8a2787..0000000
-diff --git a/data/syntax/ilerpg.xml b/data/syntax/ilerpg.xml
-deleted file mode 100644
-index 4858efb..0000000
-diff --git a/data/syntax/inform.xml b/data/syntax/inform.xml
-deleted file mode 100644
-index 8bc04a2..0000000
-diff --git a/data/syntax/intelhex.xml b/data/syntax/intelhex.xml
-deleted file mode 100644
-index cfadf67..0000000
-diff --git a/data/syntax/isocpp.xml b/data/syntax/isocpp.xml
-deleted file mode 100644
-index 56f171b..0000000
-diff --git a/data/syntax/j.xml b/data/syntax/j.xml
-deleted file mode 100644
-index fae5b2f..0000000
-diff --git a/data/syntax/jam.xml b/data/syntax/jam.xml
-deleted file mode 100644
-index 0d8e520..0000000
-diff --git a/data/syntax/javascript-react.xml b/data/syntax/javascript-react.xml
-deleted file mode 100644
-index 98d0612..0000000
-diff --git a/data/syntax/javascript.xml b/data/syntax/javascript.xml
-deleted file mode 100644
-index a76e9cc..0000000
-diff --git a/data/syntax/jira.xml b/data/syntax/jira.xml
-deleted file mode 100644
-index 8274223..0000000
-diff --git a/data/syntax/jsp.xml b/data/syntax/jsp.xml
-deleted file mode 100644
-index 90614ac..0000000
-diff --git a/data/syntax/julia.xml b/data/syntax/julia.xml
-deleted file mode 100644
-index ed21005..0000000
-diff --git a/data/syntax/k.xml b/data/syntax/k.xml
-deleted file mode 100644
-index 9cd0fe3..0000000
-diff --git a/data/syntax/kbasic.xml b/data/syntax/kbasic.xml
-deleted file mode 100644
-index 41fc705..0000000
-diff --git a/data/syntax/kconfig.xml b/data/syntax/kconfig.xml
-deleted file mode 100644
-index c430772..0000000
-diff --git a/data/syntax/kdesrc-buildrc.xml b/data/syntax/kdesrc-buildrc.xml
-deleted file mode 100644
-index 6eaddff..0000000
-diff --git a/data/syntax/kotlin.xml b/data/syntax/kotlin.xml
-deleted file mode 100644
-index db58f67..0000000
-diff --git a/data/syntax/latex.xml b/data/syntax/latex.xml
-deleted file mode 100644
-index 9583e55..0000000
-diff --git a/data/syntax/ld.xml b/data/syntax/ld.xml
-deleted file mode 100644
-index 0f7a8af..0000000
-diff --git a/data/syntax/ldif.xml b/data/syntax/ldif.xml
-deleted file mode 100644
-index c49dbf7..0000000
-diff --git a/data/syntax/less.xml b/data/syntax/less.xml
-deleted file mode 100644
-index 38eb490..0000000
-diff --git a/data/syntax/lex.xml b/data/syntax/lex.xml
-deleted file mode 100644
-index 7f60575..0000000
-diff --git a/data/syntax/lilypond.xml b/data/syntax/lilypond.xml
-deleted file mode 100644
-index fc92d54..0000000
-diff --git a/data/syntax/literate-curry.xml b/data/syntax/literate-curry.xml
-deleted file mode 100644
-index ceb53b2..0000000
-diff --git a/data/syntax/literate-haskell.xml b/data/syntax/literate-haskell.xml
-deleted file mode 100644
-index 0089cb1..0000000
-diff --git a/data/syntax/logcat.xml b/data/syntax/logcat.xml
-deleted file mode 100644
-index 3481bdc..0000000
-diff --git a/data/syntax/logtalk.xml b/data/syntax/logtalk.xml
-deleted file mode 100644
-index 43d063c..0000000
-diff --git a/data/syntax/lpc.xml b/data/syntax/lpc.xml
-deleted file mode 100644
-index bf1dac5..0000000
-diff --git a/data/syntax/lsl.xml b/data/syntax/lsl.xml
-deleted file mode 100644
-index 2d0fc51..0000000
-diff --git a/data/syntax/lua.xml b/data/syntax/lua.xml
-deleted file mode 100644
-index cb842c9..0000000
-diff --git a/data/syntax/m3u.xml b/data/syntax/m3u.xml
-deleted file mode 100644
-index 99171b0..0000000
-diff --git a/data/syntax/m4.xml b/data/syntax/m4.xml
-deleted file mode 100644
-index 687c3ea..0000000
-diff --git a/data/syntax/mab.xml b/data/syntax/mab.xml
-deleted file mode 100644
-index 387432d..0000000
-diff --git a/data/syntax/magma.xml b/data/syntax/magma.xml
-deleted file mode 100644
-index a2fe461..0000000
-diff --git a/data/syntax/mako.xml b/data/syntax/mako.xml
-deleted file mode 100644
-index 7e9a071..0000000
-diff --git a/data/syntax/mandoc.xml b/data/syntax/mandoc.xml
-deleted file mode 100644
-index ed23b82..0000000
-diff --git a/data/syntax/mason.xml b/data/syntax/mason.xml
-deleted file mode 100644
-index 32c2885..0000000
-diff --git a/data/syntax/mathematica.xml b/data/syntax/mathematica.xml
-deleted file mode 100644
-index 3deb3de..0000000
-diff --git a/data/syntax/matlab.xml b/data/syntax/matlab.xml
-deleted file mode 100644
-index 1a93ccc..0000000
-diff --git a/data/syntax/maxima.xml b/data/syntax/maxima.xml
-deleted file mode 100644
-index cd06a3a..0000000
-diff --git a/data/syntax/mediawiki.xml b/data/syntax/mediawiki.xml
-deleted file mode 100644
-index accd0ec..0000000
-diff --git a/data/syntax/mel.xml b/data/syntax/mel.xml
-deleted file mode 100644
-index 8806852..0000000
-diff --git a/data/syntax/mergetagtext.xml b/data/syntax/mergetagtext.xml
-deleted file mode 100644
-index efcc1f7..0000000
-diff --git a/data/syntax/meson.xml b/data/syntax/meson.xml
-deleted file mode 100644
-index 4ecf547..0000000
-diff --git a/data/syntax/metafont.xml b/data/syntax/metafont.xml
-deleted file mode 100644
-index 88166ef..0000000
-diff --git a/data/syntax/metamath.xml b/data/syntax/metamath.xml
-deleted file mode 100644
-index 232603a..0000000
-diff --git a/data/syntax/mib.xml b/data/syntax/mib.xml
-deleted file mode 100644
-index 0455206..0000000
-diff --git a/data/syntax/mips.xml b/data/syntax/mips.xml
-deleted file mode 100644
-index 6802706..0000000
-diff --git a/data/syntax/modelica.xml b/data/syntax/modelica.xml
-deleted file mode 100644
-index 76cf281..0000000
-diff --git a/data/syntax/modelines.xml b/data/syntax/modelines.xml
-deleted file mode 100644
-index 0f3c882..0000000
-diff --git a/data/syntax/modula-2-iso-only.xml b/data/syntax/modula-2-iso-only.xml
-deleted file mode 100644
-index 9da7ae3..0000000
-diff --git a/data/syntax/modula-2-pim-only.xml b/data/syntax/modula-2-pim-only.xml
-deleted file mode 100644
-index 9906339..0000000
-diff --git a/data/syntax/modula-2-r10-only.xml b/data/syntax/modula-2-r10-only.xml
-deleted file mode 100644
-index de4fd1b..0000000
-diff --git a/data/syntax/modula-2.xml b/data/syntax/modula-2.xml
-deleted file mode 100644
-index da3676b..0000000
-diff --git a/data/syntax/monobasic.xml b/data/syntax/monobasic.xml
-deleted file mode 100644
-index 558dded..0000000
-diff --git a/data/syntax/mup.xml b/data/syntax/mup.xml
-deleted file mode 100644
-index a33fb49..0000000
-diff --git a/data/syntax/nagios.xml b/data/syntax/nagios.xml
-deleted file mode 100644
-index 20b81ea..0000000
-diff --git a/data/syntax/nasm.xml b/data/syntax/nasm.xml
-deleted file mode 100644
-index ba50d50..0000000
-diff --git a/data/syntax/nemerle.xml b/data/syntax/nemerle.xml
-deleted file mode 100644
-index 208d70d..0000000
-diff --git a/data/syntax/nesc.xml b/data/syntax/nesc.xml
-deleted file mode 100644
-index 5a5d0db..0000000
-diff --git a/data/syntax/noweb.xml b/data/syntax/noweb.xml
-deleted file mode 100644
-index 09641af..0000000
-diff --git a/data/syntax/nsis.xml b/data/syntax/nsis.xml
-deleted file mode 100644
-index 567419d..0000000
-diff --git a/data/syntax/objectivec.xml b/data/syntax/objectivec.xml
-deleted file mode 100644
-index bdad6fe..0000000
-diff --git a/data/syntax/objectivecpp.xml b/data/syntax/objectivecpp.xml
-deleted file mode 100644
-index a48f9c9..0000000
-diff --git a/data/syntax/ocaml.xml b/data/syntax/ocaml.xml
-deleted file mode 100644
-index 4d47d7b..0000000
-diff --git a/data/syntax/ocamllex.xml b/data/syntax/ocamllex.xml
-deleted file mode 100644
-index 14b5837..0000000
-diff --git a/data/syntax/ocamlyacc.xml b/data/syntax/ocamlyacc.xml
-deleted file mode 100644
-index 6d4d7ba..0000000
-diff --git a/data/syntax/octave.xml b/data/syntax/octave.xml
-deleted file mode 100644
-index 5cdd261..0000000
-diff --git a/data/syntax/oors.xml b/data/syntax/oors.xml
-deleted file mode 100644
-index d28011c..0000000
-diff --git a/data/syntax/opal.xml b/data/syntax/opal.xml
-deleted file mode 100644
-index e390d13..0000000
-diff --git a/data/syntax/opencl.xml b/data/syntax/opencl.xml
-deleted file mode 100644
-index f18ac7f..0000000
-diff --git a/data/syntax/openscad.xml b/data/syntax/openscad.xml
-deleted file mode 100644
-index b5005df..0000000
-diff --git a/data/syntax/pango.xml b/data/syntax/pango.xml
-deleted file mode 100644
-index 2a4f420..0000000
-diff --git a/data/syntax/pascal.xml b/data/syntax/pascal.xml
-deleted file mode 100644
-index 54ae266..0000000
-diff --git a/data/syntax/pgn.xml b/data/syntax/pgn.xml
-deleted file mode 100644
-index ee508df..0000000
-diff --git a/data/syntax/php.xml b/data/syntax/php.xml
-deleted file mode 100644
-index acad510..0000000
-diff --git a/data/syntax/picsrc.xml b/data/syntax/picsrc.xml
-deleted file mode 100644
-index a60c890..0000000
-diff --git a/data/syntax/pig.xml b/data/syntax/pig.xml
-deleted file mode 100644
-index fe2a6f1..0000000
-diff --git a/data/syntax/pike.xml b/data/syntax/pike.xml
-deleted file mode 100644
-index 5a111e2..0000000
-diff --git a/data/syntax/pli.xml b/data/syntax/pli.xml
-deleted file mode 100644
-index 15148bc..0000000
-diff --git a/data/syntax/ply.xml b/data/syntax/ply.xml
-deleted file mode 100644
-index 852f4b3..0000000
-diff --git a/data/syntax/pony.xml b/data/syntax/pony.xml
-deleted file mode 100644
-index 43c24ae..0000000
-diff --git a/data/syntax/postscript.xml b/data/syntax/postscript.xml
-deleted file mode 100644
-index 474167d..0000000
-diff --git a/data/syntax/povray.xml b/data/syntax/povray.xml
-deleted file mode 100644
-index 152559a..0000000
-diff --git a/data/syntax/ppd.xml b/data/syntax/ppd.xml
-deleted file mode 100644
-index a049512..0000000
-diff --git a/data/syntax/praat.xml b/data/syntax/praat.xml
-deleted file mode 100644
-index a10219d..0000000
-diff --git a/data/syntax/progress.xml b/data/syntax/progress.xml
-deleted file mode 100644
-index c467ae1..0000000
-diff --git a/data/syntax/prolog.xml b/data/syntax/prolog.xml
-deleted file mode 100644
-index 7c1b15b..0000000
-diff --git a/data/syntax/protobuf.xml b/data/syntax/protobuf.xml
-deleted file mode 100644
-index bc05a15..0000000
-diff --git a/data/syntax/pug.xml b/data/syntax/pug.xml
-deleted file mode 100644
-index b960317..0000000
-diff --git a/data/syntax/puppet.xml b/data/syntax/puppet.xml
-deleted file mode 100644
-index 57b6eea..0000000
-diff --git a/data/syntax/purebasic.xml b/data/syntax/purebasic.xml
-deleted file mode 100644
-index be1a33b..0000000
-diff --git a/data/syntax/q.xml b/data/syntax/q.xml
-deleted file mode 100644
-index c8fbc8b..0000000
-diff --git a/data/syntax/qmake.xml b/data/syntax/qmake.xml
-deleted file mode 100644
-index bae7296..0000000
-diff --git a/data/syntax/qml.xml b/data/syntax/qml.xml
-deleted file mode 100644
-index b41680d..0000000
-diff --git a/data/syntax/r.xml b/data/syntax/r.xml
-deleted file mode 100644
-index 144418a..0000000
-diff --git a/data/syntax/rapidq.xml b/data/syntax/rapidq.xml
-deleted file mode 100644
-index 67a7a8e..0000000
-diff --git a/data/syntax/rdoc.xml b/data/syntax/rdoc.xml
-deleted file mode 100644
-index e6d73cd..0000000
-diff --git a/data/syntax/relaxng.xml b/data/syntax/relaxng.xml
-deleted file mode 100644
-index 28fdb31..0000000
-diff --git a/data/syntax/relaxngcompact.xml b/data/syntax/relaxngcompact.xml
-deleted file mode 100644
-index 6bcc484..0000000
-diff --git a/data/syntax/replicode.xml b/data/syntax/replicode.xml
-deleted file mode 100644
-index 189a0ff..0000000
-diff --git a/data/syntax/rest.xml b/data/syntax/rest.xml
-deleted file mode 100644
-index 6ca3a1a..0000000
-diff --git a/data/syntax/rexx.xml b/data/syntax/rexx.xml
-deleted file mode 100644
-index a51eb3f..0000000
-diff --git a/data/syntax/rhtml.xml b/data/syntax/rhtml.xml
-deleted file mode 100644
-index 291cea5..0000000
-diff --git a/data/syntax/rib.xml b/data/syntax/rib.xml
-deleted file mode 100644
-index e8ec3da..0000000
-diff --git a/data/syntax/rmarkdown.xml b/data/syntax/rmarkdown.xml
-deleted file mode 100644
-index 6d27305..0000000
-diff --git a/data/syntax/roff.xml b/data/syntax/roff.xml
-deleted file mode 100644
-index 6b428be..0000000
-diff --git a/data/syntax/rpmspec.xml b/data/syntax/rpmspec.xml
-deleted file mode 100644
-index 3ae4eb9..0000000
-diff --git a/data/syntax/rsiidl.xml b/data/syntax/rsiidl.xml
-deleted file mode 100644
-index 11c5c69..0000000
-diff --git a/data/syntax/rtf.xml b/data/syntax/rtf.xml
-deleted file mode 100644
-index 42ce267..0000000
-diff --git a/data/syntax/rust.xml b/data/syntax/rust.xml
-deleted file mode 100644
-index 6657cf2..0000000
-diff --git a/data/syntax/sather.xml b/data/syntax/sather.xml
-deleted file mode 100644
-index 89819cf..0000000
-diff --git a/data/syntax/scala.xml b/data/syntax/scala.xml
-deleted file mode 100644
-index 284281e..0000000
-diff --git a/data/syntax/scheme.xml b/data/syntax/scheme.xml
-deleted file mode 100644
-index 749a913..0000000
-diff --git a/data/syntax/sci.xml b/data/syntax/sci.xml
-deleted file mode 100644
-index 20af7ac..0000000
-diff --git a/data/syntax/scss.xml b/data/syntax/scss.xml
-deleted file mode 100644
-index e4efc0a..0000000
-diff --git a/data/syntax/sed.xml b/data/syntax/sed.xml
-deleted file mode 100644
-index 10e4b8c..0000000
-diff --git a/data/syntax/selinux-cil.xml b/data/syntax/selinux-cil.xml
-deleted file mode 100644
-index 8f6f972..0000000
-diff --git a/data/syntax/selinux-fc.xml b/data/syntax/selinux-fc.xml
-deleted file mode 100644
-index 5bab65f..0000000
-diff --git a/data/syntax/selinux.xml b/data/syntax/selinux.xml
-deleted file mode 100644
-index cb396d1..0000000
-diff --git a/data/syntax/sgml.xml b/data/syntax/sgml.xml
-deleted file mode 100644
-index 87f2fe3..0000000
-diff --git a/data/syntax/sieve.xml b/data/syntax/sieve.xml
-deleted file mode 100644
-index 448766a..0000000
-diff --git a/data/syntax/sisu.xml b/data/syntax/sisu.xml
-deleted file mode 100644
-index 8376855..0000000
-diff --git a/data/syntax/sml.xml b/data/syntax/sml.xml
-deleted file mode 100644
-index 7d63002..0000000
-diff --git a/data/syntax/spice.xml b/data/syntax/spice.xml
-deleted file mode 100644
-index b67763c..0000000
-diff --git a/data/syntax/sql-mysql.xml b/data/syntax/sql-mysql.xml
-deleted file mode 100644
-index f37b706..0000000
-diff --git a/data/syntax/sql-oracle.xml b/data/syntax/sql-oracle.xml
-deleted file mode 100644
-index 7bb32fc..0000000
-diff --git a/data/syntax/sql-postgresql.xml b/data/syntax/sql-postgresql.xml
-deleted file mode 100644
-index 6cf5a6a..0000000
-diff --git a/data/syntax/sql.xml b/data/syntax/sql.xml
-deleted file mode 100644
-index 1e33b86..0000000
-diff --git a/data/syntax/stan.xml b/data/syntax/stan.xml
-deleted file mode 100644
-index 10c1696..0000000
-diff --git a/data/syntax/stata.xml b/data/syntax/stata.xml
-deleted file mode 100644
-index ce3b435..0000000
-diff --git a/data/syntax/stl.xml b/data/syntax/stl.xml
-deleted file mode 100644
-index 41f4856..0000000
-diff --git a/data/syntax/systemc.xml b/data/syntax/systemc.xml
-deleted file mode 100644
-index eb43a8e..0000000
-diff --git a/data/syntax/systemverilog.xml b/data/syntax/systemverilog.xml
-deleted file mode 100644
-index b0e78aa..0000000
-diff --git a/data/syntax/tads3.xml b/data/syntax/tads3.xml
-deleted file mode 100644
-index 7df8690..0000000
-diff --git a/data/syntax/taskjuggler.xml b/data/syntax/taskjuggler.xml
-deleted file mode 100644
-index bb81dfe..0000000
-diff --git a/data/syntax/tcl.xml b/data/syntax/tcl.xml
-deleted file mode 100644
-index 3de1876..0000000
-diff --git a/data/syntax/tcsh.xml b/data/syntax/tcsh.xml
-deleted file mode 100644
-index dc63b3c..0000000
-diff --git a/data/syntax/template-toolkit.xml b/data/syntax/template-toolkit.xml
-deleted file mode 100644
-index b004cb5..0000000
-diff --git a/data/syntax/texinfo.xml b/data/syntax/texinfo.xml
-deleted file mode 100644
-index a43394a..0000000
-diff --git a/data/syntax/textile.xml b/data/syntax/textile.xml
-deleted file mode 100644
-index b0e8250..0000000
-diff --git a/data/syntax/tibasic.xml b/data/syntax/tibasic.xml
-deleted file mode 100644
-index d1a0fca..0000000
-diff --git a/data/syntax/tiger.xml b/data/syntax/tiger.xml
-deleted file mode 100644
-index 482fdc4..0000000
-diff --git a/data/syntax/toml.xml b/data/syntax/toml.xml
-deleted file mode 100644
-index 2369854..0000000
-diff --git a/data/syntax/txt2tags.xml b/data/syntax/txt2tags.xml
-deleted file mode 100644
-index 1635f99..0000000
-diff --git a/data/syntax/uscript.xml b/data/syntax/uscript.xml
-deleted file mode 100644
-index 13d3262..0000000
-diff --git a/data/syntax/vala.xml b/data/syntax/vala.xml
-deleted file mode 100644
-index 8f9aab7..0000000
-diff --git a/data/syntax/varnish.xml b/data/syntax/varnish.xml
-deleted file mode 100644
-index 5916872..0000000
-diff --git a/data/syntax/varnish4.xml b/data/syntax/varnish4.xml
-deleted file mode 100644
-index 03ad852..0000000
-diff --git a/data/syntax/varnishcc.xml b/data/syntax/varnishcc.xml
-deleted file mode 100644
-index 0a0052b..0000000
-diff --git a/data/syntax/varnishcc4.xml b/data/syntax/varnishcc4.xml
-deleted file mode 100644
-index 481ad93..0000000
-diff --git a/data/syntax/varnishtest.xml b/data/syntax/varnishtest.xml
-deleted file mode 100644
-index ceb94d2..0000000
-diff --git a/data/syntax/varnishtest4.xml b/data/syntax/varnishtest4.xml
-deleted file mode 100644
-index ec0d96f..0000000
-diff --git a/data/syntax/vcard.xml b/data/syntax/vcard.xml
-deleted file mode 100644
-index 5eafaa0..0000000
-diff --git a/data/syntax/velocity.xml b/data/syntax/velocity.xml
-deleted file mode 100644
-index cf901d8..0000000
-diff --git a/data/syntax/vera.xml b/data/syntax/vera.xml
-deleted file mode 100644
-index c3802c8..0000000
-diff --git a/data/syntax/verilog.xml b/data/syntax/verilog.xml
-deleted file mode 100644
-index 9f113b4..0000000
-diff --git a/data/syntax/vhdl.xml b/data/syntax/vhdl.xml
-deleted file mode 100644
-index 6a59911..0000000
-diff --git a/data/syntax/vrml.xml b/data/syntax/vrml.xml
-deleted file mode 100644
-index 25839fd..0000000
-diff --git a/data/syntax/wavefront-obj.xml b/data/syntax/wavefront-obj.xml
-deleted file mode 100644
-index 46d6ea7..0000000
-diff --git a/data/syntax/winehq.xml b/data/syntax/winehq.xml
-deleted file mode 100644
-index 112f67d..0000000
-diff --git a/data/syntax/wml.xml b/data/syntax/wml.xml
-deleted file mode 100644
-index 433649c..0000000
-diff --git a/data/syntax/xharbour.xml b/data/syntax/xharbour.xml
-deleted file mode 100644
-index 43336fd..0000000
-diff --git a/data/syntax/xmldebug.xml b/data/syntax/xmldebug.xml
-deleted file mode 100644
-index 68a1e8d..0000000
-diff --git a/data/syntax/xonotic-console.xml b/data/syntax/xonotic-console.xml
-deleted file mode 100644
-index 13ef083..0000000
-diff --git a/data/syntax/xorg.xml b/data/syntax/xorg.xml
-deleted file mode 100644
-index 8ea8855..0000000
-diff --git a/data/syntax/xslt.xml b/data/syntax/xslt.xml
-deleted file mode 100644
-index 37b8577..0000000
-diff --git a/data/syntax/xul.xml b/data/syntax/xul.xml
-deleted file mode 100644
-index 8dc6b65..0000000
-diff --git a/data/syntax/yacas.xml b/data/syntax/yacas.xml
-deleted file mode 100644
-index 12dd078..0000000
-diff --git a/data/syntax/yaml.xml b/data/syntax/yaml.xml
-deleted file mode 100644
-index 7c69ab6..0000000
-diff --git a/data/syntax/yang.xml b/data/syntax/yang.xml
-deleted file mode 100644
-index 051be6a..0000000
-diff --git a/data/syntax/zonnon.xml b/data/syntax/zonnon.xml
-deleted file mode 100644
-index ebe51e1..0000000
-diff --git a/data/syntax/zsh.xml b/data/syntax/zsh.xml
-deleted file mode 100644
-index be40144..0000000
---
-2.20.1.windows.1
-
diff --git a/src/libs/3rdparty/syntax-highlighting/patches/0002-Remove-autotests.patch b/src/libs/3rdparty/syntax-highlighting/patches/0002-Remove-autotests.patch
deleted file mode 100644
index a7174cabea..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/patches/0002-Remove-autotests.patch
+++ /dev/null
@@ -1,2901 +0,0 @@
-From 5191890626af72cabcf49a2b6197ef2e29af218b Mon Sep 17 00:00:00 2001
-From: Alessandro Portale <alessandro.portale@qt.io>
-Date: Tue, 12 Feb 2019 19:35:08 +0100
-Subject: [PATCH 2/6] Remove autotests
-
----
- CMakeLists.txt | 3 -
- autotests/CMakeLists.txt | 49 -
- autotests/folding/Dockerfile.fold | 19 -
- autotests/folding/Doxyfile.example.fold | 2406 ----------------
- autotests/folding/Kconfig.fold | 15 -
- autotests/folding/Makefile.fold | 28 -
- autotests/folding/adblock.txt.fold | 53 -
- autotests/folding/apache.conf.fold | 67 -
- autotests/folding/basic.markdown.fold | 6 -
- autotests/folding/basic.xml.fold | 4 -
- autotests/folding/build.gradle.fold | 57 -
- autotests/folding/clojure.clj.fold | 73 -
- autotests/folding/complex.xml.fold | 13 -
- autotests/folding/craftenv.ps1.fold | 109 -
- autotests/folding/csharp.cs.fold | 38 -
- autotests/folding/cube.obj.fold | 33 -
- autotests/folding/cube.ply.fold | 26 -
- autotests/folding/cube.stl.fold | 30 -
- autotests/folding/example.rmd.fold | 39 -
- autotests/folding/firstNonSpace.c.fold | 7 -
- autotests/folding/folding.cpp.fold | 15 -
- autotests/folding/git-rebase.fold | 32 -
- autotests/folding/hello.exs.fold | 11 -
- autotests/folding/highlight.ahdl.fold | 43 -
- autotests/folding/highlight.asm-avr.fold | 75 -
- autotests/folding/highlight.asm-nasm.fold | 27 -
- autotests/folding/highlight.asp.fold | 58 -
- autotests/folding/highlight.awk.fold | 52 -
- autotests/folding/highlight.bib.fold | 31 -
- autotests/folding/highlight.bt.fold | 31 -
- autotests/folding/highlight.cmake.fold | 111 -
- autotests/folding/highlight.cpp.fold | 507 ----
- autotests/folding/highlight.css.fold | 286 --
- autotests/folding/highlight.d.fold | 195 --
- autotests/folding/highlight.do.fold | 89 -
- autotests/folding/highlight.dox.fold | 227 --
- autotests/folding/highlight.erl.fold | 68 -
- autotests/folding/highlight.exu.fold | 97 -
- autotests/folding/highlight.f90.fold | 181 --
- autotests/folding/highlight.gdb.fold | 156 --
- autotests/folding/highlight.gdbinit.fold | 9 -
- autotests/folding/highlight.glsl.fold | 62 -
- autotests/folding/highlight.hex.fold | 8 -
- autotests/folding/highlight.hs.fold | 139 -
- autotests/folding/highlight.java.fold | 48 -
- autotests/folding/highlight.js.fold | 139 -
- autotests/folding/highlight.jsp.fold | 170 --
- autotests/folding/highlight.less.fold | 701 -----
- autotests/folding/highlight.lex.fold | 82 -
- autotests/folding/highlight.lgt.fold | 448 ---
- autotests/folding/highlight.lhs.fold | 124 -
- autotests/folding/highlight.lisp.fold | 36 -
- autotests/folding/highlight.lua.fold | 160 --
- autotests/folding/highlight.ly.fold | 114 -
- autotests/folding/highlight.m.fold | 61 -
- autotests/folding/highlight.mac.fold | 145 -
- autotests/folding/highlight.mup.fold | 103 -
- autotests/folding/highlight.pb.fold | 87 -
- autotests/folding/highlight.php.fold | 26 -
- autotests/folding/highlight.pike.fold | 24 -
- autotests/folding/highlight.pl.fold | 75 -
- autotests/folding/highlight.pony.fold | 219 --
- autotests/folding/highlight.pov.fold | 76 -
- autotests/folding/highlight.prg.fold | 71 -
- autotests/folding/highlight.qml.fold | 59 -
- autotests/folding/highlight.rb.fold | 551 ----
- autotests/folding/highlight.scad.fold | 23 -
- autotests/folding/highlight.scheme.fold | 186 --
- autotests/folding/highlight.scss.fold | 693 -----
- autotests/folding/highlight.sh.fold | 207 --
- autotests/folding/highlight.spec.fold | 212 --
- autotests/folding/highlight.stan.fold | 380 ---
- autotests/folding/highlight.t2t.fold | 90 -
- autotests/folding/highlight.tcl.fold | 50 -
- autotests/folding/highlight.tex.fold | 85 -
- autotests/folding/highlight.tig.fold | 78 -
- autotests/folding/highlight.wrl.fold | 41 -
- autotests/folding/highlight.xml.fold | 67 -
- autotests/folding/highlight.xsl.fold | 109 -
- autotests/folding/highlight.y.fold | 93 -
- autotests/folding/highlight.yang.fold | 38 -
- autotests/folding/highlight_lpc.c.fold | 64 -
- autotests/folding/highlight_ocaml.ml.fold | 105 -
- autotests/folding/highlight_octave.m.fold | 74 -
- autotests/folding/learnelixir.exs.fold | 397 ---
- autotests/folding/light52_muldiv.vhdl.fold | 239 --
- autotests/folding/light52_tb.vhdl.fold | 186 --
- autotests/folding/meson.build.fold | 21 -
- autotests/folding/modelines.py.fold | 10 -
- autotests/folding/or1200_dc_fsm.v.fold | 563 ----
- autotests/folding/or1200_du.v.fold | 1803 ------------
- .../folding/preprocessor-bug363280.c.fold | 8 -
- .../folding/preprocessor-bug363280.cpp.fold | 8 -
- autotests/folding/review128925-1.css.fold | 112 -
- autotests/folding/review128925-1.scss.fold | 211 --
- autotests/folding/review128925-2.css.fold | 62 -
- autotests/folding/review128925-2.scss.fold | 81 -
- autotests/folding/review128935.html.fold | 164 --
- autotests/folding/test-iso.mod.fold | 96 -
- autotests/folding/test-pim.mod.fold | 90 -
- autotests/folding/test-r10.mod.fold | 112 -
- autotests/folding/test.Rd.fold | 51 -
- autotests/folding/test.bash.fold | 23 -
- autotests/folding/test.bb.fold | 34 -
- autotests/folding/test.c.fold | 56 -
- autotests/folding/test.cil.fold | 153 --
- autotests/folding/test.coffee.fold | 71 -
- autotests/folding/test.css.fold | 18 -
- autotests/folding/test.desktop.fold | 19 -
- autotests/folding/test.diff.fold | 48 -
- autotests/folding/test.eml.fold | 94 -
- autotests/folding/test.fc.fold | 116 -
- autotests/folding/test.frag.fold | 26 -
- autotests/folding/test.htm.fold | 17 -
- autotests/folding/test.ijs.fold | 61 -
- autotests/folding/test.ini.fold | 18 -
- autotests/folding/test.js.fold | 23 -
- autotests/folding/test.json.fold | 13 -
- autotests/folding/test.jsx.fold | 50 -
- autotests/folding/test.logcat.fold | 90 -
- autotests/folding/test.markdown.fold | 67 -
- autotests/folding/test.mib.fold | 526 ----
- autotests/folding/test.mm.fold | 42 -
- autotests/folding/test.mod.fold | 96 -
- autotests/folding/test.mss.fold | 215 --
- autotests/folding/test.py.fold | 50 -
- autotests/folding/test.qdocconf.fold | 65 -
- autotests/folding/test.qml.fold | 23 -
- autotests/folding/test.rexx.fold | 52 -
- autotests/folding/test.rs.fold | 87 -
- autotests/folding/test.sieve.fold | 387 ---
- autotests/folding/test.sql.fold | 65 -
- autotests/folding/test.sql_oracle.fold | 54 -
- autotests/folding/test.te.fold | 139 -
- autotests/folding/test.tex.fold | 5 -
- autotests/folding/test.yaml.fold | 151 --
- autotests/folding/test.zsh.fold | 66 -
- .../usr.bin.apparmor-profile-test.fold | 270 --
- autotests/foldingtest.cpp | 191 --
- autotests/highlighter_benchmark.cpp | 145 -
- autotests/html/Dockerfile.html | 26 -
- autotests/html/Doxyfile.example.html | 2413 -----------------
- autotests/html/Kconfig.html | 22 -
- autotests/html/Makefile.html | 35 -
- autotests/html/adblock.txt.html | 60 -
- autotests/html/apache.conf.html | 74 -
- autotests/html/basic.markdown.html | 13 -
- autotests/html/basic.xml.html | 11 -
- autotests/html/build.gradle.html | 64 -
- autotests/html/clojure.clj.html | 80 -
- autotests/html/complex.xml.html | 20 -
- autotests/html/craftenv.ps1.html | 116 -
- autotests/html/csharp.cs.html | 45 -
- autotests/html/cube.obj.html | 40 -
- autotests/html/cube.ply.html | 33 -
- autotests/html/cube.stl.html | 37 -
- autotests/html/example.rmd.html | 46 -
- autotests/html/firstNonSpace.c.html | 14 -
- autotests/html/folding.cpp.html | 22 -
- autotests/html/git-rebase.html | 39 -
- autotests/html/hello.exs.html | 18 -
- autotests/html/highlight.ahdl.html | 50 -
- autotests/html/highlight.asm-avr.html | 82 -
- autotests/html/highlight.asm-nasm.html | 34 -
- autotests/html/highlight.asp.html | 65 -
- autotests/html/highlight.awk.html | 59 -
- autotests/html/highlight.bib.html | 38 -
- autotests/html/highlight.bt.html | 38 -
- autotests/html/highlight.cmake.html | 118 -
- autotests/html/highlight.cpp.html | 514 ----
- autotests/html/highlight.css.html | 293 --
- autotests/html/highlight.d.html | 202 --
- autotests/html/highlight.do.html | 96 -
- autotests/html/highlight.dox.html | 234 --
- autotests/html/highlight.erl.html | 75 -
- autotests/html/highlight.exu.html | 104 -
- autotests/html/highlight.f90.html | 188 --
- autotests/html/highlight.gdb.html | 163 --
- autotests/html/highlight.gdbinit.html | 16 -
- autotests/html/highlight.glsl.html | 69 -
- autotests/html/highlight.hex.html | 15 -
- autotests/html/highlight.hs.html | 146 -
- autotests/html/highlight.java.html | 55 -
- autotests/html/highlight.js.html | 146 -
- autotests/html/highlight.jsp.html | 177 --
- autotests/html/highlight.less.html | 708 -----
- autotests/html/highlight.lex.html | 89 -
- autotests/html/highlight.lgt.html | 455 ----
- autotests/html/highlight.lhs.html | 131 -
- autotests/html/highlight.lisp.html | 43 -
- autotests/html/highlight.lua.html | 167 --
- autotests/html/highlight.ly.html | 121 -
- autotests/html/highlight.m.html | 68 -
- autotests/html/highlight.mac.html | 152 --
- autotests/html/highlight.mup.html | 110 -
- autotests/html/highlight.pb.html | 94 -
- autotests/html/highlight.php.html | 33 -
- autotests/html/highlight.pike.html | 31 -
- autotests/html/highlight.pl.html | 82 -
- autotests/html/highlight.pony.html | 226 --
- autotests/html/highlight.pov.html | 83 -
- autotests/html/highlight.prg.html | 78 -
- autotests/html/highlight.qml.html | 66 -
- autotests/html/highlight.rb.html | 558 ----
- autotests/html/highlight.scad.html | 30 -
- autotests/html/highlight.scheme.html | 193 --
- autotests/html/highlight.scss.html | 700 -----
- autotests/html/highlight.sh.html | 214 --
- autotests/html/highlight.spec.html | 219 --
- autotests/html/highlight.stan.html | 387 ---
- autotests/html/highlight.t2t.html | 97 -
- autotests/html/highlight.tcl.html | 57 -
- autotests/html/highlight.tex.html | 92 -
- autotests/html/highlight.tig.html | 85 -
- autotests/html/highlight.wrl.html | 48 -
- autotests/html/highlight.xml.html | 74 -
- autotests/html/highlight.xsl.html | 116 -
- autotests/html/highlight.y.html | 100 -
- autotests/html/highlight.yang.html | 45 -
- autotests/html/highlight_lpc.c.html | 71 -
- autotests/html/highlight_ocaml.ml.html | 112 -
- autotests/html/highlight_octave.m.html | 81 -
- autotests/html/learnelixir.exs.html | 404 ---
- autotests/html/light52_muldiv.vhdl.html | 246 --
- autotests/html/light52_tb.vhdl.html | 193 --
- autotests/html/meson.build.html | 28 -
- autotests/html/modelines.py.html | 17 -
- autotests/html/or1200_dc_fsm.v.html | 570 ----
- autotests/html/or1200_du.v.html | 1810 -------------
- autotests/html/preprocessor-bug363280.c.html | 15 -
- .../html/preprocessor-bug363280.cpp.html | 15 -
- autotests/html/review128925-1.css.html | 119 -
- autotests/html/review128925-1.scss.html | 218 --
- autotests/html/review128925-2.css.html | 69 -
- autotests/html/review128925-2.scss.html | 88 -
- autotests/html/review128935.html.html | 171 --
- autotests/html/test-iso.mod.html | 103 -
- autotests/html/test-pim.mod.html | 97 -
- autotests/html/test-r10.mod.html | 119 -
- autotests/html/test.Rd.html | 58 -
- autotests/html/test.bash.html | 30 -
- autotests/html/test.bb.html | 41 -
- autotests/html/test.c.html | 63 -
- autotests/html/test.cil.html | 160 --
- autotests/html/test.coffee.html | 78 -
- autotests/html/test.css.html | 25 -
- autotests/html/test.desktop.html | 26 -
- autotests/html/test.diff.html | 55 -
- autotests/html/test.eml.html | 101 -
- autotests/html/test.fc.html | 123 -
- autotests/html/test.frag.html | 33 -
- autotests/html/test.htm.html | 24 -
- autotests/html/test.ijs.html | 68 -
- autotests/html/test.ini.html | 25 -
- autotests/html/test.js.html | 30 -
- autotests/html/test.json.html | 20 -
- autotests/html/test.jsx.html | 57 -
- autotests/html/test.logcat.html | 97 -
- autotests/html/test.markdown.html | 74 -
- autotests/html/test.mib.html | 533 ----
- autotests/html/test.mm.html | 49 -
- autotests/html/test.mod.html | 103 -
- autotests/html/test.mss.html | 222 --
- autotests/html/test.py.html | 57 -
- autotests/html/test.qdocconf.html | 72 -
- autotests/html/test.qml.html | 30 -
- autotests/html/test.rexx.html | 59 -
- autotests/html/test.rs.html | 94 -
- autotests/html/test.sieve.html | 394 ---
- autotests/html/test.sql.html | 72 -
- autotests/html/test.sql_oracle.html | 61 -
- autotests/html/test.te.html | 146 -
- autotests/html/test.tex.html | 12 -
- autotests/html/test.yaml.html | 158 --
- autotests/html/test.zsh.html | 73 -
- .../html/usr.bin.apparmor-profile-test.html | 277 --
- autotests/htmlhighlighter_test.cpp | 121 -
- autotests/input/Dockerfile | 19 -
- autotests/input/Doxyfile.example | 2406 ----------------
- autotests/input/Kconfig | 15 -
- autotests/input/Makefile | 28 -
- autotests/input/adblock.txt | 53 -
- autotests/input/adblock.txt.syntax | 1 -
- autotests/input/apache.conf | 67 -
- autotests/input/apache.conf.syntax | 1 -
- autotests/input/basic.markdown | 6 -
- autotests/input/basic.xml | 4 -
- autotests/input/build.gradle | 57 -
- autotests/input/clojure.clj | 73 -
- autotests/input/complex.xml | 13 -
- autotests/input/craftenv.ps1 | 109 -
- autotests/input/csharp.cs | 38 -
- autotests/input/cube.obj | 33 -
- autotests/input/cube.ply | 26 -
- autotests/input/cube.stl | 30 -
- autotests/input/example.rmd | 39 -
- autotests/input/firstNonSpace.c | 7 -
- autotests/input/folding.cpp | 15 -
- autotests/input/git-rebase | 32 -
- autotests/input/git-rebase.syntax | 1 -
- autotests/input/hello.exs | 11 -
- autotests/input/highlight.ahdl | 43 -
- autotests/input/highlight.asm-avr | 75 -
- autotests/input/highlight.asm-nasm | 27 -
- autotests/input/highlight.asm-nasm.syntax | 1 -
- autotests/input/highlight.asp | 58 -
- autotests/input/highlight.awk | 52 -
- autotests/input/highlight.bib | 31 -
- autotests/input/highlight.bt | 31 -
- autotests/input/highlight.cmake | 111 -
- autotests/input/highlight.cpp | 507 ----
- autotests/input/highlight.css | 286 --
- autotests/input/highlight.d | 195 --
- autotests/input/highlight.do | 89 -
- autotests/input/highlight.dox | 227 --
- autotests/input/highlight.erl | 68 -
- autotests/input/highlight.exu | 97 -
- autotests/input/highlight.f90 | 181 --
- autotests/input/highlight.gdb | 156 --
- autotests/input/highlight.gdbinit | 9 -
- autotests/input/highlight.glsl | 62 -
- autotests/input/highlight.hex | 8 -
- autotests/input/highlight.hs | 139 -
- autotests/input/highlight.java | 48 -
- autotests/input/highlight.js | 139 -
- autotests/input/highlight.jsp | 170 --
- autotests/input/highlight.less | 701 -----
- autotests/input/highlight.lex | 82 -
- autotests/input/highlight.lgt | 448 ---
- autotests/input/highlight.lhs | 124 -
- autotests/input/highlight.lisp | 36 -
- autotests/input/highlight.lua | 160 --
- autotests/input/highlight.ly | 114 -
- autotests/input/highlight.m | 61 -
- autotests/input/highlight.m.syntax | 1 -
- autotests/input/highlight.mac | 145 -
- autotests/input/highlight.mup | 103 -
- autotests/input/highlight.pb | 87 -
- autotests/input/highlight.php | 26 -
- autotests/input/highlight.pike | 24 -
- autotests/input/highlight.pl | 75 -
- autotests/input/highlight.pony | 219 --
- autotests/input/highlight.pov | 76 -
- autotests/input/highlight.prg | 71 -
- autotests/input/highlight.prg.syntax | 1 -
- autotests/input/highlight.qml | 59 -
- autotests/input/highlight.rb | 551 ----
- autotests/input/highlight.scad | 23 -
- autotests/input/highlight.scheme | 186 --
- autotests/input/highlight.scss | 693 -----
- autotests/input/highlight.sh | 207 --
- autotests/input/highlight.sh.syntax | 1 -
- autotests/input/highlight.spec | 212 --
- autotests/input/highlight.stan | 380 ---
- autotests/input/highlight.t2t | 90 -
- autotests/input/highlight.tcl | 50 -
- autotests/input/highlight.tex | 85 -
- autotests/input/highlight.tig | 78 -
- autotests/input/highlight.wrl | 41 -
- autotests/input/highlight.xml | 67 -
- autotests/input/highlight.xsl | 109 -
- autotests/input/highlight.y | 93 -
- autotests/input/highlight.yang | 38 -
- autotests/input/highlight_lpc.c | 64 -
- autotests/input/highlight_lpc.c.syntax | 1 -
- autotests/input/highlight_ocaml.ml | 105 -
- autotests/input/highlight_octave.m | 74 -
- autotests/input/highlight_octave.m.syntax | 1 -
- autotests/input/learnelixir.exs | 397 ---
- autotests/input/light52_muldiv.vhdl | 239 --
- autotests/input/light52_tb.vhdl | 186 --
- autotests/input/meson.build | 21 -
- autotests/input/modelines.py | 10 -
- autotests/input/or1200_dc_fsm.v | 563 ----
- autotests/input/or1200_du.v | 1803 ------------
- autotests/input/preprocessor-bug363280.c | 8 -
- autotests/input/preprocessor-bug363280.cpp | 8 -
- autotests/input/review128925-1.css | 112 -
- autotests/input/review128925-1.scss | 211 --
- autotests/input/review128925-2.css | 62 -
- autotests/input/review128925-2.scss | 81 -
- autotests/input/review128935.html | 164 --
- autotests/input/syntax/testlang.xml | 27 -
- autotests/input/test-iso.mod | 96 -
- autotests/input/test-iso.mod.syntax | 1 -
- autotests/input/test-pim.mod | 90 -
- autotests/input/test-pim.mod.syntax | 1 -
- autotests/input/test-r10.mod | 112 -
- autotests/input/test-r10.mod.syntax | 1 -
- autotests/input/test.Rd | 51 -
- autotests/input/test.bash | 23 -
- autotests/input/test.bb | 34 -
- autotests/input/test.c | 56 -
- autotests/input/test.c.syntax | 1 -
- autotests/input/test.cil | 153 --
- autotests/input/test.coffee | 71 -
- autotests/input/test.css | 18 -
- autotests/input/test.css.syntax | 1 -
- autotests/input/test.desktop | 19 -
- autotests/input/test.diff | 48 -
- autotests/input/test.eml | 94 -
- autotests/input/test.fc | 116 -
- autotests/input/test.frag | 26 -
- autotests/input/test.htm | 17 -
- autotests/input/test.htm.syntax | 1 -
- autotests/input/test.ijs | 61 -
- autotests/input/test.ini | 18 -
- autotests/input/test.js | 23 -
- autotests/input/test.json | 13 -
- autotests/input/test.jsx | 50 -
- autotests/input/test.logcat | 90 -
- autotests/input/test.markdown | 67 -
- autotests/input/test.mib | 526 ----
- autotests/input/test.mm | 42 -
- autotests/input/test.mm.syntax | 1 -
- autotests/input/test.mod | 96 -
- autotests/input/test.mss | 215 --
- autotests/input/test.py | 50 -
- autotests/input/test.qdocconf | 65 -
- autotests/input/test.qml | 23 -
- autotests/input/test.rexx | 52 -
- autotests/input/test.rs | 87 -
- autotests/input/test.sieve | 387 ---
- autotests/input/test.sql | 65 -
- autotests/input/test.sql.syntax | 1 -
- autotests/input/test.sql_oracle | 54 -
- autotests/input/test.sql_oracle.syntax | 1 -
- autotests/input/test.te | 139 -
- autotests/input/test.tex | 5 -
- autotests/input/test.yaml | 151 --
- autotests/input/test.zsh | 66 -
- autotests/input/themes/customtheme.theme | 46 -
- autotests/input/usr.bin.apparmor-profile-test | 270 --
- autotests/reference/Dockerfile.ref | 19 -
- autotests/reference/Doxyfile.example.ref | 2406 ----------------
- autotests/reference/Kconfig.ref | 15 -
- autotests/reference/Makefile.ref | 28 -
- autotests/reference/adblock.txt.ref | 53 -
- autotests/reference/apache.conf.ref | 67 -
- autotests/reference/basic.markdown.ref | 6 -
- autotests/reference/basic.xml.ref | 4 -
- autotests/reference/build.gradle.ref | 57 -
- autotests/reference/clojure.clj.ref | 73 -
- autotests/reference/complex.xml.ref | 13 -
- autotests/reference/craftenv.ps1.ref | 109 -
- autotests/reference/csharp.cs.ref | 38 -
- autotests/reference/cube.obj.ref | 33 -
- autotests/reference/cube.ply.ref | 26 -
- autotests/reference/cube.stl.ref | 30 -
- autotests/reference/example.rmd.ref | 39 -
- autotests/reference/firstNonSpace.c.ref | 7 -
- autotests/reference/folding.cpp.ref | 15 -
- autotests/reference/git-rebase.ref | 32 -
- autotests/reference/hello.exs.ref | 11 -
- autotests/reference/highlight.ahdl.ref | 43 -
- autotests/reference/highlight.asm-avr.ref | 75 -
- autotests/reference/highlight.asm-nasm.ref | 27 -
- autotests/reference/highlight.asp.ref | 58 -
- autotests/reference/highlight.awk.ref | 52 -
- autotests/reference/highlight.bib.ref | 31 -
- autotests/reference/highlight.bt.ref | 31 -
- autotests/reference/highlight.cmake.ref | 111 -
- autotests/reference/highlight.cpp.ref | 507 ----
- autotests/reference/highlight.css.ref | 286 --
- autotests/reference/highlight.d.ref | 195 --
- autotests/reference/highlight.do.ref | 89 -
- autotests/reference/highlight.dox.ref | 227 --
- autotests/reference/highlight.erl.ref | 68 -
- autotests/reference/highlight.exu.ref | 97 -
- autotests/reference/highlight.f90.ref | 181 --
- autotests/reference/highlight.gdb.ref | 156 --
- autotests/reference/highlight.gdbinit.ref | 9 -
- autotests/reference/highlight.glsl.ref | 62 -
- autotests/reference/highlight.hex.ref | 8 -
- autotests/reference/highlight.hs.ref | 139 -
- autotests/reference/highlight.java.ref | 48 -
- autotests/reference/highlight.js.ref | 139 -
- autotests/reference/highlight.jsp.ref | 170 --
- autotests/reference/highlight.less.ref | 701 -----
- autotests/reference/highlight.lex.ref | 82 -
- autotests/reference/highlight.lgt.ref | 448 ---
- autotests/reference/highlight.lhs.ref | 124 -
- autotests/reference/highlight.lisp.ref | 36 -
- autotests/reference/highlight.lua.ref | 160 --
- autotests/reference/highlight.ly.ref | 114 -
- autotests/reference/highlight.m.ref | 61 -
- autotests/reference/highlight.mac.ref | 145 -
- autotests/reference/highlight.mup.ref | 103 -
- autotests/reference/highlight.pb.ref | 87 -
- autotests/reference/highlight.php.ref | 26 -
- autotests/reference/highlight.pike.ref | 24 -
- autotests/reference/highlight.pl.ref | 75 -
- autotests/reference/highlight.pony.ref | 219 --
- autotests/reference/highlight.pov.ref | 76 -
- autotests/reference/highlight.prg.ref | 71 -
- autotests/reference/highlight.qml.ref | 59 -
- autotests/reference/highlight.rb.ref | 551 ----
- autotests/reference/highlight.scad.ref | 23 -
- autotests/reference/highlight.scheme.ref | 186 --
- autotests/reference/highlight.scss.ref | 693 -----
- autotests/reference/highlight.sh.ref | 207 --
- autotests/reference/highlight.spec.ref | 212 --
- autotests/reference/highlight.stan.ref | 380 ---
- autotests/reference/highlight.t2t.ref | 90 -
- autotests/reference/highlight.tcl.ref | 50 -
- autotests/reference/highlight.tex.ref | 85 -
- autotests/reference/highlight.tig.ref | 78 -
- autotests/reference/highlight.wrl.ref | 41 -
- autotests/reference/highlight.xml.ref | 67 -
- autotests/reference/highlight.xsl.ref | 109 -
- autotests/reference/highlight.y.ref | 93 -
- autotests/reference/highlight.yang.ref | 38 -
- autotests/reference/highlight_lpc.c.ref | 64 -
- autotests/reference/highlight_ocaml.ml.ref | 105 -
- autotests/reference/highlight_octave.m.ref | 74 -
- autotests/reference/learnelixir.exs.ref | 397 ---
- autotests/reference/light52_muldiv.vhdl.ref | 239 --
- autotests/reference/light52_tb.vhdl.ref | 186 --
- autotests/reference/meson.build.ref | 21 -
- autotests/reference/modelines.py.ref | 10 -
- autotests/reference/or1200_dc_fsm.v.ref | 563 ----
- autotests/reference/or1200_du.v.ref | 1803 ------------
- .../reference/preprocessor-bug363280.c.ref | 8 -
- .../reference/preprocessor-bug363280.cpp.ref | 8 -
- autotests/reference/review128925-1.css.ref | 112 -
- autotests/reference/review128925-1.scss.ref | 211 --
- autotests/reference/review128925-2.css.ref | 62 -
- autotests/reference/review128925-2.scss.ref | 81 -
- autotests/reference/review128935.html.ref | 164 --
- autotests/reference/test-iso.mod.ref | 96 -
- autotests/reference/test-pim.mod.ref | 90 -
- autotests/reference/test-r10.mod.ref | 112 -
- autotests/reference/test.Rd.ref | 51 -
- autotests/reference/test.bash.ref | 23 -
- autotests/reference/test.bb.ref | 34 -
- autotests/reference/test.c.ref | 56 -
- autotests/reference/test.cil.ref | 153 --
- autotests/reference/test.coffee.ref | 71 -
- autotests/reference/test.css.ref | 18 -
- autotests/reference/test.desktop.ref | 19 -
- autotests/reference/test.diff.ref | 48 -
- autotests/reference/test.eml.ref | 94 -
- autotests/reference/test.fc.ref | 116 -
- autotests/reference/test.frag.ref | 26 -
- autotests/reference/test.htm.ref | 17 -
- autotests/reference/test.ijs.ref | 61 -
- autotests/reference/test.ini.ref | 18 -
- autotests/reference/test.js.ref | 23 -
- autotests/reference/test.json.ref | 13 -
- autotests/reference/test.jsx.ref | 50 -
- autotests/reference/test.logcat.ref | 90 -
- autotests/reference/test.markdown.ref | 67 -
- autotests/reference/test.mib.ref | 526 ----
- autotests/reference/test.mm.ref | 42 -
- autotests/reference/test.mod.ref | 96 -
- autotests/reference/test.mss.ref | 215 --
- autotests/reference/test.py.ref | 50 -
- autotests/reference/test.qdocconf.ref | 65 -
- autotests/reference/test.qml.ref | 23 -
- autotests/reference/test.rexx.ref | 52 -
- autotests/reference/test.rs.ref | 87 -
- autotests/reference/test.sieve.ref | 387 ---
- autotests/reference/test.sql.ref | 65 -
- autotests/reference/test.sql_oracle.ref | 54 -
- autotests/reference/test.te.ref | 139 -
- autotests/reference/test.tex.ref | 5 -
- autotests/reference/test.yaml.ref | 151 --
- autotests/reference/test.zsh.ref | 66 -
- .../usr.bin.apparmor-profile-test.ref | 270 --
- autotests/repository_benchmark.cpp | 49 -
- autotests/syntaxrepository_test.cpp | 406 ---
- autotests/test-config.h.in | 103 -
- autotests/testhighlighter.cpp | 189 --
- autotests/theme_test.cpp | 311 ---
- autotests/update-reference-data.sh.in | 5 -
- autotests/wildcardmatcher_test.cpp | 91 -
- 576 files changed, 79310 deletions(-)
- delete mode 100644 autotests/CMakeLists.txt
- delete mode 100644 autotests/folding/Dockerfile.fold
- delete mode 100644 autotests/folding/Doxyfile.example.fold
- delete mode 100644 autotests/folding/Kconfig.fold
- delete mode 100644 autotests/folding/Makefile.fold
- delete mode 100644 autotests/folding/adblock.txt.fold
- delete mode 100644 autotests/folding/apache.conf.fold
- delete mode 100644 autotests/folding/basic.markdown.fold
- delete mode 100644 autotests/folding/basic.xml.fold
- delete mode 100644 autotests/folding/build.gradle.fold
- delete mode 100644 autotests/folding/clojure.clj.fold
- delete mode 100644 autotests/folding/complex.xml.fold
- delete mode 100644 autotests/folding/craftenv.ps1.fold
- delete mode 100644 autotests/folding/csharp.cs.fold
- delete mode 100644 autotests/folding/cube.obj.fold
- delete mode 100644 autotests/folding/cube.ply.fold
- delete mode 100644 autotests/folding/cube.stl.fold
- delete mode 100644 autotests/folding/example.rmd.fold
- delete mode 100644 autotests/folding/firstNonSpace.c.fold
- delete mode 100644 autotests/folding/folding.cpp.fold
- delete mode 100644 autotests/folding/git-rebase.fold
- delete mode 100644 autotests/folding/hello.exs.fold
- delete mode 100644 autotests/folding/highlight.ahdl.fold
- delete mode 100644 autotests/folding/highlight.asm-avr.fold
- delete mode 100644 autotests/folding/highlight.asm-nasm.fold
- delete mode 100644 autotests/folding/highlight.asp.fold
- delete mode 100644 autotests/folding/highlight.awk.fold
- delete mode 100644 autotests/folding/highlight.bib.fold
- delete mode 100644 autotests/folding/highlight.bt.fold
- delete mode 100644 autotests/folding/highlight.cmake.fold
- delete mode 100644 autotests/folding/highlight.cpp.fold
- delete mode 100644 autotests/folding/highlight.css.fold
- delete mode 100644 autotests/folding/highlight.d.fold
- delete mode 100644 autotests/folding/highlight.do.fold
- delete mode 100644 autotests/folding/highlight.dox.fold
- delete mode 100644 autotests/folding/highlight.erl.fold
- delete mode 100644 autotests/folding/highlight.exu.fold
- delete mode 100644 autotests/folding/highlight.f90.fold
- delete mode 100644 autotests/folding/highlight.gdb.fold
- delete mode 100644 autotests/folding/highlight.gdbinit.fold
- delete mode 100644 autotests/folding/highlight.glsl.fold
- delete mode 100644 autotests/folding/highlight.hex.fold
- delete mode 100644 autotests/folding/highlight.hs.fold
- delete mode 100644 autotests/folding/highlight.java.fold
- delete mode 100644 autotests/folding/highlight.js.fold
- delete mode 100644 autotests/folding/highlight.jsp.fold
- delete mode 100644 autotests/folding/highlight.less.fold
- delete mode 100644 autotests/folding/highlight.lex.fold
- delete mode 100644 autotests/folding/highlight.lgt.fold
- delete mode 100644 autotests/folding/highlight.lhs.fold
- delete mode 100644 autotests/folding/highlight.lisp.fold
- delete mode 100644 autotests/folding/highlight.lua.fold
- delete mode 100644 autotests/folding/highlight.ly.fold
- delete mode 100644 autotests/folding/highlight.m.fold
- delete mode 100644 autotests/folding/highlight.mac.fold
- delete mode 100644 autotests/folding/highlight.mup.fold
- delete mode 100644 autotests/folding/highlight.pb.fold
- delete mode 100644 autotests/folding/highlight.php.fold
- delete mode 100644 autotests/folding/highlight.pike.fold
- delete mode 100644 autotests/folding/highlight.pl.fold
- delete mode 100644 autotests/folding/highlight.pony.fold
- delete mode 100644 autotests/folding/highlight.pov.fold
- delete mode 100644 autotests/folding/highlight.prg.fold
- delete mode 100644 autotests/folding/highlight.qml.fold
- delete mode 100644 autotests/folding/highlight.rb.fold
- delete mode 100644 autotests/folding/highlight.scad.fold
- delete mode 100644 autotests/folding/highlight.scheme.fold
- delete mode 100644 autotests/folding/highlight.scss.fold
- delete mode 100644 autotests/folding/highlight.sh.fold
- delete mode 100644 autotests/folding/highlight.spec.fold
- delete mode 100644 autotests/folding/highlight.stan.fold
- delete mode 100644 autotests/folding/highlight.t2t.fold
- delete mode 100644 autotests/folding/highlight.tcl.fold
- delete mode 100644 autotests/folding/highlight.tex.fold
- delete mode 100644 autotests/folding/highlight.tig.fold
- delete mode 100644 autotests/folding/highlight.wrl.fold
- delete mode 100644 autotests/folding/highlight.xml.fold
- delete mode 100644 autotests/folding/highlight.xsl.fold
- delete mode 100644 autotests/folding/highlight.y.fold
- delete mode 100644 autotests/folding/highlight.yang.fold
- delete mode 100644 autotests/folding/highlight_lpc.c.fold
- delete mode 100644 autotests/folding/highlight_ocaml.ml.fold
- delete mode 100644 autotests/folding/highlight_octave.m.fold
- delete mode 100644 autotests/folding/learnelixir.exs.fold
- delete mode 100644 autotests/folding/light52_muldiv.vhdl.fold
- delete mode 100644 autotests/folding/light52_tb.vhdl.fold
- delete mode 100644 autotests/folding/meson.build.fold
- delete mode 100644 autotests/folding/modelines.py.fold
- delete mode 100644 autotests/folding/or1200_dc_fsm.v.fold
- delete mode 100644 autotests/folding/or1200_du.v.fold
- delete mode 100644 autotests/folding/preprocessor-bug363280.c.fold
- delete mode 100644 autotests/folding/preprocessor-bug363280.cpp.fold
- delete mode 100644 autotests/folding/review128925-1.css.fold
- delete mode 100644 autotests/folding/review128925-1.scss.fold
- delete mode 100644 autotests/folding/review128925-2.css.fold
- delete mode 100644 autotests/folding/review128925-2.scss.fold
- delete mode 100644 autotests/folding/review128935.html.fold
- delete mode 100644 autotests/folding/test-iso.mod.fold
- delete mode 100644 autotests/folding/test-pim.mod.fold
- delete mode 100644 autotests/folding/test-r10.mod.fold
- delete mode 100644 autotests/folding/test.Rd.fold
- delete mode 100644 autotests/folding/test.bash.fold
- delete mode 100644 autotests/folding/test.bb.fold
- delete mode 100644 autotests/folding/test.c.fold
- delete mode 100644 autotests/folding/test.cil.fold
- delete mode 100644 autotests/folding/test.coffee.fold
- delete mode 100644 autotests/folding/test.css.fold
- delete mode 100644 autotests/folding/test.desktop.fold
- delete mode 100644 autotests/folding/test.diff.fold
- delete mode 100644 autotests/folding/test.eml.fold
- delete mode 100644 autotests/folding/test.fc.fold
- delete mode 100644 autotests/folding/test.frag.fold
- delete mode 100644 autotests/folding/test.htm.fold
- delete mode 100644 autotests/folding/test.ijs.fold
- delete mode 100644 autotests/folding/test.ini.fold
- delete mode 100644 autotests/folding/test.js.fold
- delete mode 100644 autotests/folding/test.json.fold
- delete mode 100644 autotests/folding/test.jsx.fold
- delete mode 100644 autotests/folding/test.logcat.fold
- delete mode 100644 autotests/folding/test.markdown.fold
- delete mode 100644 autotests/folding/test.mib.fold
- delete mode 100644 autotests/folding/test.mm.fold
- delete mode 100644 autotests/folding/test.mod.fold
- delete mode 100644 autotests/folding/test.mss.fold
- delete mode 100644 autotests/folding/test.py.fold
- delete mode 100644 autotests/folding/test.qdocconf.fold
- delete mode 100644 autotests/folding/test.qml.fold
- delete mode 100644 autotests/folding/test.rexx.fold
- delete mode 100644 autotests/folding/test.rs.fold
- delete mode 100644 autotests/folding/test.sieve.fold
- delete mode 100644 autotests/folding/test.sql.fold
- delete mode 100644 autotests/folding/test.sql_oracle.fold
- delete mode 100644 autotests/folding/test.te.fold
- delete mode 100644 autotests/folding/test.tex.fold
- delete mode 100644 autotests/folding/test.yaml.fold
- delete mode 100644 autotests/folding/test.zsh.fold
- delete mode 100644 autotests/folding/usr.bin.apparmor-profile-test.fold
- delete mode 100644 autotests/foldingtest.cpp
- delete mode 100644 autotests/highlighter_benchmark.cpp
- delete mode 100644 autotests/html/Dockerfile.html
- delete mode 100644 autotests/html/Doxyfile.example.html
- delete mode 100644 autotests/html/Kconfig.html
- delete mode 100644 autotests/html/Makefile.html
- delete mode 100644 autotests/html/adblock.txt.html
- delete mode 100644 autotests/html/apache.conf.html
- delete mode 100644 autotests/html/basic.markdown.html
- delete mode 100644 autotests/html/basic.xml.html
- delete mode 100644 autotests/html/build.gradle.html
- delete mode 100644 autotests/html/clojure.clj.html
- delete mode 100644 autotests/html/complex.xml.html
- delete mode 100644 autotests/html/craftenv.ps1.html
- delete mode 100644 autotests/html/csharp.cs.html
- delete mode 100644 autotests/html/cube.obj.html
- delete mode 100644 autotests/html/cube.ply.html
- delete mode 100644 autotests/html/cube.stl.html
- delete mode 100644 autotests/html/example.rmd.html
- delete mode 100644 autotests/html/firstNonSpace.c.html
- delete mode 100644 autotests/html/folding.cpp.html
- delete mode 100644 autotests/html/git-rebase.html
- delete mode 100644 autotests/html/hello.exs.html
- delete mode 100644 autotests/html/highlight.ahdl.html
- delete mode 100644 autotests/html/highlight.asm-avr.html
- delete mode 100644 autotests/html/highlight.asm-nasm.html
- delete mode 100644 autotests/html/highlight.asp.html
- delete mode 100644 autotests/html/highlight.awk.html
- delete mode 100644 autotests/html/highlight.bib.html
- delete mode 100644 autotests/html/highlight.bt.html
- delete mode 100644 autotests/html/highlight.cmake.html
- delete mode 100644 autotests/html/highlight.cpp.html
- delete mode 100644 autotests/html/highlight.css.html
- delete mode 100644 autotests/html/highlight.d.html
- delete mode 100644 autotests/html/highlight.do.html
- delete mode 100644 autotests/html/highlight.dox.html
- delete mode 100644 autotests/html/highlight.erl.html
- delete mode 100644 autotests/html/highlight.exu.html
- delete mode 100644 autotests/html/highlight.f90.html
- delete mode 100644 autotests/html/highlight.gdb.html
- delete mode 100644 autotests/html/highlight.gdbinit.html
- delete mode 100644 autotests/html/highlight.glsl.html
- delete mode 100644 autotests/html/highlight.hex.html
- delete mode 100644 autotests/html/highlight.hs.html
- delete mode 100644 autotests/html/highlight.java.html
- delete mode 100644 autotests/html/highlight.js.html
- delete mode 100644 autotests/html/highlight.jsp.html
- delete mode 100644 autotests/html/highlight.less.html
- delete mode 100644 autotests/html/highlight.lex.html
- delete mode 100644 autotests/html/highlight.lgt.html
- delete mode 100644 autotests/html/highlight.lhs.html
- delete mode 100644 autotests/html/highlight.lisp.html
- delete mode 100644 autotests/html/highlight.lua.html
- delete mode 100644 autotests/html/highlight.ly.html
- delete mode 100644 autotests/html/highlight.m.html
- delete mode 100644 autotests/html/highlight.mac.html
- delete mode 100644 autotests/html/highlight.mup.html
- delete mode 100644 autotests/html/highlight.pb.html
- delete mode 100644 autotests/html/highlight.php.html
- delete mode 100644 autotests/html/highlight.pike.html
- delete mode 100644 autotests/html/highlight.pl.html
- delete mode 100644 autotests/html/highlight.pony.html
- delete mode 100644 autotests/html/highlight.pov.html
- delete mode 100644 autotests/html/highlight.prg.html
- delete mode 100644 autotests/html/highlight.qml.html
- delete mode 100644 autotests/html/highlight.rb.html
- delete mode 100644 autotests/html/highlight.scad.html
- delete mode 100644 autotests/html/highlight.scheme.html
- delete mode 100644 autotests/html/highlight.scss.html
- delete mode 100644 autotests/html/highlight.sh.html
- delete mode 100644 autotests/html/highlight.spec.html
- delete mode 100644 autotests/html/highlight.stan.html
- delete mode 100644 autotests/html/highlight.t2t.html
- delete mode 100644 autotests/html/highlight.tcl.html
- delete mode 100644 autotests/html/highlight.tex.html
- delete mode 100644 autotests/html/highlight.tig.html
- delete mode 100644 autotests/html/highlight.wrl.html
- delete mode 100644 autotests/html/highlight.xml.html
- delete mode 100644 autotests/html/highlight.xsl.html
- delete mode 100644 autotests/html/highlight.y.html
- delete mode 100644 autotests/html/highlight.yang.html
- delete mode 100644 autotests/html/highlight_lpc.c.html
- delete mode 100644 autotests/html/highlight_ocaml.ml.html
- delete mode 100644 autotests/html/highlight_octave.m.html
- delete mode 100644 autotests/html/learnelixir.exs.html
- delete mode 100644 autotests/html/light52_muldiv.vhdl.html
- delete mode 100644 autotests/html/light52_tb.vhdl.html
- delete mode 100644 autotests/html/meson.build.html
- delete mode 100644 autotests/html/modelines.py.html
- delete mode 100644 autotests/html/or1200_dc_fsm.v.html
- delete mode 100644 autotests/html/or1200_du.v.html
- delete mode 100644 autotests/html/preprocessor-bug363280.c.html
- delete mode 100644 autotests/html/preprocessor-bug363280.cpp.html
- delete mode 100644 autotests/html/review128925-1.css.html
- delete mode 100644 autotests/html/review128925-1.scss.html
- delete mode 100644 autotests/html/review128925-2.css.html
- delete mode 100644 autotests/html/review128925-2.scss.html
- delete mode 100644 autotests/html/review128935.html.html
- delete mode 100644 autotests/html/test-iso.mod.html
- delete mode 100644 autotests/html/test-pim.mod.html
- delete mode 100644 autotests/html/test-r10.mod.html
- delete mode 100644 autotests/html/test.Rd.html
- delete mode 100644 autotests/html/test.bash.html
- delete mode 100644 autotests/html/test.bb.html
- delete mode 100644 autotests/html/test.c.html
- delete mode 100644 autotests/html/test.cil.html
- delete mode 100644 autotests/html/test.coffee.html
- delete mode 100644 autotests/html/test.css.html
- delete mode 100644 autotests/html/test.desktop.html
- delete mode 100644 autotests/html/test.diff.html
- delete mode 100644 autotests/html/test.eml.html
- delete mode 100644 autotests/html/test.fc.html
- delete mode 100644 autotests/html/test.frag.html
- delete mode 100644 autotests/html/test.htm.html
- delete mode 100644 autotests/html/test.ijs.html
- delete mode 100644 autotests/html/test.ini.html
- delete mode 100644 autotests/html/test.js.html
- delete mode 100644 autotests/html/test.json.html
- delete mode 100644 autotests/html/test.jsx.html
- delete mode 100644 autotests/html/test.logcat.html
- delete mode 100644 autotests/html/test.markdown.html
- delete mode 100644 autotests/html/test.mib.html
- delete mode 100644 autotests/html/test.mm.html
- delete mode 100644 autotests/html/test.mod.html
- delete mode 100644 autotests/html/test.mss.html
- delete mode 100644 autotests/html/test.py.html
- delete mode 100644 autotests/html/test.qdocconf.html
- delete mode 100644 autotests/html/test.qml.html
- delete mode 100644 autotests/html/test.rexx.html
- delete mode 100644 autotests/html/test.rs.html
- delete mode 100644 autotests/html/test.sieve.html
- delete mode 100644 autotests/html/test.sql.html
- delete mode 100644 autotests/html/test.sql_oracle.html
- delete mode 100644 autotests/html/test.te.html
- delete mode 100644 autotests/html/test.tex.html
- delete mode 100644 autotests/html/test.yaml.html
- delete mode 100644 autotests/html/test.zsh.html
- delete mode 100644 autotests/html/usr.bin.apparmor-profile-test.html
- delete mode 100644 autotests/htmlhighlighter_test.cpp
- delete mode 100644 autotests/input/Dockerfile
- delete mode 100644 autotests/input/Doxyfile.example
- delete mode 100644 autotests/input/Kconfig
- delete mode 100644 autotests/input/Makefile
- delete mode 100644 autotests/input/adblock.txt
- delete mode 100644 autotests/input/adblock.txt.syntax
- delete mode 100644 autotests/input/apache.conf
- delete mode 100644 autotests/input/apache.conf.syntax
- delete mode 100644 autotests/input/basic.markdown
- delete mode 100644 autotests/input/basic.xml
- delete mode 100644 autotests/input/build.gradle
- delete mode 100644 autotests/input/clojure.clj
- delete mode 100644 autotests/input/complex.xml
- delete mode 100644 autotests/input/craftenv.ps1
- delete mode 100644 autotests/input/csharp.cs
- delete mode 100644 autotests/input/cube.obj
- delete mode 100644 autotests/input/cube.ply
- delete mode 100644 autotests/input/cube.stl
- delete mode 100644 autotests/input/example.rmd
- delete mode 100644 autotests/input/firstNonSpace.c
- delete mode 100644 autotests/input/folding.cpp
- delete mode 100644 autotests/input/git-rebase
- delete mode 100644 autotests/input/git-rebase.syntax
- delete mode 100644 autotests/input/hello.exs
- delete mode 100644 autotests/input/highlight.ahdl
- delete mode 100644 autotests/input/highlight.asm-avr
- delete mode 100644 autotests/input/highlight.asm-nasm
- delete mode 100644 autotests/input/highlight.asm-nasm.syntax
- delete mode 100644 autotests/input/highlight.asp
- delete mode 100644 autotests/input/highlight.awk
- delete mode 100644 autotests/input/highlight.bib
- delete mode 100644 autotests/input/highlight.bt
- delete mode 100644 autotests/input/highlight.cmake
- delete mode 100644 autotests/input/highlight.cpp
- delete mode 100644 autotests/input/highlight.css
- delete mode 100644 autotests/input/highlight.d
- delete mode 100644 autotests/input/highlight.do
- delete mode 100644 autotests/input/highlight.dox
- delete mode 100644 autotests/input/highlight.erl
- delete mode 100644 autotests/input/highlight.exu
- delete mode 100644 autotests/input/highlight.f90
- delete mode 100644 autotests/input/highlight.gdb
- delete mode 100644 autotests/input/highlight.gdbinit
- delete mode 100644 autotests/input/highlight.glsl
- delete mode 100644 autotests/input/highlight.hex
- delete mode 100644 autotests/input/highlight.hs
- delete mode 100644 autotests/input/highlight.java
- delete mode 100644 autotests/input/highlight.js
- delete mode 100644 autotests/input/highlight.jsp
- delete mode 100644 autotests/input/highlight.less
- delete mode 100644 autotests/input/highlight.lex
- delete mode 100644 autotests/input/highlight.lgt
- delete mode 100644 autotests/input/highlight.lhs
- delete mode 100644 autotests/input/highlight.lisp
- delete mode 100644 autotests/input/highlight.lua
- delete mode 100644 autotests/input/highlight.ly
- delete mode 100644 autotests/input/highlight.m
- delete mode 100644 autotests/input/highlight.m.syntax
- delete mode 100644 autotests/input/highlight.mac
- delete mode 100644 autotests/input/highlight.mup
- delete mode 100644 autotests/input/highlight.pb
- delete mode 100644 autotests/input/highlight.php
- delete mode 100644 autotests/input/highlight.pike
- delete mode 100644 autotests/input/highlight.pl
- delete mode 100644 autotests/input/highlight.pony
- delete mode 100644 autotests/input/highlight.pov
- delete mode 100644 autotests/input/highlight.prg
- delete mode 100644 autotests/input/highlight.prg.syntax
- delete mode 100644 autotests/input/highlight.qml
- delete mode 100644 autotests/input/highlight.rb
- delete mode 100644 autotests/input/highlight.scad
- delete mode 100644 autotests/input/highlight.scheme
- delete mode 100644 autotests/input/highlight.scss
- delete mode 100644 autotests/input/highlight.sh
- delete mode 100644 autotests/input/highlight.sh.syntax
- delete mode 100644 autotests/input/highlight.spec
- delete mode 100644 autotests/input/highlight.stan
- delete mode 100644 autotests/input/highlight.t2t
- delete mode 100644 autotests/input/highlight.tcl
- delete mode 100644 autotests/input/highlight.tex
- delete mode 100644 autotests/input/highlight.tig
- delete mode 100644 autotests/input/highlight.wrl
- delete mode 100644 autotests/input/highlight.xml
- delete mode 100644 autotests/input/highlight.xsl
- delete mode 100644 autotests/input/highlight.y
- delete mode 100644 autotests/input/highlight.yang
- delete mode 100644 autotests/input/highlight_lpc.c
- delete mode 100644 autotests/input/highlight_lpc.c.syntax
- delete mode 100644 autotests/input/highlight_ocaml.ml
- delete mode 100644 autotests/input/highlight_octave.m
- delete mode 100644 autotests/input/highlight_octave.m.syntax
- delete mode 100644 autotests/input/learnelixir.exs
- delete mode 100644 autotests/input/light52_muldiv.vhdl
- delete mode 100644 autotests/input/light52_tb.vhdl
- delete mode 100644 autotests/input/meson.build
- delete mode 100644 autotests/input/modelines.py
- delete mode 100644 autotests/input/or1200_dc_fsm.v
- delete mode 100644 autotests/input/or1200_du.v
- delete mode 100644 autotests/input/preprocessor-bug363280.c
- delete mode 100644 autotests/input/preprocessor-bug363280.cpp
- delete mode 100644 autotests/input/review128925-1.css
- delete mode 100644 autotests/input/review128925-1.scss
- delete mode 100644 autotests/input/review128925-2.css
- delete mode 100644 autotests/input/review128925-2.scss
- delete mode 100644 autotests/input/review128935.html
- delete mode 100644 autotests/input/syntax/testlang.xml
- delete mode 100644 autotests/input/test-iso.mod
- delete mode 100644 autotests/input/test-iso.mod.syntax
- delete mode 100644 autotests/input/test-pim.mod
- delete mode 100644 autotests/input/test-pim.mod.syntax
- delete mode 100644 autotests/input/test-r10.mod
- delete mode 100644 autotests/input/test-r10.mod.syntax
- delete mode 100644 autotests/input/test.Rd
- delete mode 100644 autotests/input/test.bash
- delete mode 100644 autotests/input/test.bb
- delete mode 100644 autotests/input/test.c
- delete mode 100644 autotests/input/test.c.syntax
- delete mode 100644 autotests/input/test.cil
- delete mode 100644 autotests/input/test.coffee
- delete mode 100644 autotests/input/test.css
- delete mode 100644 autotests/input/test.css.syntax
- delete mode 100644 autotests/input/test.desktop
- delete mode 100644 autotests/input/test.diff
- delete mode 100644 autotests/input/test.eml
- delete mode 100644 autotests/input/test.fc
- delete mode 100644 autotests/input/test.frag
- delete mode 100644 autotests/input/test.htm
- delete mode 100644 autotests/input/test.htm.syntax
- delete mode 100644 autotests/input/test.ijs
- delete mode 100644 autotests/input/test.ini
- delete mode 100644 autotests/input/test.js
- delete mode 100644 autotests/input/test.json
- delete mode 100644 autotests/input/test.jsx
- delete mode 100644 autotests/input/test.logcat
- delete mode 100644 autotests/input/test.markdown
- delete mode 100644 autotests/input/test.mib
- delete mode 100644 autotests/input/test.mm
- delete mode 100644 autotests/input/test.mm.syntax
- delete mode 100644 autotests/input/test.mod
- delete mode 100644 autotests/input/test.mss
- delete mode 100644 autotests/input/test.py
- delete mode 100644 autotests/input/test.qdocconf
- delete mode 100644 autotests/input/test.qml
- delete mode 100644 autotests/input/test.rexx
- delete mode 100644 autotests/input/test.rs
- delete mode 100644 autotests/input/test.sieve
- delete mode 100644 autotests/input/test.sql
- delete mode 100644 autotests/input/test.sql.syntax
- delete mode 100644 autotests/input/test.sql_oracle
- delete mode 100644 autotests/input/test.sql_oracle.syntax
- delete mode 100644 autotests/input/test.te
- delete mode 100644 autotests/input/test.tex
- delete mode 100644 autotests/input/test.yaml
- delete mode 100644 autotests/input/test.zsh
- delete mode 100644 autotests/input/themes/customtheme.theme
- delete mode 100644 autotests/input/usr.bin.apparmor-profile-test
- delete mode 100644 autotests/reference/Dockerfile.ref
- delete mode 100644 autotests/reference/Doxyfile.example.ref
- delete mode 100644 autotests/reference/Kconfig.ref
- delete mode 100644 autotests/reference/Makefile.ref
- delete mode 100644 autotests/reference/adblock.txt.ref
- delete mode 100644 autotests/reference/apache.conf.ref
- delete mode 100644 autotests/reference/basic.markdown.ref
- delete mode 100644 autotests/reference/basic.xml.ref
- delete mode 100644 autotests/reference/build.gradle.ref
- delete mode 100644 autotests/reference/clojure.clj.ref
- delete mode 100644 autotests/reference/complex.xml.ref
- delete mode 100644 autotests/reference/craftenv.ps1.ref
- delete mode 100644 autotests/reference/csharp.cs.ref
- delete mode 100644 autotests/reference/cube.obj.ref
- delete mode 100644 autotests/reference/cube.ply.ref
- delete mode 100644 autotests/reference/cube.stl.ref
- delete mode 100644 autotests/reference/example.rmd.ref
- delete mode 100644 autotests/reference/firstNonSpace.c.ref
- delete mode 100644 autotests/reference/folding.cpp.ref
- delete mode 100644 autotests/reference/git-rebase.ref
- delete mode 100644 autotests/reference/hello.exs.ref
- delete mode 100644 autotests/reference/highlight.ahdl.ref
- delete mode 100644 autotests/reference/highlight.asm-avr.ref
- delete mode 100644 autotests/reference/highlight.asm-nasm.ref
- delete mode 100644 autotests/reference/highlight.asp.ref
- delete mode 100644 autotests/reference/highlight.awk.ref
- delete mode 100644 autotests/reference/highlight.bib.ref
- delete mode 100644 autotests/reference/highlight.bt.ref
- delete mode 100644 autotests/reference/highlight.cmake.ref
- delete mode 100644 autotests/reference/highlight.cpp.ref
- delete mode 100644 autotests/reference/highlight.css.ref
- delete mode 100644 autotests/reference/highlight.d.ref
- delete mode 100644 autotests/reference/highlight.do.ref
- delete mode 100644 autotests/reference/highlight.dox.ref
- delete mode 100644 autotests/reference/highlight.erl.ref
- delete mode 100644 autotests/reference/highlight.exu.ref
- delete mode 100644 autotests/reference/highlight.f90.ref
- delete mode 100644 autotests/reference/highlight.gdb.ref
- delete mode 100644 autotests/reference/highlight.gdbinit.ref
- delete mode 100644 autotests/reference/highlight.glsl.ref
- delete mode 100644 autotests/reference/highlight.hex.ref
- delete mode 100644 autotests/reference/highlight.hs.ref
- delete mode 100644 autotests/reference/highlight.java.ref
- delete mode 100644 autotests/reference/highlight.js.ref
- delete mode 100644 autotests/reference/highlight.jsp.ref
- delete mode 100644 autotests/reference/highlight.less.ref
- delete mode 100644 autotests/reference/highlight.lex.ref
- delete mode 100644 autotests/reference/highlight.lgt.ref
- delete mode 100644 autotests/reference/highlight.lhs.ref
- delete mode 100644 autotests/reference/highlight.lisp.ref
- delete mode 100644 autotests/reference/highlight.lua.ref
- delete mode 100644 autotests/reference/highlight.ly.ref
- delete mode 100644 autotests/reference/highlight.m.ref
- delete mode 100644 autotests/reference/highlight.mac.ref
- delete mode 100644 autotests/reference/highlight.mup.ref
- delete mode 100644 autotests/reference/highlight.pb.ref
- delete mode 100644 autotests/reference/highlight.php.ref
- delete mode 100644 autotests/reference/highlight.pike.ref
- delete mode 100644 autotests/reference/highlight.pl.ref
- delete mode 100644 autotests/reference/highlight.pony.ref
- delete mode 100644 autotests/reference/highlight.pov.ref
- delete mode 100644 autotests/reference/highlight.prg.ref
- delete mode 100644 autotests/reference/highlight.qml.ref
- delete mode 100644 autotests/reference/highlight.rb.ref
- delete mode 100644 autotests/reference/highlight.scad.ref
- delete mode 100644 autotests/reference/highlight.scheme.ref
- delete mode 100644 autotests/reference/highlight.scss.ref
- delete mode 100644 autotests/reference/highlight.sh.ref
- delete mode 100644 autotests/reference/highlight.spec.ref
- delete mode 100644 autotests/reference/highlight.stan.ref
- delete mode 100644 autotests/reference/highlight.t2t.ref
- delete mode 100644 autotests/reference/highlight.tcl.ref
- delete mode 100644 autotests/reference/highlight.tex.ref
- delete mode 100644 autotests/reference/highlight.tig.ref
- delete mode 100644 autotests/reference/highlight.wrl.ref
- delete mode 100644 autotests/reference/highlight.xml.ref
- delete mode 100644 autotests/reference/highlight.xsl.ref
- delete mode 100644 autotests/reference/highlight.y.ref
- delete mode 100644 autotests/reference/highlight.yang.ref
- delete mode 100644 autotests/reference/highlight_lpc.c.ref
- delete mode 100644 autotests/reference/highlight_ocaml.ml.ref
- delete mode 100644 autotests/reference/highlight_octave.m.ref
- delete mode 100644 autotests/reference/learnelixir.exs.ref
- delete mode 100644 autotests/reference/light52_muldiv.vhdl.ref
- delete mode 100644 autotests/reference/light52_tb.vhdl.ref
- delete mode 100644 autotests/reference/meson.build.ref
- delete mode 100644 autotests/reference/modelines.py.ref
- delete mode 100644 autotests/reference/or1200_dc_fsm.v.ref
- delete mode 100644 autotests/reference/or1200_du.v.ref
- delete mode 100644 autotests/reference/preprocessor-bug363280.c.ref
- delete mode 100644 autotests/reference/preprocessor-bug363280.cpp.ref
- delete mode 100644 autotests/reference/review128925-1.css.ref
- delete mode 100644 autotests/reference/review128925-1.scss.ref
- delete mode 100644 autotests/reference/review128925-2.css.ref
- delete mode 100644 autotests/reference/review128925-2.scss.ref
- delete mode 100644 autotests/reference/review128935.html.ref
- delete mode 100644 autotests/reference/test-iso.mod.ref
- delete mode 100644 autotests/reference/test-pim.mod.ref
- delete mode 100644 autotests/reference/test-r10.mod.ref
- delete mode 100644 autotests/reference/test.Rd.ref
- delete mode 100644 autotests/reference/test.bash.ref
- delete mode 100644 autotests/reference/test.bb.ref
- delete mode 100644 autotests/reference/test.c.ref
- delete mode 100644 autotests/reference/test.cil.ref
- delete mode 100644 autotests/reference/test.coffee.ref
- delete mode 100644 autotests/reference/test.css.ref
- delete mode 100644 autotests/reference/test.desktop.ref
- delete mode 100644 autotests/reference/test.diff.ref
- delete mode 100644 autotests/reference/test.eml.ref
- delete mode 100644 autotests/reference/test.fc.ref
- delete mode 100644 autotests/reference/test.frag.ref
- delete mode 100644 autotests/reference/test.htm.ref
- delete mode 100644 autotests/reference/test.ijs.ref
- delete mode 100644 autotests/reference/test.ini.ref
- delete mode 100644 autotests/reference/test.js.ref
- delete mode 100644 autotests/reference/test.json.ref
- delete mode 100644 autotests/reference/test.jsx.ref
- delete mode 100644 autotests/reference/test.logcat.ref
- delete mode 100644 autotests/reference/test.markdown.ref
- delete mode 100644 autotests/reference/test.mib.ref
- delete mode 100644 autotests/reference/test.mm.ref
- delete mode 100644 autotests/reference/test.mod.ref
- delete mode 100644 autotests/reference/test.mss.ref
- delete mode 100644 autotests/reference/test.py.ref
- delete mode 100644 autotests/reference/test.qdocconf.ref
- delete mode 100644 autotests/reference/test.qml.ref
- delete mode 100644 autotests/reference/test.rexx.ref
- delete mode 100644 autotests/reference/test.rs.ref
- delete mode 100644 autotests/reference/test.sieve.ref
- delete mode 100644 autotests/reference/test.sql.ref
- delete mode 100644 autotests/reference/test.sql_oracle.ref
- delete mode 100644 autotests/reference/test.te.ref
- delete mode 100644 autotests/reference/test.tex.ref
- delete mode 100644 autotests/reference/test.yaml.ref
- delete mode 100644 autotests/reference/test.zsh.ref
- delete mode 100644 autotests/reference/usr.bin.apparmor-profile-test.ref
- delete mode 100644 autotests/repository_benchmark.cpp
- delete mode 100644 autotests/syntaxrepository_test.cpp
- delete mode 100644 autotests/test-config.h.in
- delete mode 100644 autotests/testhighlighter.cpp
- delete mode 100644 autotests/theme_test.cpp
- delete mode 100755 autotests/update-reference-data.sh.in
- delete mode 100644 autotests/wildcardmatcher_test.cpp
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index b23d482..49923fb 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -90,9 +90,6 @@ add_subdirectory(data)
- add_subdirectory(src)
- if(TARGET Qt5::Gui)
- add_subdirectory(examples)
-- if (BUILD_TESTING)
-- add_subdirectory(autotests)
-- endif()
- endif()
-
- #
-diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt
-deleted file mode 100644
-index 827a182..0000000
-diff --git a/autotests/folding/Dockerfile.fold b/autotests/folding/Dockerfile.fold
-deleted file mode 100644
-index 95a81d3..0000000
-diff --git a/autotests/folding/Doxyfile.example.fold b/autotests/folding/Doxyfile.example.fold
-deleted file mode 100644
-index ef39bfc..0000000
-diff --git a/autotests/folding/Kconfig.fold b/autotests/folding/Kconfig.fold
-deleted file mode 100644
-index 26df6be..0000000
-diff --git a/autotests/folding/Makefile.fold b/autotests/folding/Makefile.fold
-deleted file mode 100644
-index 1cea5dd..0000000
-diff --git a/autotests/folding/adblock.txt.fold b/autotests/folding/adblock.txt.fold
-deleted file mode 100644
-index 7ad85dd..0000000
-diff --git a/autotests/folding/apache.conf.fold b/autotests/folding/apache.conf.fold
-deleted file mode 100644
-index 8d8baa5..0000000
-diff --git a/autotests/folding/basic.markdown.fold b/autotests/folding/basic.markdown.fold
-deleted file mode 100644
-index f9a5bb3..0000000
-diff --git a/autotests/folding/basic.xml.fold b/autotests/folding/basic.xml.fold
-deleted file mode 100644
-index 1d6ab4b..0000000
-diff --git a/autotests/folding/build.gradle.fold b/autotests/folding/build.gradle.fold
-deleted file mode 100644
-index 2d0d25f..0000000
-diff --git a/autotests/folding/clojure.clj.fold b/autotests/folding/clojure.clj.fold
-deleted file mode 100644
-index b2f3768..0000000
-diff --git a/autotests/folding/complex.xml.fold b/autotests/folding/complex.xml.fold
-deleted file mode 100644
-index 0c79e82..0000000
-diff --git a/autotests/folding/craftenv.ps1.fold b/autotests/folding/craftenv.ps1.fold
-deleted file mode 100644
-index 9a8fbfc..0000000
-diff --git a/autotests/folding/csharp.cs.fold b/autotests/folding/csharp.cs.fold
-deleted file mode 100644
-index 906705c..0000000
-diff --git a/autotests/folding/cube.obj.fold b/autotests/folding/cube.obj.fold
-deleted file mode 100644
-index ef06c98..0000000
-diff --git a/autotests/folding/cube.ply.fold b/autotests/folding/cube.ply.fold
-deleted file mode 100644
-index 08d5f89..0000000
-diff --git a/autotests/folding/cube.stl.fold b/autotests/folding/cube.stl.fold
-deleted file mode 100644
-index ae74fd9..0000000
-diff --git a/autotests/folding/example.rmd.fold b/autotests/folding/example.rmd.fold
-deleted file mode 100644
-index c198d13..0000000
-diff --git a/autotests/folding/firstNonSpace.c.fold b/autotests/folding/firstNonSpace.c.fold
-deleted file mode 100644
-index 570ba90..0000000
-diff --git a/autotests/folding/folding.cpp.fold b/autotests/folding/folding.cpp.fold
-deleted file mode 100644
-index be50e40..0000000
-diff --git a/autotests/folding/git-rebase.fold b/autotests/folding/git-rebase.fold
-deleted file mode 100644
-index 43041bb..0000000
-diff --git a/autotests/folding/hello.exs.fold b/autotests/folding/hello.exs.fold
-deleted file mode 100644
-index cca72a1..0000000
-diff --git a/autotests/folding/highlight.ahdl.fold b/autotests/folding/highlight.ahdl.fold
-deleted file mode 100644
-index 26924b4..0000000
-diff --git a/autotests/folding/highlight.asm-avr.fold b/autotests/folding/highlight.asm-avr.fold
-deleted file mode 100644
-index 62e3ee9..0000000
-diff --git a/autotests/folding/highlight.asm-nasm.fold b/autotests/folding/highlight.asm-nasm.fold
-deleted file mode 100644
-index a5da4d1..0000000
-diff --git a/autotests/folding/highlight.asp.fold b/autotests/folding/highlight.asp.fold
-deleted file mode 100644
-index b938201..0000000
-diff --git a/autotests/folding/highlight.awk.fold b/autotests/folding/highlight.awk.fold
-deleted file mode 100644
-index 2ad62f1..0000000
-diff --git a/autotests/folding/highlight.bib.fold b/autotests/folding/highlight.bib.fold
-deleted file mode 100644
-index 9d521ee..0000000
-diff --git a/autotests/folding/highlight.bt.fold b/autotests/folding/highlight.bt.fold
-deleted file mode 100644
-index 51d2075..0000000
-diff --git a/autotests/folding/highlight.cmake.fold b/autotests/folding/highlight.cmake.fold
-deleted file mode 100644
-index 30688fa..0000000
-diff --git a/autotests/folding/highlight.cpp.fold b/autotests/folding/highlight.cpp.fold
-deleted file mode 100644
-index 5f80fa2..0000000
-diff --git a/autotests/folding/highlight.css.fold b/autotests/folding/highlight.css.fold
-deleted file mode 100644
-index ff27482..0000000
-diff --git a/autotests/folding/highlight.d.fold b/autotests/folding/highlight.d.fold
-deleted file mode 100644
-index 44bcb09..0000000
-diff --git a/autotests/folding/highlight.do.fold b/autotests/folding/highlight.do.fold
-deleted file mode 100644
-index 83ae062..0000000
-diff --git a/autotests/folding/highlight.dox.fold b/autotests/folding/highlight.dox.fold
-deleted file mode 100644
-index ad907ab..0000000
-diff --git a/autotests/folding/highlight.erl.fold b/autotests/folding/highlight.erl.fold
-deleted file mode 100644
-index 5b485cb..0000000
-diff --git a/autotests/folding/highlight.exu.fold b/autotests/folding/highlight.exu.fold
-deleted file mode 100644
-index 84f561f..0000000
-diff --git a/autotests/folding/highlight.f90.fold b/autotests/folding/highlight.f90.fold
-deleted file mode 100644
-index 2ea0f76..0000000
-diff --git a/autotests/folding/highlight.gdb.fold b/autotests/folding/highlight.gdb.fold
-deleted file mode 100644
-index 7246b73..0000000
-diff --git a/autotests/folding/highlight.gdbinit.fold b/autotests/folding/highlight.gdbinit.fold
-deleted file mode 100644
-index 70c9820..0000000
-diff --git a/autotests/folding/highlight.glsl.fold b/autotests/folding/highlight.glsl.fold
-deleted file mode 100644
-index 53df4f1..0000000
-diff --git a/autotests/folding/highlight.hex.fold b/autotests/folding/highlight.hex.fold
-deleted file mode 100644
-index 7c3f3ea..0000000
-diff --git a/autotests/folding/highlight.hs.fold b/autotests/folding/highlight.hs.fold
-deleted file mode 100644
-index 71ee81f..0000000
-diff --git a/autotests/folding/highlight.java.fold b/autotests/folding/highlight.java.fold
-deleted file mode 100644
-index e3b4cbc..0000000
-diff --git a/autotests/folding/highlight.js.fold b/autotests/folding/highlight.js.fold
-deleted file mode 100644
-index 122c0ac..0000000
-diff --git a/autotests/folding/highlight.jsp.fold b/autotests/folding/highlight.jsp.fold
-deleted file mode 100644
-index b938095..0000000
-diff --git a/autotests/folding/highlight.less.fold b/autotests/folding/highlight.less.fold
-deleted file mode 100644
-index b6e9075..0000000
-diff --git a/autotests/folding/highlight.lex.fold b/autotests/folding/highlight.lex.fold
-deleted file mode 100644
-index d2336c7..0000000
-diff --git a/autotests/folding/highlight.lgt.fold b/autotests/folding/highlight.lgt.fold
-deleted file mode 100644
-index c444473..0000000
-diff --git a/autotests/folding/highlight.lhs.fold b/autotests/folding/highlight.lhs.fold
-deleted file mode 100644
-index 9dc52e5..0000000
-diff --git a/autotests/folding/highlight.lisp.fold b/autotests/folding/highlight.lisp.fold
-deleted file mode 100644
-index 5b6bf55..0000000
-diff --git a/autotests/folding/highlight.lua.fold b/autotests/folding/highlight.lua.fold
-deleted file mode 100644
-index 183a258..0000000
-diff --git a/autotests/folding/highlight.ly.fold b/autotests/folding/highlight.ly.fold
-deleted file mode 100644
-index a7e787b..0000000
-diff --git a/autotests/folding/highlight.m.fold b/autotests/folding/highlight.m.fold
-deleted file mode 100644
-index 302659f..0000000
-diff --git a/autotests/folding/highlight.mac.fold b/autotests/folding/highlight.mac.fold
-deleted file mode 100644
-index ad7ee63..0000000
-diff --git a/autotests/folding/highlight.mup.fold b/autotests/folding/highlight.mup.fold
-deleted file mode 100644
-index e9afd19..0000000
-diff --git a/autotests/folding/highlight.pb.fold b/autotests/folding/highlight.pb.fold
-deleted file mode 100644
-index aad9803..0000000
-diff --git a/autotests/folding/highlight.php.fold b/autotests/folding/highlight.php.fold
-deleted file mode 100644
-index d0a5bc8..0000000
-diff --git a/autotests/folding/highlight.pike.fold b/autotests/folding/highlight.pike.fold
-deleted file mode 100644
-index 5c65bae..0000000
-diff --git a/autotests/folding/highlight.pl.fold b/autotests/folding/highlight.pl.fold
-deleted file mode 100644
-index 6845697..0000000
-diff --git a/autotests/folding/highlight.pony.fold b/autotests/folding/highlight.pony.fold
-deleted file mode 100644
-index d89d314..0000000
-diff --git a/autotests/folding/highlight.pov.fold b/autotests/folding/highlight.pov.fold
-deleted file mode 100644
-index 01e848c..0000000
-diff --git a/autotests/folding/highlight.prg.fold b/autotests/folding/highlight.prg.fold
-deleted file mode 100644
-index 9f03189..0000000
-diff --git a/autotests/folding/highlight.qml.fold b/autotests/folding/highlight.qml.fold
-deleted file mode 100644
-index 2494d70..0000000
-diff --git a/autotests/folding/highlight.rb.fold b/autotests/folding/highlight.rb.fold
-deleted file mode 100644
-index 8ae2980..0000000
-diff --git a/autotests/folding/highlight.scad.fold b/autotests/folding/highlight.scad.fold
-deleted file mode 100644
-index 68de2e0..0000000
-diff --git a/autotests/folding/highlight.scheme.fold b/autotests/folding/highlight.scheme.fold
-deleted file mode 100644
-index c42b22f..0000000
-diff --git a/autotests/folding/highlight.scss.fold b/autotests/folding/highlight.scss.fold
-deleted file mode 100644
-index afef111..0000000
-diff --git a/autotests/folding/highlight.sh.fold b/autotests/folding/highlight.sh.fold
-deleted file mode 100644
-index 9f81112..0000000
-diff --git a/autotests/folding/highlight.spec.fold b/autotests/folding/highlight.spec.fold
-deleted file mode 100644
-index 6ed00cf..0000000
-diff --git a/autotests/folding/highlight.stan.fold b/autotests/folding/highlight.stan.fold
-deleted file mode 100644
-index 38bfe01..0000000
-diff --git a/autotests/folding/highlight.t2t.fold b/autotests/folding/highlight.t2t.fold
-deleted file mode 100644
-index 428f204..0000000
-diff --git a/autotests/folding/highlight.tcl.fold b/autotests/folding/highlight.tcl.fold
-deleted file mode 100644
-index 7b6264c..0000000
-diff --git a/autotests/folding/highlight.tex.fold b/autotests/folding/highlight.tex.fold
-deleted file mode 100644
-index 772b210..0000000
-diff --git a/autotests/folding/highlight.tig.fold b/autotests/folding/highlight.tig.fold
-deleted file mode 100644
-index 8f3d99e..0000000
-diff --git a/autotests/folding/highlight.wrl.fold b/autotests/folding/highlight.wrl.fold
-deleted file mode 100644
-index c800b08..0000000
-diff --git a/autotests/folding/highlight.xml.fold b/autotests/folding/highlight.xml.fold
-deleted file mode 100644
-index b120aea..0000000
-diff --git a/autotests/folding/highlight.xsl.fold b/autotests/folding/highlight.xsl.fold
-deleted file mode 100644
-index feea15b..0000000
-diff --git a/autotests/folding/highlight.y.fold b/autotests/folding/highlight.y.fold
-deleted file mode 100644
-index 4f6242b..0000000
-diff --git a/autotests/folding/highlight.yang.fold b/autotests/folding/highlight.yang.fold
-deleted file mode 100644
-index 2de6183..0000000
-diff --git a/autotests/folding/highlight_lpc.c.fold b/autotests/folding/highlight_lpc.c.fold
-deleted file mode 100644
-index 350ce06..0000000
-diff --git a/autotests/folding/highlight_ocaml.ml.fold b/autotests/folding/highlight_ocaml.ml.fold
-deleted file mode 100644
-index 2403ed1..0000000
-diff --git a/autotests/folding/highlight_octave.m.fold b/autotests/folding/highlight_octave.m.fold
-deleted file mode 100644
-index ee3fdbd..0000000
-diff --git a/autotests/folding/learnelixir.exs.fold b/autotests/folding/learnelixir.exs.fold
-deleted file mode 100644
-index 1f51bd1..0000000
-diff --git a/autotests/folding/light52_muldiv.vhdl.fold b/autotests/folding/light52_muldiv.vhdl.fold
-deleted file mode 100644
-index c5d461e..0000000
-diff --git a/autotests/folding/light52_tb.vhdl.fold b/autotests/folding/light52_tb.vhdl.fold
-deleted file mode 100644
-index 17be507..0000000
-diff --git a/autotests/folding/meson.build.fold b/autotests/folding/meson.build.fold
-deleted file mode 100644
-index f20c35b..0000000
-diff --git a/autotests/folding/modelines.py.fold b/autotests/folding/modelines.py.fold
-deleted file mode 100644
-index 9c02779..0000000
-diff --git a/autotests/folding/or1200_dc_fsm.v.fold b/autotests/folding/or1200_dc_fsm.v.fold
-deleted file mode 100644
-index c54fbe7..0000000
-diff --git a/autotests/folding/or1200_du.v.fold b/autotests/folding/or1200_du.v.fold
-deleted file mode 100644
-index 97a6319..0000000
-diff --git a/autotests/folding/preprocessor-bug363280.c.fold b/autotests/folding/preprocessor-bug363280.c.fold
-deleted file mode 100644
-index bf559fb..0000000
-diff --git a/autotests/folding/preprocessor-bug363280.cpp.fold b/autotests/folding/preprocessor-bug363280.cpp.fold
-deleted file mode 100644
-index f9aabcc..0000000
-diff --git a/autotests/folding/review128925-1.css.fold b/autotests/folding/review128925-1.css.fold
-deleted file mode 100644
-index 05621d3..0000000
-diff --git a/autotests/folding/review128925-1.scss.fold b/autotests/folding/review128925-1.scss.fold
-deleted file mode 100644
-index 0b1f50b..0000000
-diff --git a/autotests/folding/review128925-2.css.fold b/autotests/folding/review128925-2.css.fold
-deleted file mode 100644
-index f10e2f0..0000000
-diff --git a/autotests/folding/review128925-2.scss.fold b/autotests/folding/review128925-2.scss.fold
-deleted file mode 100644
-index 056e331..0000000
-diff --git a/autotests/folding/review128935.html.fold b/autotests/folding/review128935.html.fold
-deleted file mode 100644
-index 9a5887a..0000000
-diff --git a/autotests/folding/test-iso.mod.fold b/autotests/folding/test-iso.mod.fold
-deleted file mode 100644
-index 57faabc..0000000
-diff --git a/autotests/folding/test-pim.mod.fold b/autotests/folding/test-pim.mod.fold
-deleted file mode 100644
-index dd152a7..0000000
-diff --git a/autotests/folding/test-r10.mod.fold b/autotests/folding/test-r10.mod.fold
-deleted file mode 100644
-index 7dc2e0d..0000000
-diff --git a/autotests/folding/test.Rd.fold b/autotests/folding/test.Rd.fold
-deleted file mode 100644
-index 77d07c4..0000000
-diff --git a/autotests/folding/test.bash.fold b/autotests/folding/test.bash.fold
-deleted file mode 100644
-index 216f11c..0000000
-diff --git a/autotests/folding/test.bb.fold b/autotests/folding/test.bb.fold
-deleted file mode 100644
-index 98d9089..0000000
-diff --git a/autotests/folding/test.c.fold b/autotests/folding/test.c.fold
-deleted file mode 100644
-index 7b43b2d..0000000
-diff --git a/autotests/folding/test.cil.fold b/autotests/folding/test.cil.fold
-deleted file mode 100644
-index 6ff2ff2..0000000
-diff --git a/autotests/folding/test.coffee.fold b/autotests/folding/test.coffee.fold
-deleted file mode 100644
-index de7ad09..0000000
-diff --git a/autotests/folding/test.css.fold b/autotests/folding/test.css.fold
-deleted file mode 100644
-index 0edd45b..0000000
-diff --git a/autotests/folding/test.desktop.fold b/autotests/folding/test.desktop.fold
-deleted file mode 100644
-index 77db817..0000000
-diff --git a/autotests/folding/test.diff.fold b/autotests/folding/test.diff.fold
-deleted file mode 100644
-index 95ef591..0000000
-diff --git a/autotests/folding/test.eml.fold b/autotests/folding/test.eml.fold
-deleted file mode 100644
-index 1e43110..0000000
-diff --git a/autotests/folding/test.fc.fold b/autotests/folding/test.fc.fold
-deleted file mode 100644
-index 3b90d3c..0000000
-diff --git a/autotests/folding/test.frag.fold b/autotests/folding/test.frag.fold
-deleted file mode 100644
-index a6a7bc1..0000000
-diff --git a/autotests/folding/test.htm.fold b/autotests/folding/test.htm.fold
-deleted file mode 100644
-index 23df023..0000000
-diff --git a/autotests/folding/test.ijs.fold b/autotests/folding/test.ijs.fold
-deleted file mode 100644
-index 7ff269b..0000000
-diff --git a/autotests/folding/test.ini.fold b/autotests/folding/test.ini.fold
-deleted file mode 100644
-index 27d80c8..0000000
-diff --git a/autotests/folding/test.js.fold b/autotests/folding/test.js.fold
-deleted file mode 100644
-index 90eecbf..0000000
-diff --git a/autotests/folding/test.json.fold b/autotests/folding/test.json.fold
-deleted file mode 100644
-index 622ad42..0000000
-diff --git a/autotests/folding/test.jsx.fold b/autotests/folding/test.jsx.fold
-deleted file mode 100644
-index bb0ffe8..0000000
-diff --git a/autotests/folding/test.logcat.fold b/autotests/folding/test.logcat.fold
-deleted file mode 100644
-index 80f0657..0000000
-diff --git a/autotests/folding/test.markdown.fold b/autotests/folding/test.markdown.fold
-deleted file mode 100644
-index 5078865..0000000
-diff --git a/autotests/folding/test.mib.fold b/autotests/folding/test.mib.fold
-deleted file mode 100644
-index aa273c2..0000000
-diff --git a/autotests/folding/test.mm.fold b/autotests/folding/test.mm.fold
-deleted file mode 100644
-index 6c8c39a..0000000
-diff --git a/autotests/folding/test.mod.fold b/autotests/folding/test.mod.fold
-deleted file mode 100644
-index 57faabc..0000000
-diff --git a/autotests/folding/test.mss.fold b/autotests/folding/test.mss.fold
-deleted file mode 100644
-index 49e0b97..0000000
-diff --git a/autotests/folding/test.py.fold b/autotests/folding/test.py.fold
-deleted file mode 100644
-index 8f9cdf4..0000000
-diff --git a/autotests/folding/test.qdocconf.fold b/autotests/folding/test.qdocconf.fold
-deleted file mode 100644
-index 0a382be..0000000
-diff --git a/autotests/folding/test.qml.fold b/autotests/folding/test.qml.fold
-deleted file mode 100644
-index 316ff65..0000000
-diff --git a/autotests/folding/test.rexx.fold b/autotests/folding/test.rexx.fold
-deleted file mode 100644
-index 378f8b7..0000000
-diff --git a/autotests/folding/test.rs.fold b/autotests/folding/test.rs.fold
-deleted file mode 100644
-index 7e43837..0000000
-diff --git a/autotests/folding/test.sieve.fold b/autotests/folding/test.sieve.fold
-deleted file mode 100644
-index c3344eb..0000000
-diff --git a/autotests/folding/test.sql.fold b/autotests/folding/test.sql.fold
-deleted file mode 100644
-index b76fae2..0000000
-diff --git a/autotests/folding/test.sql_oracle.fold b/autotests/folding/test.sql_oracle.fold
-deleted file mode 100644
-index e123cdf..0000000
-diff --git a/autotests/folding/test.te.fold b/autotests/folding/test.te.fold
-deleted file mode 100644
-index e266975..0000000
-diff --git a/autotests/folding/test.tex.fold b/autotests/folding/test.tex.fold
-deleted file mode 100644
-index 8da60c9..0000000
-diff --git a/autotests/folding/test.yaml.fold b/autotests/folding/test.yaml.fold
-deleted file mode 100644
-index e044140..0000000
-diff --git a/autotests/folding/test.zsh.fold b/autotests/folding/test.zsh.fold
-deleted file mode 100644
-index 924d798..0000000
-diff --git a/autotests/folding/usr.bin.apparmor-profile-test.fold b/autotests/folding/usr.bin.apparmor-profile-test.fold
-deleted file mode 100644
-index 64deede..0000000
-diff --git a/autotests/foldingtest.cpp b/autotests/foldingtest.cpp
-deleted file mode 100644
-index 5d10166..0000000
-diff --git a/autotests/highlighter_benchmark.cpp b/autotests/highlighter_benchmark.cpp
-deleted file mode 100644
-index 0b945ff..0000000
-diff --git a/autotests/html/Dockerfile.html b/autotests/html/Dockerfile.html
-deleted file mode 100644
-index ef324f6..0000000
-diff --git a/autotests/html/Doxyfile.example.html b/autotests/html/Doxyfile.example.html
-deleted file mode 100644
-index 0f2a6a5..0000000
-diff --git a/autotests/html/Kconfig.html b/autotests/html/Kconfig.html
-deleted file mode 100644
-index ab4ca14..0000000
-diff --git a/autotests/html/Makefile.html b/autotests/html/Makefile.html
-deleted file mode 100644
-index 801c14a..0000000
-diff --git a/autotests/html/adblock.txt.html b/autotests/html/adblock.txt.html
-deleted file mode 100644
-index 04dc5d1..0000000
-diff --git a/autotests/html/apache.conf.html b/autotests/html/apache.conf.html
-deleted file mode 100644
-index 50f254c..0000000
-diff --git a/autotests/html/basic.markdown.html b/autotests/html/basic.markdown.html
-deleted file mode 100644
-index 8ee1f19..0000000
-diff --git a/autotests/html/basic.xml.html b/autotests/html/basic.xml.html
-deleted file mode 100644
-index 770b081..0000000
-diff --git a/autotests/html/build.gradle.html b/autotests/html/build.gradle.html
-deleted file mode 100644
-index 5f0e056..0000000
-diff --git a/autotests/html/clojure.clj.html b/autotests/html/clojure.clj.html
-deleted file mode 100644
-index 548e3ea..0000000
-diff --git a/autotests/html/complex.xml.html b/autotests/html/complex.xml.html
-deleted file mode 100644
-index 117029d..0000000
-diff --git a/autotests/html/craftenv.ps1.html b/autotests/html/craftenv.ps1.html
-deleted file mode 100644
-index cfdf0e2..0000000
-diff --git a/autotests/html/csharp.cs.html b/autotests/html/csharp.cs.html
-deleted file mode 100644
-index fb4b469..0000000
-diff --git a/autotests/html/cube.obj.html b/autotests/html/cube.obj.html
-deleted file mode 100644
-index 6ecd1df..0000000
-diff --git a/autotests/html/cube.ply.html b/autotests/html/cube.ply.html
-deleted file mode 100644
-index 39d9102..0000000
-diff --git a/autotests/html/cube.stl.html b/autotests/html/cube.stl.html
-deleted file mode 100644
-index 0a23eab..0000000
-diff --git a/autotests/html/example.rmd.html b/autotests/html/example.rmd.html
-deleted file mode 100644
-index 9d7b639..0000000
-diff --git a/autotests/html/firstNonSpace.c.html b/autotests/html/firstNonSpace.c.html
-deleted file mode 100644
-index 55e02dd..0000000
-diff --git a/autotests/html/folding.cpp.html b/autotests/html/folding.cpp.html
-deleted file mode 100644
-index a920612..0000000
-diff --git a/autotests/html/git-rebase.html b/autotests/html/git-rebase.html
-deleted file mode 100644
-index 17d6da9..0000000
-diff --git a/autotests/html/hello.exs.html b/autotests/html/hello.exs.html
-deleted file mode 100644
-index 43d76a5..0000000
-diff --git a/autotests/html/highlight.ahdl.html b/autotests/html/highlight.ahdl.html
-deleted file mode 100644
-index b833298..0000000
-diff --git a/autotests/html/highlight.asm-avr.html b/autotests/html/highlight.asm-avr.html
-deleted file mode 100644
-index 867894e..0000000
-diff --git a/autotests/html/highlight.asm-nasm.html b/autotests/html/highlight.asm-nasm.html
-deleted file mode 100644
-index 6ae4028..0000000
-diff --git a/autotests/html/highlight.asp.html b/autotests/html/highlight.asp.html
-deleted file mode 100644
-index 85a1bba..0000000
-diff --git a/autotests/html/highlight.awk.html b/autotests/html/highlight.awk.html
-deleted file mode 100644
-index d92268a..0000000
-diff --git a/autotests/html/highlight.bib.html b/autotests/html/highlight.bib.html
-deleted file mode 100644
-index 48cc672..0000000
-diff --git a/autotests/html/highlight.bt.html b/autotests/html/highlight.bt.html
-deleted file mode 100644
-index dca943a..0000000
-diff --git a/autotests/html/highlight.cmake.html b/autotests/html/highlight.cmake.html
-deleted file mode 100644
-index a70c5ad..0000000
-diff --git a/autotests/html/highlight.cpp.html b/autotests/html/highlight.cpp.html
-deleted file mode 100644
-index 07be9db..0000000
-diff --git a/autotests/html/highlight.css.html b/autotests/html/highlight.css.html
-deleted file mode 100644
-index a3efe69..0000000
-diff --git a/autotests/html/highlight.d.html b/autotests/html/highlight.d.html
-deleted file mode 100644
-index 5e97d7b..0000000
-diff --git a/autotests/html/highlight.do.html b/autotests/html/highlight.do.html
-deleted file mode 100644
-index 40ac67d..0000000
-diff --git a/autotests/html/highlight.dox.html b/autotests/html/highlight.dox.html
-deleted file mode 100644
-index 990dc60..0000000
-diff --git a/autotests/html/highlight.erl.html b/autotests/html/highlight.erl.html
-deleted file mode 100644
-index 8424c84..0000000
-diff --git a/autotests/html/highlight.exu.html b/autotests/html/highlight.exu.html
-deleted file mode 100644
-index 5631898..0000000
-diff --git a/autotests/html/highlight.f90.html b/autotests/html/highlight.f90.html
-deleted file mode 100644
-index 897b853..0000000
-diff --git a/autotests/html/highlight.gdb.html b/autotests/html/highlight.gdb.html
-deleted file mode 100644
-index 5341b3c..0000000
-diff --git a/autotests/html/highlight.gdbinit.html b/autotests/html/highlight.gdbinit.html
-deleted file mode 100644
-index 84f3083..0000000
-diff --git a/autotests/html/highlight.glsl.html b/autotests/html/highlight.glsl.html
-deleted file mode 100644
-index bb22782..0000000
-diff --git a/autotests/html/highlight.hex.html b/autotests/html/highlight.hex.html
-deleted file mode 100644
-index b43e169..0000000
-diff --git a/autotests/html/highlight.hs.html b/autotests/html/highlight.hs.html
-deleted file mode 100644
-index b0ae90c..0000000
-diff --git a/autotests/html/highlight.java.html b/autotests/html/highlight.java.html
-deleted file mode 100644
-index e2b38e2..0000000
-diff --git a/autotests/html/highlight.js.html b/autotests/html/highlight.js.html
-deleted file mode 100644
-index 9c0f8d3..0000000
-diff --git a/autotests/html/highlight.jsp.html b/autotests/html/highlight.jsp.html
-deleted file mode 100644
-index 919297f..0000000
-diff --git a/autotests/html/highlight.less.html b/autotests/html/highlight.less.html
-deleted file mode 100644
-index 1491037..0000000
-diff --git a/autotests/html/highlight.lex.html b/autotests/html/highlight.lex.html
-deleted file mode 100644
-index dc1a884..0000000
-diff --git a/autotests/html/highlight.lgt.html b/autotests/html/highlight.lgt.html
-deleted file mode 100644
-index 5edceb3..0000000
-diff --git a/autotests/html/highlight.lhs.html b/autotests/html/highlight.lhs.html
-deleted file mode 100644
-index 086360e..0000000
-diff --git a/autotests/html/highlight.lisp.html b/autotests/html/highlight.lisp.html
-deleted file mode 100644
-index 6d59f6b..0000000
-diff --git a/autotests/html/highlight.lua.html b/autotests/html/highlight.lua.html
-deleted file mode 100644
-index 6ea0df4..0000000
-diff --git a/autotests/html/highlight.ly.html b/autotests/html/highlight.ly.html
-deleted file mode 100644
-index 3eafd4b..0000000
-diff --git a/autotests/html/highlight.m.html b/autotests/html/highlight.m.html
-deleted file mode 100644
-index 3296705..0000000
-diff --git a/autotests/html/highlight.mac.html b/autotests/html/highlight.mac.html
-deleted file mode 100644
-index 62a6068..0000000
-diff --git a/autotests/html/highlight.mup.html b/autotests/html/highlight.mup.html
-deleted file mode 100644
-index 48c6a3b..0000000
-diff --git a/autotests/html/highlight.pb.html b/autotests/html/highlight.pb.html
-deleted file mode 100644
-index 09a3ee8..0000000
-diff --git a/autotests/html/highlight.php.html b/autotests/html/highlight.php.html
-deleted file mode 100644
-index 08cf9ad..0000000
-diff --git a/autotests/html/highlight.pike.html b/autotests/html/highlight.pike.html
-deleted file mode 100644
-index 7f63985..0000000
-diff --git a/autotests/html/highlight.pl.html b/autotests/html/highlight.pl.html
-deleted file mode 100644
-index 4e31dda..0000000
-diff --git a/autotests/html/highlight.pony.html b/autotests/html/highlight.pony.html
-deleted file mode 100644
-index 97ae59d..0000000
-diff --git a/autotests/html/highlight.pov.html b/autotests/html/highlight.pov.html
-deleted file mode 100644
-index e566558..0000000
-diff --git a/autotests/html/highlight.prg.html b/autotests/html/highlight.prg.html
-deleted file mode 100644
-index cc6f18a..0000000
-diff --git a/autotests/html/highlight.qml.html b/autotests/html/highlight.qml.html
-deleted file mode 100644
-index e74d91c..0000000
-diff --git a/autotests/html/highlight.rb.html b/autotests/html/highlight.rb.html
-deleted file mode 100644
-index 8e2bb99..0000000
-diff --git a/autotests/html/highlight.scad.html b/autotests/html/highlight.scad.html
-deleted file mode 100644
-index 31a7b10..0000000
-diff --git a/autotests/html/highlight.scheme.html b/autotests/html/highlight.scheme.html
-deleted file mode 100644
-index a561179..0000000
-diff --git a/autotests/html/highlight.scss.html b/autotests/html/highlight.scss.html
-deleted file mode 100644
-index ec36e31..0000000
-diff --git a/autotests/html/highlight.sh.html b/autotests/html/highlight.sh.html
-deleted file mode 100644
-index b661a14..0000000
-diff --git a/autotests/html/highlight.spec.html b/autotests/html/highlight.spec.html
-deleted file mode 100644
-index 459655b..0000000
-diff --git a/autotests/html/highlight.stan.html b/autotests/html/highlight.stan.html
-deleted file mode 100644
-index 44f7274..0000000
-diff --git a/autotests/html/highlight.t2t.html b/autotests/html/highlight.t2t.html
-deleted file mode 100644
-index 044837e..0000000
-diff --git a/autotests/html/highlight.tcl.html b/autotests/html/highlight.tcl.html
-deleted file mode 100644
-index cda9499..0000000
-diff --git a/autotests/html/highlight.tex.html b/autotests/html/highlight.tex.html
-deleted file mode 100644
-index f277153..0000000
-diff --git a/autotests/html/highlight.tig.html b/autotests/html/highlight.tig.html
-deleted file mode 100644
-index ea1b29e..0000000
-diff --git a/autotests/html/highlight.wrl.html b/autotests/html/highlight.wrl.html
-deleted file mode 100644
-index 4ddc08f..0000000
-diff --git a/autotests/html/highlight.xml.html b/autotests/html/highlight.xml.html
-deleted file mode 100644
-index cccbe3b..0000000
-diff --git a/autotests/html/highlight.xsl.html b/autotests/html/highlight.xsl.html
-deleted file mode 100644
-index 44208fb..0000000
-diff --git a/autotests/html/highlight.y.html b/autotests/html/highlight.y.html
-deleted file mode 100644
-index a11c230..0000000
-diff --git a/autotests/html/highlight.yang.html b/autotests/html/highlight.yang.html
-deleted file mode 100644
-index 0be31a1..0000000
-diff --git a/autotests/html/highlight_lpc.c.html b/autotests/html/highlight_lpc.c.html
-deleted file mode 100644
-index 2ac3653..0000000
-diff --git a/autotests/html/highlight_ocaml.ml.html b/autotests/html/highlight_ocaml.ml.html
-deleted file mode 100644
-index 0e85e63..0000000
-diff --git a/autotests/html/highlight_octave.m.html b/autotests/html/highlight_octave.m.html
-deleted file mode 100644
-index 25d8cd8..0000000
-diff --git a/autotests/html/learnelixir.exs.html b/autotests/html/learnelixir.exs.html
-deleted file mode 100644
-index 9c0a390..0000000
-diff --git a/autotests/html/light52_muldiv.vhdl.html b/autotests/html/light52_muldiv.vhdl.html
-deleted file mode 100644
-index e5e27d3..0000000
-diff --git a/autotests/html/light52_tb.vhdl.html b/autotests/html/light52_tb.vhdl.html
-deleted file mode 100644
-index 8e73226..0000000
-diff --git a/autotests/html/meson.build.html b/autotests/html/meson.build.html
-deleted file mode 100644
-index 66e7942..0000000
-diff --git a/autotests/html/modelines.py.html b/autotests/html/modelines.py.html
-deleted file mode 100644
-index 0b3feff..0000000
-diff --git a/autotests/html/or1200_dc_fsm.v.html b/autotests/html/or1200_dc_fsm.v.html
-deleted file mode 100644
-index 7f26b75..0000000
-diff --git a/autotests/html/or1200_du.v.html b/autotests/html/or1200_du.v.html
-deleted file mode 100644
-index daf06ab..0000000
-diff --git a/autotests/html/preprocessor-bug363280.c.html b/autotests/html/preprocessor-bug363280.c.html
-deleted file mode 100644
-index e7b930b..0000000
-diff --git a/autotests/html/preprocessor-bug363280.cpp.html b/autotests/html/preprocessor-bug363280.cpp.html
-deleted file mode 100644
-index 1cdb7cc..0000000
-diff --git a/autotests/html/review128925-1.css.html b/autotests/html/review128925-1.css.html
-deleted file mode 100644
-index 192353d..0000000
-diff --git a/autotests/html/review128925-1.scss.html b/autotests/html/review128925-1.scss.html
-deleted file mode 100644
-index 79db0f9..0000000
-diff --git a/autotests/html/review128925-2.css.html b/autotests/html/review128925-2.css.html
-deleted file mode 100644
-index f519726..0000000
-diff --git a/autotests/html/review128925-2.scss.html b/autotests/html/review128925-2.scss.html
-deleted file mode 100644
-index 3c6d98e..0000000
-diff --git a/autotests/html/review128935.html.html b/autotests/html/review128935.html.html
-deleted file mode 100644
-index 4e59fc3..0000000
-diff --git a/autotests/html/test-iso.mod.html b/autotests/html/test-iso.mod.html
-deleted file mode 100644
-index e931d2c..0000000
-diff --git a/autotests/html/test-pim.mod.html b/autotests/html/test-pim.mod.html
-deleted file mode 100644
-index 38457df..0000000
-diff --git a/autotests/html/test-r10.mod.html b/autotests/html/test-r10.mod.html
-deleted file mode 100644
-index b35222f..0000000
-diff --git a/autotests/html/test.Rd.html b/autotests/html/test.Rd.html
-deleted file mode 100644
-index de292d6..0000000
-diff --git a/autotests/html/test.bash.html b/autotests/html/test.bash.html
-deleted file mode 100644
-index 161a975..0000000
-diff --git a/autotests/html/test.bb.html b/autotests/html/test.bb.html
-deleted file mode 100644
-index 9be6849..0000000
-diff --git a/autotests/html/test.c.html b/autotests/html/test.c.html
-deleted file mode 100644
-index 06d8a22..0000000
-diff --git a/autotests/html/test.cil.html b/autotests/html/test.cil.html
-deleted file mode 100644
-index ef2aa91..0000000
-diff --git a/autotests/html/test.coffee.html b/autotests/html/test.coffee.html
-deleted file mode 100644
-index 6fe3b4d..0000000
-diff --git a/autotests/html/test.css.html b/autotests/html/test.css.html
-deleted file mode 100644
-index b08cd84..0000000
-diff --git a/autotests/html/test.desktop.html b/autotests/html/test.desktop.html
-deleted file mode 100644
-index 66cdb27..0000000
-diff --git a/autotests/html/test.diff.html b/autotests/html/test.diff.html
-deleted file mode 100644
-index 8aa506d..0000000
-diff --git a/autotests/html/test.eml.html b/autotests/html/test.eml.html
-deleted file mode 100644
-index 7231c81..0000000
-diff --git a/autotests/html/test.fc.html b/autotests/html/test.fc.html
-deleted file mode 100644
-index 7302ed7..0000000
-diff --git a/autotests/html/test.frag.html b/autotests/html/test.frag.html
-deleted file mode 100644
-index 9ad3654..0000000
-diff --git a/autotests/html/test.htm.html b/autotests/html/test.htm.html
-deleted file mode 100644
-index 4c5eca5..0000000
-diff --git a/autotests/html/test.ijs.html b/autotests/html/test.ijs.html
-deleted file mode 100644
-index b9b91dd..0000000
-diff --git a/autotests/html/test.ini.html b/autotests/html/test.ini.html
-deleted file mode 100644
-index e834c8a..0000000
-diff --git a/autotests/html/test.js.html b/autotests/html/test.js.html
-deleted file mode 100644
-index fb47bde..0000000
-diff --git a/autotests/html/test.json.html b/autotests/html/test.json.html
-deleted file mode 100644
-index 1c3ec27..0000000
-diff --git a/autotests/html/test.jsx.html b/autotests/html/test.jsx.html
-deleted file mode 100644
-index 4af3ffa..0000000
-diff --git a/autotests/html/test.logcat.html b/autotests/html/test.logcat.html
-deleted file mode 100644
-index 2b2f6ee..0000000
-diff --git a/autotests/html/test.markdown.html b/autotests/html/test.markdown.html
-deleted file mode 100644
-index 2a6f8d7..0000000
-diff --git a/autotests/html/test.mib.html b/autotests/html/test.mib.html
-deleted file mode 100644
-index 30c2806..0000000
-diff --git a/autotests/html/test.mm.html b/autotests/html/test.mm.html
-deleted file mode 100644
-index 8ae2f11..0000000
-diff --git a/autotests/html/test.mod.html b/autotests/html/test.mod.html
-deleted file mode 100644
-index c03fea4..0000000
-diff --git a/autotests/html/test.mss.html b/autotests/html/test.mss.html
-deleted file mode 100644
-index 47b6292..0000000
-diff --git a/autotests/html/test.py.html b/autotests/html/test.py.html
-deleted file mode 100644
-index 0420ef4..0000000
-diff --git a/autotests/html/test.qdocconf.html b/autotests/html/test.qdocconf.html
-deleted file mode 100644
-index 3a000d5..0000000
-diff --git a/autotests/html/test.qml.html b/autotests/html/test.qml.html
-deleted file mode 100644
-index 39cc95d..0000000
-diff --git a/autotests/html/test.rexx.html b/autotests/html/test.rexx.html
-deleted file mode 100644
-index d528f24..0000000
-diff --git a/autotests/html/test.rs.html b/autotests/html/test.rs.html
-deleted file mode 100644
-index dd4da52..0000000
-diff --git a/autotests/html/test.sieve.html b/autotests/html/test.sieve.html
-deleted file mode 100644
-index f619d21..0000000
-diff --git a/autotests/html/test.sql.html b/autotests/html/test.sql.html
-deleted file mode 100644
-index 91e2ff4..0000000
-diff --git a/autotests/html/test.sql_oracle.html b/autotests/html/test.sql_oracle.html
-deleted file mode 100644
-index 72486e3..0000000
-diff --git a/autotests/html/test.te.html b/autotests/html/test.te.html
-deleted file mode 100644
-index 88dac5e..0000000
-diff --git a/autotests/html/test.tex.html b/autotests/html/test.tex.html
-deleted file mode 100644
-index e3ab47c..0000000
-diff --git a/autotests/html/test.yaml.html b/autotests/html/test.yaml.html
-deleted file mode 100644
-index 94c5d71..0000000
-diff --git a/autotests/html/test.zsh.html b/autotests/html/test.zsh.html
-deleted file mode 100644
-index 12683d7..0000000
-diff --git a/autotests/html/usr.bin.apparmor-profile-test.html b/autotests/html/usr.bin.apparmor-profile-test.html
-deleted file mode 100644
-index 4e2a486..0000000
-diff --git a/autotests/htmlhighlighter_test.cpp b/autotests/htmlhighlighter_test.cpp
-deleted file mode 100644
-index f7cc30a..0000000
-diff --git a/autotests/input/Dockerfile b/autotests/input/Dockerfile
-deleted file mode 100644
-index 95a81d3..0000000
-diff --git a/autotests/input/Doxyfile.example b/autotests/input/Doxyfile.example
-deleted file mode 100644
-index ef39bfc..0000000
-diff --git a/autotests/input/Kconfig b/autotests/input/Kconfig
-deleted file mode 100644
-index 5ebfaf4..0000000
-diff --git a/autotests/input/Makefile b/autotests/input/Makefile
-deleted file mode 100644
-index 05e4590..0000000
-diff --git a/autotests/input/adblock.txt b/autotests/input/adblock.txt
-deleted file mode 100644
-index 7ad85dd..0000000
-diff --git a/autotests/input/adblock.txt.syntax b/autotests/input/adblock.txt.syntax
-deleted file mode 100644
-index 0ce0446..0000000
-diff --git a/autotests/input/apache.conf b/autotests/input/apache.conf
-deleted file mode 100644
-index 2afa0be..0000000
-diff --git a/autotests/input/apache.conf.syntax b/autotests/input/apache.conf.syntax
-deleted file mode 100644
-index eab529d..0000000
-diff --git a/autotests/input/basic.markdown b/autotests/input/basic.markdown
-deleted file mode 100644
-index f9a5bb3..0000000
-diff --git a/autotests/input/basic.xml b/autotests/input/basic.xml
-deleted file mode 100644
-index 20feae1..0000000
-diff --git a/autotests/input/build.gradle b/autotests/input/build.gradle
-deleted file mode 100644
-index 3ad9096..0000000
-diff --git a/autotests/input/clojure.clj b/autotests/input/clojure.clj
-deleted file mode 100644
-index b2f3768..0000000
-diff --git a/autotests/input/complex.xml b/autotests/input/complex.xml
-deleted file mode 100644
-index d738998..0000000
-diff --git a/autotests/input/craftenv.ps1 b/autotests/input/craftenv.ps1
-deleted file mode 100644
-index a58dfee..0000000
-diff --git a/autotests/input/csharp.cs b/autotests/input/csharp.cs
-deleted file mode 100644
-index 8a91459..0000000
-diff --git a/autotests/input/cube.obj b/autotests/input/cube.obj
-deleted file mode 100644
-index ef06c98..0000000
-diff --git a/autotests/input/cube.ply b/autotests/input/cube.ply
-deleted file mode 100644
-index 08d5f89..0000000
-diff --git a/autotests/input/cube.stl b/autotests/input/cube.stl
-deleted file mode 100644
-index ae74fd9..0000000
-diff --git a/autotests/input/example.rmd b/autotests/input/example.rmd
-deleted file mode 100644
-index ef9a33e..0000000
-diff --git a/autotests/input/firstNonSpace.c b/autotests/input/firstNonSpace.c
-deleted file mode 100644
-index 570ba90..0000000
-diff --git a/autotests/input/folding.cpp b/autotests/input/folding.cpp
-deleted file mode 100644
-index 9e26b3f..0000000
-diff --git a/autotests/input/git-rebase b/autotests/input/git-rebase
-deleted file mode 100644
-index 43041bb..0000000
-diff --git a/autotests/input/git-rebase.syntax b/autotests/input/git-rebase.syntax
-deleted file mode 100644
-index abf0034..0000000
-diff --git a/autotests/input/hello.exs b/autotests/input/hello.exs
-deleted file mode 100644
-index cca72a1..0000000
-diff --git a/autotests/input/highlight.ahdl b/autotests/input/highlight.ahdl
-deleted file mode 100644
-index e059aa8..0000000
-diff --git a/autotests/input/highlight.asm-avr b/autotests/input/highlight.asm-avr
-deleted file mode 100644
-index f1e0542..0000000
-diff --git a/autotests/input/highlight.asm-nasm b/autotests/input/highlight.asm-nasm
-deleted file mode 100644
-index a5da4d1..0000000
-diff --git a/autotests/input/highlight.asm-nasm.syntax b/autotests/input/highlight.asm-nasm.syntax
-deleted file mode 100644
-index 67140d2..0000000
-diff --git a/autotests/input/highlight.asp b/autotests/input/highlight.asp
-deleted file mode 100644
-index 07a8619..0000000
-diff --git a/autotests/input/highlight.awk b/autotests/input/highlight.awk
-deleted file mode 100644
-index a80c86a..0000000
-diff --git a/autotests/input/highlight.bib b/autotests/input/highlight.bib
-deleted file mode 100644
-index 0ae404c..0000000
-diff --git a/autotests/input/highlight.bt b/autotests/input/highlight.bt
-deleted file mode 100644
-index 51d2075..0000000
-diff --git a/autotests/input/highlight.cmake b/autotests/input/highlight.cmake
-deleted file mode 100644
-index b8a1842..0000000
-diff --git a/autotests/input/highlight.cpp b/autotests/input/highlight.cpp
-deleted file mode 100644
-index f293064..0000000
-diff --git a/autotests/input/highlight.css b/autotests/input/highlight.css
-deleted file mode 100644
-index 7a5ea67..0000000
-diff --git a/autotests/input/highlight.d b/autotests/input/highlight.d
-deleted file mode 100644
-index b3daaf6..0000000
-diff --git a/autotests/input/highlight.do b/autotests/input/highlight.do
-deleted file mode 100644
-index 0b90b16..0000000
-diff --git a/autotests/input/highlight.dox b/autotests/input/highlight.dox
-deleted file mode 100644
-index 39b404f..0000000
-diff --git a/autotests/input/highlight.erl b/autotests/input/highlight.erl
-deleted file mode 100644
-index 5b485cb..0000000
-diff --git a/autotests/input/highlight.exu b/autotests/input/highlight.exu
-deleted file mode 100644
-index 3651adf..0000000
-diff --git a/autotests/input/highlight.f90 b/autotests/input/highlight.f90
-deleted file mode 100644
-index e2008c2..0000000
-diff --git a/autotests/input/highlight.gdb b/autotests/input/highlight.gdb
-deleted file mode 100644
-index a4b6459..0000000
-diff --git a/autotests/input/highlight.gdbinit b/autotests/input/highlight.gdbinit
-deleted file mode 100644
-index d33f9ea..0000000
-diff --git a/autotests/input/highlight.glsl b/autotests/input/highlight.glsl
-deleted file mode 100644
-index 3495757..0000000
-diff --git a/autotests/input/highlight.hex b/autotests/input/highlight.hex
-deleted file mode 100644
-index 7c3f3ea..0000000
-diff --git a/autotests/input/highlight.hs b/autotests/input/highlight.hs
-deleted file mode 100644
-index 8c0b145..0000000
-diff --git a/autotests/input/highlight.java b/autotests/input/highlight.java
-deleted file mode 100644
-index c807d64..0000000
-diff --git a/autotests/input/highlight.js b/autotests/input/highlight.js
-deleted file mode 100644
-index d0e7533..0000000
-diff --git a/autotests/input/highlight.jsp b/autotests/input/highlight.jsp
-deleted file mode 100644
-index d912836..0000000
-diff --git a/autotests/input/highlight.less b/autotests/input/highlight.less
-deleted file mode 100644
-index e178263..0000000
-diff --git a/autotests/input/highlight.lex b/autotests/input/highlight.lex
-deleted file mode 100644
-index 33527bd..0000000
-diff --git a/autotests/input/highlight.lgt b/autotests/input/highlight.lgt
-deleted file mode 100644
-index d39b45c..0000000
-diff --git a/autotests/input/highlight.lhs b/autotests/input/highlight.lhs
-deleted file mode 100644
-index 9dc52e5..0000000
-diff --git a/autotests/input/highlight.lisp b/autotests/input/highlight.lisp
-deleted file mode 100644
-index e86c85f..0000000
-diff --git a/autotests/input/highlight.lua b/autotests/input/highlight.lua
-deleted file mode 100644
-index 85ac95d..0000000
-diff --git a/autotests/input/highlight.ly b/autotests/input/highlight.ly
-deleted file mode 100644
-index 29aa7a6..0000000
-diff --git a/autotests/input/highlight.m b/autotests/input/highlight.m
-deleted file mode 100644
-index f240138..0000000
-diff --git a/autotests/input/highlight.m.syntax b/autotests/input/highlight.m.syntax
-deleted file mode 100644
-index d22d99a..0000000
-diff --git a/autotests/input/highlight.mac b/autotests/input/highlight.mac
-deleted file mode 100644
-index cb9da2d..0000000
-diff --git a/autotests/input/highlight.mup b/autotests/input/highlight.mup
-deleted file mode 100644
-index ed5a03d..0000000
-diff --git a/autotests/input/highlight.pb b/autotests/input/highlight.pb
-deleted file mode 100644
-index 5560233..0000000
-diff --git a/autotests/input/highlight.php b/autotests/input/highlight.php
-deleted file mode 100644
-index bb50951..0000000
-diff --git a/autotests/input/highlight.pike b/autotests/input/highlight.pike
-deleted file mode 100644
-index 2f63144..0000000
-diff --git a/autotests/input/highlight.pl b/autotests/input/highlight.pl
-deleted file mode 100644
-index 7d15d24..0000000
-diff --git a/autotests/input/highlight.pony b/autotests/input/highlight.pony
-deleted file mode 100644
-index aefa3b7..0000000
-diff --git a/autotests/input/highlight.pov b/autotests/input/highlight.pov
-deleted file mode 100644
-index 0bb3077..0000000
-diff --git a/autotests/input/highlight.prg b/autotests/input/highlight.prg
-deleted file mode 100644
-index 713c605..0000000
-diff --git a/autotests/input/highlight.prg.syntax b/autotests/input/highlight.prg.syntax
-deleted file mode 100644
-index 3355ff8..0000000
-diff --git a/autotests/input/highlight.qml b/autotests/input/highlight.qml
-deleted file mode 100644
-index b860512..0000000
-diff --git a/autotests/input/highlight.rb b/autotests/input/highlight.rb
-deleted file mode 100644
-index 2e52e5f..0000000
-diff --git a/autotests/input/highlight.scad b/autotests/input/highlight.scad
-deleted file mode 100644
-index 3ca4ec3..0000000
-diff --git a/autotests/input/highlight.scheme b/autotests/input/highlight.scheme
-deleted file mode 100644
-index 08c7351..0000000
-diff --git a/autotests/input/highlight.scss b/autotests/input/highlight.scss
-deleted file mode 100644
-index 11a4028..0000000
-diff --git a/autotests/input/highlight.sh b/autotests/input/highlight.sh
-deleted file mode 100644
-index a354757..0000000
-diff --git a/autotests/input/highlight.sh.syntax b/autotests/input/highlight.sh.syntax
-deleted file mode 100644
-index 5b85af9..0000000
-diff --git a/autotests/input/highlight.spec b/autotests/input/highlight.spec
-deleted file mode 100644
-index bc3b95b..0000000
-diff --git a/autotests/input/highlight.stan b/autotests/input/highlight.stan
-deleted file mode 100644
-index a71c231..0000000
-diff --git a/autotests/input/highlight.t2t b/autotests/input/highlight.t2t
-deleted file mode 100644
-index 5b5f379..0000000
-diff --git a/autotests/input/highlight.tcl b/autotests/input/highlight.tcl
-deleted file mode 100644
-index d6b7276..0000000
-diff --git a/autotests/input/highlight.tex b/autotests/input/highlight.tex
-deleted file mode 100644
-index 34c0890..0000000
-diff --git a/autotests/input/highlight.tig b/autotests/input/highlight.tig
-deleted file mode 100644
-index 893cbfe..0000000
-diff --git a/autotests/input/highlight.wrl b/autotests/input/highlight.wrl
-deleted file mode 100644
-index 2fb4b41..0000000
-diff --git a/autotests/input/highlight.xml b/autotests/input/highlight.xml
-deleted file mode 100644
-index 007449c..0000000
-diff --git a/autotests/input/highlight.xsl b/autotests/input/highlight.xsl
-deleted file mode 100644
-index f6e0efb..0000000
-diff --git a/autotests/input/highlight.y b/autotests/input/highlight.y
-deleted file mode 100644
-index df42a54..0000000
-diff --git a/autotests/input/highlight.yang b/autotests/input/highlight.yang
-deleted file mode 100644
-index bd95152..0000000
-diff --git a/autotests/input/highlight_lpc.c b/autotests/input/highlight_lpc.c
-deleted file mode 100644
-index fe5c629..0000000
-diff --git a/autotests/input/highlight_lpc.c.syntax b/autotests/input/highlight_lpc.c.syntax
-deleted file mode 100644
-index 2016d4f..0000000
-diff --git a/autotests/input/highlight_ocaml.ml b/autotests/input/highlight_ocaml.ml
-deleted file mode 100644
-index dc1717a..0000000
-diff --git a/autotests/input/highlight_octave.m b/autotests/input/highlight_octave.m
-deleted file mode 100644
-index 1f96036..0000000
-diff --git a/autotests/input/highlight_octave.m.syntax b/autotests/input/highlight_octave.m.syntax
-deleted file mode 100644
-index 65d755f..0000000
-diff --git a/autotests/input/learnelixir.exs b/autotests/input/learnelixir.exs
-deleted file mode 100644
-index 1f51bd1..0000000
-diff --git a/autotests/input/light52_muldiv.vhdl b/autotests/input/light52_muldiv.vhdl
-deleted file mode 100644
-index 723f154..0000000
-diff --git a/autotests/input/light52_tb.vhdl b/autotests/input/light52_tb.vhdl
-deleted file mode 100644
-index c110c5a..0000000
-diff --git a/autotests/input/meson.build b/autotests/input/meson.build
-deleted file mode 100644
-index d6dd6e6..0000000
-diff --git a/autotests/input/modelines.py b/autotests/input/modelines.py
-deleted file mode 100644
-index cd624ea..0000000
-diff --git a/autotests/input/or1200_dc_fsm.v b/autotests/input/or1200_dc_fsm.v
-deleted file mode 100644
-index e3d80ec..0000000
-diff --git a/autotests/input/or1200_du.v b/autotests/input/or1200_du.v
-deleted file mode 100644
-index dbd3614..0000000
-diff --git a/autotests/input/preprocessor-bug363280.c b/autotests/input/preprocessor-bug363280.c
-deleted file mode 100644
-index 9908bf7..0000000
-diff --git a/autotests/input/preprocessor-bug363280.cpp b/autotests/input/preprocessor-bug363280.cpp
-deleted file mode 100644
-index 9908bf7..0000000
-diff --git a/autotests/input/review128925-1.css b/autotests/input/review128925-1.css
-deleted file mode 100644
-index b61b616..0000000
-diff --git a/autotests/input/review128925-1.scss b/autotests/input/review128925-1.scss
-deleted file mode 100644
-index 6aa1da6..0000000
-diff --git a/autotests/input/review128925-2.css b/autotests/input/review128925-2.css
-deleted file mode 100644
-index 05c20a8..0000000
-diff --git a/autotests/input/review128925-2.scss b/autotests/input/review128925-2.scss
-deleted file mode 100644
-index c71fe3b..0000000
-diff --git a/autotests/input/review128935.html b/autotests/input/review128935.html
-deleted file mode 100644
-index f373235..0000000
-diff --git a/autotests/input/syntax/testlang.xml b/autotests/input/syntax/testlang.xml
-deleted file mode 100644
-index 0a1f9ba..0000000
-diff --git a/autotests/input/test-iso.mod b/autotests/input/test-iso.mod
-deleted file mode 100644
-index c30b91f..0000000
-diff --git a/autotests/input/test-iso.mod.syntax b/autotests/input/test-iso.mod.syntax
-deleted file mode 100644
-index 6179cd9..0000000
-diff --git a/autotests/input/test-pim.mod b/autotests/input/test-pim.mod
-deleted file mode 100644
-index be72a09..0000000
-diff --git a/autotests/input/test-pim.mod.syntax b/autotests/input/test-pim.mod.syntax
-deleted file mode 100644
-index 2580222..0000000
-diff --git a/autotests/input/test-r10.mod b/autotests/input/test-r10.mod
-deleted file mode 100644
-index 5c8b97c..0000000
-diff --git a/autotests/input/test-r10.mod.syntax b/autotests/input/test-r10.mod.syntax
-deleted file mode 100644
-index 55f4a6c..0000000
-diff --git a/autotests/input/test.Rd b/autotests/input/test.Rd
-deleted file mode 100644
-index 392343e..0000000
-diff --git a/autotests/input/test.bash b/autotests/input/test.bash
-deleted file mode 100644
-index 6241e5a..0000000
-diff --git a/autotests/input/test.bb b/autotests/input/test.bb
-deleted file mode 100644
-index 98d9089..0000000
-diff --git a/autotests/input/test.c b/autotests/input/test.c
-deleted file mode 100644
-index b2462d7..0000000
-diff --git a/autotests/input/test.c.syntax b/autotests/input/test.c.syntax
-deleted file mode 100644
-index 3cc58df..0000000
-diff --git a/autotests/input/test.cil b/autotests/input/test.cil
-deleted file mode 100644
-index 6ff2ff2..0000000
-diff --git a/autotests/input/test.coffee b/autotests/input/test.coffee
-deleted file mode 100644
-index 56f8a69..0000000
-diff --git a/autotests/input/test.css b/autotests/input/test.css
-deleted file mode 100644
-index 763e2d6..0000000
-diff --git a/autotests/input/test.css.syntax b/autotests/input/test.css.syntax
-deleted file mode 100644
-index 30599f0..0000000
-diff --git a/autotests/input/test.desktop b/autotests/input/test.desktop
-deleted file mode 100644
-index f3edd78..0000000
-diff --git a/autotests/input/test.diff b/autotests/input/test.diff
-deleted file mode 100644
-index 7a6807c..0000000
-diff --git a/autotests/input/test.eml b/autotests/input/test.eml
-deleted file mode 100644
-index 1e43110..0000000
-diff --git a/autotests/input/test.fc b/autotests/input/test.fc
-deleted file mode 100644
-index 76935a1..0000000
-diff --git a/autotests/input/test.frag b/autotests/input/test.frag
-deleted file mode 100644
-index 67ccc99..0000000
-diff --git a/autotests/input/test.htm b/autotests/input/test.htm
-deleted file mode 100644
-index 24ed4aa..0000000
-diff --git a/autotests/input/test.htm.syntax b/autotests/input/test.htm.syntax
-deleted file mode 100644
-index f05185c..0000000
-diff --git a/autotests/input/test.ijs b/autotests/input/test.ijs
-deleted file mode 100644
-index 9acfe4b..0000000
-diff --git a/autotests/input/test.ini b/autotests/input/test.ini
-deleted file mode 100644
-index d67d83d..0000000
-diff --git a/autotests/input/test.js b/autotests/input/test.js
-deleted file mode 100644
-index 478bd6e..0000000
-diff --git a/autotests/input/test.json b/autotests/input/test.json
-deleted file mode 100644
-index 6c16ee6..0000000
-diff --git a/autotests/input/test.jsx b/autotests/input/test.jsx
-deleted file mode 100644
-index 52b35c5..0000000
-diff --git a/autotests/input/test.logcat b/autotests/input/test.logcat
-deleted file mode 100644
-index 80f0657..0000000
-diff --git a/autotests/input/test.markdown b/autotests/input/test.markdown
-deleted file mode 100644
-index 74bcb61..0000000
-diff --git a/autotests/input/test.mib b/autotests/input/test.mib
-deleted file mode 100644
-index aa273c2..0000000
-diff --git a/autotests/input/test.mm b/autotests/input/test.mm
-deleted file mode 100644
-index 7f2677a..0000000
-diff --git a/autotests/input/test.mm.syntax b/autotests/input/test.mm.syntax
-deleted file mode 100644
-index b3ddb33..0000000
-diff --git a/autotests/input/test.mod b/autotests/input/test.mod
-deleted file mode 100644
-index c30b91f..0000000
-diff --git a/autotests/input/test.mss b/autotests/input/test.mss
-deleted file mode 100644
-index 4f742c1..0000000
-diff --git a/autotests/input/test.py b/autotests/input/test.py
-deleted file mode 100644
-index ac2ad0d..0000000
-diff --git a/autotests/input/test.qdocconf b/autotests/input/test.qdocconf
-deleted file mode 100644
-index 0a382be..0000000
-diff --git a/autotests/input/test.qml b/autotests/input/test.qml
-deleted file mode 100644
-index d8f7cb5..0000000
-diff --git a/autotests/input/test.rexx b/autotests/input/test.rexx
-deleted file mode 100644
-index 3e25125..0000000
-diff --git a/autotests/input/test.rs b/autotests/input/test.rs
-deleted file mode 100644
-index ec0d188..0000000
-diff --git a/autotests/input/test.sieve b/autotests/input/test.sieve
-deleted file mode 100644
-index 596ac45..0000000
-diff --git a/autotests/input/test.sql b/autotests/input/test.sql
-deleted file mode 100644
-index b76fae2..0000000
-diff --git a/autotests/input/test.sql.syntax b/autotests/input/test.sql.syntax
-deleted file mode 100644
-index b433cc9..0000000
-diff --git a/autotests/input/test.sql_oracle b/autotests/input/test.sql_oracle
-deleted file mode 100644
-index 80ade14..0000000
-diff --git a/autotests/input/test.sql_oracle.syntax b/autotests/input/test.sql_oracle.syntax
-deleted file mode 100644
-index 679c648..0000000
-diff --git a/autotests/input/test.te b/autotests/input/test.te
-deleted file mode 100644
-index 4a5ec9d..0000000
-diff --git a/autotests/input/test.tex b/autotests/input/test.tex
-deleted file mode 100644
-index 8da60c9..0000000
-diff --git a/autotests/input/test.yaml b/autotests/input/test.yaml
-deleted file mode 100644
-index cebc411..0000000
-diff --git a/autotests/input/test.zsh b/autotests/input/test.zsh
-deleted file mode 100644
-index 9da5db2..0000000
-diff --git a/autotests/input/themes/customtheme.theme b/autotests/input/themes/customtheme.theme
-deleted file mode 100644
-index 9ef0eea..0000000
-diff --git a/autotests/input/usr.bin.apparmor-profile-test b/autotests/input/usr.bin.apparmor-profile-test
-deleted file mode 100644
-index d112068..0000000
-diff --git a/autotests/reference/Dockerfile.ref b/autotests/reference/Dockerfile.ref
-deleted file mode 100644
-index 4d075e5..0000000
-diff --git a/autotests/reference/Doxyfile.example.ref b/autotests/reference/Doxyfile.example.ref
-deleted file mode 100644
-index 05100a4..0000000
-diff --git a/autotests/reference/Kconfig.ref b/autotests/reference/Kconfig.ref
-deleted file mode 100644
-index 0871457..0000000
-diff --git a/autotests/reference/Makefile.ref b/autotests/reference/Makefile.ref
-deleted file mode 100644
-index aa6a7c8..0000000
-diff --git a/autotests/reference/adblock.txt.ref b/autotests/reference/adblock.txt.ref
-deleted file mode 100644
-index 0b70891..0000000
-diff --git a/autotests/reference/apache.conf.ref b/autotests/reference/apache.conf.ref
-deleted file mode 100644
-index 9b48e0b..0000000
-diff --git a/autotests/reference/basic.markdown.ref b/autotests/reference/basic.markdown.ref
-deleted file mode 100644
-index 8f32c5d..0000000
-diff --git a/autotests/reference/basic.xml.ref b/autotests/reference/basic.xml.ref
-deleted file mode 100644
-index 9e61a57..0000000
-diff --git a/autotests/reference/build.gradle.ref b/autotests/reference/build.gradle.ref
-deleted file mode 100644
-index fc3d280..0000000
-diff --git a/autotests/reference/clojure.clj.ref b/autotests/reference/clojure.clj.ref
-deleted file mode 100644
-index 0c9ae6d..0000000
-diff --git a/autotests/reference/complex.xml.ref b/autotests/reference/complex.xml.ref
-deleted file mode 100644
-index 4ffac2b..0000000
-diff --git a/autotests/reference/craftenv.ps1.ref b/autotests/reference/craftenv.ps1.ref
-deleted file mode 100644
-index 7d7f496..0000000
-diff --git a/autotests/reference/csharp.cs.ref b/autotests/reference/csharp.cs.ref
-deleted file mode 100644
-index bd5f806..0000000
-diff --git a/autotests/reference/cube.obj.ref b/autotests/reference/cube.obj.ref
-deleted file mode 100644
-index ff41fa3..0000000
-diff --git a/autotests/reference/cube.ply.ref b/autotests/reference/cube.ply.ref
-deleted file mode 100644
-index 2ba0fc5..0000000
-diff --git a/autotests/reference/cube.stl.ref b/autotests/reference/cube.stl.ref
-deleted file mode 100644
-index d3e273d..0000000
-diff --git a/autotests/reference/example.rmd.ref b/autotests/reference/example.rmd.ref
-deleted file mode 100644
-index 56eedaa..0000000
-diff --git a/autotests/reference/firstNonSpace.c.ref b/autotests/reference/firstNonSpace.c.ref
-deleted file mode 100644
-index 6c14dd6..0000000
-diff --git a/autotests/reference/folding.cpp.ref b/autotests/reference/folding.cpp.ref
-deleted file mode 100644
-index 5fb1ec8..0000000
-diff --git a/autotests/reference/git-rebase.ref b/autotests/reference/git-rebase.ref
-deleted file mode 100644
-index a0a99ab..0000000
-diff --git a/autotests/reference/hello.exs.ref b/autotests/reference/hello.exs.ref
-deleted file mode 100644
-index f81ebbf..0000000
-diff --git a/autotests/reference/highlight.ahdl.ref b/autotests/reference/highlight.ahdl.ref
-deleted file mode 100644
-index ee149c2..0000000
-diff --git a/autotests/reference/highlight.asm-avr.ref b/autotests/reference/highlight.asm-avr.ref
-deleted file mode 100644
-index af6b627..0000000
-diff --git a/autotests/reference/highlight.asm-nasm.ref b/autotests/reference/highlight.asm-nasm.ref
-deleted file mode 100644
-index d674717..0000000
-diff --git a/autotests/reference/highlight.asp.ref b/autotests/reference/highlight.asp.ref
-deleted file mode 100644
-index b64fd4e..0000000
-diff --git a/autotests/reference/highlight.awk.ref b/autotests/reference/highlight.awk.ref
-deleted file mode 100644
-index 0560d4b..0000000
-diff --git a/autotests/reference/highlight.bib.ref b/autotests/reference/highlight.bib.ref
-deleted file mode 100644
-index d3f79c4..0000000
-diff --git a/autotests/reference/highlight.bt.ref b/autotests/reference/highlight.bt.ref
-deleted file mode 100644
-index b4559d7..0000000
-diff --git a/autotests/reference/highlight.cmake.ref b/autotests/reference/highlight.cmake.ref
-deleted file mode 100644
-index 2f7136f..0000000
-diff --git a/autotests/reference/highlight.cpp.ref b/autotests/reference/highlight.cpp.ref
-deleted file mode 100644
-index 295b447..0000000
-diff --git a/autotests/reference/highlight.css.ref b/autotests/reference/highlight.css.ref
-deleted file mode 100644
-index a262282..0000000
-diff --git a/autotests/reference/highlight.d.ref b/autotests/reference/highlight.d.ref
-deleted file mode 100644
-index 68962b9..0000000
-diff --git a/autotests/reference/highlight.do.ref b/autotests/reference/highlight.do.ref
-deleted file mode 100644
-index afc5bac..0000000
-diff --git a/autotests/reference/highlight.dox.ref b/autotests/reference/highlight.dox.ref
-deleted file mode 100644
-index 3e8346a..0000000
-diff --git a/autotests/reference/highlight.erl.ref b/autotests/reference/highlight.erl.ref
-deleted file mode 100644
-index 3a38fb7..0000000
-diff --git a/autotests/reference/highlight.exu.ref b/autotests/reference/highlight.exu.ref
-deleted file mode 100644
-index 5ec9969..0000000
-diff --git a/autotests/reference/highlight.f90.ref b/autotests/reference/highlight.f90.ref
-deleted file mode 100644
-index 810a1d6..0000000
-diff --git a/autotests/reference/highlight.gdb.ref b/autotests/reference/highlight.gdb.ref
-deleted file mode 100644
-index 3b0fdc0..0000000
-diff --git a/autotests/reference/highlight.gdbinit.ref b/autotests/reference/highlight.gdbinit.ref
-deleted file mode 100644
-index ef8dc48..0000000
-diff --git a/autotests/reference/highlight.glsl.ref b/autotests/reference/highlight.glsl.ref
-deleted file mode 100644
-index d7d0ef3..0000000
-diff --git a/autotests/reference/highlight.hex.ref b/autotests/reference/highlight.hex.ref
-deleted file mode 100644
-index ae09fd7..0000000
-diff --git a/autotests/reference/highlight.hs.ref b/autotests/reference/highlight.hs.ref
-deleted file mode 100644
-index e59f9d3..0000000
-diff --git a/autotests/reference/highlight.java.ref b/autotests/reference/highlight.java.ref
-deleted file mode 100644
-index ce941bd..0000000
-diff --git a/autotests/reference/highlight.js.ref b/autotests/reference/highlight.js.ref
-deleted file mode 100644
-index 7ddd8c9..0000000
-diff --git a/autotests/reference/highlight.jsp.ref b/autotests/reference/highlight.jsp.ref
-deleted file mode 100644
-index de73f18..0000000
-diff --git a/autotests/reference/highlight.less.ref b/autotests/reference/highlight.less.ref
-deleted file mode 100644
-index b5ac4ae..0000000
-diff --git a/autotests/reference/highlight.lex.ref b/autotests/reference/highlight.lex.ref
-deleted file mode 100644
-index 85912dc..0000000
-diff --git a/autotests/reference/highlight.lgt.ref b/autotests/reference/highlight.lgt.ref
-deleted file mode 100644
-index 354d3ad..0000000
-diff --git a/autotests/reference/highlight.lhs.ref b/autotests/reference/highlight.lhs.ref
-deleted file mode 100644
-index 838c687..0000000
-diff --git a/autotests/reference/highlight.lisp.ref b/autotests/reference/highlight.lisp.ref
-deleted file mode 100644
-index fe8cbf0..0000000
-diff --git a/autotests/reference/highlight.lua.ref b/autotests/reference/highlight.lua.ref
-deleted file mode 100644
-index 26e640c..0000000
-diff --git a/autotests/reference/highlight.ly.ref b/autotests/reference/highlight.ly.ref
-deleted file mode 100644
-index f11654d..0000000
-diff --git a/autotests/reference/highlight.m.ref b/autotests/reference/highlight.m.ref
-deleted file mode 100644
-index e75ca5e..0000000
-diff --git a/autotests/reference/highlight.mac.ref b/autotests/reference/highlight.mac.ref
-deleted file mode 100644
-index 79f336a..0000000
-diff --git a/autotests/reference/highlight.mup.ref b/autotests/reference/highlight.mup.ref
-deleted file mode 100644
-index 7ec1480..0000000
-diff --git a/autotests/reference/highlight.pb.ref b/autotests/reference/highlight.pb.ref
-deleted file mode 100644
-index d6adb56..0000000
-diff --git a/autotests/reference/highlight.php.ref b/autotests/reference/highlight.php.ref
-deleted file mode 100644
-index b1d8139..0000000
-diff --git a/autotests/reference/highlight.pike.ref b/autotests/reference/highlight.pike.ref
-deleted file mode 100644
-index f40f3d9..0000000
-diff --git a/autotests/reference/highlight.pl.ref b/autotests/reference/highlight.pl.ref
-deleted file mode 100644
-index e9cedd1..0000000
-diff --git a/autotests/reference/highlight.pony.ref b/autotests/reference/highlight.pony.ref
-deleted file mode 100644
-index 525f712..0000000
-diff --git a/autotests/reference/highlight.pov.ref b/autotests/reference/highlight.pov.ref
-deleted file mode 100644
-index 4a21aaf..0000000
-diff --git a/autotests/reference/highlight.prg.ref b/autotests/reference/highlight.prg.ref
-deleted file mode 100644
-index 2888283..0000000
-diff --git a/autotests/reference/highlight.qml.ref b/autotests/reference/highlight.qml.ref
-deleted file mode 100644
-index 3df0de1..0000000
-diff --git a/autotests/reference/highlight.rb.ref b/autotests/reference/highlight.rb.ref
-deleted file mode 100644
-index 139825f..0000000
-diff --git a/autotests/reference/highlight.scad.ref b/autotests/reference/highlight.scad.ref
-deleted file mode 100644
-index 93d31eb..0000000
-diff --git a/autotests/reference/highlight.scheme.ref b/autotests/reference/highlight.scheme.ref
-deleted file mode 100644
-index d6887a3..0000000
-diff --git a/autotests/reference/highlight.scss.ref b/autotests/reference/highlight.scss.ref
-deleted file mode 100644
-index 081743f..0000000
-diff --git a/autotests/reference/highlight.sh.ref b/autotests/reference/highlight.sh.ref
-deleted file mode 100644
-index fbfba05..0000000
-diff --git a/autotests/reference/highlight.spec.ref b/autotests/reference/highlight.spec.ref
-deleted file mode 100644
-index 20b6c11..0000000
-diff --git a/autotests/reference/highlight.stan.ref b/autotests/reference/highlight.stan.ref
-deleted file mode 100644
-index 581f8a2..0000000
-diff --git a/autotests/reference/highlight.t2t.ref b/autotests/reference/highlight.t2t.ref
-deleted file mode 100644
-index 87bff65..0000000
-diff --git a/autotests/reference/highlight.tcl.ref b/autotests/reference/highlight.tcl.ref
-deleted file mode 100644
-index de12b4c..0000000
-diff --git a/autotests/reference/highlight.tex.ref b/autotests/reference/highlight.tex.ref
-deleted file mode 100644
-index bcd6926..0000000
-diff --git a/autotests/reference/highlight.tig.ref b/autotests/reference/highlight.tig.ref
-deleted file mode 100644
-index 056b891..0000000
-diff --git a/autotests/reference/highlight.wrl.ref b/autotests/reference/highlight.wrl.ref
-deleted file mode 100644
-index 0f2b724..0000000
-diff --git a/autotests/reference/highlight.xml.ref b/autotests/reference/highlight.xml.ref
-deleted file mode 100644
-index dde97a6..0000000
-diff --git a/autotests/reference/highlight.xsl.ref b/autotests/reference/highlight.xsl.ref
-deleted file mode 100644
-index 86c1736..0000000
-diff --git a/autotests/reference/highlight.y.ref b/autotests/reference/highlight.y.ref
-deleted file mode 100644
-index b3defa7..0000000
-diff --git a/autotests/reference/highlight.yang.ref b/autotests/reference/highlight.yang.ref
-deleted file mode 100644
-index d4708a6..0000000
-diff --git a/autotests/reference/highlight_lpc.c.ref b/autotests/reference/highlight_lpc.c.ref
-deleted file mode 100644
-index 474d5f0..0000000
-diff --git a/autotests/reference/highlight_ocaml.ml.ref b/autotests/reference/highlight_ocaml.ml.ref
-deleted file mode 100644
-index d036f0e..0000000
-diff --git a/autotests/reference/highlight_octave.m.ref b/autotests/reference/highlight_octave.m.ref
-deleted file mode 100644
-index 4b93a73..0000000
-diff --git a/autotests/reference/learnelixir.exs.ref b/autotests/reference/learnelixir.exs.ref
-deleted file mode 100644
-index d877463..0000000
-diff --git a/autotests/reference/light52_muldiv.vhdl.ref b/autotests/reference/light52_muldiv.vhdl.ref
-deleted file mode 100644
-index 11338ac..0000000
-diff --git a/autotests/reference/light52_tb.vhdl.ref b/autotests/reference/light52_tb.vhdl.ref
-deleted file mode 100644
-index b7a799b..0000000
-diff --git a/autotests/reference/meson.build.ref b/autotests/reference/meson.build.ref
-deleted file mode 100644
-index 75efe1a..0000000
-diff --git a/autotests/reference/modelines.py.ref b/autotests/reference/modelines.py.ref
-deleted file mode 100644
-index 59e5bf2..0000000
-diff --git a/autotests/reference/or1200_dc_fsm.v.ref b/autotests/reference/or1200_dc_fsm.v.ref
-deleted file mode 100644
-index 10a80e5..0000000
-diff --git a/autotests/reference/or1200_du.v.ref b/autotests/reference/or1200_du.v.ref
-deleted file mode 100644
-index a1e838c..0000000
-diff --git a/autotests/reference/preprocessor-bug363280.c.ref b/autotests/reference/preprocessor-bug363280.c.ref
-deleted file mode 100644
-index 4c23041..0000000
-diff --git a/autotests/reference/preprocessor-bug363280.cpp.ref b/autotests/reference/preprocessor-bug363280.cpp.ref
-deleted file mode 100644
-index 8025f16..0000000
-diff --git a/autotests/reference/review128925-1.css.ref b/autotests/reference/review128925-1.css.ref
-deleted file mode 100644
-index 136dd6f..0000000
-diff --git a/autotests/reference/review128925-1.scss.ref b/autotests/reference/review128925-1.scss.ref
-deleted file mode 100644
-index fee32c7..0000000
-diff --git a/autotests/reference/review128925-2.css.ref b/autotests/reference/review128925-2.css.ref
-deleted file mode 100644
-index 0bef602..0000000
-diff --git a/autotests/reference/review128925-2.scss.ref b/autotests/reference/review128925-2.scss.ref
-deleted file mode 100644
-index 082c1e4..0000000
-diff --git a/autotests/reference/review128935.html.ref b/autotests/reference/review128935.html.ref
-deleted file mode 100644
-index 0936f9c..0000000
-diff --git a/autotests/reference/test-iso.mod.ref b/autotests/reference/test-iso.mod.ref
-deleted file mode 100644
-index 027dfac..0000000
-diff --git a/autotests/reference/test-pim.mod.ref b/autotests/reference/test-pim.mod.ref
-deleted file mode 100644
-index 4fac4d1..0000000
-diff --git a/autotests/reference/test-r10.mod.ref b/autotests/reference/test-r10.mod.ref
-deleted file mode 100644
-index bc61067..0000000
-diff --git a/autotests/reference/test.Rd.ref b/autotests/reference/test.Rd.ref
-deleted file mode 100644
-index ae77db2..0000000
-diff --git a/autotests/reference/test.bash.ref b/autotests/reference/test.bash.ref
-deleted file mode 100644
-index adeaa9d..0000000
-diff --git a/autotests/reference/test.bb.ref b/autotests/reference/test.bb.ref
-deleted file mode 100644
-index f0ea3b8..0000000
-diff --git a/autotests/reference/test.c.ref b/autotests/reference/test.c.ref
-deleted file mode 100644
-index 61c3ca8..0000000
-diff --git a/autotests/reference/test.cil.ref b/autotests/reference/test.cil.ref
-deleted file mode 100644
-index cbc0125..0000000
-diff --git a/autotests/reference/test.coffee.ref b/autotests/reference/test.coffee.ref
-deleted file mode 100644
-index e499f72..0000000
-diff --git a/autotests/reference/test.css.ref b/autotests/reference/test.css.ref
-deleted file mode 100644
-index 26de9f8..0000000
-diff --git a/autotests/reference/test.desktop.ref b/autotests/reference/test.desktop.ref
-deleted file mode 100644
-index 12ca73f..0000000
-diff --git a/autotests/reference/test.diff.ref b/autotests/reference/test.diff.ref
-deleted file mode 100644
-index b3d7bd4..0000000
-diff --git a/autotests/reference/test.eml.ref b/autotests/reference/test.eml.ref
-deleted file mode 100644
-index 25de38c..0000000
-diff --git a/autotests/reference/test.fc.ref b/autotests/reference/test.fc.ref
-deleted file mode 100644
-index dee4455..0000000
-diff --git a/autotests/reference/test.frag.ref b/autotests/reference/test.frag.ref
-deleted file mode 100644
-index 1426b6e..0000000
-diff --git a/autotests/reference/test.htm.ref b/autotests/reference/test.htm.ref
-deleted file mode 100644
-index c3d98ff..0000000
-diff --git a/autotests/reference/test.ijs.ref b/autotests/reference/test.ijs.ref
-deleted file mode 100644
-index 30c9733..0000000
-diff --git a/autotests/reference/test.ini.ref b/autotests/reference/test.ini.ref
-deleted file mode 100644
-index f2d5e79..0000000
-diff --git a/autotests/reference/test.js.ref b/autotests/reference/test.js.ref
-deleted file mode 100644
-index ca23322..0000000
-diff --git a/autotests/reference/test.json.ref b/autotests/reference/test.json.ref
-deleted file mode 100644
-index b7f0e52..0000000
-diff --git a/autotests/reference/test.jsx.ref b/autotests/reference/test.jsx.ref
-deleted file mode 100644
-index e9eda2f..0000000
-diff --git a/autotests/reference/test.logcat.ref b/autotests/reference/test.logcat.ref
-deleted file mode 100644
-index e4c1c80..0000000
-diff --git a/autotests/reference/test.markdown.ref b/autotests/reference/test.markdown.ref
-deleted file mode 100644
-index aa5f06c..0000000
-diff --git a/autotests/reference/test.mib.ref b/autotests/reference/test.mib.ref
-deleted file mode 100644
-index a83156b..0000000
-diff --git a/autotests/reference/test.mm.ref b/autotests/reference/test.mm.ref
-deleted file mode 100644
-index 4412d36..0000000
-diff --git a/autotests/reference/test.mod.ref b/autotests/reference/test.mod.ref
-deleted file mode 100644
-index 027dfac..0000000
-diff --git a/autotests/reference/test.mss.ref b/autotests/reference/test.mss.ref
-deleted file mode 100644
-index f3f6ff7..0000000
-diff --git a/autotests/reference/test.py.ref b/autotests/reference/test.py.ref
-deleted file mode 100644
-index a226875..0000000
-diff --git a/autotests/reference/test.qdocconf.ref b/autotests/reference/test.qdocconf.ref
-deleted file mode 100644
-index a5e1727..0000000
-diff --git a/autotests/reference/test.qml.ref b/autotests/reference/test.qml.ref
-deleted file mode 100644
-index 6a84875..0000000
-diff --git a/autotests/reference/test.rexx.ref b/autotests/reference/test.rexx.ref
-deleted file mode 100644
-index 6e69ce4..0000000
-diff --git a/autotests/reference/test.rs.ref b/autotests/reference/test.rs.ref
-deleted file mode 100644
-index 9a27445..0000000
-diff --git a/autotests/reference/test.sieve.ref b/autotests/reference/test.sieve.ref
-deleted file mode 100644
-index a030180..0000000
-diff --git a/autotests/reference/test.sql.ref b/autotests/reference/test.sql.ref
-deleted file mode 100644
-index ba869cd..0000000
-diff --git a/autotests/reference/test.sql_oracle.ref b/autotests/reference/test.sql_oracle.ref
-deleted file mode 100644
-index d121a71..0000000
-diff --git a/autotests/reference/test.te.ref b/autotests/reference/test.te.ref
-deleted file mode 100644
-index 5b3998d..0000000
-diff --git a/autotests/reference/test.tex.ref b/autotests/reference/test.tex.ref
-deleted file mode 100644
-index 3f24c2a..0000000
-diff --git a/autotests/reference/test.yaml.ref b/autotests/reference/test.yaml.ref
-deleted file mode 100644
-index eeeabc0..0000000
-diff --git a/autotests/reference/test.zsh.ref b/autotests/reference/test.zsh.ref
-deleted file mode 100644
-index f8da406..0000000
-diff --git a/autotests/reference/usr.bin.apparmor-profile-test.ref b/autotests/reference/usr.bin.apparmor-profile-test.ref
-deleted file mode 100644
-index c55bd5c..0000000
-diff --git a/autotests/repository_benchmark.cpp b/autotests/repository_benchmark.cpp
-deleted file mode 100644
-index 80bba64..0000000
-diff --git a/autotests/syntaxrepository_test.cpp b/autotests/syntaxrepository_test.cpp
-deleted file mode 100644
-index 3dc654d..0000000
-diff --git a/autotests/test-config.h.in b/autotests/test-config.h.in
-deleted file mode 100644
-index 9e574d7..0000000
-diff --git a/autotests/testhighlighter.cpp b/autotests/testhighlighter.cpp
-deleted file mode 100644
-index fad0300..0000000
-diff --git a/autotests/theme_test.cpp b/autotests/theme_test.cpp
-deleted file mode 100644
-index 961cdb9..0000000
-diff --git a/autotests/update-reference-data.sh.in b/autotests/update-reference-data.sh.in
-deleted file mode 100755
-index 1b5e45e..0000000
-diff --git a/autotests/wildcardmatcher_test.cpp b/autotests/wildcardmatcher_test.cpp
-deleted file mode 100644
-index 8a2208a..0000000
---
-2.20.1.windows.1
-
diff --git a/src/libs/3rdparty/syntax-highlighting/patches/0003-Add-qmake-Qbs-files-and-files-generated-by-CMake.patch b/src/libs/3rdparty/syntax-highlighting/patches/0003-Add-qmake-Qbs-files-and-files-generated-by-CMake.patch
deleted file mode 100644
index c35188fbec..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/patches/0003-Add-qmake-Qbs-files-and-files-generated-by-CMake.patch
+++ /dev/null
@@ -1,389 +0,0 @@
-From c9f4bdaa0902c0fdb5ea750d11935e15777a090d Mon Sep 17 00:00:00 2001
-From: Alessandro Portale <alessandro.portale@qt.io>
-Date: Tue, 12 Feb 2019 19:45:08 +0100
-Subject: [PATCH 3/6] Add qmake/Qbs files and files generated by CMake
-
----
- autogenerated/autogenerated.pri | 9 ++
- autogenerated/ksyntaxhighlighting_version.h | 12 +++
- autogenerated/src/lib/AbstractHighlighter | 1 +
- autogenerated/src/lib/Definition | 1 +
- autogenerated/src/lib/FoldingRegion | 1 +
- autogenerated/src/lib/Format | 1 +
- autogenerated/src/lib/Repository | 1 +
- autogenerated/src/lib/State | 1 +
- autogenerated/src/lib/SyntaxHighlighter | 1 +
- autogenerated/src/lib/Theme | 1 +
- .../src/lib/ksyntaxhighlighting_logging.cpp | 11 +++
- .../src/lib/ksyntaxhighlighting_logging.h | 11 +++
- data/data.pro | 11 +++
- src/lib/ksyntaxhighlighting_export.h | 34 +++++++
- syntax-highlighting.pro | 55 ++++++++++++
- syntax-highlighting.qbs | 88 +++++++++++++++++++
- syntax-highlighting_dependencies.pri | 3 +
- 17 files changed, 242 insertions(+)
- create mode 100644 autogenerated/autogenerated.pri
- create mode 100644 autogenerated/ksyntaxhighlighting_version.h
- create mode 100644 autogenerated/src/lib/AbstractHighlighter
- create mode 100644 autogenerated/src/lib/Definition
- create mode 100644 autogenerated/src/lib/FoldingRegion
- create mode 100644 autogenerated/src/lib/Format
- create mode 100644 autogenerated/src/lib/Repository
- create mode 100644 autogenerated/src/lib/State
- create mode 100644 autogenerated/src/lib/SyntaxHighlighter
- create mode 100644 autogenerated/src/lib/Theme
- create mode 100644 autogenerated/src/lib/ksyntaxhighlighting_logging.cpp
- create mode 100644 autogenerated/src/lib/ksyntaxhighlighting_logging.h
- create mode 100644 data/data.pro
- create mode 100644 src/lib/ksyntaxhighlighting_export.h
- create mode 100644 syntax-highlighting.pro
- create mode 100644 syntax-highlighting.qbs
- create mode 100644 syntax-highlighting_dependencies.pri
-
-diff --git a/autogenerated/autogenerated.pri b/autogenerated/autogenerated.pri
-new file mode 100644
-index 0000000..aee620a
---- /dev/null
-+++ b/autogenerated/autogenerated.pri
-@@ -0,0 +1,9 @@
-+INCLUDEPATH *= $$PWD/src/lib
-+INCLUDEPATH *= $$PWD
-+
-+SOURCES += \
-+ $$PWD/src/lib/ksyntaxhighlighting_logging.cpp
-+
-+HEADERS += \
-+ $$PWD/ksyntaxhighlighting_version.h \
-+ $$PWD/src/lib/ksyntaxhighlighting_logging.h
-diff --git a/autogenerated/ksyntaxhighlighting_version.h b/autogenerated/ksyntaxhighlighting_version.h
-new file mode 100644
-index 0000000..bd31a4d
---- /dev/null
-+++ b/autogenerated/ksyntaxhighlighting_version.h
-@@ -0,0 +1,12 @@
-+// This file was generated by ecm_setup_version(): DO NOT EDIT!
-+
-+#ifndef SyntaxHighlighting_VERSION_H
-+#define SyntaxHighlighting_VERSION_H
-+
-+#define SyntaxHighlighting_VERSION_STRING "5.52.0"
-+#define SyntaxHighlighting_VERSION_MAJOR 5
-+#define SyntaxHighlighting_VERSION_MINOR 52
-+#define SyntaxHighlighting_VERSION_PATCH 0
-+#define SyntaxHighlighting_VERSION ((5<<16)|(52<<8)|(0))
-+
-+#endif
-diff --git a/autogenerated/src/lib/AbstractHighlighter b/autogenerated/src/lib/AbstractHighlighter
-new file mode 100644
-index 0000000..b787873
---- /dev/null
-+++ b/autogenerated/src/lib/AbstractHighlighter
-@@ -0,0 +1 @@
-+#include "abstracthighlighter.h"
-diff --git a/autogenerated/src/lib/Definition b/autogenerated/src/lib/Definition
-new file mode 100644
-index 0000000..2c3241f
---- /dev/null
-+++ b/autogenerated/src/lib/Definition
-@@ -0,0 +1 @@
-+#include "definition.h"
-diff --git a/autogenerated/src/lib/FoldingRegion b/autogenerated/src/lib/FoldingRegion
-new file mode 100644
-index 0000000..005b829
---- /dev/null
-+++ b/autogenerated/src/lib/FoldingRegion
-@@ -0,0 +1 @@
-+#include "foldingregion.h"
-diff --git a/autogenerated/src/lib/Format b/autogenerated/src/lib/Format
-new file mode 100644
-index 0000000..b0d6a10
---- /dev/null
-+++ b/autogenerated/src/lib/Format
-@@ -0,0 +1 @@
-+#include "format.h"
-diff --git a/autogenerated/src/lib/Repository b/autogenerated/src/lib/Repository
-new file mode 100644
-index 0000000..189dbc2
---- /dev/null
-+++ b/autogenerated/src/lib/Repository
-@@ -0,0 +1 @@
-+#include "repository.h"
-diff --git a/autogenerated/src/lib/State b/autogenerated/src/lib/State
-new file mode 100644
-index 0000000..e148d70
---- /dev/null
-+++ b/autogenerated/src/lib/State
-@@ -0,0 +1 @@
-+#include "state.h"
-diff --git a/autogenerated/src/lib/SyntaxHighlighter b/autogenerated/src/lib/SyntaxHighlighter
-new file mode 100644
-index 0000000..b429824
---- /dev/null
-+++ b/autogenerated/src/lib/SyntaxHighlighter
-@@ -0,0 +1 @@
-+#include "syntaxhighlighter.h"
-diff --git a/autogenerated/src/lib/Theme b/autogenerated/src/lib/Theme
-new file mode 100644
-index 0000000..34a3e98
---- /dev/null
-+++ b/autogenerated/src/lib/Theme
-@@ -0,0 +1 @@
-+#include "theme.h"
-diff --git a/autogenerated/src/lib/ksyntaxhighlighting_logging.cpp b/autogenerated/src/lib/ksyntaxhighlighting_logging.cpp
-new file mode 100644
-index 0000000..4082ac4
---- /dev/null
-+++ b/autogenerated/src/lib/ksyntaxhighlighting_logging.cpp
-@@ -0,0 +1,11 @@
-+// This file was generated by ecm_qt_declare_logging_category(): DO NOT EDIT!
-+
-+#include "ksyntaxhighlighting_logging.h"
-+
-+ namespace KSyntaxHighlighting {
-+#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
-+Q_LOGGING_CATEGORY(Log, "org.kde.ksyntaxhighlighting", QtInfoMsg)
-+#else
-+Q_LOGGING_CATEGORY(Log, "org.kde.ksyntaxhighlighting")
-+#endif
-+}
-diff --git a/autogenerated/src/lib/ksyntaxhighlighting_logging.h b/autogenerated/src/lib/ksyntaxhighlighting_logging.h
-new file mode 100644
-index 0000000..c351b2c
---- /dev/null
-+++ b/autogenerated/src/lib/ksyntaxhighlighting_logging.h
-@@ -0,0 +1,11 @@
-+// This file was generated by ecm_qt_declare_logging_category(): DO NOT EDIT!
-+
-+#ifndef ECM_QLOGGINGCATEGORY_KSYNTAXHIGHLIGHTING_LOG_KSYNTAXHIGHLIGHTING_LOGGING_H
-+#define ECM_QLOGGINGCATEGORY_KSYNTAXHIGHLIGHTING_LOG_KSYNTAXHIGHLIGHTING_LOGGING_H
-+
-+#include <QLoggingCategory>
-+ namespace KSyntaxHighlighting {
-+Q_DECLARE_LOGGING_CATEGORY(Log)
-+}
-+
-+#endif
-diff --git a/data/data.pro b/data/data.pro
-new file mode 100644
-index 0000000..1028ea1
---- /dev/null
-+++ b/data/data.pro
-@@ -0,0 +1,11 @@
-+TEMPLATE = aux
-+
-+include(../../../../../qtcreator.pri)
-+
-+STATIC_BASE = $$PWD
-+STATIC_OUTPUT_BASE = $$IDE_DATA_PATH/generic-highlighter
-+STATIC_INSTALL_BASE = $$INSTALL_DATA_PATH/generic-highlighter
-+
-+STATIC_FILES += $$files($$PWD/syntax/*, true)
-+
-+include(../../../../../qtcreatordata.pri)
-diff --git a/src/lib/ksyntaxhighlighting_export.h b/src/lib/ksyntaxhighlighting_export.h
-new file mode 100644
-index 0000000..a39adb5
---- /dev/null
-+++ b/src/lib/ksyntaxhighlighting_export.h
-@@ -0,0 +1,34 @@
-+/****************************************************************************
-+**
-+** Copyright (C) 2018 The Qt Company Ltd.
-+** Contact: https://www.qt.io/licensing/
-+**
-+** This file is part of Qt Creator.
-+**
-+** Commercial License Usage
-+** Licensees holding valid commercial Qt licenses may use this file in
-+** accordance with the commercial license agreement provided with the
-+** Software or, alternatively, in accordance with the terms contained in
-+** a written agreement between you and The Qt Company. For licensing terms
-+** and conditions see https://www.qt.io/terms-conditions. For further
-+** information use the contact form at https://www.qt.io/contact-us.
-+**
-+** GNU General Public License Usage
-+** Alternatively, this file may be used under the terms of the GNU
-+** General Public License version 3 as published by the Free Software
-+** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-+** included in the packaging of this file. Please review the following
-+** information to ensure the GNU General Public License requirements will
-+** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-+**
-+****************************************************************************/
-+
-+#pragma once
-+
-+#include <QtGlobal>
-+
-+#if defined(KSYNTAXHIGHLIGHTING_LIBRARY)
-+# define KSYNTAXHIGHLIGHTING_EXPORT Q_DECL_EXPORT
-+#else
-+# define KSYNTAXHIGHLIGHTING_EXPORT Q_DECL_IMPORT
-+#endif
-diff --git a/syntax-highlighting.pro b/syntax-highlighting.pro
-new file mode 100644
-index 0000000..38127e1
---- /dev/null
-+++ b/syntax-highlighting.pro
-@@ -0,0 +1,55 @@
-+include(../../../qtcreatorlibrary.pri)
-+include(autogenerated/autogenerated.pri)
-+
-+QT += network
-+
-+DEFINES += KSYNTAXHIGHLIGHTING_LIBRARY
-+
-+RESOURCES += \
-+ data/themes/theme-data.qrc
-+
-+HEADERS += \
-+ src/lib/abstracthighlighter.h \
-+ src/lib/abstracthighlighter_p.h \
-+ src/lib/context_p.h \
-+ src/lib/contextswitch_p.h \
-+ src/lib/definition.h \
-+ src/lib/definition_p.h \
-+ src/lib/definitiondownloader.h \
-+ src/lib/definitionref_p.h \
-+ src/lib/foldingregion.h \
-+ src/lib/format.h \
-+ src/lib/format_p.h \
-+ src/lib/htmlhighlighter.h \
-+ src/lib/keywordlist_p.h \
-+ src/lib/ksyntaxhighlighting_export.h \
-+ src/lib/matchresult_p.h \
-+ src/lib/repository.h \
-+ src/lib/repository_p.h \
-+ src/lib/rule_p.h \
-+ src/lib/state.h \
-+ src/lib/state_p.h \
-+ src/lib/syntaxhighlighter.h \
-+ src/lib/textstyledata_p.h \
-+ src/lib/theme.h \
-+ src/lib/themedata_p.h \
-+ src/lib/wildcardmatcher_p.h \
-+ src/lib/xml_p.h \
-+
-+SOURCES += \
-+ src/lib/abstracthighlighter.cpp \
-+ src/lib/context.cpp \
-+ src/lib/contextswitch.cpp \
-+ src/lib/definition.cpp \
-+ src/lib/definitiondownloader.cpp \
-+ src/lib/foldingregion.cpp \
-+ src/lib/format.cpp \
-+ src/lib/htmlhighlighter.cpp \
-+ src/lib/keywordlist.cpp \
-+ src/lib/repository.cpp \
-+ src/lib/rule.cpp \
-+ src/lib/state.cpp \
-+ src/lib/syntaxhighlighter.cpp \
-+ src/lib/theme.cpp \
-+ src/lib/themedata.cpp \
-+ src/lib/wildcardmatcher.cpp \
-diff --git a/syntax-highlighting.qbs b/syntax-highlighting.qbs
-new file mode 100644
-index 0000000..248ebe0
---- /dev/null
-+++ b/syntax-highlighting.qbs
-@@ -0,0 +1,88 @@
-+import qbs 1.0
-+import qbs.File
-+import qbs.FileInfo
-+import qbs.Environment
-+
-+Project {
-+ QtcDevHeaders {
-+ productName: "syntax-highlighting (3rd party)"
-+ baseDir: sourceDirectory + "/src/lib"
-+ }
-+ QtcDevHeaders {
-+ productName: "syntax-highlighting autogenerated (3rd party)"
-+ baseDir: sourceDirectory + "/autogenerated/src/lib"
-+ Group {
-+ prefix: baseDir + '/'
-+ files: [
-+ "AbstractHighlighter",
-+ "Definition",
-+ "FoldingRegion",
-+ "Format",
-+ "Repository",
-+ "State",
-+ "SyntaxHighlighter",
-+ "Theme"
-+ ]
-+ qbs.install: true
-+ qbs.installDir: qtc.ide_include_path + '/' + FileInfo.fileName(product.sourceDirectory)
-+ qbs.installSourceBase: baseDir
-+ }
-+ }
-+
-+ QtcLibrary {
-+ name: "KSyntaxHighlighting"
-+
-+ cpp.defines: base.concat("KSYNTAXHIGHLIGHTING_LIBRARY")
-+ cpp.includePaths: [
-+ product.sourceDirectory + "/src/lib/",
-+ product.sourceDirectory + "/autogenerated/src/lib/",
-+ product.sourceDirectory + "/autogenerated/"
-+ ]
-+
-+ Depends { name: "Qt.gui" }
-+ Depends { name: "Qt.network" }
-+
-+ Group {
-+ name: "lib"
-+ prefix: "src/lib/"
-+ files: [
-+ "*.h",
-+ "*.cpp"
-+ ]
-+ }
-+
-+ Group {
-+ name: "KSyntaxHighlighting data"
-+ qbs.install: true
-+ qbs.installDir: qtc.ide_data_path + "/generic-highlighter/"
-+ qbs.installSourceBase: project.ide_source_tree + "/src/libs/3rdparty/syntax-highlighting/data/"
-+ prefix: project.ide_source_tree + "/src/libs/3rdparty/syntax-highlighting/data/"
-+ files: [
-+ "syntax/**/*"
-+ ]
-+ }
-+
-+ Group {
-+ name: "autogenerated lib"
-+ prefix: "autogenerated/src/lib/"
-+ files: [
-+ "*.h",
-+ "*.cpp"
-+ ]
-+ }
-+
-+ Group {
-+ name: "theme data"
-+ prefix: "data/themes/"
-+ files: [ "theme-data.qrc" ]
-+ }
-+
-+ Export {
-+ Depends { name: "cpp" }
-+ cpp.includePaths: [
-+ product.sourceDirectory + "/src/lib/",
-+ product.sourceDirectory + "/autogenerated/src/lib/",
-+ ]
-+ }
-+ }
-+}
-diff --git a/syntax-highlighting_dependencies.pri b/syntax-highlighting_dependencies.pri
-new file mode 100644
-index 0000000..f2fd3e6
---- /dev/null
-+++ b/syntax-highlighting_dependencies.pri
-@@ -0,0 +1,3 @@
-+QTC_LIB_NAME = KSyntaxHighlighting
-+INCLUDEPATH *= $$PWD/src/lib
-+INCLUDEPATH *= $$PWD/autogenerated/src/lib
---
-2.20.1.windows.1
-
diff --git a/src/libs/3rdparty/syntax-highlighting/patches/0004-Compile-with-namespaced-Qt.patch b/src/libs/3rdparty/syntax-highlighting/patches/0004-Compile-with-namespaced-Qt.patch
deleted file mode 100644
index 1c37d3158e..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/patches/0004-Compile-with-namespaced-Qt.patch
+++ /dev/null
@@ -1,281 +0,0 @@
-From 916af0204a45c91092e53241e6a867cadb9dedec Mon Sep 17 00:00:00 2001
-From: Alessandro Portale <alessandro.portale@qt.io>
-Date: Tue, 12 Feb 2019 19:21:57 +0100
-Subject: [PATCH 4/6] Compile with namespaced Qt
-
----
- src/lib/abstracthighlighter.h | 4 ++++
- src/lib/abstracthighlighter_p.h | 2 ++
- src/lib/context_p.h | 2 ++
- src/lib/definition.h | 4 ++++
- src/lib/foldingregion.h | 2 ++
- src/lib/format.h | 5 ++++-
- src/lib/htmlhighlighter.h | 2 ++
- src/lib/keywordlist_p.h | 2 ++
- src/lib/repository.h | 2 ++
- src/lib/repository_p.h | 2 ++
- src/lib/rule_p.h | 2 ++
- src/lib/state.h | 2 ++
- src/lib/theme.h | 2 ++
- src/lib/themedata_p.h | 2 ++
- src/lib/wildcardmatcher.cpp | 2 +-
- src/lib/wildcardmatcher_p.h | 4 ++++
- 16 files changed, 39 insertions(+), 2 deletions(-)
-
-diff --git a/src/lib/abstracthighlighter.h b/src/lib/abstracthighlighter.h
-index 056f65b..2b88729 100644
---- a/src/lib/abstracthighlighter.h
-+++ b/src/lib/abstracthighlighter.h
-@@ -30,7 +30,9 @@
-
- #include <memory>
-
-+QT_BEGIN_NAMESPACE
- class QString;
-+QT_END_NAMESPACE
-
- namespace KSyntaxHighlighting {
-
-@@ -186,6 +188,8 @@ private:
- };
- }
-
-+QT_BEGIN_NAMESPACE
- Q_DECLARE_INTERFACE(KSyntaxHighlighting::AbstractHighlighter, "org.kde.SyntaxHighlighting.AbstractHighlighter")
-+QT_END_NAMESPACE
-
- #endif // KSYNTAXHIGHLIGHTING_ABSTRACTHIGHLIGHTERM_H
-diff --git a/src/lib/abstracthighlighter_p.h b/src/lib/abstracthighlighter_p.h
-index 1690eb0..bdfdf23 100644
---- a/src/lib/abstracthighlighter_p.h
-+++ b/src/lib/abstracthighlighter_p.h
-@@ -27,7 +27,9 @@
- #include "definition.h"
- #include "theme.h"
-
-+QT_BEGIN_NAMESPACE
- class QStringList;
-+QT_END_NAMESPACE
-
- namespace KSyntaxHighlighting {
-
-diff --git a/src/lib/context_p.h b/src/lib/context_p.h
-index 3e3ab97..a034d0e 100644
---- a/src/lib/context_p.h
-+++ b/src/lib/context_p.h
-@@ -34,7 +34,9 @@
-
- #include <vector>
-
-+QT_BEGIN_NAMESPACE
- class QXmlStreamReader;
-+QT_END_NAMESPACE
-
- namespace KSyntaxHighlighting {
-
-diff --git a/src/lib/definition.h b/src/lib/definition.h
-index 25996dd..6f0dba9 100644
---- a/src/lib/definition.h
-+++ b/src/lib/definition.h
-@@ -31,10 +31,12 @@
-
- #include <memory>
-
-+QT_BEGIN_NAMESPACE
- class QChar;
- class QString;
- class QStringList;
- template <typename T> class QVector;
-+QT_END_NAMESPACE
-
- namespace KSyntaxHighlighting {
-
-@@ -391,6 +393,8 @@ private:
-
- }
-
-+QT_BEGIN_NAMESPACE
- Q_DECLARE_TYPEINFO(KSyntaxHighlighting::Definition, Q_MOVABLE_TYPE);
-+QT_END_NAMESPACE
-
- #endif
-diff --git a/src/lib/foldingregion.h b/src/lib/foldingregion.h
-index baf65d1..074b947 100644
---- a/src/lib/foldingregion.h
-+++ b/src/lib/foldingregion.h
-@@ -101,6 +101,8 @@ private:
-
- }
-
-+QT_BEGIN_NAMESPACE
- Q_DECLARE_TYPEINFO(KSyntaxHighlighting::FoldingRegion, Q_PRIMITIVE_TYPE);
-+QT_END_NAMESPACE
-
- #endif
-diff --git a/src/lib/format.h b/src/lib/format.h
-index ba85f0d..24c58e7 100644
---- a/src/lib/format.h
-+++ b/src/lib/format.h
-@@ -30,10 +30,11 @@
- #include <QExplicitlySharedDataPointer>
- #include <QTypeInfo>
-
--
-+QT_BEGIN_NAMESPACE
- class QColor;
- class QString;
- class QXmlStreamReader;
-+QT_END_NAMESPACE
-
- namespace KSyntaxHighlighting {
-
-@@ -144,6 +145,8 @@ private:
- };
- }
-
-+QT_BEGIN_NAMESPACE
- Q_DECLARE_TYPEINFO(KSyntaxHighlighting::Format, Q_MOVABLE_TYPE);
-+QT_END_NAMESPACE
-
- #endif // KSYNTAXHIGHLIGHTING_FORMAT_H
-diff --git a/src/lib/htmlhighlighter.h b/src/lib/htmlhighlighter.h
-index 22d33ad..b7eda02 100644
---- a/src/lib/htmlhighlighter.h
-+++ b/src/lib/htmlhighlighter.h
-@@ -32,8 +32,10 @@
-
- #include <memory>
-
-+QT_BEGIN_NAMESPACE
- class QFile;
- class QTextStream;
-+QT_END_NAMESPACE
-
- namespace KSyntaxHighlighting {
-
-diff --git a/src/lib/keywordlist_p.h b/src/lib/keywordlist_p.h
-index fa70f11..8c41aab 100644
---- a/src/lib/keywordlist_p.h
-+++ b/src/lib/keywordlist_p.h
-@@ -30,7 +30,9 @@
-
- #include <vector>
-
-+QT_BEGIN_NAMESPACE
- class QXmlStreamReader;
-+QT_END_NAMESPACE
-
- namespace KSyntaxHighlighting {
-
-diff --git a/src/lib/repository.h b/src/lib/repository.h
-index 2c32d02..c35da5e 100644
---- a/src/lib/repository.h
-+++ b/src/lib/repository.h
-@@ -29,8 +29,10 @@
- #include <qglobal.h>
- #include <memory>
-
-+QT_BEGIN_NAMESPACE
- class QString;
- template <typename T> class QVector;
-+QT_END_NAMESPACE
-
- /**
- * @namespace KSyntaxHighlighting
-diff --git a/src/lib/repository_p.h b/src/lib/repository_p.h
-index da765a2..9db876b 100644
---- a/src/lib/repository_p.h
-+++ b/src/lib/repository_p.h
-@@ -27,7 +27,9 @@
- #include <QHash>
- #include <QVector>
-
-+QT_BEGIN_NAMESPACE
- class QString;
-+QT_END_NAMESPACE
-
- namespace KSyntaxHighlighting {
-
-diff --git a/src/lib/rule_p.h b/src/lib/rule_p.h
-index eccf0df..538fded 100644
---- a/src/lib/rule_p.h
-+++ b/src/lib/rule_p.h
-@@ -38,7 +38,9 @@
-
- #include <memory>
-
-+QT_BEGIN_NAMESPACE
- class QXmlStreamReader;
-+QT_END_NAMESPACE
-
- namespace KSyntaxHighlighting {
-
-diff --git a/src/lib/state.h b/src/lib/state.h
-index c6e5344..fce4bc7 100644
---- a/src/lib/state.h
-+++ b/src/lib/state.h
-@@ -79,6 +79,8 @@ private:
-
- }
-
-+QT_BEGIN_NAMESPACE
- Q_DECLARE_TYPEINFO(KSyntaxHighlighting::State, Q_MOVABLE_TYPE);
-+QT_END_NAMESPACE
-
- #endif // KSYNTAXHIGHLIGHTING_STATE_H
-diff --git a/src/lib/theme.h b/src/lib/theme.h
-index 5277429..adb8431 100644
---- a/src/lib/theme.h
-+++ b/src/lib/theme.h
-@@ -371,6 +371,8 @@ private:
-
- }
-
-+QT_BEGIN_NAMESPACE
- Q_DECLARE_TYPEINFO(KSyntaxHighlighting::Theme, Q_MOVABLE_TYPE);
-+QT_END_NAMESPACE
-
- #endif // KSYNTAXHIGHLIGHTING_THEME_H
-diff --git a/src/lib/themedata_p.h b/src/lib/themedata_p.h
-index 68cb873..3b5f463 100644
---- a/src/lib/themedata_p.h
-+++ b/src/lib/themedata_p.h
-@@ -163,6 +163,8 @@ private:
-
- }
-
-+QT_BEGIN_NAMESPACE
- Q_DECLARE_TYPEINFO(KSyntaxHighlighting::TextStyleData, Q_MOVABLE_TYPE);
-+QT_END_NAMESPACE
-
- #endif // KSYNTAXHIGHLIGHTING_THEMEDATA_P_H
-diff --git a/src/lib/wildcardmatcher.cpp b/src/lib/wildcardmatcher.cpp
-index 963e78d..167295a 100644
---- a/src/lib/wildcardmatcher.cpp
-+++ b/src/lib/wildcardmatcher.cpp
-@@ -79,5 +79,5 @@ static bool exactMatch(const QString &candidate, const QString &wildcard, int ca
- bool WildcardMatcher::exactMatch(const QString &candidate, const QString &wildcard,
- bool caseSensitive)
- {
-- return exactMatch(candidate, wildcard, candidate.length() - 1, wildcard.length() - 1, caseSensitive);
-+ return ::exactMatch(candidate, wildcard, candidate.length() - 1, wildcard.length() - 1, caseSensitive);
- }
-diff --git a/src/lib/wildcardmatcher_p.h b/src/lib/wildcardmatcher_p.h
-index 823dbd5..016b10f 100644
---- a/src/lib/wildcardmatcher_p.h
-+++ b/src/lib/wildcardmatcher_p.h
-@@ -24,7 +24,11 @@
- #ifndef KSYNTAXHIGHLIGHTING_WILDCARDMATCHER_P_H
- #define KSYNTAXHIGHLIGHTING_WILDCARDMATCHER_P_H
-
-+#include <QtGlobal>
-+
-+QT_BEGIN_NAMESPACE
- class QString;
-+QT_END_NAMESPACE
-
- namespace KSyntaxHighlighting {
-
---
-2.20.1.windows.1
-
diff --git a/src/libs/3rdparty/syntax-highlighting/patches/0005-Prevent-assertion-in-RegExpr-doLoad.patch b/src/libs/3rdparty/syntax-highlighting/patches/0005-Prevent-assertion-in-RegExpr-doLoad.patch
deleted file mode 100644
index 7941c718df..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/patches/0005-Prevent-assertion-in-RegExpr-doLoad.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 3c05e92c71f6675fa2071036dafbc8d337bd2d01 Mon Sep 17 00:00:00 2001
-From: Alessandro Portale <alessandro.portale@qt.io>
-Date: Tue, 12 Feb 2019 19:27:46 +0100
-Subject: [PATCH 5/6] Prevent assertion in RegExpr::doLoad
-
----
- src/lib/rule.cpp | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/src/lib/rule.cpp b/src/lib/rule.cpp
-index a201375..c48753b 100644
---- a/src/lib/rule.cpp
-+++ b/src/lib/rule.cpp
-@@ -575,7 +575,11 @@ bool RegExpr::doLoad(QXmlStreamReader& reader)
- }
-
- // always using m_regexp.isValid() would be better, but parses the regexp and thus is way too expensive for release builds
-- Q_ASSERT(m_regexp.isValid());
-+
-+ if (Log().isDebugEnabled()) {
-+ if (!m_regexp.isValid())
-+ qCDebug(Log) << "Invalid regexp:" << m_regexp.pattern();
-+ }
- return !m_regexp.pattern().isEmpty();
- }
-
---
-2.20.1.windows.1
-
diff --git a/src/libs/3rdparty/syntax-highlighting/patches/0006-Syntax-Highlighter-return-all-definitions-for-a-file.patch b/src/libs/3rdparty/syntax-highlighting/patches/0006-Syntax-Highlighter-return-all-definitions-for-a-file.patch
deleted file mode 100644
index b9de66121c..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/patches/0006-Syntax-Highlighter-return-all-definitions-for-a-file.patch
+++ /dev/null
@@ -1,101 +0,0 @@
-From 4b64058fe7d788ac79c16a08b280ce05d500e9fb Mon Sep 17 00:00:00 2001
-From: Alessandro Portale <alessandro.portale@qt.io>
-Date: Tue, 12 Feb 2019 19:32:54 +0100
-Subject: [PATCH 6/6] Syntax Highlighter: return all definitions for a file
- name/mimetype
-
-Can be used to create user controls to switch between
-multiple definitions for a file or mime type.
-
-Change-Id: I5fd3744db1e819d0d6f8448a53adaf9d2c7c168d
-Reviewed-by: Christian Stenger <christian.stenger@qt.io>
----
- src/lib/repository.cpp | 17 +++++++++++++----
- src/lib/repository.h | 12 ++++++++++++
- 2 files changed, 25 insertions(+), 4 deletions(-)
-
-diff --git a/src/lib/repository.cpp b/src/lib/repository.cpp
-index 6b2fabd..922225a 100644
---- a/src/lib/repository.cpp
-+++ b/src/lib/repository.cpp
-@@ -78,7 +78,7 @@ Definition Repository::definitionForName(const QString& defName) const
- return d->m_defs.value(defName);
- }
-
--static Definition bestCandidate(QVector<Definition>& candidates)
-+static Definition bestCandidate(QVector<Definition> &&candidates)
- {
- if (candidates.isEmpty())
- return Definition();
-@@ -91,6 +91,11 @@ static Definition bestCandidate(QVector<Definition>& candidates)
- }
-
- Definition Repository::definitionForFileName(const QString& fileName) const
-+{
-+ return bestCandidate(definitionsForFileName(fileName));
-+}
-+
-+QVector<Definition> Repository::definitionsForFileName(const QString &fileName) const
- {
- QFileInfo fi(fileName);
- const auto name = fi.fileName();
-@@ -106,10 +111,15 @@ Definition Repository::definitionForFileName(const QString& fileName) const
- }
- }
-
-- return bestCandidate(candidates);
-+ return candidates;
- }
-
- Definition Repository::definitionForMimeType(const QString& mimeType) const
-+{
-+ return bestCandidate(definitionsForMimeType(mimeType));
-+}
-+
-+QVector<Definition> Repository::definitionsForMimeType(const QString &mimeType) const
- {
- QVector<Definition> candidates;
- for (auto it = d->m_defs.constBegin(); it != d->m_defs.constEnd(); ++it) {
-@@ -121,8 +131,7 @@ Definition Repository::definitionForMimeType(const QString& mimeType) const
- }
- }
- }
--
-- return bestCandidate(candidates);
-+ return candidates;
- }
-
- QVector<Definition> Repository::definitions() const
-diff --git a/src/lib/repository.h b/src/lib/repository.h
-index c35da5e..e4e9bed 100644
---- a/src/lib/repository.h
-+++ b/src/lib/repository.h
-@@ -166,6 +166,13 @@ public:
- */
- Definition definitionForFileName(const QString &fileName) const;
-
-+ /**
-+ * Returns all Definition%s for the file named @p fileName.
-+ * The match is performed based on the \e extensions and @e mimetype of
-+ * the definition files.
-+ */
-+ QVector<Definition> definitionsForFileName(const QString &fileName) const;
-+
- /**
- * Returns the best matching Definition to the type named @p mimeType
- *
-@@ -176,6 +183,11 @@ public:
- */
- Definition definitionForMimeType(const QString &mimeType) const;
-
-+ /**
-+ * Returns all Definition%s to the type named @p mimeType
-+ */
-+ QVector<Definition> definitionsForMimeType(const QString &mimeType) const;
-+
- /**
- * Returns all available Definition%s.
- * Definition%ss are ordered by translated section and translated names,
---
-2.20.1.windows.1
-
diff --git a/src/libs/3rdparty/syntax-highlighting/src/CMakeLists.txt b/src/libs/3rdparty/syntax-highlighting/src/CMakeLists.txt
index b8820252c5..9d53a5bc3d 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/CMakeLists.txt
+++ b/src/libs/3rdparty/syntax-highlighting/src/CMakeLists.txt
@@ -1,5 +1,14 @@
add_subdirectory(indexer)
-if(TARGET Qt5::Gui)
+if(TARGET Qt6::Gui)
add_subdirectory(lib)
add_subdirectory(cli)
endif()
+if(TARGET Qt6::Quick)
+ add_subdirectory(quick)
+endif()
+
+ecm_qt_install_logging_categories(
+ EXPORT KSYNTAXHIGHLIGHTING
+ FILE ksyntaxhighlighting.categories
+ DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
+)
diff --git a/src/libs/3rdparty/syntax-highlighting/src/Messages.sh b/src/libs/3rdparty/syntax-highlighting/src/Messages.sh
index 6fb605ddf0..4024d9b74d 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/Messages.sh
+++ b/src/libs/3rdparty/syntax-highlighting/src/Messages.sh
@@ -8,4 +8,4 @@ sed -i -e 's/^i18nc/QT_TRANSLATE_NOOP/' rc.cpp
grep --no-filename '"name"' ../data/themes/*.theme | \
sed -r -e 's/"name"/QT_TRANSLATE_NOOP("Theme", /; s/://; s/,?$/);/' >> rc.cpp
-$EXTRACT_TR_STRINGS `find . -name \*.cpp -o -name \*.h -o -name \*.ui -o -name \*.qml` -o $podir/syntaxhighlighting5_qt.pot
+$EXTRACT_TR_STRINGS `find . -name \*.cpp -o -name \*.h -o -name \*.ui -o -name \*.qml` -o $podir/syntaxhighlighting6_qt.pot
diff --git a/src/libs/3rdparty/syntax-highlighting/src/cli/CMakeLists.txt b/src/libs/3rdparty/syntax-highlighting/src/cli/CMakeLists.txt
index 113115359e..3aa3a8afc3 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/cli/CMakeLists.txt
+++ b/src/libs/3rdparty/syntax-highlighting/src/cli/CMakeLists.txt
@@ -1,5 +1,5 @@
-add_executable(kate-syntax-highlighter kate-syntax-highlighter.cpp)
-ecm_mark_nongui_executable(kate-syntax-highlighter)
-target_link_libraries(kate-syntax-highlighter KF5SyntaxHighlighting)
+add_executable(ksyntaxhighlighter6 ksyntaxhighlighter.cpp)
+ecm_mark_nongui_executable(ksyntaxhighlighter6)
+target_link_libraries(ksyntaxhighlighter6 KF6SyntaxHighlighting)
-install(TARGETS kate-syntax-highlighter ${INSTALL_TARGETS_DEFAULT_ARGS})
+install(TARGETS ksyntaxhighlighter6 ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/src/libs/3rdparty/syntax-highlighting/src/cli/kate-syntax-highlighter.cpp b/src/libs/3rdparty/syntax-highlighting/src/cli/kate-syntax-highlighter.cpp
deleted file mode 100644
index 8334dd32e9..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/src/cli/kate-syntax-highlighter.cpp
+++ /dev/null
@@ -1,164 +0,0 @@
-/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-#include "ksyntaxhighlighting_version.h"
-
-#include <definition.h>
-#include <definitiondownloader.h>
-#include <htmlhighlighter.h>
-#include <repository.h>
-#include <theme.h>
-
-#include <QCommandLineParser>
-#include <QCoreApplication>
-#include <QFile>
-#include <QVector>
-
-#include <iostream>
-
-using namespace KSyntaxHighlighting;
-
-int main(int argc, char **argv)
-{
- QCoreApplication app(argc, argv);
- QCoreApplication::setApplicationName(QStringLiteral("kate-syntax-highlighter"));
- QCoreApplication::setOrganizationDomain(QStringLiteral("kde.org"));
- QCoreApplication::setOrganizationName(QStringLiteral("KDE"));
- QCoreApplication::setApplicationVersion(QStringLiteral(SyntaxHighlighting_VERSION_STRING));
-
- QCommandLineParser parser;
- parser.setApplicationDescription(app.translate("SyntaxHighlightingCLI", "Command line syntax highlighter using Kate syntax definitions."));
- parser.addHelpOption();
- parser.addVersionOption();
- parser.addPositionalArgument(app.translate("SyntaxHighlightingCLI", "source"),
- app.translate("SyntaxHighlightingCLI", "The source file to highlight."));
-
- QCommandLineOption listDefs(QStringList() << QStringLiteral("l") << QStringLiteral("list"),
- app.translate("SyntaxHighlightingCLI", "List all available syntax definitions."));
- parser.addOption(listDefs);
- QCommandLineOption listThemes(QStringList() << QStringLiteral("list-themes"),
- app.translate("SyntaxHighlightingCLI", "List all available themes."));
- parser.addOption(listThemes);
-
- QCommandLineOption updateDefs(QStringList() << QStringLiteral("u") << QStringLiteral("update"),
- app.translate("SyntaxHighlightingCLI", "Download new/updated syntax definitions."));
- parser.addOption(updateDefs);
-
- QCommandLineOption outputName(QStringList() << QStringLiteral("o") << QStringLiteral("output"),
- app.translate("SyntaxHighlightingCLI", "File to write HTML output to (default: stdout)."),
- app.translate("SyntaxHighlightingCLI", "output"));
- parser.addOption(outputName);
-
- QCommandLineOption syntaxName(QStringList() << QStringLiteral("s") << QStringLiteral("syntax"),
- app.translate("SyntaxHighlightingCLI", "Highlight using this syntax definition (default: auto-detect based on input file)."),
- app.translate("SyntaxHighlightingCLI", "syntax"));
- parser.addOption(syntaxName);
-
- QCommandLineOption themeName(QStringList() << QStringLiteral("t") << QStringLiteral("theme"),
- app.translate("SyntaxHighlightingCLI", "Color theme to use for highlighting."),
- app.translate("SyntaxHighlightingCLI", "theme"), QStringLiteral("Default"));
- parser.addOption(themeName);
-
- QCommandLineOption titleOption(QStringList() << QStringLiteral("T") << QStringLiteral("title"),
- app.translate("SyntaxHighlightingCLI", "Set HTML page's title\n(default: the filename or \"Kate Syntax Highlighter\" if reading from stdin)."),
- app.translate("SyntaxHighlightingCLI", "title"));
- parser.addOption(titleOption);
-
- QCommandLineOption stdinOption(QStringList() << QStringLiteral("stdin"),
- app.translate("SyntaxHighlightingCLI", "Read file from stdin. The -s option must also be used."));
- parser.addOption(stdinOption);
-
- parser.process(app);
-
- Repository repo;
- if (parser.isSet(listDefs)) {
- for (const auto &def : repo.definitions()) {
- std::cout << qPrintable(def.name()) << std::endl;
- }
- return 0;
- }
-
- if (parser.isSet(listThemes)) {
- for (const auto &theme : repo.themes())
- std::cout << qPrintable(theme.name()) << std::endl;
- return 0;
- }
-
- if (parser.isSet(updateDefs)) {
- DefinitionDownloader downloader(&repo);
- QObject::connect(&downloader, &DefinitionDownloader::informationMessage, [](const QString &msg) {
- std::cout << qPrintable(msg) << std::endl;
- });
- QObject::connect(&downloader, &DefinitionDownloader::done, &app, &QCoreApplication::quit);
- downloader.start();
- return app.exec();
- }
-
- bool fromFileName = false;
- QString inFileName;
- if (parser.positionalArguments().size() == 1) {
- fromFileName = true;
- inFileName = parser.positionalArguments().at(0);
- }
-
- Definition def;
- if (parser.isSet(syntaxName)) {
- def = repo.definitionForName(parser.value(syntaxName));
- if (!def.isValid())
- /* see if it's a mimetype instead */
- def = repo.definitionForMimeType(parser.value(syntaxName));
- } else if (fromFileName) {
- def = repo.definitionForFileName(inFileName);
- } else {
- parser.showHelp(1);
- }
-
- QString title;
- if (parser.isSet(titleOption))
- title = parser.value(titleOption);
-
- if (!def.isValid()) {
- std::cerr << "Unknown syntax." << std::endl;
- return 1;
- }
-
- HtmlHighlighter highlighter;
- highlighter.setDefinition(def);
- if (parser.isSet(outputName))
- highlighter.setOutputFile(parser.value(outputName));
- else
- highlighter.setOutputFile(stdout);
- highlighter.setTheme(repo.theme(parser.value(themeName)));
-
- if (fromFileName) {
- highlighter.highlightFile(inFileName, title);
- } else if (parser.isSet(stdinOption)) {
- QFile inFile;
- inFile.open(stdin, QIODevice::ReadOnly);
- highlighter.highlightData(&inFile, title);
- } else {
- parser.showHelp(1);
- }
-
- return 0;
-}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/cli/ksyntaxhighlighter.cpp b/src/libs/3rdparty/syntax-highlighting/src/cli/ksyntaxhighlighter.cpp
new file mode 100644
index 0000000000..681410cb70
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/src/cli/ksyntaxhighlighter.cpp
@@ -0,0 +1,236 @@
+/*
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
+*/
+
+#include "ksyntaxhighlighting_version.h"
+
+#include <KSyntaxHighlighting/Definition>
+#include <KSyntaxHighlighting/DefinitionDownloader>
+#include <KSyntaxHighlighting/Repository>
+#include <KSyntaxHighlighting/Theme>
+#include <ansihighlighter.h>
+#include <htmlhighlighter.h>
+
+#include <QCommandLineParser>
+#include <QCoreApplication>
+#include <QFile>
+
+#include <iostream>
+
+using namespace KSyntaxHighlighting;
+
+template<class Highlighter, class... Ts>
+static void applyHighlighter(Highlighter &highlighter,
+ QCommandLineParser &parser,
+ bool fromFileName,
+ const QString &inFileName,
+ const QCommandLineOption &outputName,
+ const Ts &...highlightParams)
+{
+ if (parser.isSet(outputName)) {
+ highlighter.setOutputFile(parser.value(outputName));
+ } else {
+ highlighter.setOutputFile(stdout);
+ }
+
+ if (fromFileName) {
+ highlighter.highlightFile(inFileName, highlightParams...);
+ } else {
+ QFile inFile;
+ inFile.open(stdin, QIODevice::ReadOnly);
+ highlighter.highlightData(&inFile, highlightParams...);
+ }
+}
+
+static Theme theme(const Repository &repo, const QString &themeName, Repository::DefaultTheme t)
+{
+ if (themeName.isEmpty()) {
+ return repo.defaultTheme(t);
+ }
+ return repo.theme(themeName);
+}
+
+int main(int argc, char **argv)
+{
+ QCoreApplication app(argc, argv);
+ QCoreApplication::setApplicationName(QStringLiteral("ksyntaxhighlighter"));
+ QCoreApplication::setOrganizationDomain(QStringLiteral("kde.org"));
+ QCoreApplication::setOrganizationName(QStringLiteral("KDE"));
+ QCoreApplication::setApplicationVersion(QStringLiteral(KSYNTAXHIGHLIGHTING_VERSION_STRING));
+
+ QCommandLineParser parser;
+ parser.setApplicationDescription(app.translate("SyntaxHighlightingCLI", "Command line syntax highlighter using KSyntaxHighlighting syntax definitions."));
+ parser.addHelpOption();
+ parser.addVersionOption();
+ parser.addPositionalArgument(
+ app.translate("SyntaxHighlightingCLI", "source"),
+ app.translate("SyntaxHighlightingCLI", "The source file to highlight. If absent, read the file from stdin and the --syntax option must be used."));
+
+ QCommandLineOption listDefs(QStringList() << QStringLiteral("l") << QStringLiteral("list"),
+ app.translate("SyntaxHighlightingCLI", "List all available syntax definitions."));
+ parser.addOption(listDefs);
+ QCommandLineOption listThemes(QStringList() << QStringLiteral("list-themes"), app.translate("SyntaxHighlightingCLI", "List all available themes."));
+ parser.addOption(listThemes);
+
+ QCommandLineOption updateDefs(QStringList() << QStringLiteral("u") << QStringLiteral("update"),
+ app.translate("SyntaxHighlightingCLI", "Download new/updated syntax definitions."));
+ parser.addOption(updateDefs);
+
+ QCommandLineOption outputName(QStringList() << QStringLiteral("o") << QStringLiteral("output"),
+ app.translate("SyntaxHighlightingCLI", "File to write HTML output to (default: stdout)."),
+ app.translate("SyntaxHighlightingCLI", "output"));
+ parser.addOption(outputName);
+
+ QCommandLineOption syntaxName(QStringList() << QStringLiteral("s") << QStringLiteral("syntax"),
+ app.translate("SyntaxHighlightingCLI", "Highlight using this syntax definition (default: auto-detect based on input file)."),
+ app.translate("SyntaxHighlightingCLI", "syntax"));
+ parser.addOption(syntaxName);
+
+ QCommandLineOption themeName(QStringList() << QStringLiteral("t") << QStringLiteral("theme"),
+ app.translate("SyntaxHighlightingCLI", "Color theme to use for highlighting."),
+ app.translate("SyntaxHighlightingCLI", "theme"));
+ parser.addOption(themeName);
+
+ QCommandLineOption outputFormatOption(
+ QStringList() << QStringLiteral("f") << QStringLiteral("output-format"),
+ app.translate("SyntaxHighlightingCLI", "Use the specified format instead of html. Must be html, ansi or ansi256Colors."),
+ app.translate("SyntaxHighlightingCLI", "format"),
+ QStringLiteral("html"));
+ parser.addOption(outputFormatOption);
+
+ QCommandLineOption traceOption(QStringList() << QStringLiteral("syntax-trace"),
+ app.translate("SyntaxHighlightingCLI",
+ "Add information to debug a syntax file. Only works with --output-format=ansi or ansi256Colors. Possible "
+ "values are format, region, context, stackSize and all."),
+ app.translate("SyntaxHighlightingCLI", "type"));
+ parser.addOption(traceOption);
+
+ QCommandLineOption noAnsiEditorBg(QStringList() << QStringLiteral("b") << QStringLiteral("no-ansi-background"),
+ app.translate("SyntaxHighlightingCLI", "Disable ANSI background for the default color."));
+ parser.addOption(noAnsiEditorBg);
+
+ QCommandLineOption unbufferedAnsi(QStringList() << QStringLiteral("U") << QStringLiteral("unbuffered"),
+ app.translate("SyntaxHighlightingCLI", "For ansi and ansi256Colors formats, flush the output buffer on each line."));
+ parser.addOption(unbufferedAnsi);
+
+ QCommandLineOption titleOption(
+ QStringList() << QStringLiteral("T") << QStringLiteral("title"),
+ app.translate("SyntaxHighlightingCLI", "Set HTML page's title\n(default: the filename or \"KSyntaxHighlighter\" if reading from stdin)."),
+ app.translate("SyntaxHighlightingCLI", "title"));
+ parser.addOption(titleOption);
+
+ parser.process(app);
+
+ Repository repo;
+
+ if (parser.isSet(listDefs)) {
+ for (const auto &def : repo.definitions()) {
+ std::cout << qPrintable(def.name()) << std::endl;
+ }
+ return 0;
+ }
+
+ if (parser.isSet(listThemes)) {
+ for (const auto &theme : repo.themes()) {
+ std::cout << qPrintable(theme.name()) << std::endl;
+ }
+ return 0;
+ }
+
+ if (parser.isSet(updateDefs)) {
+ DefinitionDownloader downloader(&repo);
+ QObject::connect(&downloader, &DefinitionDownloader::informationMessage, [](const QString &msg) {
+ std::cout << qPrintable(msg) << std::endl;
+ });
+ QObject::connect(&downloader, &DefinitionDownloader::done, &app, &QCoreApplication::quit);
+ downloader.start();
+ return app.exec();
+ }
+
+ bool fromFileName = false;
+ QString inFileName;
+ if (parser.positionalArguments().size() == 1) {
+ fromFileName = true;
+ inFileName = parser.positionalArguments().at(0);
+ }
+
+ Definition def;
+ if (parser.isSet(syntaxName)) {
+ const QString syntax = parser.value(syntaxName);
+ def = repo.definitionForName(syntax);
+ if (!def.isValid()) {
+ /* see if it's a mimetype instead */
+ def = repo.definitionForMimeType(syntax);
+ if (!def.isValid()) {
+ /* see if it's a extension instead */
+ def = repo.definitionForFileName(QLatin1String("f.") + syntax);
+ if (!def.isValid()) {
+ /* see if it's a filename instead */
+ def = repo.definitionForFileName(syntax);
+ }
+ }
+ }
+ } else if (fromFileName) {
+ def = repo.definitionForFileName(inFileName);
+ } else {
+ parser.showHelp(1);
+ }
+
+ if (!def.isValid()) {
+ std::cerr << "Unknown syntax." << std::endl;
+ return 1;
+ }
+
+ const QString outputFormat = parser.value(outputFormatOption);
+ if (0 == outputFormat.compare(QLatin1String("html"), Qt::CaseInsensitive)) {
+ QString title;
+ if (parser.isSet(titleOption)) {
+ title = parser.value(titleOption);
+ }
+
+ HtmlHighlighter highlighter;
+ highlighter.setDefinition(def);
+ highlighter.setTheme(theme(repo, parser.value(themeName), Repository::LightTheme));
+ applyHighlighter(highlighter, parser, fromFileName, inFileName, outputName, title);
+ } else {
+ auto AnsiFormat = AnsiHighlighter::AnsiFormat::TrueColor;
+ if (0 == outputFormat.compare(QLatin1String("ansi256Colors"), Qt::CaseInsensitive)) {
+ AnsiFormat = AnsiHighlighter::AnsiFormat::XTerm256Color;
+ } else if (0 != outputFormat.compare(QLatin1String("ansi"), Qt::CaseInsensitive)) {
+ std::cerr << "Unknown output format." << std::endl;
+ return 2;
+ }
+
+ AnsiHighlighter::Options options{};
+ options |= parser.isSet(noAnsiEditorBg) ? AnsiHighlighter::Option::NoOptions : AnsiHighlighter::Option::UseEditorBackground;
+ options |= parser.isSet(unbufferedAnsi) ? AnsiHighlighter::Option::Unbuffered : AnsiHighlighter::Option::NoOptions;
+ if (parser.isSet(traceOption)) {
+ const auto traceOptions = parser.values(traceOption);
+ for (auto const &option : traceOptions) {
+ if (option == QStringLiteral("format")) {
+ options |= AnsiHighlighter::Option::TraceFormat;
+ } else if (option == QStringLiteral("region")) {
+ options |= AnsiHighlighter::Option::TraceRegion;
+ } else if (option == QStringLiteral("context")) {
+ options |= AnsiHighlighter::Option::TraceContext;
+ } else if (option == QStringLiteral("stackSize")) {
+ options |= AnsiHighlighter::Option::TraceStackSize;
+ } else if (option == QStringLiteral("all")) {
+ options |= AnsiHighlighter::Option::TraceAll;
+ } else {
+ std::cerr << "Unknown trace name." << std::endl;
+ return 2;
+ }
+ }
+ }
+
+ AnsiHighlighter highlighter;
+ highlighter.setDefinition(def);
+ highlighter.setTheme(theme(repo, parser.value(themeName), Repository::DarkTheme));
+ applyHighlighter(highlighter, parser, fromFileName, inFileName, outputName, AnsiFormat, options);
+ }
+
+ return 0;
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/indexer/CMakeLists.txt b/src/libs/3rdparty/syntax-highlighting/src/indexer/CMakeLists.txt
index 9fa26b27ce..cf6940b7bd 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/indexer/CMakeLists.txt
+++ b/src/libs/3rdparty/syntax-highlighting/src/indexer/CMakeLists.txt
@@ -4,13 +4,8 @@ if(CMAKE_CROSSCOMPILING AND KATEHIGHLIGHTINGINDEXER_EXECUTABLE)
add_executable(katehighlightingindexer IMPORTED GLOBAL)
set_target_properties(katehighlightingindexer PROPERTIES IMPORTED_LOCATION ${KATEHIGHLIGHTINGINDEXER_EXECUTABLE})
elseif(CMAKE_CROSSCOMPILING)
- if (NOT KF5_HOST_TOOLING)
- message(FATAL_ERROR "Please provide a prefix with a native Qt build and pass -DKF5_HOST_TOOLING=path")
- endif()
-
- # search native tooling prefix
- string(FIND ${KF5_HOST_TOOLING} /lib idx)
- string(SUBSTRING ${KF5_HOST_TOOLING} 0 ${idx} NATIVE_PREFIX)
+ include(ECMQueryQt)
+ ecm_query_qt(NATIVE_PREFIX QT_HOST_PREFIX)
message(STATUS "Building katehighlightingindexer against ${NATIVE_PREFIX}")
include(ExternalProject)
@@ -19,7 +14,9 @@ elseif(CMAKE_CROSSCOMPILING)
CMAKE_ARGS -DKSYNTAXHIGHLIGHTING_USE_GUI=OFF
-DECM_DIR=${ECM_DIR} -DCMAKE_PREFIX_PATH=${NATIVE_PREFIX}
-DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}
+ -DQT_MAJOR_VERSION=6
INSTALL_COMMAND ""
+ BUILD_BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/native_katehighlightingindexer-prefix/src/native_katehighlightingindexer-build/bin/katehighlightingindexer
)
add_executable(katehighlightingindexer IMPORTED GLOBAL)
add_dependencies(katehighlightingindexer native_katehighlightingindexer)
@@ -27,10 +24,13 @@ elseif(CMAKE_CROSSCOMPILING)
${CMAKE_CURRENT_BINARY_DIR}/native_katehighlightingindexer-prefix/src/native_katehighlightingindexer-build/bin/katehighlightingindexer)
else()
# host build
- add_executable(katehighlightingindexer katehighlightingindexer.cpp)
- if(Qt5XmlPatterns_FOUND)
- target_link_libraries(katehighlightingindexer Qt5::XmlPatterns)
+ add_executable(katehighlightingindexer katehighlightingindexer.cpp ../lib/worddelimiters.cpp)
+ ecm_mark_nongui_executable(katehighlightingindexer)
+ if(XercesC_FOUND)
+ add_definitions(-DHAS_XERCESC)
+ kde_target_enable_exceptions(katehighlightingindexer PRIVATE)
+ target_link_libraries(katehighlightingindexer Qt6::Core XercesC::XercesC)
else()
- target_link_libraries(katehighlightingindexer Qt5::Core)
+ target_link_libraries(katehighlightingindexer Qt6::Core)
endif()
endif()
diff --git a/src/libs/3rdparty/syntax-highlighting/src/indexer/katehighlightingindexer.cpp b/src/libs/3rdparty/syntax-highlighting/src/indexer/katehighlightingindexer.cpp
index 3534cfde90..787747e21c 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/indexer/katehighlightingindexer.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/indexer/katehighlightingindexer.cpp
@@ -1,386 +1,2627 @@
/*
- Copyright (C) 2014 Christoph Cullmann <cullmann@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2014 Christoph Cullmann <cullmann@kde.org>
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
*/
+#include <QCborValue>
#include <QCoreApplication>
+#include <QDebug>
#include <QFile>
#include <QFileInfo>
-#include <QTextStream>
+#include <QMutableMapIterator>
+#include <QRegularExpression>
+#include <QScopeGuard>
#include <QVariant>
#include <QXmlStreamReader>
-#include <QJsonDocument>
-#include <QRegularExpression>
-#include <QDebug>
-#ifdef QT_XMLPATTERNS_LIB
-#include <QXmlSchema>
-#include <QXmlSchemaValidator>
-#endif
+#ifdef HAS_XERCESC
-namespace {
+#include <xercesc/framework/XMLGrammarPoolImpl.hpp>
-QStringList readListing(const QString &fileName)
+#include <xercesc/parsers/SAX2XMLReaderImpl.hpp>
+
+#include <xercesc/sax/ErrorHandler.hpp>
+#include <xercesc/sax/SAXParseException.hpp>
+
+#include <xercesc/util/PlatformUtils.hpp>
+#include <xercesc/util/XMLString.hpp>
+#include <xercesc/util/XMLUni.hpp>
+
+#include <xercesc/framework/XMLGrammarPoolImpl.hpp>
+#include <xercesc/validators/common/Grammar.hpp>
+
+using namespace xercesc;
+
+/*
+ * Ideas taken from:
+ *
+ * author : Boris Kolpackov <boris@codesynthesis.com>
+ * copyright : not copyrighted - public domain
+ *
+ * This program uses Xerces-C++ SAX2 parser to load a set of schema files
+ * and then to validate a set of XML documents against these schemas. To
+ * build this program you will need Xerces-C++ 3.0.0 or later. For more
+ * information, see:
+ *
+ * http://www.codesynthesis.com/~boris/blog/2010/03/15/validating-external-schemas-xerces-cxx/
+ */
+
+/**
+ * Error handler object used during xml schema validation.
+ */
+class CustomErrorHandler : public ErrorHandler
{
- QFile file(fileName);
- if (!file.open(QIODevice::ReadOnly)) {
- return QStringList();
+public:
+ /**
+ * Constructor
+ * @param messages Pointer to the error message string to fill.
+ */
+ CustomErrorHandler(QString *messages)
+ : m_messages(messages)
+ {
}
- QXmlStreamReader xml(&file);
- QStringList listing;
- while (!xml.atEnd()) {
- xml.readNext();
+ /**
+ * Check global success/fail state.
+ * @return True if there was a failure, false otherwise.
+ */
+ bool failed() const
+ {
+ return m_failed;
+ }
- // add only .xml files, no .json or stuff
- if (xml.isCharacters() && xml.text().toString().contains(QLatin1String(".xml"))) {
- listing.append(xml.text().toString());
- }
+private:
+ /**
+ * Severity classes for error messages.
+ */
+ enum severity { s_warning, s_error, s_fatal };
+
+ /**
+ * Wrapper for warning exceptions.
+ * @param e Exception to handle.
+ */
+ void warning(const SAXParseException &e) override
+ {
+ m_failed = true; // be strict, warnings are evil, too!
+ handle(e, s_warning);
}
- if (xml.hasError()) {
- qWarning() << "XML error while reading" << fileName << " - "
- << qPrintable(xml.errorString()) << "@ offset" << xml.characterOffset();
+ /**
+ * Wrapper for error exceptions.
+ * @param e Exception to handle.
+ */
+ void error(const SAXParseException &e) override
+ {
+ m_failed = true;
+ handle(e, s_error);
}
- return listing;
-}
+ /**
+ * Wrapper for fatal error exceptions.
+ * @param e Exception to handle.
+ */
+ void fatalError(const SAXParseException &e) override
+ {
+ m_failed = true;
+ handle(e, s_fatal);
+ }
-/**
- * check if the "extensions" attribute have valid wildcards
- * @param extensions extensions string to check
- * @return valid?
- */
-bool checkExtensions(QString extensions)
+ /**
+ * Reset the error status to "no error".
+ */
+ void resetErrors() override
+ {
+ m_failed = false;
+ }
+
+ /**
+ * Generic handler for error/warning/fatal error message exceptions.
+ * @param e Exception to handle.
+ * @param s Enum value encoding the message severtity.
+ */
+ void handle(const SAXParseException &e, severity s)
+ {
+ // get id to print
+ const XMLCh *xid(e.getPublicId());
+ if (!xid)
+ xid = e.getSystemId();
+
+ m_messages << QString::fromUtf16(xid) << ":" << e.getLineNumber() << ":" << e.getColumnNumber() << " " << (s == s_warning ? "warning: " : "error: ")
+ << QString::fromUtf16(e.getMessage()) << Qt::endl;
+ }
+
+private:
+ /**
+ * Storage for created error messages in this handler.
+ */
+ QTextStream m_messages;
+
+ /**
+ * Global error state. True if there was an error, false otherwise.
+ */
+ bool m_failed = false;
+};
+
+void init_parser(SAX2XMLReaderImpl &parser)
{
- // get list of extensions
- const QStringList extensionParts = extensions.split(QLatin1Char(';'), QString::SkipEmptyParts);
+ // Commonly useful configuration.
+ //
+ parser.setFeature(XMLUni::fgSAX2CoreNameSpaces, true);
+ parser.setFeature(XMLUni::fgSAX2CoreNameSpacePrefixes, true);
+ parser.setFeature(XMLUni::fgSAX2CoreValidation, true);
+
+ // Enable validation.
+ //
+ parser.setFeature(XMLUni::fgXercesSchema, true);
+ parser.setFeature(XMLUni::fgXercesSchemaFullChecking, true);
+ parser.setFeature(XMLUni::fgXercesValidationErrorAsFatal, true);
+
+ // Use the loaded grammar during parsing.
+ //
+ parser.setFeature(XMLUni::fgXercesUseCachedGrammarInParse, true);
+
+ // Don't load schemas from any other source (e.g., from XML document's
+ // xsi:schemaLocation attributes).
+ //
+ parser.setFeature(XMLUni::fgXercesLoadSchema, false);
+
+ // Xerces-C++ 3.1.0 is the first version with working multi import
+ // support.
+ //
+ parser.setFeature(XMLUni::fgXercesHandleMultipleImports, true);
+}
- // ok if empty
- if (extensionParts.isEmpty()) {
- return true;
+#endif
+
+#include "../lib/worddelimiters_p.h"
+#include "../lib/xml_p.h"
+
+#include <array>
+
+using KSyntaxHighlighting::WordDelimiters;
+using KSyntaxHighlighting::Xml::attrToBool;
+
+class HlFilesChecker
+{
+public:
+ template<typename T>
+ void setDefinition(const T &verStr, const QString &filename, const QString &name)
+ {
+ m_currentDefinition = &*m_definitions.insert(name, Definition{});
+ m_currentDefinition->languageName = name;
+ m_currentDefinition->filename = filename;
+ m_currentDefinition->kateVersionStr = verStr.toString();
+ m_currentKeywords = nullptr;
+ m_currentContext = nullptr;
+
+ const auto idx = verStr.indexOf(QLatin1Char('.'));
+ if (idx <= 0) {
+ qWarning() << filename << "invalid kateversion" << verStr;
+ m_success = false;
+ } else {
+ m_currentDefinition->kateVersion = {verStr.left(idx).toInt(), verStr.mid(idx + 1).toInt()};
+ }
}
- // check that only valid wildcard things are inside the parts
- for (const auto& extension : extensionParts) {
- for (const auto c : extension) {
- // eat normal things
- if (c.isDigit() || c.isLetter()) {
- continue;
+ void processElement(QXmlStreamReader &xml)
+ {
+ if (xml.isStartElement()) {
+ if (m_currentContext) {
+ m_currentContext->rules.push_back(Context::Rule{});
+ auto &rule = m_currentContext->rules.back();
+ m_success = rule.parseElement(m_currentDefinition->filename, xml) && m_success;
+ m_currentContext->hasDynamicRule = m_currentContext->hasDynamicRule || rule.dynamic == XmlBool::True;
+ } else if (m_currentKeywords) {
+ m_success = m_currentKeywords->items.parseElement(m_currentDefinition->filename, xml) && m_success;
+ } else if (xml.name() == QStringLiteral("context")) {
+ processContextElement(xml);
+ } else if (xml.name() == QStringLiteral("list")) {
+ processListElement(xml);
+ } else if (xml.name() == QStringLiteral("keywords")) {
+ m_success = m_currentDefinition->parseKeywords(xml) && m_success;
+ } else if (xml.name() == QStringLiteral("emptyLine")) {
+ m_success = parseEmptyLine(m_currentDefinition->filename, xml) && m_success;
+ } else if (xml.name() == QStringLiteral("itemData")) {
+ m_success = m_currentDefinition->itemDatas.parseElement(m_currentDefinition->filename, xml) && m_success;
+ }
+ } else if (xml.isEndElement()) {
+ if (m_currentContext && xml.name() == QStringLiteral("context")) {
+ m_currentContext = nullptr;
+ } else if (m_currentKeywords && xml.name() == QStringLiteral("list")) {
+ m_currentKeywords = nullptr;
}
+ }
+ }
- // allow some special characters
- if (c == QLatin1Char('.') || c == QLatin1Char('-') || c == QLatin1Char('_') || c == QLatin1Char('+')) {
+ //! Resolve context attribute and include tag
+ void resolveContexts()
+ {
+ QMutableMapIterator<QString, Definition> def(m_definitions);
+ while (def.hasNext()) {
+ def.next();
+ auto &definition = def.value();
+ auto &contexts = definition.contexts;
+
+ if (contexts.isEmpty()) {
+ qWarning() << definition.filename << "has no context";
+ m_success = false;
continue;
}
- // only allowed wildcard things: '?' and '*'
- if (c == QLatin1Char('?') || c == QLatin1Char('*')) {
- continue;
+ auto markAsUsedContext = [](ContextName &contextName) {
+ if (!contextName.stay && contextName.context) {
+ contextName.context->isOnlyIncluded = false;
+ }
+ };
+
+ QMutableMapIterator<QString, Context> contextIt(contexts);
+ while (contextIt.hasNext()) {
+ contextIt.next();
+ auto &context = contextIt.value();
+ resolveContextName(definition, context, context.lineEndContext, context.line);
+ resolveContextName(definition, context, context.lineEmptyContext, context.line);
+ resolveContextName(definition, context, context.fallthroughContext, context.line);
+ markAsUsedContext(context.lineEndContext);
+ markAsUsedContext(context.lineEmptyContext);
+ markAsUsedContext(context.fallthroughContext);
+ for (auto &rule : context.rules) {
+ rule.parentContext = &context;
+ resolveContextName(definition, context, rule.context, rule.line);
+ if (rule.type != Context::Rule::Type::IncludeRules) {
+ markAsUsedContext(rule.context);
+ } else if (rule.includeAttrib == XmlBool::True && rule.context.context) {
+ rule.context.context->referencedWithIncludeAttrib = true;
+ }
+ }
}
- qWarning() << "invalid character" << c << " seen in extensions wildcard";
- return false;
+ auto *firstContext = &*definition.contexts.find(definition.firstContextName);
+ firstContext->isOnlyIncluded = false;
+ definition.firstContext = firstContext;
}
+
+ resolveIncludeRules();
}
- // all checks passed
- return true;
-}
+ bool check() const
+ {
+ bool success = m_success;
-//! Check that a regular expression in a RegExpr rule:
-//! - is not empty
-//! - isValid()
-//! - character ranges such as [A-Z] are valid and not accidentally e.g. [A-z].
-bool checkRegularExpression(const QString &hlFilename, QXmlStreamReader &xml)
-{
- if (xml.name() == QLatin1String("RegExpr") || xml.name() == QLatin1String("emptyLine")) {
- // get right attribute
- const QString string (xml.attributes().value((xml.name() == QLatin1String("RegExpr")) ? QLatin1String("String") : QLatin1String("regexpr")).toString());
+ const auto usedContexts = extractUsedContexts();
- // validate regexp
- const QRegularExpression regexp (string);
- if (!regexp.isValid()) {
- qWarning() << hlFilename << "line" << xml.lineNumber() << "broken regex:" << string << "problem:" << regexp.errorString() << "at offset" << regexp.patternErrorOffset();
- return false;
- } else if (string.isEmpty()) {
- qWarning() << hlFilename << "line" << xml.lineNumber() << "empty regex not allowed.";
- return false;
+ QMap<const Definition *, const Definition *> maxVersionByDefinitions;
+ QMap<const Context::Rule *, IncludedRuleUnreachableBy> unreachableIncludedRules;
+
+ QMapIterator<QString, Definition> def(m_definitions);
+ while (def.hasNext()) {
+ def.next();
+ const auto &definition = def.value();
+ const auto &filename = definition.filename;
+
+ auto *maxDef = maxKateVersionDefinition(definition, maxVersionByDefinitions);
+ if (maxDef != &definition) {
+ qWarning() << definition.filename << "depends on a language" << maxDef->languageName << "in version" << maxDef->kateVersionStr
+ << ". Please, increase kateversion.";
+ success = false;
+ }
+
+ QSet<ItemDatas::Style> usedAttributeNames;
+ QSet<ItemDatas::Style> ignoredAttributeNames;
+ success = checkKeywordsList(definition) && success;
+ success = checkContexts(definition, usedAttributeNames, ignoredAttributeNames, usedContexts, unreachableIncludedRules) && success;
+
+ // search for non-existing itemDatas.
+ const auto invalidNames = usedAttributeNames - definition.itemDatas.styleNames;
+ for (const auto &styleName : invalidNames) {
+ qWarning() << filename << "line" << styleName.line << "reference of non-existing itemData attributes:" << styleName.name;
+ success = false;
+ }
+
+ // search for existing itemDatas, but unusable.
+ const auto ignoredNames = ignoredAttributeNames - usedAttributeNames;
+ for (const auto &styleName : ignoredNames) {
+ qWarning() << filename << "line" << styleName.line << "attribute" << styleName.name
+ << "is never used. All uses are with lookAhead=true or <IncludeRules/>";
+ success = false;
+ }
+
+ // search for unused itemDatas.
+ auto unusedNames = definition.itemDatas.styleNames - usedAttributeNames;
+ unusedNames -= ignoredNames;
+ for (const auto &styleName : std::as_const(unusedNames)) {
+ qWarning() << filename << "line" << styleName.line << "unused itemData:" << styleName.name;
+ success = false;
+ }
}
- // catch possible case typos: [A-z] or [a-Z]
- const int azOffset = std::max(string.indexOf(QStringLiteral("A-z")), string.indexOf(QStringLiteral("a-Z")));
- if (azOffset >= 0) {
- qWarning() << hlFilename << "line" << xml.lineNumber() << "broken regex:" << string << "problem: [a-Z] or [A-z] at offset" << azOffset;
- return false;
+ QMutableMapIterator<const Context::Rule *, IncludedRuleUnreachableBy> unreachableIncludedRuleIt(unreachableIncludedRules);
+ while (unreachableIncludedRuleIt.hasNext()) {
+ unreachableIncludedRuleIt.next();
+ IncludedRuleUnreachableBy &unreachableRulesBy = unreachableIncludedRuleIt.value();
+ if (unreachableRulesBy.alwaysUnreachable) {
+ auto *rule = unreachableIncludedRuleIt.key();
+
+ if (!rule->parentContext->isOnlyIncluded) {
+ continue;
+ }
+
+ // remove duplicates rules
+ QSet<const Context::Rule *> rules;
+ auto &unreachableBy = unreachableRulesBy.unreachableBy;
+ unreachableBy.erase(std::remove_if(unreachableBy.begin(),
+ unreachableBy.end(),
+ [&](const RuleAndInclude &ruleAndInclude) {
+ if (rules.contains(ruleAndInclude.rule)) {
+ return true;
+ }
+ rules.insert(ruleAndInclude.rule);
+ return false;
+ }),
+ unreachableBy.end());
+
+ QString message;
+ message.reserve(128);
+ for (auto &ruleAndInclude : std::as_const(unreachableBy)) {
+ message += QStringLiteral("line ");
+ message += QString::number(ruleAndInclude.rule->line);
+ message += QStringLiteral(" [");
+ message += ruleAndInclude.rule->parentContext->name;
+ if (rule->filename != ruleAndInclude.rule->filename) {
+ message += QStringLiteral(" (");
+ message += ruleAndInclude.rule->filename;
+ message += QLatin1Char(')');
+ }
+ if (ruleAndInclude.includeRules) {
+ message += QStringLiteral(" via line ");
+ message += QString::number(ruleAndInclude.includeRules->line);
+ }
+ message += QStringLiteral("], ");
+ }
+ message.chop(2);
+
+ qWarning() << rule->filename << "line" << rule->line << "no IncludeRule can reach this rule, hidden by" << message;
+ success = false;
+ }
}
+
+ return success;
}
- return true;
-}
+private:
+ enum class XmlBool {
+ Unspecified,
+ False,
+ True,
+ };
-//! Check that keyword list items do not have trailing or leading spaces,
-//! e.g.: <item> keyword </item>
-bool checkItemsTrimmed(const QString &hlFilename, QXmlStreamReader &xml)
-{
- if (xml.name() == QLatin1String("item")) {
- const QString keyword = xml.readElementText();
- if (keyword != keyword.trimmed()) {
- qWarning() << hlFilename << "line" << xml.lineNumber() << "keyword with leading/trailing spaces:" << keyword;
+ struct Context;
+
+ struct ContextName {
+ QString name;
+ int popCount = 0;
+ bool stay = false;
+
+ Context *context = nullptr;
+ };
+
+ struct Parser {
+ const QString &filename;
+ QXmlStreamReader &xml;
+ QXmlStreamAttribute &attr;
+ bool success;
+
+ //! Read a string type attribute, \c success = \c false when \p str is not empty
+ //! \return \c true when attr.name() == attrName, otherwise false
+ bool extractString(QString &str, const QString &attrName)
+ {
+ if (attr.name() != attrName) {
+ return false;
+ }
+
+ str = attr.value().toString();
+ if (str.isEmpty()) {
+ qWarning() << filename << "line" << xml.lineNumber() << attrName << "attribute is empty";
+ success = false;
+ }
+
+ return true;
+ }
+
+ //! Read a bool type attribute, \c success = \c false when \p xmlBool is not \c XmlBool::Unspecified.
+ //! \return \c true when attr.name() == attrName, otherwise false
+ bool extractXmlBool(XmlBool &xmlBool, const QString &attrName)
+ {
+ if (attr.name() != attrName) {
+ return false;
+ }
+
+ xmlBool = attr.value().isNull() ? XmlBool::Unspecified : attrToBool(attr.value()) ? XmlBool::True : XmlBool::False;
+
+ return true;
+ }
+
+ //! Read a positive integer type attribute, \c success = \c false when \p positive is already greater than or equal to 0
+ //! \return \c true when attr.name() == attrName, otherwise false
+ bool extractPositive(int &positive, const QString &attrName)
+ {
+ if (attr.name() != attrName) {
+ return false;
+ }
+
+ bool ok = true;
+ positive = attr.value().toInt(&ok);
+
+ if (!ok || positive < 0) {
+ qWarning() << filename << "line" << xml.lineNumber() << attrName << "should be a positive integer:" << attr.value();
+ success = false;
+ }
+
+ return true;
+ }
+
+ //! Read a color, \c success = \c false when \p color is already greater than or equal to 0
+ //! \return \c true when attr.name() == attrName, otherwise false
+ bool checkColor(const QString &attrName)
+ {
+ if (attr.name() != attrName) {
+ return false;
+ }
+
+ const auto value = attr.value();
+ if (value.isEmpty() /*|| QColor(value).isValid()*/) {
+ qWarning() << filename << "line" << xml.lineNumber() << attrName << "should be a color:" << value;
+ success = false;
+ }
+
+ return true;
+ }
+
+ //! Read a QChar, \c success = \c false when \p c is not \c '\0' or does not have one char
+ //! \return \c true when attr.name() == attrName, otherwise false
+ bool extractChar(QChar &c, const QString &attrName)
+ {
+ if (attr.name() != attrName) {
+ return false;
+ }
+
+ if (attr.value().size() == 1) {
+ c = attr.value()[0];
+ } else {
+ c = QLatin1Char('_');
+ qWarning() << filename << "line" << xml.lineNumber() << attrName << "must contain exactly one char:" << attr.value();
+ success = false;
+ }
+
+ return true;
+ }
+
+ //! \return parsing status when \p isExtracted is \c true, otherwise \c false
+ bool checkIfExtracted(bool isExtracted)
+ {
+ if (isExtracted) {
+ return success;
+ }
+
+ qWarning() << filename << "line" << xml.lineNumber() << "unknown attribute:" << attr.name();
return false;
}
- }
+ };
- return true;
-}
+ struct Keywords {
+ struct Items {
+ struct Item {
+ QString content;
+ int line;
-//! Checks that DetectChar and Detect2Chars really only have one char
-//! in the attributes 'char' and 'char1'.
-bool checkSingleChars(const QString &hlFilename, QXmlStreamReader &xml)
-{
- const bool testChar1 = xml.name() == QLatin1String("Detect2Chars");
- const bool testChar = testChar1 || xml.name() == QLatin1String("DetectChar");
+ friend size_t qHash(const Item &item, size_t seed = 0)
+ {
+ return qHash(item.content, seed);
+ }
+
+ friend bool operator==(const Item &item0, const Item &item1)
+ {
+ return item0.content == item1.content;
+ }
+ };
+
+ QList<Item> keywords;
+ QSet<Item> includes;
+
+ bool parseElement(const QString &filename, QXmlStreamReader &xml)
+ {
+ bool success = true;
+
+ const int line = xml.lineNumber();
+ QString content = xml.readElementText();
- if (testChar) {
- const QString c = xml.attributes().value(QLatin1String("char")).toString();
- if (c.size() != 1) {
- qWarning() << hlFilename << "line" << xml.lineNumber() << "'char' must contain exactly one char:" << c;
+ if (content.isEmpty()) {
+ qWarning() << filename << "line" << line << "is empty:" << xml.name();
+ success = false;
+ }
+
+ if (xml.name() == QStringLiteral("include")) {
+ includes.insert({content, line});
+ } else if (xml.name() == QStringLiteral("item")) {
+ keywords.append({content, line});
+ } else {
+ qWarning() << filename << "line" << line << "invalid element:" << xml.name();
+ success = false;
+ }
+
+ return success;
+ }
+ };
+
+ QString name;
+ Items items;
+ int line;
+
+ bool parseElement(const QString &filename, QXmlStreamReader &xml)
+ {
+ line = xml.lineNumber();
+
+ bool success = true;
+ for (auto &attr : xml.attributes()) {
+ Parser parser{filename, xml, attr, success};
+
+ const bool isExtracted = parser.extractString(name, QStringLiteral("name"));
+
+ success = parser.checkIfExtracted(isExtracted);
+ }
+ return success;
+ }
+ };
+
+ struct Context {
+ struct Rule {
+ enum class Type {
+ Unknown,
+ AnyChar,
+ Detect2Chars,
+ DetectChar,
+ DetectIdentifier,
+ DetectSpaces,
+ Float,
+ HlCChar,
+ HlCHex,
+ HlCOct,
+ HlCStringChar,
+ IncludeRules,
+ Int,
+ LineContinue,
+ RangeDetect,
+ RegExpr,
+ StringDetect,
+ WordDetect,
+ keyword,
+ };
+
+ Type type{};
+
+ bool isDotRegex = false;
+ int line = -1;
+
+ // commonAttributes
+ QString attribute;
+ ContextName context;
+ QString beginRegion;
+ QString endRegion;
+ int column = -1;
+ XmlBool lookAhead{};
+ XmlBool firstNonSpace{};
+
+ // StringDetect, WordDetect, keyword
+ XmlBool insensitive{};
+
+ // DetectChar, StringDetect, RegExpr, keyword
+ XmlBool dynamic{};
+
+ // Regex
+ XmlBool minimal{};
+
+ // IncludeRule
+ XmlBool includeAttrib{};
+
+ // DetectChar, Detect2Chars, LineContinue, RangeDetect
+ QChar char0;
+ // Detect2Chars, RangeDetect
+ QChar char1;
+
+ // AnyChar, DetectChar, StringDetect, RegExpr, WordDetect, keyword
+ QString string;
+ // RegExpr without .* as suffix
+ QString sanitizedString;
+
+ // Float, HlCHex, HlCOct, Int, WordDetect, keyword
+ QString additionalDeliminator;
+ QString weakDeliminator;
+
+ // rules included by IncludeRules (without IncludeRule)
+ QList<const Rule *> includedRules;
+
+ // IncludeRules included by IncludeRules
+ QSet<const Rule *> includedIncludeRules;
+
+ Context const *parentContext = nullptr;
+
+ QString filename;
+
+ bool parseElement(const QString &filename, QXmlStreamReader &xml)
+ {
+ this->filename = filename;
+ line = xml.lineNumber();
+
+ using Pair = QPair<QString, Type>;
+ static const auto pairs = {
+ Pair{QStringLiteral("AnyChar"), Type::AnyChar},
+ Pair{QStringLiteral("Detect2Chars"), Type::Detect2Chars},
+ Pair{QStringLiteral("DetectChar"), Type::DetectChar},
+ Pair{QStringLiteral("DetectIdentifier"), Type::DetectIdentifier},
+ Pair{QStringLiteral("DetectSpaces"), Type::DetectSpaces},
+ Pair{QStringLiteral("Float"), Type::Float},
+ Pair{QStringLiteral("HlCChar"), Type::HlCChar},
+ Pair{QStringLiteral("HlCHex"), Type::HlCHex},
+ Pair{QStringLiteral("HlCOct"), Type::HlCOct},
+ Pair{QStringLiteral("HlCStringChar"), Type::HlCStringChar},
+ Pair{QStringLiteral("IncludeRules"), Type::IncludeRules},
+ Pair{QStringLiteral("Int"), Type::Int},
+ Pair{QStringLiteral("LineContinue"), Type::LineContinue},
+ Pair{QStringLiteral("RangeDetect"), Type::RangeDetect},
+ Pair{QStringLiteral("RegExpr"), Type::RegExpr},
+ Pair{QStringLiteral("StringDetect"), Type::StringDetect},
+ Pair{QStringLiteral("WordDetect"), Type::WordDetect},
+ Pair{QStringLiteral("keyword"), Type::keyword},
+ };
+
+ for (auto pair : pairs) {
+ if (xml.name() == pair.first) {
+ type = pair.second;
+ bool success = parseAttributes(filename, xml);
+ success = checkMandoryAttributes(filename, xml) && success;
+ if (success && type == Type::RegExpr) {
+ // ., (.) followed by *, +, {1} or nothing
+ static const QRegularExpression isDot(QStringLiteral(R"(^\(?\.(?:[*+][*+?]?|[*+]|\{1\})?\$?$)"));
+ // remove "(?:" and ")"
+ static const QRegularExpression removeParentheses(QStringLiteral(R"(\((?:\?:)?|\))"));
+ // remove parentheses on a copy of string
+ auto reg = QString(string).replace(removeParentheses, QString());
+ isDotRegex = reg.contains(isDot);
+
+ // Remove .* and .*$ suffix.
+ static const QRegularExpression allSuffix(QStringLiteral("(?<!\\\\)[.][*][?+]?[$]?$"));
+ sanitizedString = string;
+ sanitizedString.replace(allSuffix, QString());
+ // string is a catch-all, do not sanitize
+ if (sanitizedString.isEmpty() || sanitizedString == QStringLiteral("^")) {
+ sanitizedString = string;
+ }
+ }
+ return success;
+ }
+ }
+
+ qWarning() << filename << "line" << xml.lineNumber() << "unknown element:" << xml.name();
+ return false;
+ }
+
+ private:
+ bool parseAttributes(const QString &filename, QXmlStreamReader &xml)
+ {
+ bool success = true;
+
+ for (auto &attr : xml.attributes()) {
+ Parser parser{filename, xml, attr, success};
+
+ // clang-format off
+ const bool isExtracted
+ = parser.extractString(attribute, QStringLiteral("attribute"))
+ || parser.extractString(context.name, QStringLiteral("context"))
+ || parser.extractXmlBool(lookAhead, QStringLiteral("lookAhead"))
+ || parser.extractXmlBool(firstNonSpace, QStringLiteral("firstNonSpace"))
+ || parser.extractString(beginRegion, QStringLiteral("beginRegion"))
+ || parser.extractString(endRegion, QStringLiteral("endRegion"))
+ || parser.extractPositive(column, QStringLiteral("column"))
+ || ((type == Type::RegExpr
+ || type == Type::StringDetect
+ || type == Type::WordDetect
+ || type == Type::keyword
+ ) && parser.extractXmlBool(insensitive, QStringLiteral("insensitive")))
+ || ((type == Type::DetectChar
+ || type == Type::RegExpr
+ || type == Type::StringDetect
+ || type == Type::keyword
+ ) && parser.extractXmlBool(dynamic, QStringLiteral("dynamic")))
+ || ((type == Type::RegExpr)
+ && parser.extractXmlBool(minimal, QStringLiteral("minimal")))
+ || ((type == Type::DetectChar
+ || type == Type::Detect2Chars
+ || type == Type::LineContinue
+ || type == Type::RangeDetect
+ ) && parser.extractChar(char0, QStringLiteral("char")))
+ || ((type == Type::Detect2Chars
+ || type == Type::RangeDetect
+ ) && parser.extractChar(char1, QStringLiteral("char1")))
+ || ((type == Type::AnyChar
+ || type == Type::RegExpr
+ || type == Type::StringDetect
+ || type == Type::WordDetect
+ || type == Type::keyword
+ ) && parser.extractString(string, QStringLiteral("String")))
+ || ((type == Type::IncludeRules)
+ && parser.extractXmlBool(includeAttrib, QStringLiteral("includeAttrib")))
+ || ((type == Type::Float
+ || type == Type::HlCHex
+ || type == Type::HlCOct
+ || type == Type::Int
+ || type == Type::keyword
+ || type == Type::WordDetect
+ ) && (parser.extractString(additionalDeliminator, QStringLiteral("additionalDeliminator"))
+ || parser.extractString(weakDeliminator, QStringLiteral("weakDeliminator"))))
+ ;
+ // clang-format on
+
+ success = parser.checkIfExtracted(isExtracted);
+
+ if (type == Type::LineContinue && char0 == QLatin1Char('\0')) {
+ char0 = QLatin1Char('\\');
+ }
+ }
+
+ return success;
+ }
+
+ bool checkMandoryAttributes(const QString &filename, QXmlStreamReader &xml)
+ {
+ QString missingAttr;
+
+ switch (type) {
+ case Type::Unknown:
+ return false;
+
+ case Type::AnyChar:
+ case Type::RegExpr:
+ case Type::StringDetect:
+ case Type::WordDetect:
+ case Type::keyword:
+ missingAttr = string.isEmpty() ? QStringLiteral("String") : QString();
+ break;
+
+ case Type::DetectChar:
+ missingAttr = !char0.unicode() ? QStringLiteral("char") : QString();
+ break;
+
+ case Type::Detect2Chars:
+ case Type::RangeDetect:
+ missingAttr = !char0.unicode() && !char1.unicode() ? QStringLiteral("char and char1")
+ : !char0.unicode() ? QStringLiteral("char")
+ : !char1.unicode() ? QStringLiteral("char1")
+ : QString();
+ break;
+
+ case Type::IncludeRules:
+ missingAttr = context.name.isEmpty() ? QStringLiteral("context") : QString();
+ break;
+
+ case Type::DetectIdentifier:
+ case Type::DetectSpaces:
+ case Type::Float:
+ case Type::HlCChar:
+ case Type::HlCHex:
+ case Type::HlCOct:
+ case Type::HlCStringChar:
+ case Type::Int:
+ case Type::LineContinue:
+ break;
+ }
+
+ if (!missingAttr.isEmpty()) {
+ qWarning() << filename << "line" << xml.lineNumber() << "missing attribute:" << missingAttr;
+ return false;
+ }
+
+ return true;
+ }
+ };
+
+ int line;
+ // becomes false when a context (except includeRule) refers to it
+ bool isOnlyIncluded = true;
+ // becomes true when an includedRule refers to it with includeAttrib=true
+ bool referencedWithIncludeAttrib = false;
+ bool hasDynamicRule = false;
+ QString name;
+ QString attribute;
+ ContextName lineEndContext;
+ ContextName lineEmptyContext;
+ ContextName fallthroughContext;
+ QList<Rule> rules;
+ XmlBool dynamic{};
+ XmlBool fallthrough{};
+ XmlBool stopEmptyLineContextSwitchLoop{};
+
+ bool parseElement(const QString &filename, QXmlStreamReader &xml)
+ {
+ line = xml.lineNumber();
+
+ bool success = true;
+
+ for (auto &attr : xml.attributes()) {
+ Parser parser{filename, xml, attr, success};
+ XmlBool noIndentationBasedFolding{};
+
+ // clang-format off
+ const bool isExtracted = parser.extractString(name, QStringLiteral("name"))
+ || parser.extractString(attribute, QStringLiteral("attribute"))
+ || parser.extractString(lineEndContext.name, QStringLiteral("lineEndContext"))
+ || parser.extractString(lineEmptyContext.name, QStringLiteral("lineEmptyContext"))
+ || parser.extractString(fallthroughContext.name, QStringLiteral("fallthroughContext"))
+ || parser.extractXmlBool(dynamic, QStringLiteral("dynamic"))
+ || parser.extractXmlBool(fallthrough, QStringLiteral("fallthrough"))
+ || parser.extractXmlBool(stopEmptyLineContextSwitchLoop, QStringLiteral("stopEmptyLineContextSwitchLoop"))
+ || parser.extractXmlBool(noIndentationBasedFolding, QStringLiteral("noIndentationBasedFolding"));
+ // clang-format on
+
+ success = parser.checkIfExtracted(isExtracted);
+ }
+
+ if (name.isEmpty()) {
+ qWarning() << filename << "line" << xml.lineNumber() << "missing attribute: name";
+ success = false;
+ }
+
+ if (attribute.isEmpty()) {
+ qWarning() << filename << "line" << xml.lineNumber() << "missing attribute: attribute";
+ success = false;
+ }
+
+ return success;
+ }
+ };
+
+ struct Version {
+ int majorRevision;
+ int minorRevision;
+
+ Version(int majorRevision = 0, int minorRevision = 0)
+ : majorRevision(majorRevision)
+ , minorRevision(minorRevision)
+ {
+ }
+
+ bool operator<(const Version &version) const
+ {
+ return majorRevision < version.majorRevision || (majorRevision == version.majorRevision && minorRevision < version.minorRevision);
+ }
+ };
+
+ struct ItemDatas {
+ struct Style {
+ QString name;
+ int line;
+
+ friend size_t qHash(const Style &style, size_t seed = 0)
+ {
+ return qHash(style.name, seed);
+ }
+
+ friend bool operator==(const Style &style0, const Style &style1)
+ {
+ return style0.name == style1.name;
+ }
+ };
+
+ QSet<Style> styleNames;
+
+ bool parseElement(const QString &filename, QXmlStreamReader &xml)
+ {
+ bool success = true;
+
+ QString name;
+ QString defStyleNum;
+ XmlBool boolean;
+
+ for (auto &attr : xml.attributes()) {
+ Parser parser{filename, xml, attr, success};
+
+ const bool isExtracted = parser.extractString(name, QStringLiteral("name")) || parser.extractString(defStyleNum, QStringLiteral("defStyleNum"))
+ || parser.extractXmlBool(boolean, QStringLiteral("bold")) || parser.extractXmlBool(boolean, QStringLiteral("italic"))
+ || parser.extractXmlBool(boolean, QStringLiteral("underline")) || parser.extractXmlBool(boolean, QStringLiteral("strikeOut"))
+ || parser.extractXmlBool(boolean, QStringLiteral("spellChecking")) || parser.checkColor(QStringLiteral("color"))
+ || parser.checkColor(QStringLiteral("selColor")) || parser.checkColor(QStringLiteral("backgroundColor"))
+ || parser.checkColor(QStringLiteral("selBackgroundColor"));
+
+ success = parser.checkIfExtracted(isExtracted);
+ }
+
+ if (!name.isEmpty()) {
+ const auto len = styleNames.size();
+ styleNames.insert({name, int(xml.lineNumber())});
+ if (len == styleNames.size()) {
+ qWarning() << filename << "line" << xml.lineNumber() << "itemData duplicate:" << name;
+ success = false;
+ }
+ }
+
+ return success;
}
+ };
+
+ struct Definition {
+ QMap<QString, Keywords> keywordsList;
+ QMap<QString, Context> contexts;
+ ItemDatas itemDatas;
+ QString firstContextName;
+ const Context *firstContext = nullptr;
+ QString filename;
+ WordDelimiters wordDelimiters;
+ Version kateVersion{};
+ QString kateVersionStr;
+ QString languageName;
+ QSet<const Definition *> referencedDefinitions;
+
+ // Parse <keywords ...>
+ bool parseKeywords(QXmlStreamReader &xml)
+ {
+ wordDelimiters.append(xml.attributes().value(QStringLiteral("additionalDeliminator")));
+ wordDelimiters.remove(xml.attributes().value(QStringLiteral("weakDeliminator")));
+ return true;
+ }
+ };
+
+ // Parse <context>
+ void processContextElement(QXmlStreamReader &xml)
+ {
+ Context context;
+ m_success = context.parseElement(m_currentDefinition->filename, xml) && m_success;
+ if (m_currentDefinition->firstContextName.isEmpty()) {
+ m_currentDefinition->firstContextName = context.name;
+ }
+ if (m_currentDefinition->contexts.contains(context.name)) {
+ qWarning() << m_currentDefinition->filename << "line" << xml.lineNumber() << "duplicate context:" << context.name;
+ m_success = false;
+ }
+ m_currentContext = &*m_currentDefinition->contexts.insert(context.name, context);
}
- if (testChar1) {
- const QString c = xml.attributes().value(QLatin1String("char1")).toString();
- if (c.size() != 1) {
- qWarning() << hlFilename << "line" << xml.lineNumber() << "'char1' must contain exactly one char:" << c;
+ // Parse <list name="...">
+ void processListElement(QXmlStreamReader &xml)
+ {
+ Keywords keywords;
+ m_success = keywords.parseElement(m_currentDefinition->filename, xml) && m_success;
+ if (m_currentDefinition->keywordsList.contains(keywords.name)) {
+ qWarning() << m_currentDefinition->filename << "line" << xml.lineNumber() << "duplicate list:" << keywords.name;
+ m_success = false;
}
+ m_currentKeywords = &*m_currentDefinition->keywordsList.insert(keywords.name, keywords);
}
- return true;
-}
+ const Definition *maxKateVersionDefinition(const Definition &definition, QMap<const Definition *, const Definition *> &maxVersionByDefinitions) const
+ {
+ auto it = maxVersionByDefinitions.find(&definition);
+ if (it != maxVersionByDefinitions.end()) {
+ return it.value();
+ } else {
+ auto it = maxVersionByDefinitions.insert(&definition, &definition);
+ for (const auto &referencedDef : definition.referencedDefinitions) {
+ auto *maxDef = maxKateVersionDefinition(*referencedDef, maxVersionByDefinitions);
+ if (it.value()->kateVersion < maxDef->kateVersion) {
+ it.value() = maxDef;
+ }
+ }
+ return it.value();
+ }
+ }
-//! Search for rules with lookAhead="true" and context="#stay".
-//! This would cause an infinite loop.
-bool checkLookAhead(const QString &hlFilename, QXmlStreamReader &xml)
-{
- if (xml.attributes().hasAttribute(QStringLiteral("lookAhead"))) {
- auto lookAhead = xml.attributes().value(QStringLiteral("lookAhead"));
- if (lookAhead == QStringLiteral("true")) {
- auto context = xml.attributes().value(QStringLiteral("context"));
- if (context == QStringLiteral("#stay")) {
- qWarning() << hlFilename << "line" << xml.lineNumber() << "Infinite loop: lookAhead with context #stay";
- return false;
+ // Initialize the referenced rules (Rule::includedRules)
+ void resolveIncludeRules()
+ {
+ QSet<const Context *> usedContexts;
+ QList<const Context *> contexts;
+
+ QMutableMapIterator<QString, Definition> def(m_definitions);
+ while (def.hasNext()) {
+ def.next();
+ auto &definition = def.value();
+ QMutableMapIterator<QString, Context> contextIt(definition.contexts);
+ while (contextIt.hasNext()) {
+ contextIt.next();
+ auto &currentContext = contextIt.value();
+ for (auto &rule : currentContext.rules) {
+ if (rule.type != Context::Rule::Type::IncludeRules) {
+ continue;
+ }
+
+ if (rule.context.stay) {
+ qWarning() << definition.filename << "line" << rule.line << "IncludeRules refers to himself";
+ m_success = false;
+ continue;
+ }
+
+ if (rule.context.popCount) {
+ qWarning() << definition.filename << "line" << rule.line << "IncludeRules with #pop prefix";
+ m_success = false;
+ }
+
+ if (!rule.context.context) {
+ m_success = false;
+ continue;
+ }
+
+ // resolve includedRules and includedIncludeRules
+
+ usedContexts.clear();
+ usedContexts.insert(rule.context.context);
+ contexts.clear();
+ contexts.append(rule.context.context);
+
+ for (int i = 0; i < contexts.size(); ++i) {
+ currentContext.hasDynamicRule = contexts[i]->hasDynamicRule;
+ for (const auto &includedRule : contexts[i]->rules) {
+ if (includedRule.type != Context::Rule::Type::IncludeRules) {
+ rule.includedRules.append(&includedRule);
+ } else if (&rule == &includedRule) {
+ qWarning() << definition.filename << "line" << rule.line << "IncludeRules refers to himself by recursivity";
+ m_success = false;
+ } else {
+ rule.includedIncludeRules.insert(&includedRule);
+
+ if (includedRule.includedRules.isEmpty()) {
+ const auto *context = includedRule.context.context;
+ if (context && !usedContexts.contains(context)) {
+ contexts.append(context);
+ usedContexts.insert(context);
+ }
+ } else {
+ rule.includedRules.append(includedRule.includedRules);
+ }
+ }
+ }
+ }
+ }
}
}
}
- return true;
-}
-/**
- * Helper class to search for non-existing keyword include.
- */
-class KeywordIncludeChecker
-{
-public:
- void processElement(const QString &hlFilename, const QString &hlName, QXmlStreamReader &xml)
+ //! Recursively extracts the contexts used from the first context of the definitions.
+ //! This method detects groups of contexts which are only used among themselves.
+ QSet<const Context *> extractUsedContexts() const
{
- if (xml.name() == QLatin1String("list")) {
- auto &keywords = m_keywordMap[hlName];
- keywords.filename = hlFilename;
- auto name = xml.attributes().value(QLatin1String("name")).toString();
- m_currentIncludes = &keywords.includes[name];
- }
- else if (xml.name() == QLatin1String("include")) {
- if (!m_currentIncludes) {
- qWarning() << hlFilename << "line" << xml.lineNumber() << "<include> tag ouside <list>";
- m_success = false;
- } else {
- m_currentIncludes->push_back({xml.lineNumber(), xml.readElementText()});
- }
- }
+ QSet<const Context *> usedContexts;
+ QList<const Context *> contexts;
+
+ QMapIterator<QString, Definition> def(m_definitions);
+ while (def.hasNext()) {
+ def.next();
+ const auto &definition = def.value();
+
+ if (definition.firstContext) {
+ usedContexts.insert(definition.firstContext);
+ contexts.clear();
+ contexts.append(definition.firstContext);
+
+ for (int i = 0; i < contexts.size(); ++i) {
+ auto appendContext = [&](const Context *context) {
+ if (context && !usedContexts.contains(context)) {
+ contexts.append(context);
+ usedContexts.insert(context);
+ }
+ };
+
+ const auto *context = contexts[i];
+ appendContext(context->lineEndContext.context);
+ appendContext(context->lineEmptyContext.context);
+ appendContext(context->fallthroughContext.context);
+
+ for (auto &rule : context->rules) {
+ appendContext(rule.context.context);
+ }
+ }
+ }
+ }
+
+ return usedContexts;
}
- bool check() const
+ struct RuleAndInclude {
+ const Context::Rule *rule;
+ const Context::Rule *includeRules;
+
+ explicit operator bool() const
+ {
+ return rule;
+ }
+ };
+
+ struct IncludedRuleUnreachableBy {
+ QList<RuleAndInclude> unreachableBy;
+ bool alwaysUnreachable = true;
+ };
+
+ //! Check contexts and rules
+ bool checkContexts(const Definition &definition,
+ QSet<ItemDatas::Style> &usedAttributeNames,
+ QSet<ItemDatas::Style> &ignoredAttributeNames,
+ const QSet<const Context *> &usedContexts,
+ QMap<const Context::Rule *, IncludedRuleUnreachableBy> &unreachableIncludedRules) const
{
- bool success = m_success;
- for (auto &keywords : m_keywordMap) {
- QMapIterator<QString, QVector<Keywords::Include>> includes(keywords.includes);
- while (includes.hasNext()) {
- includes.next();
- for (auto &include : includes.value()) {
- bool containsKeywordName = true;
- int const idx = include.name.indexOf(QStringLiteral("##"));
- if (idx == -1) {
- auto &keywordName = includes.key();
- containsKeywordName = keywords.includes.contains(keywordName);
- }
- else {
- auto defName = include.name.mid(idx + 2);
- auto listName = include.name.left(idx);
- auto it = m_keywordMap.find(defName);
- if (it == m_keywordMap.end()) {
- qWarning() << keywords.filename << "line" << include.line << "unknown definition in" << include.name;
- success = false;
- } else {
- containsKeywordName = it->includes.contains(listName);
+ bool success = true;
+
+ QMapIterator<QString, Context> contextIt(definition.contexts);
+ while (contextIt.hasNext()) {
+ contextIt.next();
+
+ const auto &context = contextIt.value();
+ const auto &filename = definition.filename;
+
+ if (!usedContexts.contains(&context)) {
+ qWarning() << filename << "line" << context.line << "unused context:" << context.name;
+ success = false;
+ continue;
+ }
+
+ if (context.name.startsWith(QStringLiteral("#pop"))) {
+ qWarning() << filename << "line" << context.line << "the context name must not start with '#pop':" << context.name;
+ success = false;
+ }
+
+ if (!context.attribute.isEmpty() && (!context.isOnlyIncluded || context.referencedWithIncludeAttrib)) {
+ usedAttributeNames.insert({context.attribute, context.line});
+ }
+
+ success = checkContextAttribute(definition, context) && success;
+ success = checkUreachableRules(definition.filename, context, unreachableIncludedRules) && success;
+ success = suggestRuleMerger(definition.filename, context) && success;
+
+ for (const auto &rule : context.rules) {
+ if (!rule.attribute.isEmpty()) {
+ if (rule.lookAhead != XmlBool::True) {
+ usedAttributeNames.insert({rule.attribute, rule.line});
+ } else {
+ ignoredAttributeNames.insert({rule.attribute, rule.line});
+ }
+ }
+ success = checkLookAhead(rule) && success;
+ success = checkStringDetect(rule) && success;
+ success = checkKeyword(definition, rule) && success;
+ success = checkRegExpr(filename, rule, context) && success;
+ success = checkDelimiters(definition, rule) && success;
+ }
+ }
+
+ return success;
+ }
+
+ //! Check that a regular expression in a RegExpr rule:
+ //! - isValid()
+ //! - character ranges such as [A-Z] are valid and not accidentally e.g. [A-z].
+ //! - dynamic=true but no place holder used?
+ //! - is not . with lookAhead="1"
+ //! - is not ^... without column ou firstNonSpace attribute
+ //! - is not equivalent to DetectSpaces, DetectChar, Detect2Chars, StringDetect, DetectIdentifier, RangeDetect, LineContinue or AnyChar
+ //! - has no unused captures
+ //! - has no unnecessary quantifier with lookAhead
+ bool checkRegExpr(const QString &filename, const Context::Rule &rule, const Context &context) const
+ {
+ // ignore empty regex because the error is raised during xml parsing
+ if (rule.type == Context::Rule::Type::RegExpr && !rule.string.isEmpty()) {
+ const QRegularExpression regexp(rule.string);
+ if (!checkRegularExpression(rule.filename, regexp, rule.line)) {
+ return false;
+ }
+
+ // dynamic == true and no place holder?
+ if (rule.dynamic == XmlBool::True) {
+ static const QRegularExpression placeHolder(QStringLiteral("%\\d+"));
+ if (!rule.string.contains(placeHolder)) {
+ qWarning() << rule.filename << "line" << rule.line << "broken regex:" << rule.string << "problem: dynamic=true but no %\\d+ placeholder";
+ return false;
+ }
+ }
+
+ auto reg = (rule.lookAhead == XmlBool::True) ? rule.sanitizedString : rule.string;
+ if (rule.lookAhead == XmlBool::True) {
+ static const QRegularExpression removeAllSuffix(QStringLiteral(
+ R"(((?<!\\)\\(?:[DSWdsw]|x[0-9a-fA-F]{2}|x\{[0-9a-fA-F]+\}|0\d\d|o\{[0-7]+\}|u[0-9a-fA-F]{4})|(?<!\\)[^])}\\]|(?=\\)\\\\)[*][?+]?$)"));
+ reg.replace(removeAllSuffix, QString());
+ }
+
+ reg.replace(QStringLiteral("{1}"), QString());
+
+ // is DetectSpaces
+ // optional ^ then \s, [\s], [\t ], [ \t] possibly in (...) or (?:...) followed by *, +
+ static const QRegularExpression isDetectSpaces(
+ QStringLiteral(R"(^\^?(?:\((?:\?:)?)?\^?(?:\\s|\[(?:\\s| (?:\t|\\t)|(?:\t|\\t) )\])\)?(?:[*+][*+?]?|[*+])?\)?\)?$)"));
+ if (rule.string.contains(isDetectSpaces)) {
+ char const *extraMsg = rule.string.contains(QLatin1Char('^')) ? "+ column=\"0\" or firstNonSpace=\"1\"" : "";
+ qWarning() << rule.filename << "line" << rule.line << "RegExpr should be replaced by DetectSpaces / DetectChar / AnyChar" << extraMsg << ":"
+ << rule.string;
+ return false;
+ }
+
+#define REG_ESCAPE_CHAR R"(\\(?:[^0BDPSWbdpswoux]|x[0-9a-fA-F]{2}|x\{[0-9a-fA-F]+\}|0\d\d|o\{[0-7]+\}|u[0-9a-fA-F]{4}))"
+#define REG_CHAR "(?:" REG_ESCAPE_CHAR "|\\[(?:" REG_ESCAPE_CHAR "|.)\\]|[^[.^])"
+
+ // is RangeDetect
+ static const QRegularExpression isRange(QStringLiteral("^\\^?" REG_CHAR "(?:"
+ "\\.\\*[?+]?" REG_CHAR "|"
+ "\\[\\^(" REG_ESCAPE_CHAR "|.)\\]\\*[?+]?\\1"
+ ")$"));
+ if ((rule.lookAhead == XmlBool::True || rule.minimal == XmlBool::True || rule.string.contains(QStringLiteral(".*?"))
+ || rule.string.contains(QStringLiteral("[^")))
+ && reg.contains(isRange)) {
+ qWarning() << rule.filename << "line" << rule.line << "RegExpr should be replaced by RangeDetect:" << rule.string;
+ return false;
+ }
+
+ // is AnyChar
+ static const QRegularExpression isAnyChar(QStringLiteral(R"(^(\^|\((\?:)?)*\[(?!\^)[-\]]?(\\[^0BDPSWbdpswoux]|[^-\]\\])*\]\)*$)"));
+ if (rule.string.contains(isAnyChar)) {
+ auto extra = (reg[0] == QLatin1Char('^') || reg[1] == QLatin1Char('^')) ? "with column=\"0\"" : "";
+ qWarning() << rule.filename << "line" << rule.line << "RegExpr should be replaced by AnyChar:" << rule.string << extra;
+ return false;
+ }
+
+ // is LineContinue
+ static const QRegularExpression isLineContinue(QStringLiteral("^\\^?" REG_CHAR "\\$$"));
+ if (reg.contains(isLineContinue)) {
+ auto extra = (reg[0] == QLatin1Char('^')) ? "with column=\"0\"" : "";
+ qWarning() << rule.filename << "line" << rule.line << "RegExpr should be replaced by LineContinue:" << rule.string << extra;
+ return false;
+ }
+
+ // replace \c, \xhhh, \x{hhh...}, \0dd, \o{ddd}, \uhhhh, with _
+ static const QRegularExpression sanitize1(QStringLiteral(REG_ESCAPE_CHAR));
+ reg.replace(sanitize1, QStringLiteral("_"));
+
+#undef REG_CHAR
+#undef REG_ESCAPE_CHAR
+
+ // use minimal or lazy operator
+ static const QRegularExpression isMinimal(QStringLiteral("(?![.][*+?][$]?[)]*$)[.][*+?][^?+]"));
+ static const QRegularExpression hasNotGreedy(QStringLiteral("[*+?][?+]"));
+
+ if (rule.lookAhead == XmlBool::True && rule.minimal != XmlBool::True && reg.contains(isMinimal) && !reg.contains(hasNotGreedy)
+ && (!rule.context.context || !rule.context.context->hasDynamicRule || regexp.captureCount() == 0)
+ && (reg.back() != QLatin1Char('$') || reg.contains(QLatin1Char('|')))) {
+ qWarning() << rule.filename << "line" << rule.line
+ << "RegExpr should be have minimal=\"1\" or use lazy operator (i.g, '.*' -> '.*?'):" << rule.string;
+ return false;
+ }
+
+ // replace [:...:] with ___
+ static const QRegularExpression sanitize2(QStringLiteral(R"(\[:\w+:\])"));
+ reg.replace(sanitize2, QStringLiteral("___"));
+
+ // replace [ccc...], [special] with ...
+ static const QRegularExpression sanitize3(QStringLiteral(R"(\[(?:\^\]?[^]]*|\]?[^]\\]*?\\.[^]]*|\][^]]{2,}|[^]]{3,})\]|(\[\]?[^]]*\]))"));
+ reg.replace(sanitize3, QStringLiteral("...\\1"));
+
+ // replace [c] with _
+ static const QRegularExpression sanitize4(QStringLiteral(R"(\[.\])"));
+ reg.replace(sanitize4, QStringLiteral("_"));
+
+ const int len = reg.size();
+ // replace [cC] with _
+ static const QRegularExpression toInsensitive(QStringLiteral(R"(\[(?:([^]])\1)\])"));
+ reg = reg.toUpper();
+ reg.replace(toInsensitive, QString());
+
+ // is StringDetect
+ // ignore (?:, ) and {n}
+ static const QRegularExpression isStringDetect(QStringLiteral(R"(^\^?(?:[^|\\?*+$^[{(.]|{(?!\d+,\d*}|,\d+})|\(\?:)+$)"));
+ if (reg.contains(isStringDetect)) {
+ char const *extraMsg = rule.string.contains(QLatin1Char('^')) ? "+ column=\"0\" or firstNonSpace=\"1\"" : "";
+ qWarning() << rule.filename << "line" << rule.line << "RegExpr should be replaced by StringDetect / Detect2Chars / DetectChar" << extraMsg
+ << ":" << rule.string;
+ if (len != reg.size()) {
+ qWarning() << rule.filename << "line" << rule.line << "insensitive=\"1\" missing:" << rule.string;
+ }
+ return false;
+ }
+
+ // column="0"
+ if (rule.column == -1) {
+ // ^ without |
+ // (^sas*) -> ok
+ // (^sa|s*) -> ko
+ // (^(sa|s*)) -> ok
+ auto first = std::as_const(reg).begin();
+ auto last = std::as_const(reg).end();
+ int depth = 0;
+
+ while (QLatin1Char('(') == *first) {
+ ++depth;
+ ++first;
+ if (QLatin1Char('?') == *first || QLatin1Char(':') == first[1]) {
+ first += 2;
+ }
+ }
+
+ if (QLatin1Char('^') == *first) {
+ const int bolDepth = depth;
+ bool replace = true;
+
+ while (++first != last) {
+ if (QLatin1Char('(') == *first) {
+ ++depth;
+ } else if (QLatin1Char(')') == *first) {
+ --depth;
+ if (depth < bolDepth) {
+ // (^a)? === (^a|) -> ko
+ if (first + 1 != last && QStringLiteral("*?").contains(first[1])) {
+ replace = false;
+ break;
+ }
+ }
+ } else if (QLatin1Char('|') == *first) {
+ // ignore '|' within subgroup
+ if (depth <= bolDepth) {
+ replace = false;
+ break;
+ }
}
}
- if (!containsKeywordName) {
- qWarning() << keywords.filename << "line" << include.line << "unknown keyword name in" << include.name;
- success = false;
+ if (replace) {
+ qWarning() << rule.filename << "line" << rule.line << "column=\"0\" missing with RegExpr:" << rule.string;
+ return false;
+ }
+ }
+ }
+
+ // add ^ with column=0
+ if (rule.column == 0 && !rule.isDotRegex) {
+ bool hasStartOfLine = false;
+ auto first = std::as_const(reg).begin();
+ auto last = std::as_const(reg).end();
+ for (; first != last; ++first) {
+ if (*first == QLatin1Char('^')) {
+ hasStartOfLine = true;
+ break;
+ } else if (*first == QLatin1Char('(')) {
+ if (last - first >= 3 && first[1] == QLatin1Char('?') && first[2] == QLatin1Char(':')) {
+ first += 2;
+ }
+ } else {
+ break;
+ }
+ }
+
+ if (!hasStartOfLine) {
+ qWarning() << rule.filename << "line" << rule.line
+ << "start of line missing in the pattern with column=\"0\" (i.e. abc -> ^abc):" << rule.string;
+ return false;
+ }
+ }
+
+ bool useCapture = false;
+
+ // detection of unnecessary capture
+ if (regexp.captureCount()) {
+ auto maximalCapture = [](const QString(&referenceNames)[9], const QString &s) {
+ int maxCapture = 9;
+ while (maxCapture && !s.contains(referenceNames[maxCapture - 1])) {
+ --maxCapture;
+ }
+ return maxCapture;
+ };
+
+ int maxCaptureUsed = 0;
+ // maximal dynamic reference
+ if (rule.context.context && !rule.context.stay) {
+ for (const auto &nextRule : rule.context.context->rules) {
+ if (nextRule.dynamic == XmlBool::True) {
+ static const QString cap[]{
+ QStringLiteral("%1"),
+ QStringLiteral("%2"),
+ QStringLiteral("%3"),
+ QStringLiteral("%4"),
+ QStringLiteral("%5"),
+ QStringLiteral("%6"),
+ QStringLiteral("%7"),
+ QStringLiteral("%8"),
+ QStringLiteral("%9"),
+ };
+ int maxDynamicCapture = maximalCapture(cap, nextRule.string);
+ maxCaptureUsed = std::max(maxCaptureUsed, maxDynamicCapture);
+ }
+ }
+ }
+
+ static const QString num1[]{
+ QStringLiteral("\\1"),
+ QStringLiteral("\\2"),
+ QStringLiteral("\\3"),
+ QStringLiteral("\\4"),
+ QStringLiteral("\\5"),
+ QStringLiteral("\\6"),
+ QStringLiteral("\\7"),
+ QStringLiteral("\\8"),
+ QStringLiteral("\\9"),
+ };
+ static const QString num2[]{
+ QStringLiteral("\\g1"),
+ QStringLiteral("\\g2"),
+ QStringLiteral("\\g3"),
+ QStringLiteral("\\g4"),
+ QStringLiteral("\\g5"),
+ QStringLiteral("\\g6"),
+ QStringLiteral("\\g7"),
+ QStringLiteral("\\g8"),
+ QStringLiteral("\\g9"),
+ };
+ const int maxBackReference = std::max(maximalCapture(num1, rule.string), maximalCapture(num1, rule.string));
+
+ const int maxCapture = std::max(maxCaptureUsed, maxBackReference);
+
+ if (maxCapture && regexp.captureCount() > maxCapture) {
+ qWarning() << rule.filename << "line" << rule.line << "RegExpr with" << regexp.captureCount() << "captures but only" << maxCapture
+ << "are used. Please, replace '(...)' with '(?:...)':" << rule.string;
+ return false;
+ }
+
+ useCapture = maxCapture;
+ }
+
+ if (!useCapture) {
+ // is DetectIdentifier
+ static const QRegularExpression isDetectIdentifier(
+ QStringLiteral(R"(^(\((\?:)?|\^)*\[(\\p\{L\}|_){2}\]([+][?+]?)?\[(\\p\{N\}|\\p\{L\}|_){3}\][*][?+]?\)*$)"));
+ if (rule.string.contains(isDetectIdentifier)) {
+ qWarning() << rule.filename << "line" << rule.line << "RegExpr should be replaced by DetectIdentifier:" << rule.string;
+ return false;
+ }
+ }
+
+ if (rule.isDotRegex) {
+ // search next rule with same column or firstNonSpace
+ int i = &rule - context.rules.data() + 1;
+ const bool hasColumn = (rule.column != -1);
+ const bool hasFirstNonSpace = (rule.firstNonSpace == XmlBool::True);
+ const bool isSpecial = (hasColumn || hasFirstNonSpace);
+ for (; i < context.rules.size(); ++i) {
+ auto &rule2 = context.rules[i];
+ if (rule2.type == Context::Rule::Type::IncludeRules && isSpecial) {
+ i = context.rules.size();
+ break;
+ }
+
+ const bool hasColumn2 = (rule2.column != -1);
+ const bool hasFirstNonSpace2 = (rule2.firstNonSpace == XmlBool::True);
+ if ((!isSpecial && !hasColumn2 && !hasFirstNonSpace2) || (hasColumn && rule.column == rule2.column)
+ || (hasFirstNonSpace && hasFirstNonSpace2)) {
+ break;
+ }
+ }
+
+ auto ruleFilename = (filename == rule.filename) ? QString() : QStringLiteral("in ") + rule.filename;
+ if (i == context.rules.size()) {
+ if (rule.lookAhead == XmlBool::True && rule.firstNonSpace != XmlBool::True && rule.column == -1 && rule.beginRegion.isEmpty()
+ && rule.endRegion.isEmpty() && !useCapture) {
+ qWarning() << filename << "context line" << context.line << ": RegExpr line" << rule.line << ruleFilename
+ << "should be replaced by fallthroughContext:" << rule.string;
}
+ } else {
+ auto &nextRule = context.rules[i];
+ auto nextRuleFilename = (filename == nextRule.filename) ? QString() : QStringLiteral("in ") + nextRule.filename;
+ qWarning() << filename << "context line" << context.line << "contains unreachable element line" << nextRule.line << nextRuleFilename
+ << "because a dot RegExpr is used line" << rule.line << ruleFilename;
+ }
+
+ // unnecessary quantifier
+ static const QRegularExpression unnecessaryQuantifier1(QStringLiteral(R"([*+?]([.][*+?]{0,2})?$)"));
+ static const QRegularExpression unnecessaryQuantifier2(QStringLiteral(R"([*+?]([.][*+?]{0,2})?[)]*$)"));
+ auto &unnecessaryQuantifier = useCapture ? unnecessaryQuantifier1 : unnecessaryQuantifier2;
+ if (rule.lookAhead == XmlBool::True && rule.minimal != XmlBool::True && reg.contains(unnecessaryQuantifier)) {
+ qWarning() << rule.filename << "line" << rule.line
+ << "Last quantifier is not necessary (i.g., 'xyz*' -> 'xy', 'xyz+.' -> 'xyz.'):" << rule.string;
+ return false;
}
}
}
+
+ return true;
+ }
+
+ // Parse and check <emptyLine>
+ bool parseEmptyLine(const QString &filename, QXmlStreamReader &xml)
+ {
+ bool success = true;
+
+ QString pattern;
+ XmlBool casesensitive{};
+
+ for (auto &attr : xml.attributes()) {
+ Parser parser{filename, xml, attr, success};
+
+ const bool isExtracted =
+ parser.extractString(pattern, QStringLiteral("regexpr")) || parser.extractXmlBool(casesensitive, QStringLiteral("casesensitive"));
+
+ success = parser.checkIfExtracted(isExtracted);
+ }
+
+ if (pattern.isEmpty()) {
+ qWarning() << filename << "line" << xml.lineNumber() << "missing attribute: regexpr";
+ success = false;
+ } else {
+ success = checkRegularExpression(filename, QRegularExpression(pattern), xml.lineNumber());
+ }
+
return success;
}
-private:
- struct Keywords
+ //! Check that a regular expression:
+ //! - isValid()
+ //! - character ranges such as [A-Z] are valid and not accidentally e.g. [A-z].
+ bool checkRegularExpression(const QString &filename, const QRegularExpression &regexp, int line) const
{
- QString filename;
- struct Include
- {
- qint64 line;
- QString name;
- };
- QMap<QString, QVector<Include>> includes;
- };
- QHash<QString, Keywords> m_keywordMap;
- QVector<Keywords::Include> *m_currentIncludes = nullptr;
- bool m_success = true;
-};
+ const auto pattern = regexp.pattern();
-/**
- * Helper class to search for non-existing or unreferenced keyword lists.
- */
-class KeywordChecker
-{
-public:
- KeywordChecker(const QString &filename)
- : m_filename(filename)
- {}
+ // validate regexp
+ if (!regexp.isValid()) {
+ qWarning() << filename << "line" << line << "broken regex:" << pattern << "problem:" << regexp.errorString() << "at offset"
+ << regexp.patternErrorOffset();
+ return false;
+ }
- void processElement(QXmlStreamReader &xml)
+ // catch possible case typos: [A-z] or [a-Z]
+ const int azOffset = std::max(pattern.indexOf(QStringLiteral("A-z")), pattern.indexOf(QStringLiteral("a-Z")));
+ if (azOffset >= 0) {
+ qWarning() << filename << "line" << line << "broken regex:" << pattern << "problem: [a-Z] or [A-z] at offset" << azOffset;
+ return false;
+ }
+
+ return true;
+ }
+
+ //! Check fallthrough and fallthroughContext.
+ //! Check kateversion for stopEmptyLineContextSwitchLoop.
+ bool checkContextAttribute(const Definition &definition, const Context &context) const
{
- if (xml.name() == QLatin1String("list")) {
- const QString name = xml.attributes().value(QLatin1String("name")).toString();
- if (m_existingNames.contains(name)) {
- qWarning() << m_filename << "list duplicate:" << name;
+ bool success = true;
+
+ if (!context.fallthroughContext.name.isEmpty()) {
+ const bool mandatoryFallthroughAttribute = definition.kateVersion < Version{5, 62};
+ if (context.fallthrough == XmlBool::True && !mandatoryFallthroughAttribute) {
+ qWarning() << definition.filename << "line" << context.line << "fallthrough attribute is unnecessary with kateversion >= 5.62 in context"
+ << context.name;
+ success = false;
+ } else if (context.fallthrough != XmlBool::True && mandatoryFallthroughAttribute) {
+ qWarning() << definition.filename << "line" << context.line
+ << "fallthroughContext attribute without fallthrough=\"1\" attribute is only valid with kateversion >= 5.62 in context"
+ << context.name;
+ success = false;
}
- m_existingNames.insert(name);
- } else if (xml.name() == QLatin1String("keyword")) {
- const QString context = xml.attributes().value(QLatin1String("String")).toString();
- if (!context.isEmpty())
- m_usedNames.insert(context);
}
+
+ if (context.stopEmptyLineContextSwitchLoop != XmlBool::Unspecified && definition.kateVersion < Version{5, 103}) {
+ qWarning() << definition.filename << "line" << context.line
+ << "stopEmptyLineContextSwitchLoop attribute is only valid with kateversion >= 5.103 in context" << context.name;
+ success = false;
+ }
+
+ return success;
}
- bool check() const
+ //! Search for additionalDeliminator/weakDeliminator which has no effect.
+ bool checkDelimiters(const Definition &definition, const Context::Rule &rule) const
{
+ if (rule.additionalDeliminator.isEmpty() && rule.weakDeliminator.isEmpty()) {
+ return true;
+ }
+
bool success = true;
- const auto invalidNames = m_usedNames - m_existingNames;
- if (!invalidNames.isEmpty()) {
- qWarning() << m_filename << "Reference of non-existing keyword list:" << invalidNames;
+
+ if (definition.kateVersion < Version{5, 79}) {
+ qWarning() << definition.filename << "line" << rule.line
+ << "additionalDeliminator and weakDeliminator are only available since version \"5.79\". Please, increase kateversion.";
success = false;
}
- const auto unusedNames = m_existingNames - m_usedNames;
- if (!unusedNames.isEmpty()) {
- qWarning() << m_filename << "Unused keyword lists:" << unusedNames;
+ for (QChar c : rule.additionalDeliminator) {
+ if (!definition.wordDelimiters.contains(c)) {
+ return success;
+ }
}
- return success;
+ for (QChar c : rule.weakDeliminator) {
+ if (definition.wordDelimiters.contains(c)) {
+ return success;
+ }
+ }
+
+ qWarning() << rule.filename << "line" << rule.line << "unnecessary use of additionalDeliminator and/or weakDeliminator" << rule.string;
+ return false;
}
-private:
- QString m_filename;
- QSet<QString> m_usedNames;
- QSet<QString> m_existingNames;
-};
+ //! Check that keyword rule reference an existing keyword list.
+ bool checkKeyword(const Definition &definition, const Context::Rule &rule) const
+ {
+ if (rule.type == Context::Rule::Type::keyword) {
+ auto it = definition.keywordsList.find(rule.string);
+ if (it == definition.keywordsList.end()) {
+ qWarning() << rule.filename << "line" << rule.line << "reference of non-existing keyword list:" << rule.string;
+ return false;
+ }
+ }
+ return true;
+ }
-/**
- * Helper class to search for non-existing contexts
- */
-class ContextChecker
-{
-public:
- void processElement(const QString &hlFilename, const QString &hlName, QXmlStreamReader &xml)
+ //! Search for rules with lookAhead="true" and context="#stay".
+ //! This would cause an infinite loop.
+ bool checkLookAhead(const Context::Rule &rule) const
+ {
+ if (rule.lookAhead == XmlBool::True && rule.context.stay) {
+ qWarning() << rule.filename << "line" << rule.line << "infinite loop: lookAhead with context #stay";
+ }
+ return true;
+ }
+
+ //! Check that StringDetect contains a placeHolder when dynamic="1"
+ bool checkStringDetect(const Context::Rule &rule) const
{
- if (xml.name() == QLatin1String("context")) {
- auto & language = m_contextMap[hlName];
- language.hlFilename = hlFilename;
- const QString name = xml.attributes().value(QLatin1String("name")).toString();
- if (language.isFirstContext) {
- language.isFirstContext = false;
- language.usedContextNames.insert(name);
+ if (rule.type == Context::Rule::Type::StringDetect) {
+ // dynamic == true and no place holder?
+ if (rule.dynamic == XmlBool::True) {
+ static const QRegularExpression placeHolder(QStringLiteral("%\\d+"));
+ if (!rule.string.contains(placeHolder)) {
+ qWarning() << rule.filename << "line" << rule.line << "broken regex:" << rule.string << "problem: dynamic=true but no %\\d+ placeholder";
+ return false;
+ }
}
+ }
+ return true;
+ }
- if (language.existingContextNames.contains(name)) {
- qWarning() << hlFilename << "Duplicate context:" << name;
- } else {
- language.existingContextNames.insert(name);
+ //! Check \<include> and delimiter in a keyword list
+ bool checkKeywordsList(const Definition &definition) const
+ {
+ bool success = true;
+
+ bool includeNotSupport = (definition.kateVersion < Version{5, 53});
+ QMapIterator<QString, Keywords> keywordsIt(definition.keywordsList);
+ while (keywordsIt.hasNext()) {
+ keywordsIt.next();
+
+ for (const auto &include : keywordsIt.value().items.includes) {
+ if (includeNotSupport) {
+ qWarning() << definition.filename << "line" << include.line
+ << "<include> is only available since version \"5.53\". Please, increase kateversion.";
+ success = false;
+ }
+ success = checkKeywordInclude(definition, include) && success;
}
- if (xml.attributes().value(QLatin1String("fallthroughContext")).toString() == QLatin1String("#stay")) {
- qWarning() << hlFilename << "possible infinite loop due to fallthroughContext=\"#stay\" in context " << name;
+ // Check that keyword list items do not have deliminator character
+#if 0
+ for (const auto& keyword : keywordsIt.value().items.keywords) {
+ for (QChar c : keyword.content) {
+ if (definition.wordDelimiters.contains(c)) {
+ qWarning() << definition.filename << "line" << keyword.line << "keyword with delimiter:" << c << "in" << keyword.content;
+ success = false;
+ }
+ }
}
+#endif
+ }
+
+ return success;
+ }
- processContext(hlName, xml.attributes().value(QLatin1String("lineEndContext")).toString());
- processContext(hlName, xml.attributes().value(QLatin1String("lineEmptyContext")).toString());
- processContext(hlName, xml.attributes().value(QLatin1String("fallthroughContext")).toString());
+ //! Search for non-existing keyword include.
+ bool checkKeywordInclude(const Definition &definition, const Keywords::Items::Item &include) const
+ {
+ bool containsKeywordName = true;
+ int const idx = include.content.indexOf(QStringLiteral("##"));
+ if (idx == -1) {
+ auto it = definition.keywordsList.find(include.content);
+ containsKeywordName = (it != definition.keywordsList.end());
} else {
- if (xml.attributes().hasAttribute(QLatin1String("context"))) {
- const QString context = xml.attributes().value(QLatin1String("context")).toString();
- if (context.isEmpty()) {
- qWarning() << hlFilename << "Missing context name in line" << xml.lineNumber();
- } else {
- processContext(hlName, context);
- }
+ auto defName = include.content.mid(idx + 2);
+ auto listName = include.content.left(idx);
+ auto it = m_definitions.find(defName);
+ if (it == m_definitions.end()) {
+ qWarning() << definition.filename << "line" << include.line << "unknown definition in" << include.content;
+ return false;
}
+ containsKeywordName = it->keywordsList.contains(listName);
}
+
+ if (!containsKeywordName) {
+ qWarning() << definition.filename << "line" << include.line << "unknown keyword name in" << include.content;
+ }
+
+ return containsKeywordName;
}
- bool check() const
+ //! Check if a rule is hidden by another
+ //! - rule hidden by DetectChar or AnyChar
+ //! - DetectSpaces, AnyChar, Int, Float with all their characters hidden by DetectChar or AnyChar
+ //! - StringDetect, WordDetect, RegExpr with as prefix Detect2Chars or other strings
+ //! - duplicate rule (Int, Float, keyword with same String, etc)
+ //! - Rule hidden by a dot regex
+ bool checkUreachableRules(const QString &filename,
+ const Context &context,
+ QMap<const Context::Rule *, IncludedRuleUnreachableBy> &unreachableIncludedRules) const
{
+ if (context.isOnlyIncluded) {
+ return true;
+ }
+
+ struct Rule4 {
+ RuleAndInclude setRule(const Context::Rule &rule, const Context::Rule *includeRules = nullptr)
+ {
+ auto set = [&](RuleAndInclude &ruleAndInclude) {
+ auto old = ruleAndInclude;
+ ruleAndInclude = {&rule, includeRules};
+ return old;
+ };
+
+ if (rule.firstNonSpace == XmlBool::True) {
+ return set(firstNonSpace);
+ } else if (rule.column == 0) {
+ return set(column0);
+ } else if (rule.column > 0) {
+ return set(columnGreaterThan0[rule.column]);
+ } else {
+ return set(normal);
+ }
+ }
+
+ private:
+ RuleAndInclude normal;
+ RuleAndInclude column0;
+ QMap<int, RuleAndInclude> columnGreaterThan0;
+ RuleAndInclude firstNonSpace;
+ };
+
+ // Associate QChar with RuleAndInclude
+ struct CharTable {
+ /// Search RuleAndInclude associated with @p c.
+ RuleAndInclude find(QChar c) const
+ {
+ if (c.unicode() < 128) {
+ return m_asciiMap[c.unicode()];
+ }
+ auto it = m_utf8Map.find(c);
+ return it == m_utf8Map.end() ? RuleAndInclude{nullptr, nullptr} : it.value();
+ }
+
+ /// Search RuleAndInclude associated with the characters of @p s.
+ /// \return an empty QList when at least one character is not found.
+ QList<RuleAndInclude> find(QStringView s) const
+ {
+ QList<RuleAndInclude> result;
+
+ for (QChar c : s) {
+ if (!find(c)) {
+ return result;
+ }
+ }
+
+ for (QChar c : s) {
+ result.append(find(c));
+ }
+
+ return result;
+ }
+
+ /// Associates @p c with a rule.
+ void append(QChar c, const Context::Rule &rule, const Context::Rule *includeRule = nullptr)
+ {
+ if (c.unicode() < 128) {
+ m_asciiMap[c.unicode()] = {&rule, includeRule};
+ } else {
+ m_utf8Map[c] = {&rule, includeRule};
+ }
+ }
+
+ /// Associates each character of @p s with a rule.
+ void append(QStringView s, const Context::Rule &rule, const Context::Rule *includeRule = nullptr)
+ {
+ for (QChar c : s) {
+ append(c, rule, includeRule);
+ }
+ }
+
+ private:
+ RuleAndInclude m_asciiMap[127]{};
+ QMap<QChar, RuleAndInclude> m_utf8Map;
+ };
+
+ struct Char4Tables {
+ CharTable chars;
+ CharTable charsColumn0;
+ QMap<int, CharTable> charsColumnGreaterThan0;
+ CharTable charsFirstNonSpace;
+ };
+
+ // View on Char4Tables members
+ struct CharTableArray {
+ // Append Char4Tables members that satisfies firstNonSpace and column.
+ // Char4Tables::char is always added.
+ CharTableArray(Char4Tables &tables, const Context::Rule &rule)
+ {
+ if (rule.firstNonSpace == XmlBool::True) {
+ appendTable(tables.charsFirstNonSpace);
+ }
+
+ if (rule.column == 0) {
+ appendTable(tables.charsColumn0);
+ } else if (rule.column > 0) {
+ appendTable(tables.charsColumnGreaterThan0[rule.column]);
+ }
+
+ appendTable(tables.chars);
+ }
+
+ // Removes Char4Tables::chars when the rule contains firstNonSpace or column
+ void removeNonSpecialWhenSpecial()
+ {
+ if (m_size > 1) {
+ --m_size;
+ }
+ }
+
+ /// Search RuleAndInclude associated with @p c.
+ RuleAndInclude find(QChar c) const
+ {
+ for (int i = 0; i < m_size; ++i) {
+ if (auto ruleAndInclude = m_charTables[i]->find(c)) {
+ return ruleAndInclude;
+ }
+ }
+ return RuleAndInclude{nullptr, nullptr};
+ }
+
+ /// Search RuleAndInclude associated with the characters of @p s.
+ /// \return an empty QList when at least one character is not found.
+ QList<RuleAndInclude> find(QStringView s) const
+ {
+ for (int i = 0; i < m_size; ++i) {
+ auto result = m_charTables[i]->find(s);
+ if (result.size()) {
+ while (++i < m_size) {
+ result.append(m_charTables[i]->find(s));
+ }
+ return result;
+ }
+ }
+ return QList<RuleAndInclude>();
+ }
+
+ /// Associates @p c with a rule.
+ void append(QChar c, const Context::Rule &rule, const Context::Rule *includeRule = nullptr)
+ {
+ for (int i = 0; i < m_size; ++i) {
+ m_charTables[i]->append(c, rule, includeRule);
+ }
+ }
+
+ /// Associates each character of @p s with a rule.
+ void append(QStringView s, const Context::Rule &rule, const Context::Rule *includeRule = nullptr)
+ {
+ for (int i = 0; i < m_size; ++i) {
+ m_charTables[i]->append(s, rule, includeRule);
+ }
+ }
+
+ private:
+ void appendTable(CharTable &t)
+ {
+ m_charTables[m_size] = &t;
+ ++m_size;
+ }
+
+ CharTable *m_charTables[3];
+ int m_size = 0;
+ };
+
+ struct ObservableRule {
+ const Context::Rule *rule;
+ const Context::Rule *includeRules;
+
+ bool hasResolvedIncludeRules() const
+ {
+ return rule == includeRules;
+ }
+ };
+
+ // Iterates over all the rules, including those in includedRules
+ struct RuleIterator {
+ RuleIterator(const QList<ObservableRule> &rules, const ObservableRule &endRule)
+ : m_end(&endRule - rules.data())
+ , m_rules(rules)
+ {
+ }
+
+ /// \return next rule or nullptr
+ const Context::Rule *next()
+ {
+ // if in includedRules
+ if (m_includedRules) {
+ ++m_i2;
+ if (m_i2 != m_includedRules->size()) {
+ return (*m_includedRules)[m_i2];
+ }
+ ++m_i;
+ m_includedRules = nullptr;
+ }
+
+ // if is a includedRules
+ while (m_i < m_end && m_rules[m_i].rule->type == Context::Rule::Type::IncludeRules) {
+ if (!m_rules[m_i].includeRules && m_rules[m_i].rule->includedRules.size()) {
+ m_i2 = 0;
+ m_includedRules = &m_rules[m_i].rule->includedRules;
+ return (*m_includedRules)[m_i2];
+ }
+ ++m_i;
+ }
+
+ if (m_i < m_end) {
+ ++m_i;
+ return m_rules[m_i - 1].rule;
+ }
+
+ return nullptr;
+ }
+
+ /// \return current IncludeRules or nullptr
+ const Context::Rule *currentIncludeRules() const
+ {
+ return m_includedRules ? m_rules[m_i].rule : m_rules[m_i].includeRules;
+ }
+
+ private:
+ int m_i = 0;
+ int m_i2 = 0;
+ const int m_end;
+ const QList<ObservableRule> &m_rules;
+ const QList<const Context::Rule *> *m_includedRules = nullptr;
+ };
+
+ // Dot regex container that satisfies firstNonSpace and column.
+ struct DotRegex {
+ /// Append a dot regex rule.
+ void append(const Context::Rule &rule, const Context::Rule *includedRule)
+ {
+ auto array = extractDotRegexes(rule);
+ if (array[0]) {
+ *array[0] = {&rule, includedRule};
+ }
+ if (array[1]) {
+ *array[1] = {&rule, includedRule};
+ }
+ }
+
+ /// Search dot regex which hides @p rule
+ RuleAndInclude find(const Context::Rule &rule)
+ {
+ auto array = extractDotRegexes(rule);
+ if (array[0]) {
+ return *array[0];
+ }
+ if (array[1]) {
+ return *array[1];
+ }
+ return RuleAndInclude{};
+ }
+
+ private:
+ using Array = std::array<RuleAndInclude *, 2>;
+
+ Array extractDotRegexes(const Context::Rule &rule)
+ {
+ Array ret{};
+
+ if (rule.firstNonSpace != XmlBool::True && rule.column == -1) {
+ ret[0] = &dotRegex;
+ } else {
+ if (rule.firstNonSpace == XmlBool::True) {
+ ret[0] = &dotRegexFirstNonSpace;
+ }
+
+ if (rule.column == 0) {
+ ret[1] = &dotRegexColumn0;
+ } else if (rule.column > 0) {
+ ret[1] = &dotRegexColumnGreaterThan0[rule.column];
+ }
+ }
+
+ return ret;
+ }
+
+ RuleAndInclude dotRegex{};
+ RuleAndInclude dotRegexColumn0{};
+ QMap<int, RuleAndInclude> dotRegexColumnGreaterThan0{};
+ RuleAndInclude dotRegexFirstNonSpace{};
+ };
+
bool success = true;
- for (auto &language : m_contextMap) {
- const auto invalidContextNames = language.usedContextNames - language.existingContextNames;
- if (!invalidContextNames.isEmpty()) {
- qWarning() << language.hlFilename << "Reference of non-existing contexts:" << invalidContextNames;
- success = false;
+
+ // characters of DetectChar/AnyChar
+ Char4Tables detectChars;
+ // characters of dynamic DetectChar
+ Char4Tables dynamicDetectChars;
+ // characters of LineContinue
+ Char4Tables lineContinueChars;
+
+ Rule4 intRule{};
+ Rule4 floatRule{};
+ Rule4 hlCCharRule{};
+ Rule4 hlCOctRule{};
+ Rule4 hlCHexRule{};
+ Rule4 hlCStringCharRule{};
+ Rule4 detectIdentifierRule{};
+
+ // Contains includedRules and included includedRules
+ QMap<Context const *, RuleAndInclude> includeContexts;
+
+ DotRegex dotRegex;
+
+ QList<ObservableRule> observedRules;
+ observedRules.reserve(context.rules.size());
+ for (const Context::Rule &rule : context.rules) {
+ const Context::Rule *includeRule = nullptr;
+ if (rule.type == Context::Rule::Type::IncludeRules) {
+ auto *context = rule.context.context;
+ if (context && context->isOnlyIncluded) {
+ includeRule = &rule;
+ }
+ }
+
+ observedRules.push_back({&rule, includeRule});
+ if (includeRule) {
+ for (const Context::Rule *rule2 : rule.includedRules) {
+ observedRules.push_back({rule2, includeRule});
+ }
+ }
+ }
+
+ for (auto &observedRule : observedRules) {
+ const Context::Rule &rule = *observedRule.rule;
+ bool isUnreachable = false;
+ QList<RuleAndInclude> unreachableBy;
+
+ // declare rule as unreachable if ruleAndInclude is not empty
+ auto updateUnreachable1 = [&](RuleAndInclude ruleAndInclude) {
+ if (ruleAndInclude) {
+ isUnreachable = true;
+ unreachableBy.append(ruleAndInclude);
+ }
+ };
+
+ // declare rule as unreachable if ruleAndIncludes is not empty
+ auto updateUnreachable2 = [&](const QList<RuleAndInclude> &ruleAndIncludes) {
+ if (!ruleAndIncludes.isEmpty()) {
+ isUnreachable = true;
+ unreachableBy.append(ruleAndIncludes);
+ }
+ };
+
+ // check if rule2.firstNonSpace/column is compatible with those of rule
+ auto isCompatible = [&rule](Context::Rule const &rule2) {
+ return (rule2.firstNonSpace != XmlBool::True && rule2.column == -1) || (rule.column == rule2.column && rule.column != -1)
+ || (rule.firstNonSpace == rule2.firstNonSpace && rule.firstNonSpace == XmlBool::True);
+ };
+
+ updateUnreachable1(dotRegex.find(rule));
+
+ switch (rule.type) {
+ // checks if hidden by DetectChar/AnyChar
+ // then add the characters to detectChars
+ case Context::Rule::Type::AnyChar: {
+ auto tables = CharTableArray(detectChars, rule);
+ updateUnreachable2(tables.find(rule.string));
+ tables.removeNonSpecialWhenSpecial();
+ tables.append(rule.string, rule);
+ break;
+ }
+
+ // check if is hidden by DetectChar/AnyChar
+ // then add the characters to detectChars or dynamicDetectChars
+ case Context::Rule::Type::DetectChar: {
+ auto &chars4 = (rule.dynamic != XmlBool::True) ? detectChars : dynamicDetectChars;
+ auto tables = CharTableArray(chars4, rule);
+ updateUnreachable1(tables.find(rule.char0));
+ tables.removeNonSpecialWhenSpecial();
+ tables.append(rule.char0, rule);
+ break;
+ }
+
+ // check if hidden by DetectChar/AnyChar
+ // then add spaces characters to detectChars
+ case Context::Rule::Type::DetectSpaces: {
+ auto tables = CharTableArray(detectChars, rule);
+ updateUnreachable2(tables.find(QStringLiteral(" \t")));
+ tables.removeNonSpecialWhenSpecial();
+ tables.append(QLatin1Char(' '), rule);
+ tables.append(QLatin1Char('\t'), rule);
+ break;
}
- const auto unusedNames = language.existingContextNames - language.usedContextNames;
- if (!unusedNames.isEmpty()) {
- qWarning() << language.hlFilename << "Unused contexts:" << unusedNames;
+ // check if hidden by DetectChar/AnyChar
+ case Context::Rule::Type::HlCChar:
+ updateUnreachable1(CharTableArray(detectChars, rule).find(QLatin1Char('\'')));
+ updateUnreachable1(hlCCharRule.setRule(rule));
+ break;
+
+ // check if hidden by DetectChar/AnyChar
+ case Context::Rule::Type::HlCHex:
+ updateUnreachable1(CharTableArray(detectChars, rule).find(QLatin1Char('0')));
+ updateUnreachable1(hlCHexRule.setRule(rule));
+ break;
+
+ // check if hidden by DetectChar/AnyChar
+ case Context::Rule::Type::HlCOct:
+ updateUnreachable1(CharTableArray(detectChars, rule).find(QLatin1Char('0')));
+ updateUnreachable1(hlCOctRule.setRule(rule));
+ break;
+
+ // check if hidden by DetectChar/AnyChar
+ case Context::Rule::Type::HlCStringChar:
+ updateUnreachable1(CharTableArray(detectChars, rule).find(QLatin1Char('\\')));
+ updateUnreachable1(hlCStringCharRule.setRule(rule));
+ break;
+
+ // check if hidden by DetectChar/AnyChar
+ case Context::Rule::Type::Int:
+ updateUnreachable2(CharTableArray(detectChars, rule).find(QStringLiteral("0123456789")));
+ updateUnreachable1(intRule.setRule(rule));
+ break;
+
+ // check if hidden by DetectChar/AnyChar
+ case Context::Rule::Type::Float:
+ updateUnreachable2(CharTableArray(detectChars, rule).find(QStringLiteral("0123456789.")));
+ updateUnreachable1(floatRule.setRule(rule));
+ // check that Float is before Int
+ updateUnreachable1(Rule4(intRule).setRule(rule));
+ break;
+
+ // check if hidden by another DetectIdentifier rule
+ case Context::Rule::Type::DetectIdentifier:
+ updateUnreachable1(detectIdentifierRule.setRule(rule));
+ break;
+
+ // check if hidden by DetectChar/AnyChar or another LineContinue
+ case Context::Rule::Type::LineContinue: {
+ updateUnreachable1(CharTableArray(detectChars, rule).find(rule.char0));
+
+ auto tables = CharTableArray(lineContinueChars, rule);
+ updateUnreachable1(tables.find(rule.char0));
+ tables.removeNonSpecialWhenSpecial();
+ tables.append(rule.char0, rule);
+ break;
+ }
+
+ // check if hidden by DetectChar/AnyChar or another Detect2Chars/RangeDetect
+ case Context::Rule::Type::Detect2Chars:
+ case Context::Rule::Type::RangeDetect:
+ updateUnreachable1(CharTableArray(detectChars, rule).find(rule.char0));
+ if (!isUnreachable) {
+ RuleIterator ruleIterator(observedRules, observedRule);
+ while (const auto *rulePtr = ruleIterator.next()) {
+ if (isUnreachable) {
+ break;
+ }
+ const auto &rule2 = *rulePtr;
+ if (rule2.type == rule.type && isCompatible(rule2) && rule.char0 == rule2.char0 && rule.char1 == rule2.char1) {
+ updateUnreachable1({&rule2, ruleIterator.currentIncludeRules()});
+ }
+ }
+ }
+ break;
+
+ case Context::Rule::Type::RegExpr: {
+ if (rule.isDotRegex) {
+ dotRegex.append(rule, nullptr);
+ break;
+ }
+
+ // check that `rule` does not have another RegExpr as a prefix
+ RuleIterator ruleIterator(observedRules, observedRule);
+ while (const auto *rulePtr = ruleIterator.next()) {
+ if (isUnreachable) {
+ break;
+ }
+ const auto &rule2 = *rulePtr;
+ if (rule2.type == Context::Rule::Type::RegExpr && isCompatible(rule2) && rule.insensitive == rule2.insensitive
+ && rule.dynamic == rule2.dynamic && rule.sanitizedString.startsWith(rule2.sanitizedString)) {
+ bool add = (rule.sanitizedString.startsWith(rule2.string) || rule.sanitizedString.size() < rule2.sanitizedString.size() + 2);
+ if (!add) {
+ // \s.* (sanitized = \s) is considered hiding \s*\S
+ // we check the quantifiers to see if this is the case
+ auto c1 = rule.sanitizedString[rule2.sanitizedString.size()].unicode();
+ auto c2 = rule.sanitizedString[rule2.sanitizedString.size() + 1].unicode();
+ auto c3 = rule2.sanitizedString.back().unicode();
+ if (c3 == '*' || c3 == '?' || c3 == '+') {
+ add = true;
+ } else if (c1 == '*' || c1 == '?') {
+ add = !((c2 == '?' || c2 == '+') || (rule.sanitizedString.size() >= rule2.sanitizedString.size() + 3));
+ } else {
+ add = true;
+ }
+ }
+ if (add) {
+ updateUnreachable1({&rule2, ruleIterator.currentIncludeRules()});
+ }
+ }
+ }
+
+ Q_FALLTHROUGH();
+ }
+ // check if a rule does not have another rule as a prefix
+ case Context::Rule::Type::WordDetect:
+ case Context::Rule::Type::StringDetect: {
+ // check that dynamic `rule` does not have another dynamic StringDetect as a prefix
+ if (rule.type == Context::Rule::Type::StringDetect && rule.dynamic == XmlBool::True) {
+ RuleIterator ruleIterator(observedRules, observedRule);
+ while (const auto *rulePtr = ruleIterator.next()) {
+ if (isUnreachable) {
+ break;
+ }
+
+ const auto &rule2 = *rulePtr;
+ if (rule2.type != Context::Rule::Type::StringDetect || rule2.dynamic != XmlBool::True || !isCompatible(rule2)) {
+ continue;
+ }
+
+ const bool isSensitive = (rule2.insensitive == XmlBool::True);
+ const auto caseSensitivity = isSensitive ? Qt::CaseInsensitive : Qt::CaseSensitive;
+ if ((isSensitive || rule.insensitive != XmlBool::True) && rule.string.startsWith(rule2.string, caseSensitivity)) {
+ updateUnreachable1({&rule2, ruleIterator.currentIncludeRules()});
+ }
+ }
+ }
+
+ // string used for comparison and truncated from "dynamic" part
+ QStringView s = rule.string;
+
+ // truncate to '%' with dynamic rules
+ if (rule.dynamic == XmlBool::True) {
+ static const QRegularExpression dynamicPosition(QStringLiteral(R"(^(?:[^%]*|%(?![1-9]))*)"));
+ auto result = dynamicPosition.match(rule.string);
+ s = s.left(result.capturedLength());
+ }
+
+ QString sanitizedRegex;
+ // truncate to special character with RegExpr.
+ // If regexp contains '|', `s` becomes empty.
+ if (rule.type == Context::Rule::Type::RegExpr) {
+ static const QRegularExpression regularChars(QStringLiteral(R"(^(?:[^.?*+^$[{(\\|]+|\\[-.?*+^$[\]{}()\\|]+|\[[^^\\]\])+)"));
+ static const QRegularExpression sanitizeChars(QStringLiteral(R"(\\([-.?*+^$[\]{}()\\|])|\[([^^\\])\])"));
+ const qsizetype result = regularChars.match(rule.string).capturedLength();
+ const qsizetype pos = qMin(result, s.size());
+ if (rule.string.indexOf(QLatin1Char('|'), pos) < pos) {
+ sanitizedRegex = rule.string.left(qMin(result, s.size()));
+ sanitizedRegex.replace(sanitizeChars, QStringLiteral("\\1"));
+ s = sanitizedRegex;
+ } else {
+ s = QStringView();
+ }
+ }
+
+ // check if hidden by DetectChar/AnyChar
+ if (s.size() > 0) {
+ auto t = CharTableArray(detectChars, rule);
+ if (rule.insensitive != XmlBool::True) {
+ updateUnreachable1(t.find(s[0]));
+ } else {
+ QChar c2[]{s[0].toLower(), s[0].toUpper()};
+ updateUnreachable2(t.find(QStringView(c2, 2)));
+ }
+ }
+
+ // check if Detect2Chars, StringDetect, WordDetect is not a prefix of s
+ if (s.size() > 0 && !isUnreachable) {
+ // combination of uppercase and lowercase
+ RuleAndInclude detect2CharsInsensitives[]{{}, {}, {}, {}};
+
+ RuleIterator ruleIterator(observedRules, observedRule);
+ while (const auto *rulePtr = ruleIterator.next()) {
+ if (isUnreachable) {
+ break;
+ }
+ const auto &rule2 = *rulePtr;
+ const bool isSensitive = (rule2.insensitive == XmlBool::True);
+ const auto caseSensitivity = isSensitive ? Qt::CaseInsensitive : Qt::CaseSensitive;
+
+ switch (rule2.type) {
+ // check that it is not a detectChars prefix
+ case Context::Rule::Type::Detect2Chars:
+ if (isCompatible(rule2) && s.size() >= 2) {
+ if (rule.insensitive != XmlBool::True) {
+ if (rule2.char0 == s[0] && rule2.char1 == s[1]) {
+ updateUnreachable1({&rule2, ruleIterator.currentIncludeRules()});
+ }
+ } else {
+ // when the string is case insensitive,
+ // all 4 upper/lower case combinations must be found
+ auto set = [&](RuleAndInclude &x, QChar c1, QChar c2) {
+ if (!x && rule2.char0 == c1 && rule2.char0 == c2) {
+ x = {&rule2, ruleIterator.currentIncludeRules()};
+ }
+ };
+ set(detect2CharsInsensitives[0], s[0].toLower(), s[1].toLower());
+ set(detect2CharsInsensitives[1], s[0].toLower(), s[1].toUpper());
+ set(detect2CharsInsensitives[2], s[0].toUpper(), s[1].toUpper());
+ set(detect2CharsInsensitives[3], s[0].toUpper(), s[1].toLower());
+
+ if (detect2CharsInsensitives[0] && detect2CharsInsensitives[1] && detect2CharsInsensitives[2]
+ && detect2CharsInsensitives[3]) {
+ isUnreachable = true;
+ unreachableBy.append(detect2CharsInsensitives[0]);
+ unreachableBy.append(detect2CharsInsensitives[1]);
+ unreachableBy.append(detect2CharsInsensitives[2]);
+ unreachableBy.append(detect2CharsInsensitives[3]);
+ }
+ }
+ }
+ break;
+
+ // check that it is not a StringDetect prefix
+ case Context::Rule::Type::StringDetect:
+ if (isCompatible(rule2) && rule2.dynamic != XmlBool::True && (isSensitive || rule.insensitive != XmlBool::True)
+ && s.startsWith(rule2.string, caseSensitivity)) {
+ updateUnreachable1({&rule2, ruleIterator.currentIncludeRules()});
+ }
+ break;
+
+ // check if a WordDetect is hidden by another WordDetect
+ case Context::Rule::Type::WordDetect:
+ if (rule.type == Context::Rule::Type::WordDetect && isCompatible(rule2) && (isSensitive || rule.insensitive != XmlBool::True)
+ && 0 == rule.string.compare(rule2.string, caseSensitivity)) {
+ updateUnreachable1({&rule2, ruleIterator.currentIncludeRules()});
+ }
+ break;
+
+ default:;
+ }
+ }
+ }
+
+ break;
+ }
+
+ // check if hidden by another keyword rule
+ case Context::Rule::Type::keyword: {
+ RuleIterator ruleIterator(observedRules, observedRule);
+ while (const auto *rulePtr = ruleIterator.next()) {
+ if (isUnreachable) {
+ break;
+ }
+ const auto &rule2 = *rulePtr;
+ if (rule2.type == Context::Rule::Type::keyword && isCompatible(rule2) && rule.string == rule2.string) {
+ updateUnreachable1({&rule2, ruleIterator.currentIncludeRules()});
+ }
+ }
+ // TODO check that all keywords are hidden by another rules
+ break;
+ }
+
+ // add characters in those used but without checking if they are already.
+ // <DetectChar char="}" />
+ // <includedRules .../> <- reference an another <DetectChar char="}" /> who will not be checked
+ // <includedRules .../> <- reference a <DetectChar char="{" /> who will be added
+ // <DetectChar char="{" /> <- hidden by previous rule
+ case Context::Rule::Type::IncludeRules:
+ if (observedRule.includeRules && !observedRule.hasResolvedIncludeRules()) {
+ break;
+ }
+
+ if (auto &ruleAndInclude = includeContexts[rule.context.context]) {
+ updateUnreachable1(ruleAndInclude);
+ } else {
+ ruleAndInclude.rule = &rule;
+ }
+
+ for (const auto *rulePtr : rule.includedIncludeRules) {
+ includeContexts.insert(rulePtr->context.context, RuleAndInclude{rulePtr, &rule});
+ }
+
+ if (observedRule.includeRules) {
+ break;
+ }
+
+ for (const auto *rulePtr : rule.includedRules) {
+ const auto &rule2 = *rulePtr;
+ switch (rule2.type) {
+ case Context::Rule::Type::AnyChar: {
+ auto tables = CharTableArray(detectChars, rule2);
+ tables.removeNonSpecialWhenSpecial();
+ tables.append(rule2.string, rule2, &rule);
+ break;
+ }
+
+ case Context::Rule::Type::DetectChar: {
+ auto &chars4 = (rule.dynamic != XmlBool::True) ? detectChars : dynamicDetectChars;
+ auto tables = CharTableArray(chars4, rule2);
+ tables.removeNonSpecialWhenSpecial();
+ tables.append(rule2.char0, rule2, &rule);
+ break;
+ }
+
+ case Context::Rule::Type::DetectSpaces: {
+ auto tables = CharTableArray(detectChars, rule2);
+ tables.removeNonSpecialWhenSpecial();
+ tables.append(QLatin1Char(' '), rule2, &rule);
+ tables.append(QLatin1Char('\t'), rule2, &rule);
+ break;
+ }
+
+ case Context::Rule::Type::HlCChar:
+ hlCCharRule.setRule(rule2, &rule);
+ break;
+
+ case Context::Rule::Type::HlCHex:
+ hlCHexRule.setRule(rule2, &rule);
+ break;
+
+ case Context::Rule::Type::HlCOct:
+ hlCOctRule.setRule(rule2, &rule);
+ break;
+
+ case Context::Rule::Type::HlCStringChar:
+ hlCStringCharRule.setRule(rule2, &rule);
+ break;
+
+ case Context::Rule::Type::Int:
+ intRule.setRule(rule2, &rule);
+ break;
+
+ case Context::Rule::Type::Float:
+ floatRule.setRule(rule2, &rule);
+ break;
+
+ case Context::Rule::Type::LineContinue: {
+ auto tables = CharTableArray(lineContinueChars, rule2);
+ tables.removeNonSpecialWhenSpecial();
+ tables.append(rule2.char0, rule2, &rule);
+ break;
+ }
+
+ case Context::Rule::Type::RegExpr:
+ if (rule2.isDotRegex) {
+ dotRegex.append(rule2, &rule);
+ }
+ break;
+
+ case Context::Rule::Type::WordDetect:
+ case Context::Rule::Type::StringDetect:
+ case Context::Rule::Type::Detect2Chars:
+ case Context::Rule::Type::IncludeRules:
+ case Context::Rule::Type::DetectIdentifier:
+ case Context::Rule::Type::keyword:
+ case Context::Rule::Type::Unknown:
+ case Context::Rule::Type::RangeDetect:
+ break;
+ }
+ }
+ break;
+
+ case Context::Rule::Type::Unknown:
+ break;
+ }
+
+ if (observedRule.includeRules && !observedRule.hasResolvedIncludeRules()) {
+ auto &unreachableIncludedRule = unreachableIncludedRules[&rule];
+ if (isUnreachable && unreachableIncludedRule.alwaysUnreachable) {
+ unreachableIncludedRule.unreachableBy.append(unreachableBy);
+ } else {
+ unreachableIncludedRule.alwaysUnreachable = false;
+ }
+ } else if (isUnreachable) {
success = false;
+ QString message;
+ message.reserve(128);
+ for (auto &ruleAndInclude : unreachableBy) {
+ message += QStringLiteral("line ");
+ if (ruleAndInclude.includeRules) {
+ message += QString::number(ruleAndInclude.includeRules->line);
+ message += QStringLiteral(" [by '");
+ message += ruleAndInclude.includeRules->context.name;
+ message += QStringLiteral("' line ");
+ message += QString::number(ruleAndInclude.rule->line);
+ if (ruleAndInclude.includeRules->filename != ruleAndInclude.rule->filename) {
+ message += QStringLiteral(" (");
+ message += ruleAndInclude.rule->filename;
+ message += QLatin1Char(')');
+ }
+ message += QLatin1Char(']');
+ } else {
+ message += QString::number(ruleAndInclude.rule->line);
+ }
+ message += QStringLiteral(", ");
+ }
+ message.chop(2);
+ qWarning() << filename << "line" << rule.line << "unreachable rule by" << message;
}
}
return success;
}
-private:
- //! Extract the referenced context name and language.
+ //! Proposes to merge certain rule sequences
+ //! - several DetectChar/AnyChar into AnyChar
+ //! - several RegExpr into one RegExpr
+ bool suggestRuleMerger(const QString &filename, const Context &context) const
+ {
+ bool success = true;
+
+ if (context.rules.isEmpty()) {
+ return success;
+ }
+
+ auto it = context.rules.begin();
+ const auto end = context.rules.end() - 1;
+
+ for (; it < end; ++it) {
+ auto &rule1 = *it;
+ auto &rule2 = it[1];
+
+ auto isCommonCompatible = [&] {
+ if (rule1.lookAhead != rule2.lookAhead) {
+ return false;
+ }
+ // ignore attribute when lookAhead is true
+ if (rule1.lookAhead != XmlBool::True && rule1.attribute != rule2.attribute) {
+ return false;
+ }
+ // clang-format off
+ return rule1.beginRegion == rule2.beginRegion
+ && rule1.endRegion == rule2.endRegion
+ && rule1.firstNonSpace == rule2.firstNonSpace
+ && rule1.context.context == rule2.context.context
+ && rule1.context.popCount == rule2.context.popCount;
+ // clang-format on
+ };
+
+ switch (rule1.type) {
+ // request to merge AnyChar/DetectChar
+ case Context::Rule::Type::AnyChar:
+ case Context::Rule::Type::DetectChar:
+ if ((rule2.type == Context::Rule::Type::AnyChar || rule2.type == Context::Rule::Type::DetectChar) && isCommonCompatible()
+ && rule1.column == rule2.column) {
+ qWarning() << filename << "line" << rule2.line << "can be merged as AnyChar with the previous rule";
+ success = false;
+ }
+ break;
+
+ // request to merge multiple RegExpr
+ case Context::Rule::Type::RegExpr:
+ if (rule2.type == Context::Rule::Type::RegExpr && isCommonCompatible() && rule1.dynamic == rule2.dynamic
+ && (rule1.column == rule2.column || (rule1.column <= 0 && rule2.column <= 0))) {
+ qWarning() << filename << "line" << rule2.line << "can be merged with the previous rule";
+ success = false;
+ }
+ break;
+
+ case Context::Rule::Type::DetectSpaces:
+ case Context::Rule::Type::HlCChar:
+ case Context::Rule::Type::HlCHex:
+ case Context::Rule::Type::HlCOct:
+ case Context::Rule::Type::HlCStringChar:
+ case Context::Rule::Type::Int:
+ case Context::Rule::Type::Float:
+ case Context::Rule::Type::LineContinue:
+ case Context::Rule::Type::WordDetect:
+ case Context::Rule::Type::StringDetect:
+ case Context::Rule::Type::Detect2Chars:
+ case Context::Rule::Type::IncludeRules:
+ case Context::Rule::Type::DetectIdentifier:
+ case Context::Rule::Type::keyword:
+ case Context::Rule::Type::Unknown:
+ case Context::Rule::Type::RangeDetect:
+ break;
+ }
+ }
+
+ return success;
+ }
+
+ //! Initialize the referenced context (ContextName::context)
//! Some input / output examples are:
//! - "#stay" -> ""
//! - "#pop" -> ""
@@ -388,115 +2629,141 @@ private:
//! - "#pop!Comment" -> "Comment"
//! - "##ISO C++" -> ""
//! - "Comment##ISO C++"-> "Comment" in ISO C++
- void processContext(const QString &language, QString context)
+ void resolveContextName(Definition &definition, Context &context, ContextName &contextName, int line)
{
- if (context.isEmpty())
- return;
+ QStringView name = contextName.name;
+ if (name.isEmpty()) {
+ contextName.stay = true;
+ } else if (name.startsWith(QStringLiteral("#stay"))) {
+ name = name.mid(5);
+ contextName.stay = true;
+ contextName.context = &context;
+ if (!name.isEmpty()) {
+ qWarning() << definition.filename << "line" << line << "invalid context in" << context.name;
+ m_success = false;
+ }
+ } else {
+ while (name.startsWith(QStringLiteral("#pop"))) {
+ name = name.mid(4);
+ ++contextName.popCount;
+ }
- // filter out #stay and #pop
- static QRegularExpression stayPop(QStringLiteral("^(#stay|#pop)+"));
- context.remove(stayPop);
+ if (contextName.popCount && !name.isEmpty()) {
+ if (name.startsWith(QLatin1Char('!')) && name.size() > 1) {
+ name = name.mid(1);
+ } else {
+ qWarning() << definition.filename << "line" << line << "'!' missing between '#pop' and context name" << context.name;
+ m_success = false;
+ }
+ }
+
+ if (!name.isEmpty()) {
+ const int idx = name.indexOf(QStringLiteral("##"));
+ if (idx == -1) {
+ auto it = definition.contexts.find(name.toString());
+ if (it != definition.contexts.end()) {
+ contextName.context = &*it;
+ }
+ } else {
+ auto defName = name.mid(idx + 2);
+ auto it = m_definitions.find(defName.toString());
+ if (it != m_definitions.end()) {
+ auto listName = name.left(idx).toString();
+ definition.referencedDefinitions.insert(&*it);
+ auto ctxIt = it->contexts.find(listName.isEmpty() ? it->firstContextName : listName);
+ if (ctxIt != it->contexts.end()) {
+ contextName.context = &*ctxIt;
+ }
+ } else {
+ qWarning() << definition.filename << "line" << line << "unknown definition in" << context.name;
+ m_success = false;
+ }
+ }
- // handle cross-language context references
- if (context.contains(QStringLiteral("##"))) {
- const QStringList list = context.split(QStringLiteral("##"), QString::SkipEmptyParts);
- if (list.size() == 1) {
- // nothing to do, other language is included: e.g. ##Doxygen
- } else if (list.size() == 2) {
- // specific context of other language, e.g. Comment##ISO C++
- m_contextMap[list[1]].usedContextNames.insert(list[0]);
+ if (!contextName.context) {
+ qWarning() << definition.filename << "line" << line << "unknown context" << name << "in" << context.name;
+ m_success = false;
+ }
}
- return;
}
+ }
- // handle #pop!context" (#pop was already removed above)
- if (context.startsWith(QLatin1Char('!')))
- context.remove(0, 1);
+ QMap<QString, Definition> m_definitions;
+ Definition *m_currentDefinition = nullptr;
+ Keywords *m_currentKeywords = nullptr;
+ Context *m_currentContext = nullptr;
+ bool m_success = true;
+};
- if (!context.isEmpty())
- m_contextMap[language].usedContextNames.insert(context);
+namespace
+{
+QStringList readListing(const QString &fileName)
+{
+ QFile file(fileName);
+ if (!file.open(QIODevice::ReadOnly)) {
+ return QStringList();
}
-private:
- class Language
- {
- public:
- // filename on disk or in Qt resource
- QString hlFilename;
-
- // Is true, if the first context in xml file is encountered, and
- // false in all other cases. This is required, since the first context
- // is typically not referenced explicitly. So we will simply add the
- // first context to the usedContextNames list.
- bool isFirstContext = true;
+ QXmlStreamReader xml(&file);
+ QStringList listing;
+ while (!xml.atEnd()) {
+ xml.readNext();
- // holds all contexts that were referenced
- QSet<QString> usedContextNames;
+ // add only .xml files, no .json or stuff
+ if (xml.isCharacters() && xml.text().contains(QLatin1String(".xml"))) {
+ listing.append(xml.text().toString());
+ }
+ }
- // holds all existing context names
- QSet<QString> existingContextNames;
- };
+ if (xml.hasError()) {
+ qWarning() << "XML error while reading" << fileName << " - " << qPrintable(xml.errorString()) << "@ offset" << xml.characterOffset();
+ listing.clear();
+ }
- /**
- * "Language name" to "Language" map.
- * Example key: "Doxygen"
- */
- QHash<QString, Language> m_contextMap;
-};
+ return listing;
+}
/**
- * Helper class to search for non-existing itemDatas.
+ * check if the "extensions" attribute have valid wildcards
+ * @param extensions extensions string to check
+ * @return valid?
*/
-class AttributeChecker
+bool checkExtensions(QStringView extensions)
{
-public:
- AttributeChecker(const QString &filename)
- : m_filename(filename)
- {}
+ // get list of extensions
+ const QList<QStringView> extensionParts = extensions.split(QLatin1Char(';'), Qt::SkipEmptyParts);
- void processElement(QXmlStreamReader &xml)
- {
- if (xml.name() == QLatin1String("itemData")) {
- const QString name = xml.attributes().value(QLatin1String("name")).toString();
- if (!name.isEmpty()) {
- if (m_existingAttributeNames.contains(name)) {
- qWarning() << m_filename << "itemData duplicate:" << name;
- } else {
- m_existingAttributeNames.insert(name);
- }
+ // ok if empty
+ if (extensionParts.isEmpty()) {
+ return true;
+ }
+
+ // check that only valid wildcard things are inside the parts
+ for (const auto &extension : extensionParts) {
+ for (const auto c : extension) {
+ // eat normal things
+ if (c.isDigit() || c.isLetter()) {
+ continue;
}
- } else if (xml.attributes().hasAttribute(QLatin1String("attribute"))) {
- const QString name = xml.attributes().value(QLatin1String("attribute")).toString();
- if (name.isEmpty()) {
- qWarning() << m_filename << "specified attribute is empty:" << xml.name();
- } else {
- m_usedAttributeNames.insert(name);
+
+ // allow some special characters
+ if (c == QLatin1Char('.') || c == QLatin1Char('-') || c == QLatin1Char('_') || c == QLatin1Char('+')) {
+ continue;
}
- }
- }
- bool check() const
- {
- bool success = true;
- const auto invalidNames = m_usedAttributeNames - m_existingAttributeNames;
- if (!invalidNames.isEmpty()) {
- qWarning() << m_filename << "Reference of non-existing itemData attributes:" << invalidNames;
- success = false;
- }
+ // only allowed wildcard things: '?' and '*'
+ if (c == QLatin1Char('?') || c == QLatin1Char('*')) {
+ continue;
+ }
- auto unusedNames = m_existingAttributeNames - m_usedAttributeNames;
- if (!unusedNames.isEmpty()) {
- qWarning() << m_filename << "Unused itemData:" << unusedNames;
+ qWarning() << "invalid character" << c << "seen in extensions wildcard";
+ return false;
}
-
- return success;
}
-private:
- QString m_filename;
- QSet<QString> m_usedAttributeNames;
- QSet<QString> m_existingAttributeNames;
-};
+ // all checks passed
+ return true;
+}
}
@@ -506,14 +2773,36 @@ int main(int argc, char *argv[])
QCoreApplication app(argc, argv);
// ensure enough arguments are passed
- if (app.arguments().size() < 3)
+ if (app.arguments().size() < 3) {
return 1;
+ }
+
+#ifdef HAS_XERCESC
+ // care for proper init and cleanup
+ XMLPlatformUtils::Initialize();
+ auto cleanup = qScopeGuard(XMLPlatformUtils::Terminate);
-#ifdef QT_XMLPATTERNS_LIB
- // open schema
- QXmlSchema schema;
- if (!schema.load(QUrl::fromLocalFile(app.arguments().at(2))))
+ /*
+ * parse XSD first time and cache it
+ */
+ XMLGrammarPoolImpl xsd(XMLPlatformUtils::fgMemoryManager);
+
+ // create parser for the XSD
+ SAX2XMLReaderImpl parser(XMLPlatformUtils::fgMemoryManager, &xsd);
+ init_parser(parser);
+ QString messages;
+ CustomErrorHandler eh(&messages);
+ parser.setErrorHandler(&eh);
+
+ // load grammar into the pool, on error just abort
+ const auto xsdFile = app.arguments().at(2);
+ if (!parser.loadGrammar((const char16_t *)xsdFile.utf16(), Grammar::SchemaGrammarType, true) || eh.failed()) {
+ qWarning("Failed to parse XSD %s: %s", qPrintable(xsdFile), qPrintable(messages));
return 2;
+ }
+
+ // lock the pool, no later modifications wanted!
+ xsd.lockPool();
#endif
const QString hlFilenamesListing = app.arguments().value(3);
@@ -529,26 +2818,35 @@ int main(int argc, char *argv[])
// text attributes
const QStringList textAttributes = QStringList() << QStringLiteral("name") << QStringLiteral("section") << QStringLiteral("mimetype")
- << QStringLiteral("extensions") << QStringLiteral("style")
- << QStringLiteral("author") << QStringLiteral("license") << QStringLiteral("indenter");
+ << QStringLiteral("extensions") << QStringLiteral("style") << QStringLiteral("author")
+ << QStringLiteral("license") << QStringLiteral("indenter");
// index all given highlightings
- ContextChecker contextChecker;
- KeywordIncludeChecker keywordIncludeChecker;
+ HlFilesChecker filesChecker;
QVariantMap hls;
int anyError = 0;
- for (const QString &hlFilename : qAsConst(hlFilenames)) {
+ for (const QString &hlFilename : std::as_const(hlFilenames)) {
QFile hlFile(hlFilename);
if (!hlFile.open(QIODevice::ReadOnly)) {
- qWarning ("Failed to open %s", qPrintable(hlFilename));
+ qWarning("Failed to open %s", qPrintable(hlFilename));
anyError = 3;
continue;
}
-#ifdef QT_XMLPATTERNS_LIB
- // validate against schema
- QXmlSchemaValidator validator(schema);
- if (!validator.validate(&hlFile, QUrl::fromLocalFile(hlFile.fileName()))) {
+#ifdef HAS_XERCESC
+ // create parser
+ SAX2XMLReaderImpl parser(XMLPlatformUtils::fgMemoryManager, &xsd);
+ init_parser(parser);
+ QString messages;
+ CustomErrorHandler eh(&messages);
+ parser.setErrorHandler(&eh);
+
+ // parse the XML file
+ parser.parse((const char16_t *)hlFile.fileName().utf16());
+
+ // report issues
+ if (eh.failed()) {
+ qWarning("Failed to validate XML %s: %s", qPrintable(hlFile.fileName()), qPrintable(messages));
anyError = 4;
continue;
}
@@ -571,7 +2869,7 @@ int main(int argc, char *argv[])
QVariantMap hl;
// transfer text attributes
- for (const QString &attribute : qAsConst(textAttributes)) {
+ for (const QString &attribute : std::as_const(textAttributes)) {
hl[attribute] = xml.attributes().value(attribute).toString();
}
@@ -586,87 +2884,50 @@ int main(int argc, char *argv[])
hl[QStringLiteral("priority")] = xml.attributes().value(QLatin1String("priority")).toInt();
// add boolean one
- const QString hidden = xml.attributes().value(QLatin1String("hidden")).toString();
- hl[QStringLiteral("hidden")] = (hidden == QLatin1String("true") || hidden == QLatin1String("1"));
+ hl[QStringLiteral("hidden")] = attrToBool(xml.attributes().value(QLatin1String("hidden")));
+
+ // keep some strings as UTF-8 for faster translations
+ hl[QStringLiteral("nameUtf8")] = hl[QStringLiteral("name")].toString().toUtf8();
+ hl[QStringLiteral("sectionUtf8")] = hl[QStringLiteral("section")].toString().toUtf8();
// remember hl
hls[QFileInfo(hlFile).fileName()] = hl;
- AttributeChecker attributeChecker(hlFilename);
- KeywordChecker keywordChecker(hlFilename);
const QString hlName = hl[QStringLiteral("name")].toString();
+ filesChecker.setDefinition(xml.attributes().value(QStringLiteral("kateversion")), hlFilename, hlName);
+
// scan for broken regex or keywords with spaces
while (!xml.atEnd()) {
xml.readNext();
- if (!xml.isStartElement()) {
- continue;
- }
-
- // search for used/existing contexts if applicable
- contextChecker.processElement(hlFilename, hlName, xml);
-
- // search for existing keyword includes
- keywordIncludeChecker.processElement(hlFilename, hlName, xml);
-
- // search for used/existing attributes if applicable
- attributeChecker.processElement(xml);
-
- // search for used/existing keyword lists if applicable
- keywordChecker.processElement(xml);
-
- // scan for bad regex
- if (!checkRegularExpression(hlFilename, xml)) {
- anyError = 7;
- continue;
- }
-
- // scan for bogus <item> lala </item> spaces
- if (!checkItemsTrimmed(hlFilename, xml)) {
- anyError = 8;
- continue;
- }
-
- // check single chars in DetectChar and Detect2Chars
- if (!checkSingleChars(hlFilename, xml)) {
- anyError = 8;
- continue;
- }
-
- // scan for lookAhead="true" with context="#stay"
- if (!checkLookAhead(hlFilename, xml)) {
- anyError = 7;
- continue;
- }
+ filesChecker.processElement(xml);
}
- if (!attributeChecker.check()) {
- anyError = 7;
- }
-
- if (!keywordChecker.check()) {
- anyError = 7;
+ if (xml.hasError()) {
+ anyError = 33;
+ qWarning() << hlFilename << "-" << xml.errorString() << "@ offset" << xml.characterOffset();
}
}
- if (!contextChecker.check())
- anyError = 7;
+ filesChecker.resolveContexts();
- if (!keywordIncludeChecker.check())
+ if (!filesChecker.check()) {
anyError = 7;
-
+ }
// bail out if any problem was seen
- if (anyError)
+ if (anyError) {
return anyError;
+ }
// create outfile, after all has worked!
QFile outFile(app.arguments().at(1));
- if (!outFile.open(QIODevice::WriteOnly | QIODevice::Truncate))
+ if (!outFile.open(QIODevice::WriteOnly | QIODevice::Truncate)) {
return 9;
+ }
// write out json
- outFile.write(QJsonDocument::fromVariant(QVariant(hls)).toBinaryData());
+ outFile.write(QCborValue::fromVariant(QVariant(hls)).toCbor());
// be done
return 0;
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/CMakeLists.txt b/src/libs/3rdparty/syntax-highlighting/src/lib/CMakeLists.txt
index 95bf4c349e..2b2845eba4 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/CMakeLists.txt
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/CMakeLists.txt
@@ -1,13 +1,23 @@
-ecm_create_qm_loader(syntax_highlighting_QM_LOADER syntaxhighlighting5_qt)
+add_library(KF6SyntaxHighlighting)
-set(syntax_highlighting_srcs
+set_target_properties(KF6SyntaxHighlighting PROPERTIES
+ VERSION ${KSYNTAXHIGHLIGHTING_VERSION}
+ SOVERSION ${KSYNTAXHIGHLIGHTING_SOVERSION}
+ EXPORT_NAME SyntaxHighlighting
+)
+
+ecm_create_qm_loader(syntax_highlighting_QM_LOADER syntaxhighlighting6_qt)
+
+target_sources(KF6SyntaxHighlighting PRIVATE
abstracthighlighter.cpp
context.cpp
contextswitch.cpp
definitiondownloader.cpp
+ highlightingdata.cpp
foldingregion.cpp
format.cpp
htmlhighlighter.cpp
+ ansihighlighter.cpp
keywordlist.cpp
rule.cpp
definition.cpp
@@ -17,58 +27,84 @@ set(syntax_highlighting_srcs
theme.cpp
wildcardmatcher.cpp
themedata.cpp
+ worddelimiters.cpp
${syntax_highlighting_QM_LOADER}
+ $<TARGET_OBJECTS:SyntaxHighlightingData>
)
-ecm_qt_declare_logging_category(syntax_highlighting_srcs
+ecm_qt_declare_logging_category(KF6SyntaxHighlighting
HEADER ksyntaxhighlighting_logging.h
IDENTIFIER KSyntaxHighlighting::Log
- CATEGORY_NAME org.kde.ksyntaxhighlighting
+ CATEGORY_NAME kf.syntaxhighlighting
+ OLD_CATEGORY_NAMES org.kde.ksyntaxhighlighting
+ DESCRIPTION "Syntax Highlighting"
+ EXPORT KSYNTAXHIGHLIGHTING
)
-add_library(KF5SyntaxHighlighting ${syntax_highlighting_srcs} $<TARGET_OBJECTS:SyntaxHighlightingData>)
-generate_export_header(KF5SyntaxHighlighting BASE_NAME KSyntaxHighlighting)
-set_target_properties(KF5SyntaxHighlighting PROPERTIES
- VERSION ${SyntaxHighlighting_VERSION_STRING}
- SOVERSION ${SyntaxHighlighting_SOVERSION}
- EXPORT_NAME SyntaxHighlighting
+ecm_generate_export_header(KF6SyntaxHighlighting
+ BASE_NAME KSyntaxHighlighting
+ GROUP_BASE_NAME KF
+ VERSION ${KF_VERSION}
+ USE_VERSION_HEADER
+ DEPRECATED_BASE_VERSION 0
+ DEPRECATION_VERSIONS
+ EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT}
+)
+
+target_link_libraries(KF6SyntaxHighlighting
+ PUBLIC
+ Qt6::Gui
+ PRIVATE
+ Qt6::Network
)
-target_include_directories(KF5SyntaxHighlighting INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KSyntaxHighlighting;${KDE_INSTALL_INCLUDEDIR_KF5}>")
-target_include_directories(KF5SyntaxHighlighting PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR};${CMAKE_CURRENT_BINARY_DIR};>")
-target_link_libraries(KF5SyntaxHighlighting LINK_PUBLIC Qt5::Gui LINK_PRIVATE Qt5::Network)
-ecm_generate_headers(SyntaxHighlighting_HEADERS
- HEADER_NAMES
- AbstractHighlighter
- Definition
- DefinitionDownloader
- FoldingRegion
- Format
- Repository
- State
- SyntaxHighlighter
- Theme
+set(Forwarding_Header_Names
+ AbstractHighlighter
+ Definition
+ DefinitionDownloader
+ FoldingRegion
+ Format
+ Repository
+ State
+ SyntaxHighlighter
+ Theme
+ WildcardMatcher
+)
+
+ecm_generate_headers(CamelCase_HEADERS
+ HEADER_NAMES ${Forwarding_Header_Names}
REQUIRED_HEADERS SyntaxHighlighting_HEADERS
+ OUTPUT_DIR ${CMAKE_BINARY_DIR}/KSyntaxHighlighting/KSyntaxHighlighting
+)
+
+target_include_directories(KF6SyntaxHighlighting
+ INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF}/KSyntaxHighlighting>"
+ PUBLIC "$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/KSyntaxHighlighting;>"
)
-install(TARGETS KF5SyntaxHighlighting EXPORT KF5SyntaxHighlightingTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
+install(TARGETS KF6SyntaxHighlighting EXPORT KF6SyntaxHighlightingTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
+
install(FILES
+ ${CamelCase_HEADERS}
${SyntaxHighlighting_HEADERS}
${CMAKE_CURRENT_BINARY_DIR}/ksyntaxhighlighting_export.h
- DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/KSyntaxHighlighting)
+ DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/KSyntaxHighlighting/KSyntaxHighlighting
+)
if(BUILD_QCH)
ecm_add_qch(
- KF5SyntaxHighlighting_QCH
+ KF6SyntaxHighlighting_QCH
NAME KSyntaxHighlighting
- BASE_NAME KF5SyntaxHighlighting
- VERSION ${KF5_VERSION}
+ BASE_NAME KF6SyntaxHighlighting
+ VERSION ${KF_VERSION}
ORG_DOMAIN org.kde
SOURCES # using only public headers, to cover only public API
${SyntaxHighlighting_HEADERS}
MD_MAINPAGE "${CMAKE_SOURCE_DIR}/README.md"
LINK_QCHS
- Qt5Core_QCH
- Qt5Gui_QCH
+ Qt6Core_QCH
+ Qt6Gui_QCH
+ INCLUDE_DIRS
+ ${CMAKE_CURRENT_BINARY_DIR}
BLANK_MACROS
KSYNTAXHIGHLIGHTING_EXPORT
KSYNTAXHIGHLIGHTING_DEPRECATED
@@ -77,11 +113,3 @@ if(BUILD_QCH)
COMPONENT Devel
)
endif()
-ecm_generate_pri_file(
- BASE_NAME KSyntaxHighlighting LIB_NAME
- KF5SyntaxHighlighting
- DEPS "gui"
- FILENAME_VAR PRI_FILENAME
- INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF5}/KSyntaxHighlighting
-)
-install(FILES ${PRI_FILENAME} DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/abstracthighlighter.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/abstracthighlighter.cpp
index c4ef86a771..87dabadc7b 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/abstracthighlighter.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/abstracthighlighter.cpp
@@ -1,24 +1,7 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#include "abstracthighlighter.h"
@@ -27,11 +10,12 @@
#include "definition_p.h"
#include "foldingregion.h"
#include "format.h"
+#include "ksyntaxhighlighting_logging.h"
#include "repository.h"
+#include "repository_p.h"
#include "rule_p.h"
#include "state.h"
#include "state_p.h"
-#include "ksyntaxhighlighting_logging.h"
#include "theme.h"
using namespace KSyntaxHighlighting;
@@ -53,20 +37,22 @@ void AbstractHighlighterPrivate::ensureDefinitionLoaded()
defData = DefinitionData::get(m_definition);
}
- if (Q_UNLIKELY(!defData->repo && !defData->fileName.isEmpty()))
+ if (Q_UNLIKELY(!defData->repo && !defData->fileName.isEmpty())) {
qCCritical(Log) << "Repository got deleted while a highlighter is still active!";
+ }
- if (m_definition.isValid())
+ if (m_definition.isValid()) {
defData->load();
+ }
}
-AbstractHighlighter::AbstractHighlighter() :
- d_ptr(new AbstractHighlighterPrivate)
+AbstractHighlighter::AbstractHighlighter()
+ : d_ptr(new AbstractHighlighterPrivate)
{
}
-AbstractHighlighter::AbstractHighlighter(AbstractHighlighterPrivate *dd) :
- d_ptr(dd)
+AbstractHighlighter::AbstractHighlighter(AbstractHighlighterPrivate *dd)
+ : d_ptr(dd)
{
}
@@ -102,7 +88,7 @@ void AbstractHighlighter::setTheme(const Theme &theme)
* Returns the index of the first non-space character. If the line is empty,
* or only contains white spaces, text.size() is returned.
*/
-static inline int firstNonSpaceChar(const QString & text)
+static inline int firstNonSpaceChar(QStringView text)
{
for (int i = 0; i < text.length(); ++i) {
if (!text[i].isSpace()) {
@@ -112,7 +98,7 @@ static inline int firstNonSpaceChar(const QString & text)
return text.size();
}
-State AbstractHighlighter::highlightLine(const QString& text, const State &state)
+State AbstractHighlighter::highlightLine(QStringView text, const State &state)
{
Q_D(AbstractHighlighter);
@@ -124,45 +110,49 @@ State AbstractHighlighter::highlightLine(const QString& text, const State &state
return State();
}
+ // limit the cache for unification to some reasonable size
+ // we use here at the moment 64k elements to not hog too much memory
+ // and to make the clearing no big stall
+ if (defData->unify.size() > 64 * 1024)
+ defData->unify.clear();
+
// verify/initialize state
auto newState = state;
auto stateData = StateData::get(newState);
- const DefinitionRef currentDefRef(d->m_definition);
- if (!stateData->isEmpty() && (stateData->m_defRef != currentDefRef)) {
+ bool isSharedData = true;
+ if (Q_UNLIKELY(stateData && stateData->m_defId != defData->id)) {
qCDebug(Log) << "Got invalid state, resetting.";
- stateData->clear();
+ stateData = nullptr;
}
- if (stateData->isEmpty()) {
+ if (Q_UNLIKELY(!stateData)) {
+ stateData = StateData::reset(newState);
stateData->push(defData->initialContext(), QStringList());
- stateData->m_defRef = currentDefRef;
+ stateData->m_defId = defData->id;
+ isSharedData = false;
}
// process empty lines
- if (text.isEmpty()) {
+ if (Q_UNLIKELY(text.isEmpty())) {
/**
* handle line empty context switches
* guard against endless loops
* see https://phabricator.kde.org/D18509
*/
int endlessLoopingCounter = 0;
- while (!stateData->topContext()->lineEmptyContext().isStay() || (stateData->topContext()->lineEmptyContext().isStay() && !stateData->topContext()->lineEndContext().isStay())) {
+ while (!stateData->topContext()->lineEmptyContext().isStay()) {
/**
* line empty context switches
*/
- if (!stateData->topContext()->lineEmptyContext().isStay()) {
- if (!d->switchContext(stateData, stateData->topContext()->lineEmptyContext(), QStringList())) {
- /**
- * end when trying to #pop the main context
- */
- break;
- }
- /**
- * line end context switches only when lineEmptyContext is #stay. This avoids
- * skipping empty lines after a line continuation character (see bug 405903)
- */
- } else if (!stateData->topContext()->lineEndContext().isStay() &&
- !d->switchContext(stateData, stateData->topContext()->lineEndContext(), QStringList()))
+ if (!d->switchContext(stateData, stateData->topContext()->lineEmptyContext(), QStringList(), newState, isSharedData)) {
+ /**
+ * end when trying to #pop the main context
+ */
break;
+ }
+
+ if (stateData->topContext()->stopEmptyLineContextSwitchLoop()) {
+ break;
+ }
// guard against endless loops
++endlessLoopingCounter;
@@ -173,12 +163,43 @@ State AbstractHighlighter::highlightLine(const QString& text, const State &state
}
auto context = stateData->topContext();
applyFormat(0, 0, context->attributeFormat());
- return newState;
+ return *defData->unify.insert(newState);
}
- int offset = 0, beginOffset = 0;
+ auto &dynamicRegexpCache = RepositoryPrivate::get(defData->repo)->m_dynamicRegexpCache;
+
+ int offset = 0;
+ int beginOffset = 0;
bool lineContinuation = false;
- QHash<Rule*, int> skipOffsets;
+
+ /**
+ * for expensive rules like regexes we do:
+ * - match them for the complete line, as this is faster than re-trying them at all positions
+ * - store the result of the first position that matches (or -1 for no match in the full line) in the skipOffsets hash for re-use
+ * - have capturesForLastDynamicSkipOffset as guard for dynamic regexes to invalidate the cache if they might have changed
+ */
+ QVarLengthArray<QPair<const Rule *, int>, 8> skipOffsets;
+ QStringList capturesForLastDynamicSkipOffset;
+
+ auto getSkipOffsetValue = [&skipOffsets](const Rule *r) -> int {
+ auto i = std::find_if(skipOffsets.begin(), skipOffsets.end(), [r](const auto &v) {
+ return v.first == r;
+ });
+ if (i == skipOffsets.end())
+ return 0;
+ return i->second;
+ };
+
+ auto insertSkipOffset = [&skipOffsets](const Rule *r, int i) {
+ auto it = std::find_if(skipOffsets.begin(), skipOffsets.end(), [r](const auto &v) {
+ return v.first == r;
+ });
+ if (it == skipOffsets.end()) {
+ skipOffsets.push_back({r, i});
+ } else {
+ it->second = i;
+ }
+ };
/**
* current active format
@@ -216,7 +237,8 @@ State AbstractHighlighter::highlightLine(const QString& text, const State &state
bool isLookAhead = false;
int newOffset = 0;
const Format *newFormat = nullptr;
- for (const auto &rule : stateData->topContext()->rules()) {
+ for (const auto &ruleShared : stateData->topContext()->rules()) {
+ auto rule = ruleShared.get();
/**
* filter out rules that require a specific column
*/
@@ -244,27 +266,43 @@ State AbstractHighlighter::highlightLine(const QString& text, const State &state
}
}
- /**
- * shall we skip application of this rule? two cases:
- * - rule can't match at all => currentSkipOffset < 0
- * - rule will only match for some higher offset => currentSkipOffset > offset
- */
- const auto currentSkipOffset = skipOffsets.value(rule.get());
- if (currentSkipOffset < 0 || currentSkipOffset > offset)
- continue;
-
+ int currentSkipOffset = 0;
+ if (Q_UNLIKELY(rule->hasSkipOffset())) {
+ /**
+ * shall we skip application of this rule? two cases:
+ * - rule can't match at all => currentSkipOffset < 0
+ * - rule will only match for some higher offset => currentSkipOffset > offset
+ *
+ * we need to invalidate this if we are dynamic and have different captures then last time
+ */
+ if (rule->isDynamic() && (capturesForLastDynamicSkipOffset != stateData->topCaptures())) {
+ skipOffsets.clear();
+ } else {
+ currentSkipOffset = getSkipOffsetValue(rule);
+ if (currentSkipOffset < 0 || currentSkipOffset > offset) {
+ continue;
+ }
+ }
+ }
- const auto newResult = rule->doMatch(text, offset, stateData->topCaptures());
+ auto newResult = rule->doMatch(text, offset, stateData->topCaptures(), dynamicRegexpCache);
newOffset = newResult.offset();
/**
* update skip offset if new one rules out any later match or is larger than current one
*/
- if (newResult.skipOffset() < 0 || newResult.skipOffset() > currentSkipOffset)
- skipOffsets.insert(rule.get(), newResult.skipOffset());
+ if (newResult.skipOffset() < 0 || newResult.skipOffset() > currentSkipOffset) {
+ insertSkipOffset(rule, newResult.skipOffset());
- if (newOffset <= offset)
+ // remember new captures, if dynamic to enforce proper reset above on change!
+ if (rule->isDynamic()) {
+ capturesForLastDynamicSkipOffset = stateData->topCaptures();
+ }
+ }
+
+ if (newOffset <= offset) {
continue;
+ }
/**
* apply folding.
@@ -272,32 +310,36 @@ State AbstractHighlighter::highlightLine(const QString& text, const State &state
* - rule with endRegion + beginRegion: in endRegion, the length is 0
* - rule with lookAhead: length is 0
*/
- if (rule->endRegion().isValid() && rule->beginRegion().isValid())
+ if (rule->endRegion().isValid() && rule->beginRegion().isValid()) {
applyFolding(offset, 0, rule->endRegion());
- else if (rule->endRegion().isValid())
+ } else if (rule->endRegion().isValid()) {
applyFolding(offset, rule->isLookAhead() ? 0 : newOffset - offset, rule->endRegion());
- if (rule->beginRegion().isValid())
+ }
+ if (rule->beginRegion().isValid()) {
applyFolding(offset, rule->isLookAhead() ? 0 : newOffset - offset, rule->beginRegion());
+ }
if (rule->isLookAhead()) {
Q_ASSERT(!rule->context().isStay());
- d->switchContext(stateData, rule->context(), newResult.captures());
+ d->switchContext(stateData, rule->context(), std::move(newResult.captures()), newState, isSharedData);
isLookAhead = true;
break;
}
- d->switchContext(stateData, rule->context(), newResult.captures());
+ d->switchContext(stateData, rule->context(), std::move(newResult.captures()), newState, isSharedData);
newFormat = rule->attributeFormat().isValid() ? &rule->attributeFormat() : &stateData->topContext()->attributeFormat();
- if (newOffset == text.size() && std::dynamic_pointer_cast<LineContinue>(rule))
+ if (newOffset == text.size() && rule->isLineContinue()) {
lineContinuation = true;
+ }
break;
}
- if (isLookAhead)
+ if (isLookAhead) {
continue;
+ }
if (newOffset <= offset) { // no matching rule
if (stateData->topContext()->fallthrough()) {
- d->switchContext(stateData, stateData->topContext()->fallthroughContext(), QStringList());
+ d->switchContext(stateData, stateData->topContext()->fallthroughContext(), QStringList(), newState, isSharedData);
continue;
}
@@ -314,8 +356,9 @@ State AbstractHighlighter::highlightLine(const QString& text, const State &state
* on format change, apply the last one and switch to new one
*/
if (newFormat != currentFormat && newFormat->id() != currentFormat->id()) {
- if (offset > 0)
+ if (offset > 0) {
applyFormat(beginOffset, offset - beginOffset, *currentFormat);
+ }
beginOffset = offset;
currentFormat = newFormat;
}
@@ -331,8 +374,9 @@ State AbstractHighlighter::highlightLine(const QString& text, const State &state
/**
* apply format for remaining text, if any
*/
- if (beginOffset < offset)
+ if (beginOffset < offset) {
applyFormat(beginOffset, text.size() - beginOffset, *currentFormat);
+ }
/**
* handle line end context switches
@@ -342,8 +386,9 @@ State AbstractHighlighter::highlightLine(const QString& text, const State &state
{
int endlessLoopingCounter = 0;
while (!stateData->topContext()->lineEndContext().isStay() && !lineContinuation) {
- if (!d->switchContext(stateData, stateData->topContext()->lineEndContext(), QStringList()))
+ if (!d->switchContext(stateData, stateData->topContext()->lineEndContext(), QStringList(), newState, isSharedData)) {
break;
+ }
// guard against endless loops
++endlessLoopingCounter;
@@ -354,18 +399,30 @@ State AbstractHighlighter::highlightLine(const QString& text, const State &state
}
}
- return newState;
+ return *defData->unify.insert(newState);
}
-bool AbstractHighlighterPrivate::switchContext(StateData *data, const ContextSwitch &contextSwitch, const QStringList &captures)
+bool AbstractHighlighterPrivate::switchContext(StateData *&data, const ContextSwitch &contextSwitch, QStringList &&captures, State &state, bool &isSharedData)
{
+ const auto popCount = contextSwitch.popCount();
+ const auto context = contextSwitch.context();
+ if (popCount <= 0 && !context) {
+ return true;
+ }
+
+ // a modified state must be detached before modification
+ if (isSharedData) {
+ data = StateData::detach(state);
+ isSharedData = false;
+ }
+
// kill as many items as requested from the stack, will always keep the initial context alive!
- const bool initialContextSurvived = data->pop(contextSwitch.popCount());
+ const bool initialContextSurvived = data->pop(popCount);
// if we have a new context to add, push it
// then we always "succeed"
- if (contextSwitch.context()) {
- data->push(contextSwitch.context(), captures);
+ if (context) {
+ data->push(context, std::move(captures));
return true;
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/abstracthighlighter.h b/src/libs/3rdparty/syntax-highlighting/src/lib/abstracthighlighter.h
index 2b88729697..676a0f522a 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/abstracthighlighter.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/abstracthighlighter.h
@@ -1,43 +1,21 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_ABSTRACTHIGHLIGHTERM_H
#define KSYNTAXHIGHLIGHTING_ABSTRACTHIGHLIGHTERM_H
+#include "definition.h"
#include "ksyntaxhighlighting_export.h"
#include <QObject>
+#include <QStringView>
-#include <memory>
-
-QT_BEGIN_NAMESPACE
-class QString;
-QT_END_NAMESPACE
-
-namespace KSyntaxHighlighting {
-
+namespace KSyntaxHighlighting
+{
class AbstractHighlighterPrivate;
-class Definition;
class FoldingRegion;
class Format;
class State;
@@ -123,12 +101,8 @@ public:
protected:
AbstractHighlighter();
- AbstractHighlighter(AbstractHighlighterPrivate *dd);
+ KSYNTAXHIGHLIGHTING_NO_EXPORT explicit AbstractHighlighter(AbstractHighlighterPrivate *dd);
- // TODO KF6: add an optional void* context argument that is passed through
- // to the applyX() calls, so highlighters dealing with some form of line object
- // (such as QSyntaxHighlighter or KTextEditor) can avoid some ugly hacks to have
- // this context available in their applyX methods
/**
* Highlight the given line. Call this from your derived class
* where appropriate. This will result in any number of applyFormat()
@@ -137,14 +111,14 @@ protected:
* @param state The highlighting state handle returned by the call
* to highlightLine() for the previous line. For the very first line,
* just pass a default constructed State().
- * @returns The state of the highlighing engine after processing the
+ * @returns The state of the highlighting engine after processing the
* given line. This needs to passed into highlightLine() for the
* next line. You can store the state for efficient partial
* re-highlighting for example during editing.
*
* @see applyFormat(), applyFolding()
*/
- State highlightLine(const QString &text, const State &state);
+ State highlightLine(QStringView text, const State &state);
/**
* Reimplement this to apply formats to your output. The provided @p format
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/abstracthighlighter_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/abstracthighlighter_p.h
index bdfdf23bc1..04ac9898f8 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/abstracthighlighter_p.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/abstracthighlighter_p.h
@@ -1,24 +1,7 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_ABSTRACTHIGHLIGHTER_P_H
@@ -27,14 +10,11 @@
#include "definition.h"
#include "theme.h"
-QT_BEGIN_NAMESPACE
-class QStringList;
-QT_END_NAMESPACE
-
-namespace KSyntaxHighlighting {
-
+namespace KSyntaxHighlighting
+{
class ContextSwitch;
class StateData;
+class State;
class AbstractHighlighterPrivate
{
@@ -43,7 +23,7 @@ public:
virtual ~AbstractHighlighterPrivate();
void ensureDefinitionLoaded();
- bool switchContext(StateData* data, const ContextSwitch &contextSwitch, const QStringList &captures);
+ bool switchContext(StateData *&data, const ContextSwitch &contextSwitch, QStringList &&captures, State &state, bool &isSharedData);
Definition m_definition;
Theme m_theme;
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/ansihighlighter.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/ansihighlighter.cpp
new file mode 100644
index 0000000000..e9bea02d1c
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/ansihighlighter.cpp
@@ -0,0 +1,1422 @@
+/*
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
+*/
+
+#include "ansihighlighter.h"
+#include "abstracthighlighter_p.h"
+#include "context_p.h"
+#include "definition.h"
+#include "definition_p.h"
+#include "format.h"
+#include "ksyntaxhighlighting_logging.h"
+#include "state.h"
+#include "state_p.h"
+#include "theme.h"
+
+#include <QColor>
+#include <QFile>
+#include <QFileInfo>
+#include <QHash>
+#include <QIODevice>
+#include <QTextStream>
+
+#include <cmath>
+#include <vector>
+
+using namespace KSyntaxHighlighting;
+
+namespace
+{
+struct Lab {
+ double L;
+ double a;
+ double b;
+};
+
+// clang-format off
+ // xterm color reference
+ // constexpr Rgb888 xterm256Colors[] {
+ // {0x00, 0x00, 0x00}, {0x80, 0x00, 0x00}, {0x00, 0x80, 0x00}, {0x80, 0x80, 0x00},
+ // {0x00, 0x00, 0x80}, {0x80, 0x00, 0x80}, {0x00, 0x80, 0x80}, {0xc0, 0xc0, 0xc0},
+ // {0x80, 0x80, 0x80}, {0xff, 0x00, 0x00}, {0x00, 0xff, 0x00}, {0xff, 0xff, 0x00},
+ // {0x00, 0x00, 0xff}, {0xff, 0x00, 0xff}, {0x00, 0xff, 0xff}, {0xff, 0xff, 0xff},
+ // {0x00, 0x00, 0x00}, {0x00, 0x00, 0x5f}, {0x00, 0x00, 0x87}, {0x00, 0x00, 0xaf},
+ // {0x00, 0x00, 0xd7}, {0x00, 0x00, 0xff}, {0x00, 0x5f, 0x00}, {0x00, 0x5f, 0x5f},
+ // {0x00, 0x5f, 0x87}, {0x00, 0x5f, 0xaf}, {0x00, 0x5f, 0xd7}, {0x00, 0x5f, 0xff},
+ // {0x00, 0x87, 0x00}, {0x00, 0x87, 0x5f}, {0x00, 0x87, 0x87}, {0x00, 0x87, 0xaf},
+ // {0x00, 0x87, 0xd7}, {0x00, 0x87, 0xff}, {0x00, 0xaf, 0x00}, {0x00, 0xaf, 0x5f},
+ // {0x00, 0xaf, 0x87}, {0x00, 0xaf, 0xaf}, {0x00, 0xaf, 0xd7}, {0x00, 0xaf, 0xff},
+ // {0x00, 0xd7, 0x00}, {0x00, 0xd7, 0x5f}, {0x00, 0xd7, 0x87}, {0x00, 0xd7, 0xaf},
+ // {0x00, 0xd7, 0xd7}, {0x00, 0xd7, 0xff}, {0x00, 0xff, 0x00}, {0x00, 0xff, 0x5f},
+ // {0x00, 0xff, 0x87}, {0x00, 0xff, 0xaf}, {0x00, 0xff, 0xd7}, {0x00, 0xff, 0xff},
+ // {0x5f, 0x00, 0x00}, {0x5f, 0x00, 0x5f}, {0x5f, 0x00, 0x87}, {0x5f, 0x00, 0xaf},
+ // {0x5f, 0x00, 0xd7}, {0x5f, 0x00, 0xff}, {0x5f, 0x5f, 0x00}, {0x5f, 0x5f, 0x5f},
+ // {0x5f, 0x5f, 0x87}, {0x5f, 0x5f, 0xaf}, {0x5f, 0x5f, 0xd7}, {0x5f, 0x5f, 0xff},
+ // {0x5f, 0x87, 0x00}, {0x5f, 0x87, 0x5f}, {0x5f, 0x87, 0x87}, {0x5f, 0x87, 0xaf},
+ // {0x5f, 0x87, 0xd7}, {0x5f, 0x87, 0xff}, {0x5f, 0xaf, 0x00}, {0x5f, 0xaf, 0x5f},
+ // {0x5f, 0xaf, 0x87}, {0x5f, 0xaf, 0xaf}, {0x5f, 0xaf, 0xd7}, {0x5f, 0xaf, 0xff},
+ // {0x5f, 0xd7, 0x00}, {0x5f, 0xd7, 0x5f}, {0x5f, 0xd7, 0x87}, {0x5f, 0xd7, 0xaf},
+ // {0x5f, 0xd7, 0xd7}, {0x5f, 0xd7, 0xff}, {0x5f, 0xff, 0x00}, {0x5f, 0xff, 0x5f},
+ // {0x5f, 0xff, 0x87}, {0x5f, 0xff, 0xaf}, {0x5f, 0xff, 0xd7}, {0x5f, 0xff, 0xff},
+ // {0x87, 0x00, 0x00}, {0x87, 0x00, 0x5f}, {0x87, 0x00, 0x87}, {0x87, 0x00, 0xaf},
+ // {0x87, 0x00, 0xd7}, {0x87, 0x00, 0xff}, {0x87, 0x5f, 0x00}, {0x87, 0x5f, 0x5f},
+ // {0x87, 0x5f, 0x87}, {0x87, 0x5f, 0xaf}, {0x87, 0x5f, 0xd7}, {0x87, 0x5f, 0xff},
+ // {0x87, 0x87, 0x00}, {0x87, 0x87, 0x5f}, {0x87, 0x87, 0x87}, {0x87, 0x87, 0xaf},
+ // {0x87, 0x87, 0xd7}, {0x87, 0x87, 0xff}, {0x87, 0xaf, 0x00}, {0x87, 0xaf, 0x5f},
+ // {0x87, 0xaf, 0x87}, {0x87, 0xaf, 0xaf}, {0x87, 0xaf, 0xd7}, {0x87, 0xaf, 0xff},
+ // {0x87, 0xd7, 0x00}, {0x87, 0xd7, 0x5f}, {0x87, 0xd7, 0x87}, {0x87, 0xd7, 0xaf},
+ // {0x87, 0xd7, 0xd7}, {0x87, 0xd7, 0xff}, {0x87, 0xff, 0x00}, {0x87, 0xff, 0x5f},
+ // {0x87, 0xff, 0x87}, {0x87, 0xff, 0xaf}, {0x87, 0xff, 0xd7}, {0x87, 0xff, 0xff},
+ // {0xaf, 0x00, 0x00}, {0xaf, 0x00, 0x5f}, {0xaf, 0x00, 0x87}, {0xaf, 0x00, 0xaf},
+ // {0xaf, 0x00, 0xd7}, {0xaf, 0x00, 0xff}, {0xaf, 0x5f, 0x00}, {0xaf, 0x5f, 0x5f},
+ // {0xaf, 0x5f, 0x87}, {0xaf, 0x5f, 0xaf}, {0xaf, 0x5f, 0xd7}, {0xaf, 0x5f, 0xff},
+ // {0xaf, 0x87, 0x00}, {0xaf, 0x87, 0x5f}, {0xaf, 0x87, 0x87}, {0xaf, 0x87, 0xaf},
+ // {0xaf, 0x87, 0xd7}, {0xaf, 0x87, 0xff}, {0xaf, 0xaf, 0x00}, {0xaf, 0xaf, 0x5f},
+ // {0xaf, 0xaf, 0x87}, {0xaf, 0xaf, 0xaf}, {0xaf, 0xaf, 0xd7}, {0xaf, 0xaf, 0xff},
+ // {0xaf, 0xd7, 0x00}, {0xaf, 0xd7, 0x5f}, {0xaf, 0xd7, 0x87}, {0xaf, 0xd7, 0xaf},
+ // {0xaf, 0xd7, 0xd7}, {0xaf, 0xd7, 0xff}, {0xaf, 0xff, 0x00}, {0xaf, 0xff, 0x5f},
+ // {0xaf, 0xff, 0x87}, {0xaf, 0xff, 0xaf}, {0xaf, 0xff, 0xd7}, {0xaf, 0xff, 0xff},
+ // {0xd7, 0x00, 0x00}, {0xd7, 0x00, 0x5f}, {0xd7, 0x00, 0x87}, {0xd7, 0x00, 0xaf},
+ // {0xd7, 0x00, 0xd7}, {0xd7, 0x00, 0xff}, {0xd7, 0x5f, 0x00}, {0xd7, 0x5f, 0x5f},
+ // {0xd7, 0x5f, 0x87}, {0xd7, 0x5f, 0xaf}, {0xd7, 0x5f, 0xd7}, {0xd7, 0x5f, 0xff},
+ // {0xd7, 0x87, 0x00}, {0xd7, 0x87, 0x5f}, {0xd7, 0x87, 0x87}, {0xd7, 0x87, 0xaf},
+ // {0xd7, 0x87, 0xd7}, {0xd7, 0x87, 0xff}, {0xd7, 0xaf, 0x00}, {0xd7, 0xaf, 0x5f},
+ // {0xd7, 0xaf, 0x87}, {0xd7, 0xaf, 0xaf}, {0xd7, 0xaf, 0xd7}, {0xd7, 0xaf, 0xff},
+ // {0xd7, 0xd7, 0x00}, {0xd7, 0xd7, 0x5f}, {0xd7, 0xd7, 0x87}, {0xd7, 0xd7, 0xaf},
+ // {0xd7, 0xd7, 0xd7}, {0xd7, 0xd7, 0xff}, {0xd7, 0xff, 0x00}, {0xd7, 0xff, 0x5f},
+ // {0xd7, 0xff, 0x87}, {0xd7, 0xff, 0xaf}, {0xd7, 0xff, 0xd7}, {0xd7, 0xff, 0xff},
+ // {0xff, 0x00, 0x00}, {0xff, 0x00, 0x5f}, {0xff, 0x00, 0x87}, {0xff, 0x00, 0xaf},
+ // {0xff, 0x00, 0xd7}, {0xff, 0x00, 0xff}, {0xff, 0x5f, 0x00}, {0xff, 0x5f, 0x5f},
+ // {0xff, 0x5f, 0x87}, {0xff, 0x5f, 0xaf}, {0xff, 0x5f, 0xd7}, {0xff, 0x5f, 0xff},
+ // {0xff, 0x87, 0x00}, {0xff, 0x87, 0x5f}, {0xff, 0x87, 0x87}, {0xff, 0x87, 0xaf},
+ // {0xff, 0x87, 0xd7}, {0xff, 0x87, 0xff}, {0xff, 0xaf, 0x00}, {0xff, 0xaf, 0x5f},
+ // {0xff, 0xaf, 0x87}, {0xff, 0xaf, 0xaf}, {0xff, 0xaf, 0xd7}, {0xff, 0xaf, 0xff},
+ // {0xff, 0xd7, 0x00}, {0xff, 0xd7, 0x5f}, {0xff, 0xd7, 0x87}, {0xff, 0xd7, 0xaf},
+ // {0xff, 0xd7, 0xd7}, {0xff, 0xd7, 0xff}, {0xff, 0xff, 0x00}, {0xff, 0xff, 0x5f},
+ // {0xff, 0xff, 0x87}, {0xff, 0xff, 0xaf}, {0xff, 0xff, 0xd7}, {0xff, 0xff, 0xff},
+ // {0x08, 0x08, 0x08}, {0x12, 0x12, 0x12}, {0x1c, 0x1c, 0x1c}, {0x26, 0x26, 0x26},
+ // {0x30, 0x30, 0x30}, {0x3a, 0x3a, 0x3a}, {0x44, 0x44, 0x44}, {0x4e, 0x4e, 0x4e},
+ // {0x58, 0x58, 0x58}, {0x62, 0x62, 0x62}, {0x6c, 0x6c, 0x6c}, {0x76, 0x76, 0x76},
+ // {0x80, 0x80, 0x80}, {0x8a, 0x8a, 0x8a}, {0x94, 0x94, 0x94}, {0x9e, 0x9e, 0x9e},
+ // {0xa8, 0xa8, 0xa8}, {0xb2, 0xb2, 0xb2}, {0xbc, 0xbc, 0xbc}, {0xc6, 0xc6, 0xc6},
+ // {0xd0, 0xd0, 0xd0}, {0xda, 0xda, 0xda}, {0xe4, 0xe4, 0xe4}, {0xee, 0xee, 0xee},
+ // };
+
+ // xterm color represented in Oklab
+ // see rgbToOklab()
+ constexpr Lab xterm240_Oklabs[] {
+ // ignore the first 16 colors as they are unpredictable (user configurable)
+ // {0x0p+0, 0x0p+0, 0x0p+0},
+ // {0x1.2d5e6bee2c4f6p+5, 0x1.af99c042ea40cp+3, 0x1.e2f6ba84d2d25p+2},
+ // {0x1.9fcc4f3622914p+5, -0x1.c105bf1d2d218p+3, 0x1.586870aec30a4p+3},
+ // {0x1.d089126c75579p+5, -0x1.12107f2e3119p+2, 0x1.7d020b82d4b9cp+3},
+ // {0x1.b1ce15c4fcb51p+4, -0x1.f203762eb1242p+0, -0x1.2b150ae3c14bep+4},
+ // {0x1.50bc446f31833p+5, 0x1.078a1150b431ap+4, -0x1.44d35b3de7eafp+3},
+ // {0x1.b27d96eb8f471p+5, -0x1.1ee8867b0e065p+3, -0x1.2f2f18261c69ap+1},
+ // {0x1.431e523cc2f4dp+6, -0x1.ad694c777b8p-11, -0x1.c7c3ea0c32ep-8},
+ // {0x1.dfe5855ae1528p+5, -0x1.3ee1ad40618p-11, -0x1.5273b9784a3p-8},
+ // {0x1.f663baac570efp+5, 0x1.67be9f690c994p+4, 0x1.928e76c3750aep+3},
+ // {0x1.5a92b1ff8af32p+6, -0x1.76441609cfb3ap+4, 0x1.1f1186319beaap+4},
+ // {0x1.83323c984ee7ap+6, -0x1.c8df58716d4cbp+2, 0x1.3d9335b5d20f9p+4},
+ // {0x1.69950098864afp+5, -0x1.9f19c42a8c674p+1, -0x1.f293e325bec2ep+4},
+ // {0x1.18ac5c68852cdp+6, 0x1.b753a9bd5dbeep+4, -0x1.0ebf0dff35bfbp+4},
+ // {0x1.6a27499e4d3d6p+6, -0x1.de4892c062f8p+3, -0x1.f96a59bc9de4cp+1},
+ // {0x1.8ffffbb77c76ap+6, -0x1.09cab717214p-10, -0x1.1a1aa7765a7p-7},
+ // 240 colors mode
+ {0x0p+0, 0x0p+0, 0x0p+0},
+ {0x1.5f181b2779cap+4, -0x1.930f78e22f09ap+0, -0x1.e41dbddfca08ap+3},
+ {0x1.c2d3be821f882p+4, -0x1.02c70dd8af008p+1, -0x1.36d1623919ffp+4},
+ {0x1.10a39beeb2926p+5, -0x1.38fe38b7dab01p+1, -0x1.77efa95d520b4p+4},
+ {0x1.3de43fe8d92efp+5, -0x1.6cf188320fff2p+1, -0x1.b655790a27192p+4},
+ {0x1.69950098864afp+5, -0x1.9f19c42a8c674p+1, -0x1.f293e325bec2ep+4},
+ {0x1.50853f46a9f9ep+5, -0x1.6b6901a80404fp+3, 0x1.16bdec11e60d8p+3},
+ {0x1.5fa625f2c3fbcp+5, -0x1.d0691ed5aa7ap+2, -0x1.eac16e8cb9241p+0},
+ {0x1.6f4222fc3f0dbp+5, -0x1.61b0e7ffa5e8ap+2, -0x1.05e8906ee23d7p+3},
+ {0x1.83e99e6187f46p+5, -0x1.1a61c98b895p+2, -0x1.c3da094bbcf2fp+3},
+ {0x1.9ca47689a503dp+5, -0x1.e9259e3439104p+1, -0x1.396812c634de3p+4},
+ {0x1.b872b55db6144p+5, -0x1.ccd50a2fd6662p+1, -0x1.89dec898ec996p+4},
+ {0x1.b01d15d276ef1p+5, -0x1.d2a4448f6ccacp+3, 0x1.65ec167dcb488p+3},
+ {0x1.b9760adf5c444p+5, -0x1.6a3760af4b6c4p+3, 0x1.a26bb322495e2p+1},
+ {0x1.c38a22a31944p+5, -0x1.2a2a93c4b741p+3, -0x1.3b14a376ffbecp+1},
+ {0x1.d185a36cfcd6ep+5, -0x1.e760f29e8fcb4p+2, -0x1.0bf936f2a6743p+3},
+ {0x1.e321d754f2b44p+5, -0x1.95a749a95debp+2, -0x1.c3928e31b9cf8p+3},
+ {0x1.f7eb8d9ad84b9p+5, -0x1.5e28b7cc193ddp+2, -0x1.38bda7259441ep+4},
+ {0x1.0552717cdb82p+6, -0x1.1a33f75f67b0fp+4, 0x1.b0e8bd24c3fdep+3},
+ {0x1.08898a5b7805dp+6, -0x1.e29bd3071d97ap+3, 0x1.e0b5994e0238ep+2},
+ {0x1.0c10ad1b87866p+6, -0x1.a54f2215371a5p+3, 0x1.45758e5457898p+1},
+ {0x1.1111e924447e9p+6, -0x1.68a24e1d5efe1p+3, -0x1.7d178a838ea32p+1},
+ {0x1.178bb94d30a5cp+6, -0x1.335d7d75dd017p+3, -0x1.13f78c003ba13p+3},
+ {0x1.1f6aa49fcff2p+6, -0x1.0830d167759a4p+3, -0x1.c578e33f21d88p+3},
+ {0x1.30b236b57ac86p+6, -0x1.490afbe3d8e11p+4, 0x1.f8c35fbb689dap+3},
+ {0x1.331144aae0ad4p+6, -0x1.289bac3eeb83p+4, 0x1.626ea3a63748p+3},
+ {0x1.35b09f5c62a7ap+6, -0x1.0d33e3db59803p+4, 0x1.b66836d6f7ff6p+2},
+ {0x1.3973d5b39baa4p+6, -0x1.de87e61f0c86ap+3, 0x1.de8cf8346969cp+0},
+ {0x1.3e64dbeab2c38p+6, -0x1.a47dea5d85dbbp+3, -0x1.bc586cdcba45p+1},
+ {0x1.44815d7f73a41p+6, -0x1.706c35b4850ecp+3, -0x1.1d13e731dfc5bp+3},
+ {0x1.5a92b1ff8af32p+6, -0x1.76441609cfb3ap+4, 0x1.1f1186319beaap+4},
+ {0x1.5c6885a0ab4cap+6, -0x1.5c0bf4148d03dp+4, 0x1.c5b4a75d0a01ep+3},
+ {0x1.5e72281eb918cp+6, -0x1.4422b7d2ad44bp+4, 0x1.5305a49da3492p+3},
+ {0x1.61631d5752788p+6, -0x1.282b31110d79dp+4, 0x1.8b1a60b561753p+2},
+ {0x1.65488920f4795p+6, -0x1.0b1a0cfacacfbp+4, 0x1.3d72a3bb176fp+0},
+ {0x1.6a27499e4d3d6p+6, -0x1.de4892c062f8p+3, -0x1.f96a59bc9de4cp+1},
+ {0x1.e7d1475ebe201p+4, 0x1.5d4f5ebb6cf8ep+3, 0x1.86e150bac0e61p+2},
+ {0x1.10883ee613f6bp+5, 0x1.aa957aceb4328p+3, -0x1.06e4a6bcf37ep+3},
+ {0x1.2a507c82ee1e7p+5, 0x1.880d450b132c9p+3, -0x1.c81b5ba73664ap+3},
+ {0x1.4902475f20191p+5, 0x1.4f4dfeda4e013p+3, -0x1.38d6c960a7255p+4},
+ {0x1.6aa42ff68fb65p+5, 0x1.1116140836dp+3, -0x1.84f2dbb4bf7b2p+4},
+ {0x1.8def7d6adc3d5p+5, 0x1.ab6406f65a5b9p+2, -0x1.caee116cbc66ep+4},
+ {0x1.77f724f99d0c9p+5, -0x1.bb9ee0e906bf2p+1, 0x1.345d15707c9e4p+3},
+ {0x1.8465d178eda3bp+5, -0x1.021519c6d64p-11, -0x1.11ebea130b3p-8},
+ {0x1.917d476fba08dp+5, 0x1.84e9b4b9a4816p+0, -0x1.89910d2df7414p+2},
+ {0x1.a32d016052029p+5, 0x1.352fbc1045df3p+1, -0x1.847eed4ab1e03p+3},
+ {0x1.b8cfd7baeb72ap+5, 0x1.5d6575ced028ep+1, -0x1.1bff70d82f589p+4},
+ {0x1.d1a20bfd91dbap+5, 0x1.4de285fe39a4dp+1, -0x1.6f381fca63bcep+4},
+ {0x1.c99e943a2d79fp+5, -0x1.219ec15c5de22p+3, 0x1.78f2db7cd8205p+3},
+ {0x1.d20af5c832c06p+5, -0x1.86c31353f2968p+2, 0x1.15f4d958ffb6ep+2},
+ {0x1.db2d2b76b7db4p+5, -0x1.107aa185fa178p+2, -0x1.3a545f6bb32fep+0},
+ {0x1.e7ef429658179p+5, -0x1.58a57459e2113p+1, -0x1.c50012145074dp+2},
+ {0x1.f821bad822a9ep+5, -0x1.8ea06e2a9e1f6p+0, -0x1.9a5cf82ebb612p+3},
+ {0x1.05b4f2f9696abp+6, -0x1.b3645fe7f9294p-1, -0x1.24f471b4e8b62p+4},
+ {0x1.0e4a1f1b1ddcep+6, -0x1.b32bbdf7204c1p+3, 0x1.be3e8e0b04a1fp+3},
+ {0x1.114fcf04f35b3p+6, -0x1.6696d5115c7e4p+3, 0x1.058704ea2708p+3},
+ {0x1.14a2558b5b6c7p+6, -0x1.2c7e211429d81p+3, 0x1.a9f809f8ee4dfp+1},
+ {0x1.195c00cf22a51p+6, -0x1.e58de99c40fb6p+2, -0x1.0e4f6479339a5p+1},
+ {0x1.1f7e4eea78cb7p+6, -0x1.809e6530a25d5p+2, -0x1.ee2cfac349d5ep+2},
+ {0x1.26f9f5da0f33bp+6, -0x1.2ffe0404fe1e4p+2, -0x1.a87af760f19c2p+3},
+ {0x1.37635555b270cp+6, -0x1.17deced6d377ep+4, 0x1.0159387931185p+4},
+ {0x1.39aa8b444a1c7p+6, -0x1.f1b4258b74e35p+3, 0x1.70a1d9ed49333p+3},
+ {0x1.3c30003dc4bdap+6, -0x1.bcf061cd62971p+3, 0x1.d845b8f464806p+2},
+ {0x1.3fcf0a7e4fdb8p+6, -0x1.8316f8fb04f1cp+3, 0x1.3be7d797ab219p+1},
+ {0x1.4492530767fa4p+6, -0x1.4af657f86bc35p+3, -0x1.69ccecfbead6p+1},
+ {0x1.4a78e7a0304fbp+6, -0x1.18be182ded159p+3, -0x1.07ac09ccdfff4p+3},
+ {0x1.5fc9ac083946p+6, -0x1.4f840d59cd9aep+4, 0x1.22ef620ec7775p+4},
+ {0x1.6192b2ae205fp+6, -0x1.361d4509435d5p+4, 0x1.cfe893676e62ep+3},
+ {0x1.638e487d443e1p+6, -0x1.1edcf418396fcp+4, 0x1.5f105a3f7b33p+3},
+ {0x1.666b5164f3799p+6, -0x1.03988ade0159ep+4, 0x1.a6a2e5baac692p+2},
+ {0x1.6a3706fa48d42p+6, -0x1.ce6b98f424c54p+3, 0x1.b67fa4fafc2e8p+0},
+ {0x1.6ef6b7860b53fp+6, -0x1.97ce09961f218p+3, -0x1.b926ed0fbe897p+1},
+ {0x1.3931bb83cb32dp+5, 0x1.c0894426a198dp+3, 0x1.f5ea328bf4058p+2},
+ {0x1.4b9e77eb58ebfp+5, 0x1.108cfd41d7919p+4, -0x1.0eaf04c8d3b35p+2},
+ {0x1.5df2d7bacd40ap+5, 0x1.11e15f9b225acp+4, -0x1.51924b9c514f3p+3},
+ {0x1.756bc7d79519bp+5, 0x1.03a63c750b36bp+4, -0x1.052fc194cf52p+4},
+ {0x1.90b3e1d276c5dp+5, 0x1.d79fd75fb3811p+3, -0x1.58e6a7a1da1fcp+4},
+ {0x1.aea5654d2d631p+5, 0x1.9f14550c88c57p+3, -0x1.a57e86563dbcap+4},
+ {0x1.9b6948efcb1e8p+5, 0x1.dddaa142e7b3ap+0, 0x1.4f83ba256abcfp+3},
+ {0x1.a5f9bfdb796c8p+5, 0x1.3de3647070a5bp+2, 0x1.b416b1e2a3817p+0},
+ {0x1.b1407c7a80b46p+5, 0x1.9d8674f672f17p+2, -0x1.112d7835e0443p+2},
+ {0x1.c0b6552db89b1p+5, 0x1.d8c2a5262b398p+2, -0x1.480f10f6d0b5fp+3},
+ {0x1.d3edc2b5ca1f7p+5, 0x1.edbf49a0778e4p+2, -0x1.fe5ca96caae15p+3},
+ {0x1.ea519f7b4bf8cp+5, 0x1.e35c8bfe38bf9p+2, -0x1.5483ed4b7e5ebp+4},
+ {0x1.e2c36ca30962cp+5, -0x1.1cd1878e91233p+2, 0x1.8bf558e4fbde3p+3},
+ {0x1.ea67769abd5c1p+5, -0x1.c053e5b6c3b66p+0, 0x1.59302161a2865p+2},
+ {0x1.f2ba2dd022991p+5, -0x1.4b64e809e68p-11, -0x1.5fbb8b338b8p-8},
+ {0x1.fe6b844bbf20fp+5, 0x1.8040f07e39554p+0, -0x1.7196ffd7de002p+2},
+ {0x1.06aeef460087dp+6, 0x1.4afa79e390244p+1, -0x1.705a7c8493135p+3},
+ {0x1.0fa5554a5c955p+6, 0x1.9dea7336ee828p+1, -0x1.1089bb9ca046ep+4},
+ {0x1.178e9051b853ep+6, -0x1.3b3b8e6c52f1cp+3, 0x1.cc268b9a4e157p+3},
+ {0x1.1a65db5c4c0d1p+6, -0x1.e697a167b2b86p+2, 0x1.1b4d0d1ca381dp+3},
+ {0x1.1d86bd983524p+6, -0x1.77ccb1bcef226p+2, 0x1.08e1384d16e75p+2},
+ {0x1.21fc7ad985402p+6, -0x1.08e3f099fb00fp+2, -0x1.363e6fbac8902p+0},
+ {0x1.27cb1d6dd9434p+6, -0x1.4f7ef424b1025p+1, -0x1.b1af4c945ce98p+2},
+ {0x1.2ee710ec206cfp+6, -0x1.6ac7f2787bda1p+0, -0x1.89e8c18db3849p+3},
+ {0x1.3e7c86695f695p+6, -0x1.ceac064fd3a97p+3, 0x1.06a67a74ff4cp+4},
+ {0x1.40ac0504d65f2p+6, -0x1.935bda5136fdbp+3, 0x1.7fa8ea5683dffp+3},
+ {0x1.4317a9d652f14p+6, -0x1.608608dcc2607p+3, 0x1.fc21edd271f8bp+2},
+ {0x1.46928cf49114ap+6, -0x1.2883a0410f74bp+3, 0x1.8d4b911a8102bp+1},
+ {0x1.4b27f53f2d1c8p+6, -0x1.e40f8922e26b2p+2, -0x1.11ca0bf0acee9p+1},
+ {0x1.50d83b6f7788bp+6, -0x1.82a0417f98419p+2, -0x1.e18432a6676edp+2},
+ {0x1.6567db05a012cp+6, -0x1.27d55f8b64f16p+4, 0x1.271e9400a42e4p+4},
+ {0x1.6723b3feab73ap+6, -0x1.0f412c5a09d1ap+4, 0x1.dae43f7f7eb6ep+3},
+ {0x1.6910cf423acf1p+6, -0x1.f152d3d18c3b3p+3, 0x1.6c04c44876eb2p+3},
+ {0x1.6bd948eca017fp+6, -0x1.bc29d2c53f57ap+3, 0x1.c44a28d107a62p+2},
+ {0x1.6f8a69cf10b1p+6, -0x1.84b224c6d040cp+3, 0x1.1c910c629db67p+1},
+ {0x1.7429ebc4e406dp+6, -0x1.4f4a0b735c531p+3, -0x1.73a39097eadefp+1},
+ {0x1.7acf7694f8c6p+5, 0x1.0f40ef4bed7e8p+4, 0x1.2f88d81b23f2ep+3},
+ {0x1.87b52573912c8p+5, 0x1.3e9cadbae2c71p+4, -0x1.21c127942ffc2p-1},
+ {0x1.95308092c646cp+5, 0x1.4bd8ec93cbe28p+4, -0x1.b1ad2fc6cd5ccp+2},
+ {0x1.a743d71712a69p+5, 0x1.4b428f09e4704p+4, -0x1.984b766ca527bp+3},
+ {0x1.bd35da1ada54ap+5, 0x1.3ee7b023f1a36p+4, -0x1.252f399063a3p+4},
+ {0x1.d638af110e2bfp+5, 0x1.2a6369728426p+4, -0x1.777a4238ecc9cp+4},
+ {0x1.c5db1e678f93bp+5, 0x1.be23ef0d11b9fp+2, 0x1.706e52e6555aep+3},
+ {0x1.ceab15b1e5e2cp+5, 0x1.376364145a451p+3, 0x1.d7fd2a954eedcp+1},
+ {0x1.d8302a174d63dp+5, 0x1.67a05469bf7c1p+3, -0x1.0236bbe6ffddap+1},
+ {0x1.e56c6a282c6fep+5, 0x1.8915eed9a5994p+3, -0x1.fb2d49a257381p+2},
+ {0x1.f622a3ef65e7fp+5, 0x1.98638aed6156bp+3, -0x1.b57e66e36241ap+3},
+ {0x1.04f5c4d9c25cfp+6, 0x1.9710ff57a7b7ap+3, -0x1.32004fe7bd5b5p+4},
+ {0x1.018127d59826cp+6, 0x1.1e619caaa3a8fp-1, 0x1.a49bd0215a96dp+3},
+ {0x1.04e57659b4cf6p+6, 0x1.8024718692a3cp+1, 0x1.addd1b874609p+2},
+ {0x1.089bd543a0e63p+6, 0x1.2a7652607e02cp+2, 0x1.8d85013677bap+0},
+ {0x1.0ddb424d04fadp+6, 0x1.889c9b8223651p+2, -0x1.05aa1bc86a9d4p+2},
+ {0x1.149da8fbd8909p+6, 0x1.ce4542c130c31p+2, -0x1.3934aac98d184p+3},
+ {0x1.1cca409e32c6dp+6, 0x1.f855300b25ba5p+2, -0x1.eac45e49f86bap+3},
+ {0x1.23f3e081f0e6fp+6, -0x1.587d5d644e818p+2, 0x1.deea03a7e9e2p+3},
+ {0x1.26935d2d5bb58p+6, -0x1.a6ab45ebb79ddp+1, 0x1.38265c4c6d156p+3},
+ {0x1.29783d4927cb6p+6, -0x1.aa081e388f0b6p+0, 0x1.4de28afb99798p+2},
+ {0x1.2d9b5abdd0df6p+6, -0x1.90d2c34c4c8p-11, -0x1.a96c3913736p-8},
+ {0x1.3303704c60227p+6, 0x1.7842d686da2p+0, -0x1.6001098473213p+2},
+ {0x1.39a911d79bf6cp+6, 0x1.51ae39272f6fp+1, -0x1.604eff9e13224p+3},
+ {0x1.483b66bb75f41p+6, -0x1.53e4a65e5bd0ep+3, 0x1.0dfa4f4feec89p+4},
+ {0x1.4a4cab5bdb777p+6, -0x1.1bf0c7950b46ap+3, 0x1.9433415e2e559p+3},
+ {0x1.4c9756fc325a6p+6, -0x1.d6e499fe26166p+2, 0x1.1693b52228314p+3},
+ {0x1.4fe3e8502420ap+6, -0x1.6b29463056a7ep+2, 0x1.fcea504279e1bp+1},
+ {0x1.543e4f84c51c9p+6, -0x1.01c201c3fcfbep+2, -0x1.311b349896504p+0},
+ {0x1.59a86b698fe17p+6, -0x1.4697ac30fd276p+1, -0x1.a218614573a54p+2},
+ {0x1.6d3f94c53849cp+6, -0x1.e750c3b6abf94p+3, 0x1.2cfd8e3a3298cp+4},
+ {0x1.6ee9ffc7c561bp+6, -0x1.b847cb4caca9ap+3, 0x1.ea32a397a5ea3p+3},
+ {0x1.70c3ef56a2364p+6, -0x1.8cc812a446223p+3, 0x1.7e0dc7e1aa4eep+3},
+ {0x1.737125604c02dp+6, -0x1.5959ff3792892p+3, 0x1.ed9e6884d6db8p+2},
+ {0x1.76fef3ccb11e4p+6, -0x1.2379a952d29eap+3, 0x1.77d044e094287p+1},
+ {0x1.7b739668b58adp+6, -0x1.def62d62ac5d3p+2, -0x1.1242c0559f9b9p+1},
+ {0x1.b9af6705b3e1ap+5, 0x1.3c46b4e4aa724p+4, 0x1.61ea416f62116p+3},
+ {0x1.c34652a386648p+5, 0x1.673d5400dac6ap+4, 0x1.575529f864e4ap+1},
+ {0x1.cd90a5a7155efp+5, 0x1.7aac661c86347p+4, -0x1.97f5d2781d1d2p+1},
+ {0x1.dbc2183aadc6dp+5, 0x1.83f34257f81ecp+4, -0x1.24c7f27451716p+3},
+ {0x1.ed84b050fd5fep+5, 0x1.823e0b9a9286fp+4, -0x1.dc10370a896a1p+3},
+ {0x1.012d3f7585d8bp+6, 0x1.772916c92c8cp+4, -0x1.444d46ad4a3f5p+4},
+ {0x1.f498a57d50c8dp+5, 0x1.72c50647a1b01p+3, 0x1.9501b7bc92a26p+3},
+ {0x1.fbec5add8799fp+5, 0x1.c10937ac1ff0cp+3, 0x1.71506b03a0cfcp+2},
+ {0x1.01f4d75996fc6p+6, 0x1.f168c838b27a5p+3, 0x1.a2871b4170f08p-2},
+ {0x1.07934868d42f1p+6, 0x1.0ba82dcee8d5fp+4, -0x1.55f50c12fdb69p+2},
+ {0x1.0ec4c024626fep+6, 0x1.16b4701bb2cep+4, -0x1.627c9a1b01177p+3},
+ {0x1.1768d8b0aa031p+6, 0x1.199f4e2e9e65fp+4, -0x1.09c1c4e924702p+4},
+ {0x1.14522a4a9a7e2p+6, 0x1.6020b0a7ecac7p+2, 0x1.c1a8f99df62d9p+3},
+ {0x1.174b930ef061ap+6, 0x1.ec83068a9839fp+2, 0x1.06f134f7cc07ep+3},
+ {0x1.1a90921a38fe7p+6, 0x1.28d89eb448a2cp+3, 0x1.ab5fe99a94265p+1},
+ {0x1.1f36b9520ad75p+6, 0x1.57ace8397fb96p+3, -0x1.0feb2da7758d4p+1},
+ {0x1.253f2b741784fp+6, 0x1.7c087d08384b1p+3, -0x1.efdb49212f992p+2},
+ {0x1.2c9a998952cf1p+6, 0x1.9366b5a4edd8ap+3, -0x1.a9848b6099745p+3},
+ {0x1.330541ae3e385p+6, -0x1.39e238ea7801p-1, 0x1.f5ec9f058d778p+3},
+ {0x1.3568ff8940412p+6, 0x1.4b2aea6a2b17bp+0, 0x1.5aadb9534e15p+3},
+ {0x1.380d495b09ffp+6, 0x1.6b2260c162acep+1, 0x1.a0b3e40fdedfp+2},
+ {0x1.3bd6db55a86abp+6, 0x1.1c0894632c07ep+2, 0x1.73acfbc73a52cp+0},
+ {0x1.40ced5740b6ecp+6, 0x1.784d8d5bd59bap+2, -0x1.f87f29ae0432ap+1},
+ {0x1.46f1d56d6a627p+6, 0x1.c2acec311d85p+2, -0x1.2d078d1d0ec93p+3},
+ {0x1.54692a261ff77p+6, -0x1.91aafde5841e2p+2, 0x1.1733b7c5acf09p+4},
+ {0x1.5657fb0185f53p+6, -0x1.292fef1c6094ap+2, 0x1.adacb9827ba1ep+3},
+ {0x1.587cf8c168362p+6, -0x1.9aa045411de21p+1, 0x1.34f47fa15abacp+3},
+ {0x1.5b946ca219efdp+6, -0x1.98465c0dc7b2ap+0, 0x1.43ded9d06d2f2p+2},
+ {0x1.5faadb5249c01p+6, -0x1.d35a0bdd6ap-11, -0x1.f008c176226p-8},
+ {0x1.64c3b31613c93p+6, 0x1.6ffd305ac700dp+0, -0x1.52580b551209ep+2},
+ {0x1.773c645e32d2dp+6, -0x1.6c001f7fba478p+3, 0x1.3482f283026fp+4},
+ {0x1.78d215b19332bp+6, -0x1.3f6c1cce8d703p+3, 0x1.fda06ae8dbf53p+3},
+ {0x1.7a9531dc8addap+6, -0x1.15dd42d16c7e4p+3, 0x1.94e8098e96fccp+3},
+ {0x1.7d21e2193d5bcp+6, -0x1.c8c718caa9f8ep+2, 0x1.1105d830d79dp+3},
+ {0x1.808572bc9578ap+6, -0x1.607bf910c57eep+2, 0x1.ebe2b93545493p+1},
+ {0x1.84c6a7914070fp+6, -0x1.f6c2ba3dfc25ap+1, -0x1.2beab2de5e36ep+0},
+ {0x1.f663baac570efp+5, 0x1.67be9f690c994p+4, 0x1.928e76c3750aep+3},
+ {0x1.fdd78bfa0c16bp+5, 0x1.8da11d29326eap+4, 0x1.63128e5e5d16fp+2},
+ {0x1.02fa8211ca545p+6, 0x1.a3a4c44447321p+4, 0x1.04d0a318f0ebp-3},
+ {0x1.08ace6a6b1bbcp+6, 0x1.b32f97fdc6c72p+4, -0x1.69ea7f28a916ap+2},
+ {0x1.0ff3cb8943e81p+6, 0x1.b9bf03db71bbbp+4, -0x1.6cb54bc7e9c6p+3},
+ {0x1.18ac5c68852cdp+6, 0x1.b753a9bd5dbeep+4, -0x1.0ebf0dff35bfbp+4},
+ {0x1.12e57190e4906p+6, 0x1.f7243f8456bc9p+3, 0x1.bbbf019d6f15fp+3},
+ {0x1.15f567ae01685p+6, 0x1.1e238872ebfe1p+4, 0x1.f5db81101607bp+2},
+ {0x1.1952176f81196p+6, 0x1.35eb43e1b3454p+4, 0x1.6f044118da651p+1},
+ {0x1.1e17b3f5be1e9p+6, 0x1.4aa233635e996p+4, -0x1.54536023af51fp+1},
+ {0x1.244540fde90c8p+6, 0x1.590428a4cd957p+4, -0x1.09fd595c81312p+3},
+ {0x1.2bc8d270727cdp+6, 0x1.6002d76c0fae1p+4, -0x1.bbbb8dd0769e1p+3},
+ {0x1.2910051d7f4b8p+6, 0x1.4505f3d8c93bep+3, 0x1.e1f0441f64aep+3},
+ {0x1.2ba848891bba1p+6, 0x1.83d80a13be75dp+3, 0x1.39f759ee811ebp+3},
+ {0x1.2e852380cafc2p+6, 0x1.b3d439de20201p+3, 0x1.5018eb1694a48p+2},
+ {0x1.329c951f395aap+6, 0x1.e28db45c54996p+3, 0x1.689e197414bp-7},
+ {0x1.37f5013da44b7p+6, 0x1.04846845ce376p+4, -0x1.5f9623aa14c25p+2},
+ {0x1.3e86c9cea44c3p+6, 0x1.11f59319394fdp+4, -0x1.6049926fe33dap+3},
+ {0x1.443efb939f1d1p+6, 0x1.0a131d35fab88p+2, 0x1.0838884c6c35ap+4},
+ {0x1.4667729b66dbap+6, 0x1.793a281884d1p+2, 0x1.8155ad5254ba1p+3},
+ {0x1.48cb51f255527p+6, 0x1.d609d14c020d1p+2, 0x1.fd82e0735fdcep+2},
+ {0x1.4c3af36c4bb13p+6, 0x1.1c709781a9fb2p+3, 0x1.8ca66dc4e33fdp+1},
+ {0x1.50c14ed0ba88bp+6, 0x1.4a1d653379591p+3, -0x1.14ee52d3fd0e1p+1},
+ {0x1.565e87fd89a8p+6, 0x1.6fe5c4c37980fp+3, -0x1.e3e3e3d81f648p+2},
+ {0x1.62b687ada6a2dp+6, -0x1.b1a7c98c53b9bp+0, 0x1.221d2fc2be6cp+4},
+ {0x1.6480f342fedfap+6, -0x1.728e49c5a9ba8p-3, 0x1.cb44060a17de8p+3},
+ {0x1.667e081a8e931p+6, 0x1.2c204353d8acp+0, 0x1.582d07a1ac706p+3},
+ {0x1.695d03a4b4ea6p+6, 0x1.5b9dd1e5192c9p+1, 0x1.949cc8da7db3dp+2},
+ {0x1.6d2ad25b49139p+6, 0x1.10c661536b1e3p+2, 0x1.60b9aee667ea2p+0},
+ {0x1.71ec510363cccp+6, 0x1.6b2af260ca3f1p+2, -0x1.e8e3d6769ed61p+1},
+ {0x1.83323c984ee7ap+6, -0x1.c8df58716d4cbp+2, 0x1.3d9335b5d20f9p+4},
+ {0x1.84b109344c92cp+6, -0x1.750134f94569cp+2, 0x1.0a63166d3ca32p+4},
+ {0x1.865ae5967696dp+6, -0x1.260f129da839ep+2, 0x1.b00f6d0ac1f93p+3},
+ {0x1.88c3891dbffdp+6, -0x1.8e7bf5d542ea4p+1, 0x1.30323669c3d67p+3},
+ {0x1.8bf825267af8ep+6, -0x1.89d8c0f2ba1ffp+0, 0x1.3b2af0c9eed76p+2},
+ {0x1.8ffffbb77c76ap+6, -0x1.09cab717214p-10, -0x1.1a1aa7765a7p-7},
+ {0x1.ae1c063cf8075p+3, -0x1.1dcc8d6b21p-13, -0x1.2f56d49352fp-10},
+ {0x1.23869fde6955fp+4, -0x1.836d13c82dp-13, -0x1.9b340cb2926p-10},
+ {0x1.6a51d9755cb1ep+4, -0x1.e1821bf6d08p-13, -0x1.ff0f3c5806ap-10},
+ {0x1.adca073d0c9a1p+4, -0x1.1d961152df8p-12, -0x1.2f1d00745cap-9},
+ {0x1.eeb26a3638306p+4, -0x1.48b751f0a58p-12, -0x1.5ce3e1a3db8p-9},
+ {0x1.16c4868a9dbc4p+5, -0x1.7278906708p-12, -0x1.89352628678p-9},
+ {0x1.3552cb4726ed2p+5, -0x1.9b140ac6fbp-12, -0x1.b44e9f2325p-9},
+ {0x1.53242132979b2p+5, -0x1.c2b46f9c328p-12, -0x1.de5d99b6f9p-9},
+ {0x1.7051013cf5a69p+5, -0x1.e97a44c10a8p-12, -0x1.03c24d5b897p-8},
+ {0x1.8ceca3a0569fdp+5, -0x1.07bf8a7e0fcp-11, -0x1.17ef5f1c441p-8},
+ {0x1.a9067ed63306p+5, -0x1.1a6bb67a6bp-11, -0x1.2bc0e9df0a8p-8},
+ {0x1.c4ab42f91535bp+5, -0x1.2cca14a233p-11, -0x1.3f3fe0662d2p-8},
+ {0x1.dfe5855ae1528p+5, -0x1.3ee1ad40618p-11, -0x1.5273b9784a3p-8},
+ {0x1.fabe397d15c9dp+5, -0x1.50b872fc158p-11, -0x1.6562c531248p-8},
+ {0x1.0a9e8459f8d9ap+6, -0x1.62537d1958p-11, -0x1.78126ad030ep-8},
+ {0x1.17b44990f13f5p+6, -0x1.73b732a42fp-11, -0x1.8a87568ccdp-8},
+ {0x1.24a350705ddf4p+6, -0x1.84e76b1c308p-11, -0x1.9cc59c424aap-8},
+ {0x1.316e23ed9d96ap+6, -0x1.95e7879947p-11, -0x1.aed0d2216dp-8},
+ {0x1.3e1704b29c069p+6, -0x1.a6ba8679e08p-11, -0x1.c0ac258f992p-8},
+ {0x1.4a9ff4d8984e6p+6, -0x1.b76312f3808p-11, -0x1.d25a6bb27acp-8},
+ {0x1.570ac151c1615p+6, -0x1.c7e3919c138p-11, -0x1.e3de2eb684p-8},
+ {0x1.6359098c40c61p+6, -0x1.d83e2a89bbp-11, -0x1.f539b894d66p-8},
+ {0x1.6f8c45b456692p+6, -0x1.e874d1a7f5p-11, -0x1.03378df3804p-7},
+ {0x1.7ba5cbe12c3fcp+6, -0x1.f8894d9602p-11, -0x1.0bc01d99c93p-7},
+ };
+
+ // Perform the inverse gamma companding for a sRGB color
+ // http://www.brucelindbloom.com/index.html?Eqn_RGB_to_XYZ.html
+ // double inverseGammaCompanding(int c) {
+ // // [0, 255] to [0, 1]
+ // double v = c / 255.0;
+ // if (v <= 0.04045) {
+ // return v / 12.92;
+ // }
+ // return std::pow((v + 0.055) / 1.055, 2.4);
+ // };
+ constexpr double RGB888_to_sRGB_table[] {
+ 0x0p+0, 0x1.3e45677c176f7p-12, 0x1.3e45677c176f7p-11, 0x1.dd681b3a23272p-11,
+ 0x1.3e45677c176f7p-10, 0x1.8dd6c15b1d4b4p-10, 0x1.dd681b3a23272p-10, 0x1.167cba8c94818p-9,
+ 0x1.3e45677c176f7p-9, 0x1.660e146b9a5d6p-9, 0x1.8dd6c15b1d4b4p-9, 0x1.b6a31b5259c99p-9,
+ 0x1.e1e31d70c99ddp-9, 0x1.07c38bf8583a9p-8, 0x1.1fcc2beed6421p-8, 0x1.390ffaf95e279p-8,
+ 0x1.53936cc7bc928p-8, 0x1.6f5addb50c915p-8, 0x1.8c6a94031b561p-8, 0x1.aac6c0fb97351p-8,
+ 0x1.ca7381f9f602bp-8, 0x1.eb74e160978dp-8, 0x1.06e76bbda92b8p-7, 0x1.18c2a5a8a8044p-7,
+ 0x1.2b4e09b3f0ae3p-7, 0x1.3e8b7b3bde965p-7, 0x1.527cd60af8b85p-7, 0x1.6723eea8d3709p-7,
+ 0x1.7c8292a3db6b3p-7, 0x1.929a88d67b521p-7, 0x1.a96d91a8016bdp-7, 0x1.c0fd67499fab6p-7,
+ 0x1.d94bbdefd740ep-7, 0x1.f25a44089883fp-7, 0x1.061551372c694p-6, 0x1.135f3e4c2cce2p-6,
+ 0x1.210bb8642b172p-6, 0x1.2f1b8c1ae46bdp-6, 0x1.3d8f839b79c0bp-6, 0x1.4c6866b3e9fa4p-6,
+ 0x1.5ba6fae794313p-6, 0x1.6b4c0380d2deep-6, 0x1.7b5841a1bf3acp-6, 0x1.8bcc74542addbp-6,
+ 0x1.9ca95898dc8b5p-6, 0x1.adefa9761c02p-6, 0x1.bfa0200597bd9p-6, 0x1.d1bb7381aec1fp-6,
+ 0x1.e442595227bcap-6, 0x1.f73585185e1b5p-6, 0x1.054ad45d76878p-5, 0x1.0f31ba386ff26p-5,
+ 0x1.194fcb663747bp-5, 0x1.23a55e62a662ap-5, 0x1.2e32c8e148d11p-5, 0x1.38f85fd21eacfp-5,
+ 0x1.43f67766310ffp-5, 0x1.4f2d6313fa8dp-5, 0x1.5a9d759ba5edp-5, 0x1.6647010b254eep-5,
+ 0x1.722a56c2239eep-5, 0x1.7e47c775d2427p-5, 0x1.8a9fa33494b07p-5, 0x1.973239698b9ccp-5,
+ 0x1.a3ffd8e001389p-5, 0x1.b108cfc6b7fbcp-5, 0x1.be4d6bb31d522p-5, 0x1.cbcdf9a4616f2p-5,
+ 0x1.d98ac60675833p-5, 0x1.e7841cb4f16dfp-5, 0x1.f5ba48fde2048p-5, 0x1.0216cad240765p-4,
+ 0x1.096f2671eb815p-4, 0x1.10e65c38a5192p-4, 0x1.187c90bf8bce2p-4, 0x1.2031e85f5d6dap-4,
+ 0x1.28068731a1952p-4, 0x1.2ffa9111cb94bp-4, 0x1.380e299e53f92p-4, 0x1.40417439ca10fp-4,
+ 0x1.4894940bddbfbp-4, 0x1.5107ac0261e59p-4, 0x1.599aded247aacp-4, 0x1.624e4ef892ed4p-4,
+ 0x1.6b221ebb4817ep-4, 0x1.7416702a539d1p-4, 0x1.7d2b65206b527p-4, 0x1.86611f43e9e6ap-4,
+ 0x1.8fb7c007a4a7p-4, 0x1.992f68abbbc89p-4, 0x1.a2c83a3e6566dp-4, 0x1.ac82559cb3644p-4,
+ 0x1.b65ddb7354604p-4, 0x1.c05aec3f4fe5ep-4, 0x1.ca79a84ebe03p-4, 0x1.d4ba2fc17a6a5p-4,
+ 0x1.df1ca289d34b8p-4, 0x1.e9a1206d34003p-4, 0x1.f447c904cbb4ep-4, 0x1.ff10bbbe302c2p-4,
+ 0x1.04fe0bedfe5f1p-3, 0x1.0a84fe3b36d8fp-3, 0x1.101d443dfc06fp-3, 0x1.15c6ed58eefdfp-3,
+ 0x1.1b8208da5fefp-3, 0x1.214ea5fc9514ap-3, 0x1.272cd3e610123p-3, 0x1.2d1ca1a9d1cfbp-3,
+ 0x1.331e1e479cdf5p-3, 0x1.393158ac3674ep-3, 0x1.3f565fb1a5fd5p-3, 0x1.458d421f735dfp-3,
+ 0x1.4bd60eaae3e73p-3, 0x1.5230d3f736034p-3, 0x1.589da095dbaa1p-3, 0x1.5f1c8306b3a3cp-3,
+ 0x1.65ad89b841a2bp-3, 0x1.6c50c307e53bfp-3, 0x1.73063d420fc8p-3, 0x1.79ce06a279303p-3,
+ 0x1.80a82d5453b5dp-3, 0x1.8794bf727eb3fp-3, 0x1.8e93cb07b8679p-3, 0x1.95a55e0ecec0bp-3,
+ 0x1.9cc98672cf47ep-3, 0x1.a400520f3619cp-3, 0x1.ab49ceb01c003p-3, 0x1.b2a60a1263b0ap-3,
+ 0x1.ba1511e3e632dp-3, 0x1.c196f3c39e76fp-3, 0x1.c92bbd41d41fep-3, 0x1.d0d37be045851p-3,
+ 0x1.d88e3d1250f68p-3, 0x1.e05c0e3d1d3ep-3, 0x1.e83cfcb7c16fp-3, 0x1.f03115cb6bfd3p-3,
+ 0x1.f83866b38924dp-3, 0x1.00297e4ef4553p-2, 0x1.044072557177ap-2, 0x1.086115f6beb3ap-2,
+ 0x1.0c8b6fb5c735ep-2, 0x1.10bf860ef039ap-2, 0x1.14fd5f782a5a6p-2, 0x1.1945026102997p-2,
+ 0x1.1d967532b31b1p-2, 0x1.21f1be50339e7p-2, 0x1.2656e41649ae3p-2, 0x1.2ac5ecdb988f8p-2,
+ 0x1.2f3edef0b0ed8p-2, 0x1.33c1c0a020438p-2, 0x1.384e982e800b1p-2, 0x1.3ce56bda84a81p-2,
+ 0x1.418641dd0c1bcp-2, 0x1.463120692c7afp-2, 0x1.4ae60dac4229dp-2, 0x1.4fa50fcdfde15p-2,
+ 0x1.546e2cf0727a9p-2, 0x1.59416b3022858p-2, 0x1.5e1ed0a40daabp-2, 0x1.6306635dbdd7bp-2,
+ 0x1.67f82969543a2p-2, 0x1.6cf428cd96079p-2, 0x1.71fa678bf915dp-2, 0x1.770aeba0b042ap-2,
+ 0x1.7c25bb02b7ac5p-2, 0x1.814adba3e0bd9p-2, 0x1.867a5370de0b1p-2, 0x1.8bb428514f067p-2,
+ 0x1.90f86027cb84ep-2, 0x1.964700d1ef1b1p-2, 0x1.9ba0102864521p-2, 0x1.a10393feefafdp-2,
+ 0x1.a67192247a9bep-2, 0x1.abea10631e195p-2, 0x1.b16d14802d5cap-2, 0x1.b6faa43c403bbp-2,
+ 0x1.bc92c5533d785p-2, 0x1.c2357d7c64e5dp-2, 0x1.c7e2d26a596dep-2, 0x1.cd9ac9cb2aef2p-2,
+ 0x1.d35d69485ffc5p-2, 0x1.d92ab686ff782p-2, 0x1.df02b7279a10dp-2, 0x1.e4e570c6539c5p-2,
+ 0x1.ead2e8faec526p-2, 0x1.f0cb2558c9ea4p-2, 0x1.f6ce2b6f00983p-2, 0x1.fcdc00c85bec2p-2,
+ 0x1.017a5575b3cb2p-1, 0x1.048c17ad3c04bp-1, 0x1.07a349c9d9837p-1, 0x1.0abfee888c05p-1,
+ 0x1.0de208a4444c8p-1, 0x1.11099ad5e83ebp-1, 0x1.1436a7d456eefp-1, 0x1.176932546ca12p-1,
+ 0x1.1aa13d0906bdap-1, 0x1.1ddecaa307b85p-1, 0x1.2121ddd15aecep-1, 0x1.246a7940f86d1p-1,
+ 0x1.27b89f9ce8c4bp-1, 0x1.2b0c538e48b07p-1, 0x1.2e6597bc4ccap-1, 0x1.31c46ecc4528dp-1,
+ 0x1.3528db61a0f73p-1, 0x1.3892e01df1fccp-1, 0x1.3c027fa0f01ebp-1, 0x1.3f77bc887cd3bp-1,
+ 0x1.42f29970a68f8p-1, 0x1.467318f3ac22dp-1, 0x1.49f93daa00113p-1, 0x1.4d850a2a4bde1p-1,
+ 0x1.51168109734e5p-1, 0x1.54ada4da97a1bp-1, 0x1.584a782f1ac23p-1, 0x1.5becfd96a2698p-1,
+ 0x1.5f95379f1b3edp-1, 0x1.634328d4bbe97p-1, 0x1.66f6d3c2081cfp-1, 0x1.6ab03aefd39aap-1,
+ 0x1.6e6f60e5452b1p-1, 0x1.72344827d98f6p-1, 0x1.75fef33b6669bp-1, 0x1.79cf64a21d1e2p-1,
+ 0x1.7da59edc8dabp-1, 0x1.8181a469a9787p-1, 0x1.856377c6c6224p-1, 0x1.894b1b6fa0377p-1,
+ 0x1.8d3891de5df49p-1, 0x1.912bdd8b91f45p-1, 0x1.952500ee3dda5p-1, 0x1.9923fe7bd4f67p-1,
+ 0x1.9d28d8a83edfcp-1, 0x1.a13391e5da09fp-1, 0x1.a5442ca57e52ep-1, 0x1.a95aab567f88fp-1,
+ 0x1.ad771066afec2p-1, 0x1.b1995e4262a69p-1, 0x1.b5c197546e3f8p-1, 0x1.b9efbe062f086p-1,
+ 0x1.be23d4bf8981bp-1, 0x1.c25ddde6ecbbbp-1, 0x1.c69ddbe154af1p-1, 0x1.cae3d1124c90bp-1,
+ 0x1.cf2fbfdbf11f1p-1, 0x1.d381aa9ef2e82p-1, 0x1.d7d993ba988d4p-1, 0x1.dc377d8cc0fd5p-1,
+ 0x1.e09b6a71e5aa6p-1, 0x1.e5055cc51cbb4p-1, 0x1.e97556e01b351p-1, 0x1.edeb5b1b37216p-1,
+ 0x1.f2676bcd69adep-1, 0x1.f6e98b4c51466p-1, 0x1.fb71bbec33ab2p-1, 0x1p+0,
+ };
+// clang-format on
+
+// convert a RGB color to Oklab (https://bottosson.github.io/posts/oklab/)
+Lab rgbToOklab(QRgb rgb)
+{
+ const double r = RGB888_to_sRGB_table[qRed(rgb)];
+ const double g = RGB888_to_sRGB_table[qGreen(rgb)];
+ const double b = RGB888_to_sRGB_table[qBlue(rgb)];
+
+ const double l = std::cbrt(0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b);
+ const double m = std::cbrt(0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b);
+ const double s = std::cbrt(0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b);
+
+ // M2 * 100 * {l', m', s'}
+ return Lab{
+ (021.04542553 * l + 079.36177850 * m - 000.40720468 * s),
+ (197.79984951 * l - 242.85922050 * m + 045.05937099 * s),
+ (002.59040371 * l + 078.27717662 * m - 080.86757660 * s),
+ };
+}
+
+constexpr double epsilon = 1e-15;
+
+inline double sinDegree(double x)
+{
+ return std::sin(x * M_PI / 180.0);
+}
+
+inline double cosDegree(double x)
+{
+ return std::cos(x * M_PI / 180.0);
+}
+
+inline double pow2(double x)
+{
+ return x * x;
+}
+
+inline double computeHPrime(double a_prime, double b)
+{
+ if (std::abs(a_prime) < epsilon && std::abs(b) < epsilon) {
+ return 0.0;
+ }
+
+ const double value = std::atan2(b, a_prime) * 180.0 / M_PI;
+ return (value < 0.0) ? value + 360.0 : value;
+}
+
+inline double computeDeltaHPrime(double C1_prime, double C2_prime, double h1_prime, double h2_prime)
+{
+ if (C1_prime * C2_prime < epsilon) {
+ return 0.0;
+ }
+
+ const double diff = h2_prime - h1_prime;
+
+ if (std::abs(diff) <= 180.0) {
+ return diff;
+ } else if (diff > 180.0) {
+ return diff - 360.0;
+ } else {
+ return diff + 360.0;
+ }
+}
+
+inline double computeHPrimeBar(double C1_prime, double C2_prime, double h1_prime, double h2_prime)
+{
+ const double sum = h1_prime + h2_prime;
+
+ if (C1_prime * C2_prime < epsilon) {
+ return sum;
+ }
+
+ const double dist = std::abs(h1_prime - h2_prime);
+
+ if (dist <= 180.0) {
+ return 0.5 * sum;
+ } else if (sum < 360.0) {
+ return 0.5 * (sum + 360.0);
+ } else {
+ return 0.5 * (sum - 360.0);
+ }
+}
+
+/// Calculate the perceptual color difference based on CIEDE2000.
+/// https://en.wikipedia.org/wiki/Color_difference#CIEDE2000
+/// \return The color difference of the two colors.
+double calculate_CIEDE2000(const Lab &color1, const Lab &color2)
+{
+ const double L1 = color1.L;
+ const double a1 = color1.a;
+ const double b1 = color1.b;
+ const double L2 = color2.L;
+ const double a2 = color2.a;
+ const double b2 = color2.b;
+
+ const double _25_pow_7 = /*std::pow(25.0, 7.0) = */ 6103515625.0;
+
+ const double C1_ab = std::sqrt(a1 * a1 + b1 * b1);
+ const double C2_ab = std::sqrt(a2 * a2 + b2 * b2);
+ const double C_ab_bar = 0.5 * (C1_ab + C2_ab);
+ const double c_ab_bar_pow_7 = std::pow(C_ab_bar, 7.0);
+ const double G = 0.5 * (1.0 - std::sqrt(c_ab_bar_pow_7 / (c_ab_bar_pow_7 + _25_pow_7)));
+ const double a1_prime = (1.0 + G) * a1;
+ const double a2_prime = (1.0 + G) * a2;
+ const double C1_prime = std::sqrt(a1_prime * a1_prime + b1 * b1);
+ const double C2_prime = std::sqrt(a2_prime * a2_prime + b2 * b2);
+ const double h1_prime = computeHPrime(a1_prime, b1);
+ const double h2_prime = computeHPrime(a2_prime, b2);
+
+ const double deltaL_prime = L2 - L1;
+ const double deltaC_prime = C2_prime - C1_prime;
+ const double deltah_prime = computeDeltaHPrime(C1_prime, C2_prime, h1_prime, h2_prime);
+ const double deltaH_prime = 2.0 * std::sqrt(C1_prime * C2_prime) * sinDegree(0.5 * deltah_prime);
+
+ const double L_primeBar = 0.5 * (L1 + L2);
+ const double C_primeBar = 0.5 * (C1_prime + C2_prime);
+ const double h_primeBar = computeHPrimeBar(C1_prime, C2_prime, h1_prime, h2_prime);
+
+ const double T = 1.0 - 0.17 * cosDegree(h_primeBar - 30.0) + 0.24 * cosDegree(2.0 * h_primeBar) + 0.32 * cosDegree(3.0 * h_primeBar + 6.0)
+ - 0.20 * cosDegree(4.0 * h_primeBar - 63.0);
+
+ const double C_primeBar_pow7 = std::pow(C_primeBar, 7.0);
+ const double R_C = 2.0 * std::sqrt(C_primeBar_pow7 / (C_primeBar_pow7 + _25_pow_7));
+ const double S_L = 1.0 + (0.015 * pow2(L_primeBar - 50.0)) / std::sqrt(20.0 + pow2(L_primeBar - 50.0));
+ const double S_C = 1.0 + 0.045 * C_primeBar;
+ const double S_H = 1.0 + 0.015 * C_primeBar * T;
+ const double R_T = -R_C * sinDegree(60.0 * std::exp(-pow2((h_primeBar - 275) / 25.0)));
+
+ constexpr double kL = 1.0;
+ constexpr double kC = 1.0;
+ constexpr double kH = 1.0;
+
+ const double deltaL = deltaL_prime / (kL * S_L);
+ const double deltaC = deltaC_prime / (kC * S_C);
+ const double deltaH = deltaH_prime / (kH * S_H);
+
+ return /*std::sqrt*/ (deltaL * deltaL + deltaC * deltaC + deltaH * deltaH + R_T * deltaC * deltaH);
+}
+
+struct AnsiBuffer {
+ using ColorCache = QHash<QRgb, int>;
+
+ void append(char c)
+ {
+ Q_ASSERT(remaining() >= 1);
+ m_data[m_size] = c;
+ ++m_size;
+ }
+
+ void append(QLatin1String str)
+ {
+ Q_ASSERT(remaining() >= str.size());
+ memcpy(m_data + m_size, str.data(), str.size());
+ m_size += str.size();
+ }
+
+ void appendForeground(QRgb rgb, bool is256Colors, ColorCache &colorCache)
+ {
+ append(QLatin1String("38;"));
+ append(rgb, is256Colors, colorCache);
+ }
+
+ void appendBackground(QRgb rgb, bool is256Colors, ColorCache &colorCache)
+ {
+ append(QLatin1String("48;"));
+ append(rgb, is256Colors, colorCache);
+ }
+
+ void append(QRgb rgb, bool is256Colors, ColorCache &colorCache)
+ {
+ auto appendUInt8 = [&](int x) {
+ Q_ASSERT(x <= 255 && x >= 0);
+ if (x > 99) {
+ if (x >= 200) {
+ append('2');
+ x -= 200;
+ } else {
+ append('1');
+ x -= 100;
+ }
+ } else if (x < 10) {
+ append(char('0' + x));
+ return;
+ }
+
+ // clang-format off
+ constexpr char const* tb2digits =
+ "00" "01" "02" "03" "04" "05" "06" "07" "08" "09"
+ "10" "11" "12" "13" "14" "15" "16" "17" "18" "19"
+ "20" "21" "22" "23" "24" "25" "26" "27" "28" "29"
+ "30" "31" "32" "33" "34" "35" "36" "37" "38" "39"
+ "40" "41" "42" "43" "44" "45" "46" "47" "48" "49"
+ "50" "51" "52" "53" "54" "55" "56" "57" "58" "59"
+ "60" "61" "62" "63" "64" "65" "66" "67" "68" "69"
+ "70" "71" "72" "73" "74" "75" "76" "77" "78" "79"
+ "80" "81" "82" "83" "84" "85" "86" "87" "88" "89"
+ "90" "91" "92" "93" "94" "95" "96" "97" "98" "99";
+ // clang-format on
+
+ auto *p = tb2digits + x * 2;
+ append(p[0]);
+ append(p[1]);
+ };
+
+ if (is256Colors) {
+ double dist = 1e24;
+ int idx = 0;
+ auto it = colorCache.find(rgb);
+ if (it == colorCache.end()) {
+ const auto lab = rgbToOklab(rgb);
+ // find the nearest xterm color
+ for (Lab const &xtermLab : xterm240_Oklabs) {
+ auto dist2 = calculate_CIEDE2000(lab, xtermLab);
+ if (dist2 < dist) {
+ dist = dist2;
+ idx = &xtermLab - xterm240_Oklabs;
+ }
+ }
+ // add 16 to convert 240 colors mode to 256 colors mode
+ idx += 16;
+ colorCache.insert(rgb, idx);
+ } else {
+ idx = it.value();
+ }
+
+ append('5');
+ append(';');
+ appendUInt8(idx);
+ } else {
+ append('2');
+ append(';');
+ appendUInt8(qRed(rgb));
+ append(';');
+ appendUInt8(qGreen(rgb));
+ append(';');
+ appendUInt8(qBlue(rgb));
+ }
+ append(';');
+ }
+
+ // Replace last character with 'm'. Last character must be ';'
+ void setFinalStyle()
+ {
+ Q_ASSERT(m_data[m_size - 1] == ';');
+ m_data[m_size - 1] = 'm';
+ }
+
+ void clear()
+ {
+ m_size = 0;
+ }
+
+ QLatin1String latin1() const
+ {
+ return QLatin1String(m_data, m_size);
+ }
+
+private:
+ char m_data[128];
+ int m_size = 0;
+
+ int remaining() const noexcept
+ {
+ return 128 - m_size;
+ }
+};
+
+void fillString(QString &s, int n, QStringView fill)
+{
+ if (n > 0) {
+ for (; n > fill.size(); n -= fill.size()) {
+ s += fill;
+ }
+ s += fill.left(n);
+ }
+}
+
+struct GraphLine {
+ QString graphLine;
+ QString labelLine;
+ int graphLineLength = 0;
+ int labelLineLength = 0;
+ int nextLabelOffset = 0;
+
+ template<class String>
+ void pushLabel(int offset, String const &s, int numberDisplayableChar)
+ {
+ Q_ASSERT(offset >= labelLineLength);
+ const int n = offset - labelLineLength;
+ labelLineLength += numberDisplayableChar + n;
+ fillLine(labelLine, n);
+ labelLine += s;
+ nextLabelOffset = labelLineLength;
+ }
+
+ template<class String>
+ void pushGraph(int offset, String const &s, int numberDisplayableChar)
+ {
+ Q_ASSERT(offset >= graphLineLength);
+ const int n = offset - graphLineLength;
+ graphLineLength += numberDisplayableChar + n;
+ fillLine(graphLine, n);
+ const int ps1 = graphLine.size();
+ graphLine += s;
+ if (offset >= labelLineLength) {
+ const int n2 = offset - labelLineLength;
+ labelLineLength += n2 + 1;
+ fillLine(labelLine, n2);
+ labelLine += QStringView(graphLine).right(graphLine.size() - ps1);
+ }
+ }
+
+private:
+ static void fillLine(QString &s, int n)
+ {
+ Q_ASSERT(n >= 0);
+ fillString(s,
+ n,
+ QStringLiteral(" "
+ " "
+ " "));
+ }
+};
+
+/**
+ * Returns the first free line at a given position or create a new one
+ */
+GraphLine &lineAtOffset(std::vector<GraphLine> &graphLines, int offset)
+{
+ const auto last = graphLines.end();
+ auto p = std::find_if(graphLines.begin(), last, [=](GraphLine const &line) {
+ return line.nextLabelOffset < offset;
+ });
+ if (p == last) {
+ graphLines.emplace_back();
+ return graphLines.back();
+ }
+ return *p;
+}
+
+// disable bold, italic and underline on |
+const QLatin1String graphSymbol("\x1b[22;23;24m|");
+// reverse video
+const QLatin1String nameStyle("\x1b[7m");
+
+/**
+ * ANSI Highlighter dedicated to traces
+ */
+class DebugSyntaxHighlighter : public KSyntaxHighlighting::AbstractHighlighter
+{
+public:
+ using Option = KSyntaxHighlighting::AnsiHighlighter::Option;
+ using Options = KSyntaxHighlighting::AnsiHighlighter::Options;
+
+ void setDefinition(const KSyntaxHighlighting::Definition &def) override
+ {
+ AbstractHighlighter::setDefinition(def);
+ m_contextCapture.setDefinition(def);
+
+ const auto &definitions = def.includedDefinitions();
+ for (const auto &definition : definitions) {
+ const auto *defData = DefinitionData::get(definition);
+ for (const auto &context : defData->contexts) {
+ m_defDataBycontexts.insert(&context, defData);
+ }
+ }
+ }
+
+ void highlightData(QTextStream &in,
+ QTextStream &out,
+ QLatin1String infoStyle,
+ QLatin1String editorBackground,
+ const std::vector<QPair<QString, QString>> &ansiStyles,
+ Options options)
+ {
+ initRegionStyles(ansiStyles);
+
+ m_hasFormatTrace = options.testFlag(Option::TraceFormat);
+ m_hasRegionTrace = options.testFlag(Option::TraceRegion);
+ m_hasStackSizeTrace = options.testFlag(Option::TraceStackSize);
+ m_hasContextTrace = options.testFlag(Option::TraceContext);
+ const bool hasFormatOrContextTrace = m_hasFormatTrace || m_hasContextTrace || m_hasStackSizeTrace;
+
+ const bool hasSeparator = hasFormatOrContextTrace && m_hasRegionTrace;
+ const QString resetBgColor = (editorBackground.isEmpty() ? QStringLiteral("\x1b[0m") : editorBackground);
+
+ bool firstLine = true;
+ State state;
+ QString currentLine;
+ const bool isUnbuffered = options.testFlag(Option::Unbuffered);
+ while (in.readLineInto(&currentLine)) {
+ auto oldState = state;
+ state = highlightLine(currentLine, state);
+
+ if (hasSeparator) {
+ if (!firstLine) {
+ out << QStringLiteral("\x1b[0m────────────────────────────────────────────────────\x1b[K\n");
+ }
+ firstLine = false;
+ }
+
+ if (!m_regions.empty()) {
+ printRegions(out, infoStyle, currentLine.size());
+ out << resetBgColor;
+ }
+
+ for (const auto &fragment : m_highlightedFragments) {
+ auto const &ansiStyle = ansiStyles[fragment.formatId];
+ out << ansiStyle.first << QStringView(currentLine).mid(fragment.offset, fragment.length) << ansiStyle.second;
+ }
+
+ out << QStringLiteral("\x1b[K\n");
+
+ if (hasFormatOrContextTrace && !m_highlightedFragments.empty()) {
+ if (m_hasContextTrace || m_hasStackSizeTrace) {
+ appendContextNames(oldState, currentLine);
+ }
+
+ printFormats(out, infoStyle, ansiStyles);
+ out << resetBgColor;
+ }
+
+ m_highlightedFragments.clear();
+
+ if (isUnbuffered) {
+ out.flush();
+ }
+ }
+ }
+
+ void applyFormat(int offset, int length, const KSyntaxHighlighting::Format &format) override
+ {
+ m_highlightedFragments.push_back({m_hasFormatTrace ? format.name() : QString(), offset, length, format.id()});
+ }
+
+ void applyFolding(int offset, int /*length*/, FoldingRegion region) override
+ {
+ if (!m_hasRegionTrace) {
+ return;
+ }
+
+ const auto id = region.id();
+
+ if (region.type() == FoldingRegion::Begin) {
+ m_regions.push_back(Region{m_regionDepth, offset, -1, id, Region::State::Open});
+ // swap with previous region if this is a closing region with same offset in order to superimpose labels
+ if (m_regions.size() >= 2) {
+ auto &previousRegion = m_regions[m_regions.size() - 2];
+ if (previousRegion.state == Region::State::Close && previousRegion.offset == offset) {
+ std::swap(previousRegion, m_regions.back());
+ if (previousRegion.bindIndex != -1) {
+ m_regions[previousRegion.bindIndex].bindIndex = m_regions.size() - 1;
+ }
+ }
+ }
+ ++m_regionDepth;
+ } else {
+ // find open region
+ auto it = m_regions.rbegin();
+ auto eit = m_regions.rend();
+ for (int depth = 0; it != eit; ++it) {
+ if (it->regionId == id && it->bindIndex < 0) {
+ if (it->state == Region::State::Close) {
+ ++depth;
+ } else if (--depth < 0) {
+ break;
+ }
+ }
+ }
+
+ if (it != eit) {
+ it->bindIndex = int(m_regions.size());
+ int bindIndex = int(&*it - m_regions.data());
+ m_regions.push_back(Region{it->depth, offset, bindIndex, id, Region::State::Close});
+ } else {
+ m_regions.push_back(Region{-1, offset, -1, id, Region::State::Close});
+ }
+
+ m_regionDepth = std::max(m_regionDepth - 1, 0);
+ }
+ }
+
+ using KSyntaxHighlighting::AbstractHighlighter::highlightLine;
+
+private:
+ /**
+ * Initializes with colors of \p ansiStyle without duplicate.
+ */
+ void initRegionStyles(const std::vector<QPair<QString, QString>> &ansiStyles)
+ {
+ m_regionStyles.resize(ansiStyles.size());
+ for (std::size_t i = 0; i < m_regionStyles.size(); ++i) {
+ m_regionStyles[i] = ansiStyles[i].first;
+ }
+
+ std::sort(m_regionStyles.begin(), m_regionStyles.end());
+ m_regionStyles.erase(std::unique(m_regionStyles.begin(), m_regionStyles.end()), m_regionStyles.end());
+ }
+
+ /**
+ * Append the context name in front of the format name.
+ */
+ void appendContextNames(State &state, QStringView currentLine)
+ {
+ auto newState = state;
+ for (auto &fragment : m_highlightedFragments) {
+ QString contextName = extractContextName(StateData::get(newState));
+
+ m_contextCapture.offsetNext = 0;
+ m_contextCapture.lengthNext = 0;
+ // truncate the line to deduce the context from the format
+ const auto lineFragment = currentLine.mid(0, fragment.offset + fragment.length + 1);
+ newState = m_contextCapture.highlightLine(lineFragment, state);
+
+ // Deduced context does not start at the position of the format.
+ // This can happen because of lookAhead/fallthrought attribute,
+ // assertion in regex, etc.
+ if (m_contextCapture.offset != fragment.offset && m_contextCapture.length != fragment.length) {
+ contextName.insert(0, QLatin1Char('~'));
+ }
+ fragment.name.insert(0, contextName);
+ }
+ }
+
+ /**
+ * \return Current context name with definition name if different
+ * from the current definition name
+ */
+ QString extractContextName(StateData *stateData) const
+ {
+ QString label;
+
+ if (m_hasStackSizeTrace) {
+ // first state is empty
+ int stateSize = stateData ? stateData->size() : 0;
+ label = QLatin1Char('(') % QString::number(stateSize) % QLatin1Char(')');
+ }
+
+ if (m_hasContextTrace) {
+ // first state is empty
+ if (!stateData) {
+ return label + QStringLiteral("[???]");
+ }
+
+ const auto context = stateData->topContext();
+ const auto defDataIt = m_defDataBycontexts.find(context);
+ const auto contextName = (defDataIt != m_defDataBycontexts.end()) ? QString(QLatin1Char('<') % (*defDataIt)->name % QLatin1Char('>')) : QString();
+ return QString(label % contextName % QLatin1Char('[') % context->name() % QLatin1Char(']'));
+ }
+
+ return label;
+ }
+
+ void printFormats(QTextStream &out, QLatin1String regionStyle, const std::vector<QPair<QString, QString>> &ansiStyles)
+ {
+ // init graph
+ m_formatGraph.clear();
+ for (auto const &fragment : m_highlightedFragments) {
+ GraphLine &line = lineAtOffset(m_formatGraph, fragment.offset);
+ auto const &style = ansiStyles[fragment.formatId].first;
+ line.pushLabel(fragment.offset, style % nameStyle % fragment.name % regionStyle, fragment.name.size());
+
+ for (GraphLine *pline = m_formatGraph.data(); pline <= &line; ++pline) {
+ pline->pushGraph(fragment.offset, style % graphSymbol % regionStyle, 1);
+ }
+ }
+
+ // display graph
+ out << regionStyle;
+ auto first = m_formatGraph.begin();
+ auto last = m_formatGraph.end();
+ --last;
+ for (; first != last; ++first) {
+ out << first->graphLine << "\x1b[K\n" << first->labelLine << "\x1b[K\n";
+ }
+ out << first->graphLine << "\x1b[K\n" << first->labelLine << "\x1b[K\x1b[0m\n";
+ }
+
+ void printRegions(QTextStream &out, QLatin1String regionStyle, int lineLength)
+ {
+ const QString continuationLine = QStringLiteral(
+ "------------------------------"
+ "------------------------------"
+ "------------------------------");
+
+ bool hasContinuation = false;
+
+ m_regionGraph.clear();
+ QString label;
+ QString numStr;
+
+ // init graph
+ for (Region &region : m_regions) {
+ if (region.state == Region::State::Continuation) {
+ hasContinuation = true;
+ continue;
+ }
+
+ auto pushGraphs = [&](int offset, const GraphLine *endline, QStringView style) {
+ for (GraphLine *pline = m_regionGraph.data(); pline <= endline; ++pline) {
+ // a label can hide a graph
+ if (pline->graphLineLength <= offset) {
+ pline->pushGraph(offset, style % graphSymbol % regionStyle, 1);
+ }
+ }
+ };
+
+ QChar openChar;
+ QChar closeChar;
+ int lpad = 0;
+ int rpad = 0;
+
+ int offsetLabel = region.offset;
+
+ numStr.setNum(region.regionId);
+
+ if (region.state == Region::State::Open) {
+ openChar = QLatin1Char('(');
+ if (region.bindIndex == -1) {
+ rpad = lineLength - region.offset - numStr.size();
+ } else {
+ rpad = m_regions[region.bindIndex].offset - region.offset - 2;
+ closeChar = QLatin1Char(')');
+ }
+ // close without open
+ } else if (region.bindIndex == -1) {
+ closeChar = QLatin1Char('>');
+ // label already present, we only display the graph
+ } else if (m_regions[region.bindIndex].state == Region::State::Open) {
+ const auto &openRegion = m_regions[region.bindIndex];
+ // here offset is a graph index
+ const GraphLine &line = m_regionGraph[openRegion.offset];
+ const auto &style = m_regionStyles[openRegion.depth % m_regionStyles.size()];
+ pushGraphs(region.offset, &line, style);
+ continue;
+ } else {
+ closeChar = QLatin1Char(')');
+ lpad = region.offset - numStr.size();
+ offsetLabel = 0;
+ }
+
+ const QStringView openS(&openChar, openChar.unicode() ? 1 : 0);
+ const QStringView closeS(&closeChar, closeChar.unicode() ? 1 : 0);
+
+ label.clear();
+ fillString(label, lpad, continuationLine);
+ label += numStr;
+ fillString(label, rpad, continuationLine);
+
+ GraphLine &line = lineAtOffset(m_regionGraph, offsetLabel);
+ const auto &style = m_regionStyles[region.depth % m_regionStyles.size()];
+ line.pushLabel(offsetLabel, style % nameStyle % openS % label % closeS % regionStyle, label.size() + openS.size() + closeS.size());
+ pushGraphs(region.offset, &line, style);
+
+ // transforms offset into graph index when region is on 1 line
+ if (region.state == Region::State::Open && region.bindIndex != -1) {
+ region.offset = &line - m_regionGraph.data();
+ }
+ }
+
+ out << regionStyle;
+
+ // display regions which are neither closed nor open
+ if (hasContinuation) {
+ label.clear();
+ fillString(label, lineLength ? lineLength : 5, continuationLine);
+ for (const auto &region : m_regions) {
+ if (region.state == Region::State::Continuation && region.bindIndex == -1) {
+ const auto &style = m_regionStyles[region.depth % m_regionStyles.size()];
+ out << style << nameStyle << label << regionStyle << "\x1b[K\n";
+ }
+ }
+ }
+
+ // display graph
+ if (!m_regionGraph.empty()) {
+ auto first = m_regionGraph.rbegin();
+ auto last = m_regionGraph.rend();
+ --last;
+ for (; first != last; ++first) {
+ out << first->labelLine << "\x1b[K\n" << first->graphLine << "\x1b[K\n";
+ }
+ out << first->labelLine << "\x1b[K\n" << first->graphLine << "\x1b[K\x1b[0m\n";
+ }
+
+ // keep regions that are not closed
+ m_regions.erase(std::remove_if(m_regions.begin(),
+ m_regions.end(),
+ [](Region const &region) {
+ return region.bindIndex != -1 || region.state == Region::State::Close;
+ }),
+ m_regions.end());
+ // all remaining regions become Continuation
+ for (auto &region : m_regions) {
+ region.offset = 0;
+ region.state = Region::State::Continuation;
+ }
+ }
+
+ struct HighlightFragment {
+ QString name;
+ int offset;
+ int length;
+ int formatId;
+ };
+
+ struct ContextCaptureHighlighter : KSyntaxHighlighting::AbstractHighlighter {
+ int offset;
+ int length;
+ int offsetNext;
+ int lengthNext;
+
+ void applyFormat(int offset, int length, const KSyntaxHighlighting::Format & /*format*/) override
+ {
+ offset = offsetNext;
+ length = lengthNext;
+ offsetNext = offset;
+ lengthNext = length;
+ }
+
+ using KSyntaxHighlighting::AbstractHighlighter::highlightLine;
+ };
+
+ struct Region {
+ enum class State : int8_t {
+ Open,
+ Close,
+ Continuation,
+ };
+
+ int depth;
+ int offset;
+ int bindIndex;
+ int regionId;
+ State state;
+ };
+
+ bool m_hasFormatTrace;
+ bool m_hasRegionTrace;
+ bool m_hasStackSizeTrace;
+ bool m_hasContextTrace;
+
+ std::vector<HighlightFragment> m_highlightedFragments;
+ std::vector<GraphLine> m_formatGraph;
+ ContextCaptureHighlighter m_contextCapture;
+
+ int m_regionDepth = 0;
+ std::vector<Region> m_regions;
+ std::vector<GraphLine> m_regionGraph;
+ std::vector<QStringView> m_regionStyles;
+
+ QHash<const Context *, const DefinitionData *> m_defDataBycontexts;
+};
+} // anonymous namespace
+
+class KSyntaxHighlighting::AnsiHighlighterPrivate : public AbstractHighlighterPrivate
+{
+public:
+ QTextStream out;
+ QFile file;
+ QStringView currentLine;
+ // pairs of startColor / resetColor
+ std::vector<QPair<QString, QString>> ansiStyles;
+};
+
+AnsiHighlighter::AnsiHighlighter()
+ : AbstractHighlighter(new AnsiHighlighterPrivate())
+{
+}
+
+AnsiHighlighter::~AnsiHighlighter() = default;
+
+void AnsiHighlighter::setOutputFile(const QString &fileName)
+{
+ Q_D(AnsiHighlighter);
+ if (d->file.isOpen()) {
+ d->file.close();
+ }
+ d->file.setFileName(fileName);
+ if (!d->file.open(QFile::WriteOnly | QFile::Truncate)) {
+ qCWarning(Log) << "Failed to open output file" << fileName << ":" << d->file.errorString();
+ return;
+ }
+ d->out.setDevice(&d->file);
+}
+
+void AnsiHighlighter::setOutputFile(FILE *fileHandle)
+{
+ Q_D(AnsiHighlighter);
+ d->file.open(fileHandle, QIODevice::WriteOnly);
+ d->out.setDevice(&d->file);
+}
+
+void AnsiHighlighter::highlightFile(const QString &fileName, AnsiFormat format, Options options)
+{
+ QFileInfo fi(fileName);
+ QFile f(fileName);
+ if (!f.open(QFile::ReadOnly)) {
+ qCWarning(Log) << "Failed to open input file" << fileName << ":" << f.errorString();
+ return;
+ }
+
+ highlightData(&f, format, options);
+}
+
+void AnsiHighlighter::highlightData(QIODevice *dev, AnsiFormat format, Options options)
+{
+ Q_D(AnsiHighlighter);
+
+ if (!d->out.device()) {
+ qCWarning(Log) << "No output stream defined!";
+ return;
+ }
+
+ const auto is256Colors = (format == AnsiFormat::XTerm256Color);
+ const auto &theme = d->m_theme;
+ const auto &definition = d->m_definition;
+
+ auto definitions = definition.includedDefinitions();
+ definitions.append(definition);
+
+ AnsiBuffer::ColorCache colorCache;
+
+ AnsiBuffer foregroundColorBuffer;
+ AnsiBuffer backgroundColorBuffer;
+ QLatin1String foregroundDefaultColor;
+ QLatin1String backgroundDefaultColor;
+
+ const bool useEditorBackground = options.testFlag(Option::UseEditorBackground);
+
+ // https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters
+
+ if (useEditorBackground) {
+ const QRgb foregroundColor = theme.textColor(Theme::Normal);
+ const QRgb backgroundColor = theme.editorColor(Theme::BackgroundColor);
+ foregroundColorBuffer.appendForeground(foregroundColor, is256Colors, colorCache);
+ backgroundColorBuffer.append(QLatin1String("\x1b["));
+ backgroundColorBuffer.appendBackground(backgroundColor, is256Colors, colorCache);
+ foregroundDefaultColor = foregroundColorBuffer.latin1();
+ backgroundDefaultColor = backgroundColorBuffer.latin1().mid(2);
+ }
+
+ int maxId = 0;
+ for (const auto &definition : std::as_const(definitions)) {
+ for (const auto &format : std::as_const(DefinitionData::get(definition)->formats)) {
+ maxId = qMax(maxId, format.id());
+ }
+ }
+ d->ansiStyles.clear();
+ // ansiStyles must not be empty for applyFormat to work even with a definition without any context
+ d->ansiStyles.resize(maxId + 1);
+
+ // initialize ansiStyles
+ for (const auto &definition : std::as_const(definitions)) {
+ for (const auto &format : std::as_const(DefinitionData::get(definition)->formats)) {
+ AnsiBuffer buffer;
+
+ buffer.append(QLatin1String("\x1b["));
+
+ const bool hasFg = format.hasTextColor(theme);
+ const bool hasBg = format.hasBackgroundColor(theme);
+ const bool hasBold = format.isBold(theme);
+ const bool hasItalic = format.isItalic(theme);
+ const bool hasUnderline = format.isUnderline(theme);
+ const bool hasStrikeThrough = format.isStrikeThrough(theme);
+
+ if (hasFg) {
+ buffer.appendForeground(format.textColor(theme).rgb(), is256Colors, colorCache);
+ } else {
+ buffer.append(foregroundDefaultColor);
+ }
+ if (hasBg) {
+ buffer.appendBackground(format.backgroundColor(theme).rgb(), is256Colors, colorCache);
+ }
+ if (hasBold) {
+ buffer.append(QLatin1String("1;"));
+ }
+ if (hasItalic) {
+ buffer.append(QLatin1String("3;"));
+ }
+ if (hasUnderline) {
+ buffer.append(QLatin1String("4;"));
+ }
+ if (hasStrikeThrough) {
+ buffer.append(QLatin1String("9;"));
+ }
+
+ // if there is ANSI style
+ if (buffer.latin1().size() > 2) {
+ buffer.setFinalStyle();
+ auto &style = d->ansiStyles[format.id()];
+ style.first = buffer.latin1();
+
+ if (useEditorBackground) {
+ buffer.clear();
+ const bool hasEffect = hasBold || hasItalic || hasUnderline || hasStrikeThrough;
+ if (hasBg) {
+ buffer.append(hasEffect ? QLatin1String("\x1b[0;") : QLatin1String("\x1b["));
+ buffer.append(backgroundDefaultColor);
+ buffer.setFinalStyle();
+ style.second = buffer.latin1();
+ } else if (hasEffect) {
+ buffer.append(QLatin1String("\x1b["));
+ if (hasBold) {
+ buffer.append(QLatin1String("22;"));
+ }
+ if (hasItalic) {
+ buffer.append(QLatin1String("23;"));
+ }
+ if (hasUnderline) {
+ buffer.append(QLatin1String("24;"));
+ }
+ if (hasStrikeThrough) {
+ buffer.append(QLatin1String("29;"));
+ }
+ buffer.setFinalStyle();
+ style.second = buffer.latin1();
+ }
+ } else {
+ style.second = QStringLiteral("\x1b[0m");
+ }
+ }
+ }
+ }
+
+ if (useEditorBackground) {
+ backgroundColorBuffer.setFinalStyle();
+ backgroundDefaultColor = backgroundColorBuffer.latin1();
+ d->out << backgroundDefaultColor;
+ }
+
+ QTextStream in(dev);
+
+ if (!options.testAnyFlag(Option::TraceAll)) {
+ State state;
+ QString currentLine;
+ const bool isUnbuffered = options.testFlag(Option::Unbuffered);
+ while (in.readLineInto(&currentLine)) {
+ d->currentLine = currentLine;
+ state = highlightLine(d->currentLine, state);
+
+ if (useEditorBackground) {
+ d->out << QStringLiteral("\x1b[K\n");
+ } else {
+ d->out << QLatin1Char('\n');
+ }
+
+ if (isUnbuffered) {
+ d->out.flush();
+ }
+ }
+ } else {
+ AnsiBuffer buffer;
+ buffer.append(QLatin1String("\x1b[0;"));
+ buffer.appendBackground(theme.editorColor(useEditorBackground ? Theme::TemplateBackground : Theme::BackgroundColor), is256Colors, colorCache);
+ buffer.setFinalStyle();
+ DebugSyntaxHighlighter debugHighlighter;
+ debugHighlighter.setDefinition(definition);
+ debugHighlighter.highlightData(in, d->out, buffer.latin1(), backgroundDefaultColor, d->ansiStyles, options);
+ }
+
+ if (useEditorBackground) {
+ d->out << QStringLiteral("\x1b[0m");
+ }
+
+ d->out.setDevice(nullptr);
+ d->file.close();
+ d->ansiStyles.clear();
+}
+
+void AnsiHighlighter::applyFormat(int offset, int length, const Format &format)
+{
+ Q_D(AnsiHighlighter);
+ auto const &ansiStyle = d->ansiStyles[format.id()];
+ d->out << ansiStyle.first << d->currentLine.mid(offset, length) << ansiStyle.second;
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/ansihighlighter.h b/src/libs/3rdparty/syntax-highlighting/src/lib/ansihighlighter.h
new file mode 100644
index 0000000000..0942aa0242
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/ansihighlighter.h
@@ -0,0 +1,66 @@
+/*
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
+*/
+
+#ifndef KSYNTAXHIGHLIGHTING_ANSIHIGHLIGHTER_H
+#define KSYNTAXHIGHLIGHTING_ANSIHIGHLIGHTER_H
+
+#include "abstracthighlighter.h"
+#include "ksyntaxhighlighting_export.h"
+
+#include <QFlags>
+#include <QString>
+
+QT_BEGIN_NAMESPACE
+class QIODevice;
+QT_END_NAMESPACE
+
+namespace KSyntaxHighlighting
+{
+class AnsiHighlighterPrivate;
+
+// Exported for a bundled helper program
+class KSYNTAXHIGHLIGHTING_EXPORT AnsiHighlighter final : public AbstractHighlighter
+{
+public:
+ enum class AnsiFormat {
+ TrueColor,
+ XTerm256Color,
+ };
+
+ enum class Option {
+ NoOptions,
+ UseEditorBackground = 1 << 0,
+ Unbuffered = 1 << 1,
+
+ // Options that displays a useful visual aid for syntax creation
+ TraceFormat = 1 << 2,
+ TraceRegion = 1 << 3,
+ TraceContext = 1 << 4,
+ TraceStackSize = 1 << 5,
+ TraceAll = TraceFormat | TraceRegion | TraceContext | TraceStackSize,
+ };
+ Q_DECLARE_FLAGS(Options, Option)
+
+ AnsiHighlighter();
+ ~AnsiHighlighter() override;
+
+ void highlightFile(const QString &fileName, AnsiFormat format = AnsiFormat::TrueColor, Options options = Option::UseEditorBackground);
+ void highlightData(QIODevice *device, AnsiFormat format = AnsiFormat::TrueColor, Options options = Option::UseEditorBackground);
+
+ void setOutputFile(const QString &fileName);
+ void setOutputFile(FILE *fileHandle);
+
+protected:
+ void applyFormat(int offset, int length, const Format &format) override;
+
+private:
+ Q_DECLARE_PRIVATE(AnsiHighlighter)
+};
+}
+
+Q_DECLARE_OPERATORS_FOR_FLAGS(KSyntaxHighlighting::AnsiHighlighter::Options)
+
+#endif // KSYNTAXHIGHLIGHTING_ANSIHIGHLIGHTER_H
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/context.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/context.cpp
index 9887b959d0..af269d14d0 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/context.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/context.cpp
@@ -1,32 +1,16 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
*/
#include "context_p.h"
#include "definition_p.h"
#include "format.h"
+#include "ksyntaxhighlighting_logging.h"
#include "repository.h"
#include "rule_p.h"
-#include "ksyntaxhighlighting_logging.h"
#include "xml_p.h"
#include <QString>
@@ -34,173 +18,122 @@
using namespace KSyntaxHighlighting;
-Definition Context::definition() const
-{
- return m_def.definition();
-}
-
-void Context::setDefinition(const DefinitionRef &def)
+Context::Context(const DefinitionData &def, const HighlightingContextData &data)
+ : m_name(data.name)
+ , m_attributeFormat(data.attribute.isEmpty() ? Format() : def.formatByName(data.attribute))
+ , m_indentationBasedFolding(!data.noIndentationBasedFolding && def.indentationBasedFolding)
{
- m_def = def;
+ if (!data.attribute.isEmpty() && !m_attributeFormat.isValid()) {
+ qCWarning(Log) << "Context: Unknown format" << data.attribute << "in context" << m_name << "of definition" << def.name;
+ }
}
bool Context::indentationBasedFoldingEnabled() const
{
- if (m_noIndentationBasedFolding)
- return false;
-
- return m_def.definition().indentationBasedFoldingEnabled();
+ return m_indentationBasedFolding;
}
-void Context::load(QXmlStreamReader& reader)
+void Context::resolveContexts(DefinitionData &def, const HighlightingContextData &data)
{
- Q_ASSERT(reader.name() == QLatin1String("context"));
- Q_ASSERT(reader.tokenType() == QXmlStreamReader::StartElement);
-
- m_name = reader.attributes().value(QStringLiteral("name")).toString();
- m_attribute = reader.attributes().value(QStringLiteral("attribute")).toString();
- m_lineEndContext.parse(reader.attributes().value(QStringLiteral("lineEndContext")));
- m_lineEmptyContext.parse(reader.attributes().value(QStringLiteral("lineEmptyContext")));
- m_fallthrough = Xml::attrToBool(reader.attributes().value(QStringLiteral("fallthrough")));
- m_fallthroughContext.parse(reader.attributes().value(QStringLiteral("fallthroughContext")));
- if (m_fallthroughContext.isStay())
- m_fallthrough = false;
- m_noIndentationBasedFolding = Xml::attrToBool(reader.attributes().value(QStringLiteral("noIndentationBasedFolding")));
-
- reader.readNext();
- while (!reader.atEnd()) {
- switch (reader.tokenType()) {
- case QXmlStreamReader::StartElement:
- {
- auto rule = Rule::create(reader.name());
- if (rule) {
- rule->setDefinition(m_def.definition());
- if (rule->load(reader))
- m_rules.push_back(rule);
- } else {
- reader.skipCurrentElement();
- }
- reader.readNext();
- break;
- }
- case QXmlStreamReader::EndElement:
- return;
- default:
- reader.readNext();
- break;
- }
- }
-}
+ m_lineEndContext.resolve(def, data.lineEndContext);
+ m_lineEmptyContext.resolve(def, data.lineEmptyContext);
+ m_fallthroughContext.resolve(def, data.fallthroughContext);
+ m_stopEmptyLineContextSwitchLoop = data.stopEmptyLineContextSwitchLoop;
-void Context::resolveContexts()
-{
- const auto def = m_def.definition();
- m_lineEndContext.resolve(def);
- m_lineEmptyContext.resolve(def);
- m_fallthroughContext.resolve(def);
- for (const auto &rule : m_rules)
- rule->resolveContext();
-}
+ /**
+ * line end context switches only when lineEmptyContext is #stay. This avoids
+ * skipping empty lines after a line continuation character (see bug 405903)
+ */
+ if (m_lineEmptyContext.isStay()) {
+ m_lineEmptyContext = m_lineEndContext;
+ }
-Context::ResolveState Context::resolveState()
-{
- if (m_resolveState == Unknown) {
- for (const auto &rule : m_rules) {
- auto inc = std::dynamic_pointer_cast<IncludeRules>(rule);
- if (inc) {
- m_resolveState = Unresolved;
- return m_resolveState;
- }
+ m_rules.reserve(data.rules.size());
+ for (const auto &ruleData : data.rules) {
+ m_rules.push_back(Rule::create(def, ruleData, m_name));
+ if (!m_rules.back()) {
+ m_rules.pop_back();
}
- m_resolveState = Resolved;
}
- return m_resolveState;
}
-void Context::resolveIncludes()
+void Context::resolveIncludes(DefinitionData &def)
{
- if (resolveState() == Resolved)
+ if (m_resolveState == Resolved) {
return;
- if (resolveState() == Resolving) {
+ }
+ if (m_resolveState == Resolving) {
qCWarning(Log) << "Cyclic dependency!";
return;
}
- Q_ASSERT(resolveState() == Unresolved);
+ Q_ASSERT(m_resolveState == Unresolved);
m_resolveState = Resolving; // cycle guard
for (auto it = m_rules.begin(); it != m_rules.end();) {
- auto inc = std::dynamic_pointer_cast<IncludeRules>(*it);
- if (!inc) {
+ const IncludeRules *includeRules = it->get()->castToIncludeRules();
+ if (!includeRules) {
+ m_hasDynamicRule = m_hasDynamicRule || it->get()->isDynamic();
++it;
continue;
}
- Context* context = nullptr;
- auto myDefData = DefinitionData::get(m_def.definition());
- if (inc->definitionName().isEmpty()) { // local include
- context = myDefData->contextByName(inc->contextName());
+
+ Context *context = nullptr;
+ DefinitionData *defData = &def;
+
+ const auto &contextName = includeRules->contextName();
+ const int idx = contextName.indexOf(QLatin1String("##"));
+
+ if (idx == -1) { // local include
+ context = def.contextByName(contextName);
} else {
- auto def = myDefData->repo->definitionForName(inc->definitionName());
- if (!def.isValid()) {
- qCWarning(Log) << "Unable to resolve external include rule for definition" << inc->definitionName() << "in" << m_def.definition().name();
+ auto definitionName = contextName.mid(idx + 2);
+ auto includedDef = def.repo->definitionForName(definitionName);
+ if (!includedDef.isValid()) {
+ qCWarning(Log) << "Unable to resolve external include rule for definition" << definitionName << "in" << def.name;
++it;
continue;
}
- auto defData = DefinitionData::get(def);
+ defData = DefinitionData::get(includedDef);
+ def.addImmediateIncludedDefinition(includedDef);
defData->load();
- if (inc->contextName().isEmpty())
+ if (idx == 0) {
context = defData->initialContext();
- else
- context = defData->contextByName(inc->contextName());
+ } else {
+ context = defData->contextByName(QStringView(contextName).left(idx));
+ }
}
+
if (!context) {
- qCWarning(Log) << "Unable to resolve include rule for definition" << inc->contextName() << "##" << inc->definitionName() << "in" << m_def.definition().name();
+ qCWarning(Log) << "Unable to resolve include rule for definition" << contextName << "in" << def.name;
+ ++it;
+ continue;
+ }
+
+ if (context == this) {
+ qCWarning(Log) << "Unable to resolve self include rule for definition" << contextName << "in" << def.name;
++it;
continue;
}
- context->resolveIncludes();
+
+ if (context->m_resolveState != Resolved) {
+ context->resolveIncludes(*defData);
+ }
+
+ m_hasDynamicRule = m_hasDynamicRule || context->m_hasDynamicRule;
/**
* handle included attribute
* transitive closure: we might include attributes included from somewhere else
*/
- if (inc->includeAttribute()) {
- m_attribute = context->m_attribute;
- m_attributeContext = context->m_attributeContext ? context->m_attributeContext : context;
+ if (includeRules->includeAttribute()) {
+ m_attributeFormat = context->m_attributeFormat;
}
it = m_rules.erase(it);
- for (const auto &rule : context->rules()) {
- it = m_rules.insert(it, rule);
- ++it;
- }
+ it = m_rules.insert(it, context->rules().begin(), context->rules().end());
+ it += context->rules().size();
}
m_resolveState = Resolved;
}
-
-void Context::resolveAttributeFormat()
-{
- /**
- * try to get our format from the definition we stem from
- * we need to handle included attributes via m_attributeContext
- */
- if (!m_attribute.isEmpty()) {
- const auto def = m_attributeContext ? m_attributeContext->m_def.definition() : m_def.definition();
- m_attributeFormat = DefinitionData::get(def)->formatByName(m_attribute);
- if (!m_attributeFormat.isValid()) {
- if (m_attributeContext) {
- qCWarning(Log) << "Context: Unknown format" << m_attribute << "in context" << m_name << "of definition" << m_def.definition().name() << "from included context" << m_attributeContext->m_name << "of definition" << def.name();
- } else {
- qCWarning(Log) << "Context: Unknown format" << m_attribute << "in context" << m_name << "of definition" << m_def.definition().name();
- }
- }
- }
-
- /**
- * lookup formats for our rules
- */
- for (const auto &rule : m_rules) {
- rule->resolveAttributeFormat(this);
- }
-}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/context_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/context_p.h
index a034d0e27d..8cf0f1bfab 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/context_p.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/context_p.h
@@ -1,53 +1,35 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_CONTEXT_P_H
#define KSYNTAXHIGHLIGHTING_CONTEXT_P_H
-#include "rule_p.h"
#include "contextswitch_p.h"
-#include "definition.h"
-#include "definitionref_p.h"
#include "format.h"
+#include "highlightingdata_p.hpp"
+#include "rule_p.h"
#include <QString>
#include <vector>
-QT_BEGIN_NAMESPACE
-class QXmlStreamReader;
-QT_END_NAMESPACE
-
-namespace KSyntaxHighlighting {
+namespace KSyntaxHighlighting
+{
+class DefinitionData;
class Context
{
public:
- Context() = default;
- ~Context() = default;
+ Q_DISABLE_COPY(Context)
+
+ Context(Context &&) = default;
+ Context &operator=(Context &&) = default;
- Definition definition() const;
- void setDefinition(const DefinitionRef &def);
+ Context(const DefinitionData &def, const HighlightingContextData &data);
+ ~Context() = default;
const QString &name() const
{
@@ -66,7 +48,17 @@ public:
bool fallthrough() const
{
- return m_fallthrough;
+ return !m_fallthroughContext.isStay();
+ }
+
+ bool hasDynamicRule() const
+ {
+ return m_hasDynamicRule;
+ }
+
+ bool stopEmptyLineContextSwitchLoop() const
+ {
+ return m_stopEmptyLineContextSwitchLoop;
}
const ContextSwitch &fallthroughContext() const
@@ -90,49 +82,29 @@ public:
*/
bool indentationBasedFoldingEnabled() const;
- void load(QXmlStreamReader &reader);
- void resolveContexts();
- void resolveIncludes();
- void resolveAttributeFormat();
+ void resolveContexts(DefinitionData &def, const HighlightingContextData &data);
+ void resolveIncludes(DefinitionData &def);
private:
- Q_DISABLE_COPY(Context)
+ enum ResolveState : quint8 { Unresolved, Resolving, Resolved };
- enum ResolveState {
- Unknown,
- Unresolved,
- Resolving,
- Resolved
- };
- ResolveState resolveState();
+ std::vector<Rule::Ptr> m_rules;
- DefinitionRef m_def;
QString m_name;
- /**
- * attribute name, to lookup our format
- */
- QString m_attribute;
-
- /**
- * context to use for lookup, if != this context
- */
- const Context *m_attributeContext = nullptr;
-
- /**
- * resolved format for our attribute, done in resolveAttributeFormat
- */
- Format m_attributeFormat;
-
ContextSwitch m_lineEndContext;
ContextSwitch m_lineEmptyContext;
ContextSwitch m_fallthroughContext;
- std::vector<Rule::Ptr> m_rules;
+ /**
+ * resolved format for our attribute, done in constructor and resolveIncludes
+ */
+ Format m_attributeFormat;
- ResolveState m_resolveState = Unknown;
- bool m_fallthrough = false;
- bool m_noIndentationBasedFolding = false;
+ ResolveState m_resolveState = Unresolved;
+ bool m_hasDynamicRule = false;
+ bool m_stopEmptyLineContextSwitchLoop = true;
+ bool m_indentationBasedFolding;
};
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/contextswitch.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/contextswitch.cpp
index a4d1dbbd85..71a5a01c29 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/contextswitch.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/contextswitch.cpp
@@ -1,90 +1,51 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-License-Identifier: MIT
*/
#include "contextswitch_p.h"
#include "definition.h"
#include "definition_p.h"
-#include "repository.h"
+#include "highlightingdata_p.hpp"
#include "ksyntaxhighlighting_logging.h"
-
+#include "repository.h"
using namespace KSyntaxHighlighting;
-bool ContextSwitch::isStay() const
+void ContextSwitch::resolve(DefinitionData &def, QStringView contextInstr)
{
- return m_popCount == 0 && !m_context && m_contextName.isEmpty() && m_defName.isEmpty();
-}
+ HighlightingContextData::ContextSwitch ctx(contextInstr);
-int ContextSwitch::popCount() const
-{
- return m_popCount;
-}
+ m_popCount = ctx.popCount();
+ m_isStay = !m_popCount;
-Context* ContextSwitch::context() const
-{
- return m_context;
-}
+ auto contextName = ctx.contextName();
+ auto defName = ctx.defName();
-void ContextSwitch::parse(const QStringRef& contextInstr)
-{
- if (contextInstr.isEmpty() || contextInstr == QLatin1String("#stay"))
- return;
-
- if (contextInstr.startsWith(QLatin1String("#pop!"))) {
- ++m_popCount;
- m_contextName = contextInstr.mid(5).toString();
- return;
- }
-
- if (contextInstr.startsWith(QLatin1String("#pop"))) {
- ++m_popCount;
- parse(contextInstr.mid(4));
+ if (contextName.isEmpty() && defName.isEmpty()) {
return;
}
- const auto idx = contextInstr.indexOf(QLatin1String("##"));
- if (idx >= 0) {
- m_contextName = contextInstr.left(idx).toString();
- m_defName = contextInstr.mid(idx + 2).toString();
+ if (defName.isEmpty()) {
+ m_context = def.contextByName(contextName);
} else {
- m_contextName = contextInstr.toString();
+ auto d = def.repo->definitionForName(defName.toString());
+ if (d.isValid()) {
+ auto data = DefinitionData::get(d);
+ def.addImmediateIncludedDefinition(d);
+ data->load();
+ if (contextName.isEmpty()) {
+ m_context = data->initialContext();
+ } else {
+ m_context = data->contextByName(contextName);
+ }
+ }
}
-}
-void ContextSwitch::resolve(const Definition &def)
-{
- auto d = def;
- if (!m_defName.isEmpty()) {
- d = DefinitionData::get(def)->repo->definitionForName(m_defName);
- auto data = DefinitionData::get(d);
- data->load();
- if (m_contextName.isEmpty())
- m_context = data->initialContext();
- }
-
- if (!m_contextName.isEmpty()) {
- m_context = DefinitionData::get(d)->contextByName(m_contextName);
- if (!m_context)
- qCWarning(Log) << "cannot find context" << m_contextName << "in" << def.name();
+ if (!m_context) {
+ qCWarning(Log) << "cannot find context" << contextName << "in" << def.name;
+ } else {
+ m_isStay = false;
}
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/contextswitch_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/contextswitch_p.h
index 669855af7a..29b0e685e2 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/contextswitch_p.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/contextswitch_p.h
@@ -1,24 +1,7 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_CONTEXTSWITCH_P_H
@@ -26,10 +9,10 @@
#include <QString>
-namespace KSyntaxHighlighting {
-
+namespace KSyntaxHighlighting
+{
class Context;
-class Definition;
+class DefinitionData;
class ContextSwitch
{
@@ -37,19 +20,27 @@ public:
ContextSwitch() = default;
~ContextSwitch() = default;
- bool isStay() const;
+ bool isStay() const
+ {
+ return m_isStay;
+ }
+
+ int popCount() const
+ {
+ return m_popCount;
+ }
- int popCount() const;
- Context* context() const;
+ Context *context() const
+ {
+ return m_context;
+ }
- void parse(const QStringRef &contextInstr);
- void resolve(const Definition &def);
+ void resolve(DefinitionData &def, QStringView contextInstr);
private:
- QString m_defName;
- QString m_contextName;
Context *m_context = nullptr;
int m_popCount = 0;
+ bool m_isStay = true;
};
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/definition.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/definition.cpp
index ae95a6b235..e2cca6da71 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/definition.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/definition.cpp
@@ -1,28 +1,11 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
- Copyright (C) 2018 Dominik Haumann <dhaumann@kde.org>
- Copyright (C) 2018 Christoph Cullmann <cullmann@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2018 Dominik Haumann <dhaumann@kde.org>
+ SPDX-FileCopyrightText: 2018 Christoph Cullmann <cullmann@kde.org>
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+ SPDX-License-Identifier: MIT
+*/
#include "definition.h"
#include "definition_p.h"
@@ -31,66 +14,51 @@
#include "context_p.h"
#include "format.h"
#include "format_p.h"
+#include "highlightingdata_p.hpp"
+#include "ksyntaxhighlighting_logging.h"
+#include "ksyntaxhighlighting_version.h"
#include "repository.h"
#include "repository_p.h"
#include "rule_p.h"
-#include "ksyntaxhighlighting_logging.h"
-#include "ksyntaxhighlighting_version.h"
+#include "worddelimiters_p.h"
#include "xml_p.h"
+#include <QCborMap>
#include <QCoreApplication>
-#include <QDebug>
#include <QFile>
-#include <QHash>
-#include <QJsonObject>
-#include <QStringList>
-#include <QVector>
#include <QXmlStreamReader>
#include <algorithm>
+#include <atomic>
using namespace KSyntaxHighlighting;
DefinitionData::DefinitionData()
- : wordDelimiters(QStringLiteral("\t !%&()*+,-./:;<=>?[\\]^{|}~")) // must be sorted!
+ : wordDelimiters()
, wordWrapDelimiters(wordDelimiters)
{
}
-DefinitionData::~DefinitionData()
-{
- qDeleteAll(contexts);
-}
-
-DefinitionData* DefinitionData::get(const Definition &def)
-{
- return def.d.get();
-}
-
-Definition::Definition() :
- d(new DefinitionData)
-{
-}
+DefinitionData::~DefinitionData() = default;
-Definition::Definition(const Definition &other) :
- d(other.d)
+Definition::Definition()
+ : d(std::make_shared<DefinitionData>())
{
d->q = *this;
}
-Definition::Definition(const std::shared_ptr<DefinitionData> &dd) :
- d(dd)
-{
-}
-
-Definition::~Definition()
-{
-}
+Definition::Definition(Definition &&other) noexcept = default;
+Definition::Definition(const Definition &) = default;
+Definition::~Definition() = default;
+Definition &Definition::operator=(Definition &&other) noexcept = default;
+Definition &Definition::operator=(const Definition &) = default;
-Definition& Definition::operator=(const Definition &rhs)
+Definition::Definition(std::shared_ptr<DefinitionData> &&dd)
+ : d(std::move(dd))
{
- d = rhs.d;
- return *this;
+ if (!d) {
+ Definition().d.swap(d);
+ }
}
bool Definition::operator==(const Definition &other) const
@@ -98,7 +66,7 @@ bool Definition::operator==(const Definition &other) const
return d->fileName == other.d->fileName;
}
-bool Definition::operator!=(const Definition& other) const
+bool Definition::operator!=(const Definition &other) const
{
return d->fileName != other.d->fileName;
}
@@ -120,7 +88,10 @@ QString Definition::name() const
QString Definition::translatedName() const
{
- return QCoreApplication::instance()->translate("Language", d->name.toUtf8().constData());
+ if (d->translatedName.isEmpty()) {
+ d->translatedName = QCoreApplication::instance()->translate("Language", d->nameUtf8.isEmpty() ? d->name.toUtf8().constData() : d->nameUtf8.constData());
+ }
+ return d->translatedName;
}
QString Definition::section() const
@@ -130,15 +101,19 @@ QString Definition::section() const
QString Definition::translatedSection() const
{
- return QCoreApplication::instance()->translate("Language Section", d->section.toUtf8().constData());
+ if (d->translatedSection.isEmpty()) {
+ d->translatedSection = QCoreApplication::instance()->translate("Language Section",
+ d->sectionUtf8.isEmpty() ? d->section.toUtf8().constData() : d->sectionUtf8.constData());
+ }
+ return d->translatedSection;
}
-QVector<QString> Definition::mimeTypes() const
+QList<QString> Definition::mimeTypes() const
{
return d->mimetypes;
}
-QVector<QString> Definition::extensions() const
+QList<QString> Definition::extensions() const
{
return d->extensions;
}
@@ -181,13 +156,13 @@ QString Definition::license() const
bool Definition::isWordDelimiter(QChar c) const
{
d->load();
- return d->isWordDelimiter(c);
+ return d->wordDelimiters.contains(c);
}
bool Definition::isWordWrapDelimiter(QChar c) const
{
d->load();
- return std::binary_search(d->wordWrapDelimiters.constBegin(), d->wordWrapDelimiters.constEnd(), c);
+ return d->wordWrapDelimiters.contains(c);
}
bool Definition::foldingEnabled() const
@@ -227,69 +202,60 @@ QStringList Definition::keywordLists() const
return d->keywordLists.keys();
}
-QStringList Definition::keywordList(const QString& name) const
+QStringList Definition::keywordList(const QString &name) const
{
d->load(DefinitionData::OnlyKeywords(true));
const auto list = d->keywordList(name);
return list ? list->keywords() : QStringList();
}
-QVector<Format> Definition::formats() const
+bool Definition::setKeywordList(const QString &name, const QStringList &content)
+{
+ d->load(DefinitionData::OnlyKeywords(true));
+ KeywordList *list = d->keywordList(name);
+ if (list) {
+ list->setKeywordList(content);
+ return true;
+ } else {
+ return false;
+ }
+}
+
+QList<Format> Definition::formats() const
{
d->load();
// sort formats so that the order matches the order of the itemDatas in the xml files.
- auto formatList = QVector<Format>::fromList(d->formats.values());
- std::sort(formatList.begin(), formatList.end(), [](const KSyntaxHighlighting::Format & lhs, const KSyntaxHighlighting::Format & rhs){
+ auto formatList = d->formats.values();
+ std::sort(formatList.begin(), formatList.end(), [](const KSyntaxHighlighting::Format &lhs, const KSyntaxHighlighting::Format &rhs) {
return lhs.id() < rhs.id();
});
return formatList;
}
-QVector<Definition> Definition::includedDefinitions() const
+QList<Definition> Definition::includedDefinitions() const
{
d->load();
// init worklist and result used as guard with this definition
- QVector<Definition> queue{*this};
- QVector<Definition> definitions{*this};
- while (!queue.isEmpty()) {
- // Iterate all context rules to find associated Definitions. This will
- // automatically catch other Definitions referenced with IncludeRuldes or ContextSwitch.
- const auto definition = queue.takeLast();
- for (const auto & context : qAsConst(definition.d->contexts)) {
- // handle context switch attributes of this context itself
- for (const auto switchContext : {context->lineEndContext().context(), context->lineEmptyContext().context(), context->fallthroughContext().context()}) {
- if (switchContext) {
- if (!definitions.contains(switchContext->definition())) {
- queue.push_back(switchContext->definition());
- definitions.push_back(switchContext->definition());
- }
- }
- }
-
- // handle the embedded rules
- for (const auto &rule : context->rules()) {
- // handle include rules like inclusion
- if (!definitions.contains(rule->definition())) {
- queue.push_back(rule->definition());
- definitions.push_back(rule->definition());
- }
-
- // handle context switch context inclusion
- if (auto switchContext = rule->context().context()) {
- if (!definitions.contains(switchContext->definition())) {
- queue.push_back(switchContext->definition());
- definitions.push_back(switchContext->definition());
- }
- }
+ QList<const DefinitionData *> queue{d.get()};
+ QList<Definition> definitions{*this};
+ while (!queue.empty()) {
+ const auto *def = queue.back();
+ queue.pop_back();
+ for (const auto &defRef : std::as_const(def->immediateIncludedDefinitions)) {
+ const auto definition = defRef.definition();
+ if (!definitions.contains(definition)) {
+ definitions.push_back(definition);
+ queue.push_back(definition.d.get());
}
}
}
// remove the 1st entry, since it is this Definition
- definitions.pop_front();
+ definitions.front() = std::move(definitions.back());
+ definitions.pop_back();
return definitions;
}
@@ -309,75 +275,82 @@ CommentPosition Definition::singleLineCommentPosition() const
QPair<QString, QString> Definition::multiLineCommentMarker() const
{
d->load();
- return { d->multiLineCommentStartMarker, d->multiLineCommentEndMarker };
+ return {d->multiLineCommentStartMarker, d->multiLineCommentEndMarker};
}
-QVector<QPair<QChar, QString>> Definition::characterEncodings() const
+QList<QPair<QChar, QString>> Definition::characterEncodings() const
{
d->load();
return d->characterEncodings;
}
-Context* DefinitionData::initialContext() const
+Context *DefinitionData::initialContext()
{
- Q_ASSERT(!contexts.isEmpty());
- return contexts.first();
+ Q_ASSERT(!contexts.empty());
+ return &contexts.front();
}
-Context* DefinitionData::contextByName(const QString& wantedName) const
+Context *DefinitionData::contextByName(QStringView wantedName)
{
- for (const auto context : contexts) {
- if (context->name() == wantedName)
- return context;
+ for (auto &context : contexts) {
+ if (context.name() == wantedName) {
+ return &context;
+ }
}
return nullptr;
}
-KeywordList *DefinitionData::keywordList(const QString& wantedName)
+KeywordList *DefinitionData::keywordList(const QString &wantedName)
{
auto it = keywordLists.find(wantedName);
return (it == keywordLists.end()) ? nullptr : &it.value();
}
-bool DefinitionData::isWordDelimiter(QChar c) const
-{
- return std::binary_search(wordDelimiters.constBegin(), wordDelimiters.constEnd(), c);
-}
-
-Format DefinitionData::formatByName(const QString& wantedName) const
+Format DefinitionData::formatByName(const QString &wantedName) const
{
const auto it = formats.constFind(wantedName);
- if (it != formats.constEnd())
+ if (it != formats.constEnd()) {
return it.value();
+ }
return Format();
}
bool DefinitionData::isLoaded() const
{
- return !contexts.isEmpty();
+ return !contexts.empty();
+}
+
+namespace
+{
+std::atomic<uint64_t> definitionId{1};
}
bool DefinitionData::load(OnlyKeywords onlyKeywords)
{
- if (fileName.isEmpty())
+ if (fileName.isEmpty()) {
return false;
+ }
- if (isLoaded())
+ if (isLoaded()) {
return true;
+ }
- if (bool(onlyKeywords) && keywordIsLoaded)
+ if (bool(onlyKeywords) && keywordIsLoaded) {
return true;
+ }
QFile file(fileName);
- if (!file.open(QFile::ReadOnly))
+ if (!file.open(QFile::ReadOnly)) {
return false;
+ }
QXmlStreamReader reader(&file);
while (!reader.atEnd()) {
const auto token = reader.readNext();
- if (token != QXmlStreamReader::StartElement)
+ if (token != QXmlStreamReader::StartElement) {
continue;
+ }
if (reader.name() == QLatin1String("highlighting")) {
loadHighlighting(reader, onlyKeywords);
@@ -386,61 +359,79 @@ bool DefinitionData::load(OnlyKeywords onlyKeywords)
}
}
- else if (reader.name() == QLatin1String("general"))
+ else if (reader.name() == QLatin1String("general")) {
loadGeneral(reader);
+ }
}
for (auto it = keywordLists.begin(); it != keywordLists.end(); ++it) {
it->setCaseSensitivity(caseSensitive);
}
- for (const auto context : qAsConst(contexts)) {
- context->resolveContexts();
- context->resolveIncludes();
- context->resolveAttributeFormat();
- }
+ resolveContexts();
+
+ id = definitionId.fetch_add(1, std::memory_order_relaxed);
- Q_ASSERT(std::is_sorted(wordDelimiters.constBegin(), wordDelimiters.constEnd()));
return true;
}
void DefinitionData::clear()
{
// keep only name and repo, so we can re-lookup to make references persist over repo reloads
+ id = 0;
keywordLists.clear();
- qDeleteAll(contexts);
contexts.clear();
formats.clear();
+ contextDatas.clear();
+ immediateIncludedDefinitions.clear();
+ wordDelimiters = WordDelimiters();
+ wordWrapDelimiters = wordDelimiters;
+ keywordIsLoaded = false;
+ hasFoldingRegions = false;
+ indentationBasedFolding = false;
+ foldingIgnoreList.clear();
+ singleLineCommentMarker.clear();
+ singleLineCommentPosition = CommentPosition::StartOfLine;
+ multiLineCommentStartMarker.clear();
+ multiLineCommentEndMarker.clear();
+ characterEncodings.clear();
fileName.clear();
+ nameUtf8.clear();
+ translatedName.clear();
section.clear();
+ sectionUtf8.clear();
+ translatedSection.clear();
style.clear();
indenter.clear();
author.clear();
license.clear();
mimetypes.clear();
extensions.clear();
- wordDelimiters = QStringLiteral("\t !%&()*+,-./:;<=>?[\\]^{|}~"); // must be sorted!
- wordWrapDelimiters = wordDelimiters;
caseSensitive = Qt::CaseSensitive;
version = 0.0f;
priority = 0;
hidden = false;
+
+ // purge our cache that is used to unify states
+ unify.clear();
}
-bool DefinitionData::loadMetaData(const QString& definitionFileName)
+bool DefinitionData::loadMetaData(const QString &definitionFileName)
{
fileName = definitionFileName;
QFile file(definitionFileName);
- if (!file.open(QFile::ReadOnly))
+ if (!file.open(QFile::ReadOnly)) {
return false;
+ }
QXmlStreamReader reader(&file);
while (!reader.atEnd()) {
const auto token = reader.readNext();
- if (token != QXmlStreamReader::StartElement)
+ if (token != QXmlStreamReader::StartElement) {
continue;
+ }
if (reader.name() == QLatin1String("language")) {
return loadLanguage(reader);
}
@@ -449,25 +440,26 @@ bool DefinitionData::loadMetaData(const QString& definitionFileName)
return false;
}
-bool DefinitionData::loadMetaData(const QString &file, const QJsonObject &obj)
+bool DefinitionData::loadMetaData(const QString &file, const QCborMap &obj)
{
- name = obj.value(QLatin1String("name")).toString();
- section = obj.value(QLatin1String("section")).toString();
- version = obj.value(QLatin1String("version")).toInt();
- priority = obj.value(QLatin1String("priority")).toInt();
- style = obj.value(QLatin1String("style")).toString();
- author = obj.value(QLatin1String("author")).toString();
- license = obj.value(QLatin1String("license")).toString();
+ name = obj.value(QLatin1String("name")).toString();
+ nameUtf8 = obj.value(QLatin1String("name")).toByteArray();
+ section = obj.value(QLatin1String("section")).toString();
+ sectionUtf8 = obj.value(QLatin1String("section")).toByteArray();
+ version = obj.value(QLatin1String("version")).toInteger();
+ priority = obj.value(QLatin1String("priority")).toInteger();
+ style = obj.value(QLatin1String("style")).toString();
+ author = obj.value(QLatin1String("author")).toString();
+ license = obj.value(QLatin1String("license")).toString();
indenter = obj.value(QLatin1String("indenter")).toString();
- hidden = obj.value(QLatin1String("hidden")).toBool();
+ hidden = obj.value(QLatin1String("hidden")).toBool();
fileName = file;
const auto exts = obj.value(QLatin1String("extensions")).toString();
- for (const auto &ext : exts.split(QLatin1Char(';'), QString::SkipEmptyParts))
- extensions.push_back(ext);
+ extensions = exts.split(QLatin1Char(';'), Qt::SkipEmptyParts);
+
const auto mts = obj.value(QLatin1String("mimetype")).toString();
- for (const auto &mt : mts.split(QLatin1Char(';'), QString::SkipEmptyParts))
- mimetypes.push_back(mt);
+ mimetypes = mts.split(QLatin1Char(';'), Qt::SkipEmptyParts);
return true;
}
@@ -477,31 +469,35 @@ bool DefinitionData::loadLanguage(QXmlStreamReader &reader)
Q_ASSERT(reader.name() == QLatin1String("language"));
Q_ASSERT(reader.tokenType() == QXmlStreamReader::StartElement);
- if (!checkKateVersion(reader.attributes().value(QStringLiteral("kateversion"))))
+ if (!checkKateVersion(reader.attributes().value(QLatin1String("kateversion")))) {
return false;
+ }
- name = reader.attributes().value(QStringLiteral("name")).toString();
- section = reader.attributes().value(QStringLiteral("section")).toString();
+ name = reader.attributes().value(QLatin1String("name")).toString();
+ section = reader.attributes().value(QLatin1String("section")).toString();
// toFloat instead of toInt for backward compatibility with old Kate files
- version = reader.attributes().value(QStringLiteral("version")).toFloat();
- priority = reader.attributes().value(QStringLiteral("priority")).toInt();
- hidden = Xml::attrToBool(reader.attributes().value(QStringLiteral("hidden")));
- style = reader.attributes().value(QStringLiteral("style")).toString();
- indenter = reader.attributes().value(QStringLiteral("indenter")).toString();
- author = reader.attributes().value(QStringLiteral("author")).toString();
- license = reader.attributes().value(QStringLiteral("license")).toString();
- const auto exts = reader.attributes().value(QStringLiteral("extensions")).toString();
- for (const auto &ext : exts.split(QLatin1Char(';'), QString::SkipEmptyParts))
- extensions.push_back(ext);
- const auto mts = reader.attributes().value(QStringLiteral("mimetype")).toString();
- for (const auto &mt : mts.split(QLatin1Char(';'), QString::SkipEmptyParts))
- mimetypes.push_back(mt);
- if (reader.attributes().hasAttribute(QStringLiteral("casesensitive")))
- caseSensitive = Xml::attrToBool(reader.attributes().value(QStringLiteral("casesensitive"))) ? Qt::CaseSensitive : Qt::CaseInsensitive;
+ version = reader.attributes().value(QLatin1String("version")).toFloat();
+ priority = reader.attributes().value(QLatin1String("priority")).toInt();
+ hidden = Xml::attrToBool(reader.attributes().value(QLatin1String("hidden")));
+ style = reader.attributes().value(QLatin1String("style")).toString();
+ indenter = reader.attributes().value(QLatin1String("indenter")).toString();
+ author = reader.attributes().value(QLatin1String("author")).toString();
+ license = reader.attributes().value(QLatin1String("license")).toString();
+ const auto exts = reader.attributes().value(QLatin1String("extensions"));
+ for (const auto &ext : exts.split(QLatin1Char(';'), Qt::SkipEmptyParts)) {
+ extensions.push_back(ext.toString());
+ }
+ const auto mts = reader.attributes().value(QLatin1String("mimetype"));
+ for (const auto &mt : mts.split(QLatin1Char(';'), Qt::SkipEmptyParts)) {
+ mimetypes.push_back(mt.toString());
+ }
+ if (reader.attributes().hasAttribute(QLatin1String("casesensitive"))) {
+ caseSensitive = Xml::attrToBool(reader.attributes().value(QLatin1String("casesensitive"))) ? Qt::CaseSensitive : Qt::CaseInsensitive;
+ }
return true;
}
-void DefinitionData::loadHighlighting(QXmlStreamReader& reader, OnlyKeywords onlyKeywords)
+void DefinitionData::loadHighlighting(QXmlStreamReader &reader, OnlyKeywords onlyKeywords)
{
Q_ASSERT(reader.name() == QLatin1String("highlighting"));
Q_ASSERT(reader.tokenType() == QXmlStreamReader::StartElement);
@@ -511,35 +507,34 @@ void DefinitionData::loadHighlighting(QXmlStreamReader& reader, OnlyKeywords onl
while (!reader.atEnd()) {
switch (reader.tokenType()) {
- case QXmlStreamReader::StartElement:
- if (reader.name() == QLatin1String("list")) {
- if (!keywordIsLoaded) {
- KeywordList keywords;
- keywords.load(reader);
- keywordLists.insert(keywords.name(), keywords);
- }
- else {
- reader.skipCurrentElement();
- reader.readNext(); // Skip </list>
- }
- } else if (bool(onlyKeywords)) {
- resolveIncludeKeywords();
- return;
- } else if (reader.name() == QLatin1String("contexts")) {
- resolveIncludeKeywords();
- loadContexts(reader);
- reader.readNext();
- } else if (reader.name() == QLatin1String("itemDatas")) {
- loadItemData(reader);
+ case QXmlStreamReader::StartElement:
+ if (reader.name() == QLatin1String("list")) {
+ if (!keywordIsLoaded) {
+ KeywordList keywords;
+ keywords.load(reader);
+ keywordLists.insert(keywords.name(), keywords);
} else {
- reader.readNext();
+ reader.skipCurrentElement();
+ reader.readNext(); // Skip </list>
}
- break;
- case QXmlStreamReader::EndElement:
+ } else if (bool(onlyKeywords)) {
+ resolveIncludeKeywords();
return;
- default:
+ } else if (reader.name() == QLatin1String("contexts")) {
+ resolveIncludeKeywords();
+ loadContexts(reader);
reader.readNext();
- break;
+ } else if (reader.name() == QLatin1String("itemDatas")) {
+ loadItemData(reader);
+ } else {
+ reader.readNext();
+ }
+ break;
+ case QXmlStreamReader::EndElement:
+ return;
+ default:
+ reader.readNext();
+ break;
}
}
}
@@ -557,60 +552,95 @@ void DefinitionData::resolveIncludeKeywords()
}
}
-void DefinitionData::loadContexts(QXmlStreamReader& reader)
+void DefinitionData::loadContexts(QXmlStreamReader &reader)
{
Q_ASSERT(reader.name() == QLatin1String("contexts"));
Q_ASSERT(reader.tokenType() == QXmlStreamReader::StartElement);
+ contextDatas.reserve(32);
+
while (!reader.atEnd()) {
switch (reader.tokenType()) {
- case QXmlStreamReader::StartElement:
- if (reader.name() == QLatin1String("context")) {
- auto context = new Context;
- context->setDefinition(q);
- context->load(reader);
- contexts.push_back(context);
- }
- reader.readNext();
- break;
- case QXmlStreamReader::EndElement:
- return;
- default:
- reader.readNext();
- break;
+ case QXmlStreamReader::StartElement:
+ if (reader.name() == QLatin1String("context")) {
+ contextDatas.push_back(HighlightingContextData());
+ contextDatas.back().load(name, reader);
+ }
+ reader.readNext();
+ break;
+ case QXmlStreamReader::EndElement:
+ return;
+ default:
+ reader.readNext();
+ break;
}
}
}
-void DefinitionData::loadItemData(QXmlStreamReader& reader)
+void DefinitionData::resolveContexts()
+{
+ contexts.reserve(contextDatas.size());
+
+ /**
+ * Transform all HighlightingContextData to Context.
+ * This is necessary so that Context::resolveContexts() can find the referenced contexts.
+ */
+ for (const auto &contextData : std::as_const(contextDatas)) {
+ contexts.emplace_back(*this, contextData);
+ }
+
+ /**
+ * Resolves contexts and rules.
+ */
+ auto ctxIt = contexts.begin();
+ for (const auto &contextData : std::as_const(contextDatas)) {
+ ctxIt->resolveContexts(*this, contextData);
+ ++ctxIt;
+ }
+
+ /**
+ * To free the memory, constDatas is emptied because it is no longer used.
+ */
+ contextDatas.clear();
+ contextDatas.shrink_to_fit();
+
+ /**
+ * Resolved includeRules.
+ */
+ for (auto &context : contexts) {
+ context.resolveIncludes(*this);
+ }
+}
+
+void DefinitionData::loadItemData(QXmlStreamReader &reader)
{
Q_ASSERT(reader.name() == QLatin1String("itemDatas"));
Q_ASSERT(reader.tokenType() == QXmlStreamReader::StartElement);
while (!reader.atEnd()) {
switch (reader.tokenType()) {
- case QXmlStreamReader::StartElement:
- if (reader.name() == QLatin1String("itemData")) {
- Format f;
- auto formatData = FormatPrivate::detachAndGet(f);
- formatData->definition = q;
- formatData->load(reader);
- formatData->id = RepositoryPrivate::get(repo)->nextFormatId();
- formats.insert(f.name(), f);
- reader.readNext();
- }
+ case QXmlStreamReader::StartElement:
+ if (reader.name() == QLatin1String("itemData")) {
+ Format f;
+ auto formatData = FormatPrivate::detachAndGet(f);
+ formatData->definitionName = name;
+ formatData->load(reader);
+ formatData->id = RepositoryPrivate::get(repo)->nextFormatId();
+ formats.insert(f.name(), f);
reader.readNext();
- break;
- case QXmlStreamReader::EndElement:
- return;
- default:
- reader.readNext();
- break;
+ }
+ reader.readNext();
+ break;
+ case QXmlStreamReader::EndElement:
+ return;
+ default:
+ reader.readNext();
+ break;
}
}
}
-void DefinitionData::loadGeneral(QXmlStreamReader& reader)
+void DefinitionData::loadGeneral(QXmlStreamReader &reader)
{
Q_ASSERT(reader.name() == QLatin1String("general"));
Q_ASSERT(reader.tokenType() == QXmlStreamReader::StartElement);
@@ -621,49 +651,50 @@ void DefinitionData::loadGeneral(QXmlStreamReader& reader)
while (!reader.atEnd()) {
switch (reader.tokenType()) {
- case QXmlStreamReader::StartElement:
- ++elementRefCounter;
-
- if (reader.name() == QLatin1String("keywords")) {
- if (reader.attributes().hasAttribute(QStringLiteral("casesensitive")))
- caseSensitive = Xml::attrToBool(reader.attributes().value(QStringLiteral("casesensitive"))) ? Qt::CaseSensitive : Qt::CaseInsensitive;
-
- // adapt sorted wordDelimiters
- wordDelimiters += reader.attributes().value(QStringLiteral("additionalDeliminator"));
- std::sort(wordDelimiters.begin(), wordDelimiters.end());
- auto it = std::unique(wordDelimiters.begin(), wordDelimiters.end());
- wordDelimiters.truncate(std::distance(wordDelimiters.begin(), it));
- for (const auto c : reader.attributes().value(QLatin1String("weakDeliminator")))
- wordDelimiters.remove(c);
-
- // adaptWordWrapDelimiters, and sort
- wordWrapDelimiters = reader.attributes().value(QStringLiteral("wordWrapDeliminator")).toString();
- std::sort(wordWrapDelimiters.begin(), wordWrapDelimiters.end());
- if (wordWrapDelimiters.isEmpty())
- wordWrapDelimiters = wordDelimiters;
- } else if (reader.name() == QLatin1String("folding")) {
- if (reader.attributes().hasAttribute(QStringLiteral("indentationsensitive")))
- indentationBasedFolding = Xml::attrToBool(reader.attributes().value(QStringLiteral("indentationsensitive")));
- } else if (reader.name() == QLatin1String("emptyLines")) {
- loadFoldingIgnoreList(reader);
- } else if (reader.name() == QLatin1String("comments")) {
- loadComments(reader);
- } else if (reader.name() == QLatin1String("spellchecking")) {
- loadSpellchecking(reader);
+ case QXmlStreamReader::StartElement:
+ ++elementRefCounter;
+
+ if (reader.name() == QLatin1String("keywords")) {
+ if (reader.attributes().hasAttribute(QLatin1String("casesensitive"))) {
+ caseSensitive = Xml::attrToBool(reader.attributes().value(QLatin1String("casesensitive"))) ? Qt::CaseSensitive : Qt::CaseInsensitive;
+ }
+
+ // adapt wordDelimiters
+ wordDelimiters.append(reader.attributes().value(QLatin1String("additionalDeliminator")));
+ wordDelimiters.remove(reader.attributes().value(QLatin1String("weakDeliminator")));
+
+ // adapt WordWrapDelimiters
+ auto wordWrapDeliminatorAttr = reader.attributes().value(QLatin1String("wordWrapDeliminator"));
+ if (wordWrapDeliminatorAttr.isEmpty()) {
+ wordWrapDelimiters = wordDelimiters;
} else {
- reader.skipCurrentElement();
+ wordWrapDelimiters.append(wordWrapDeliminatorAttr);
}
- reader.readNext();
- break;
- case QXmlStreamReader::EndElement:
- --elementRefCounter;
- if (elementRefCounter == 0)
- return;
- reader.readNext();
- break;
- default:
- reader.readNext();
- break;
+ } else if (reader.name() == QLatin1String("folding")) {
+ if (reader.attributes().hasAttribute(QLatin1String("indentationsensitive"))) {
+ indentationBasedFolding = Xml::attrToBool(reader.attributes().value(QLatin1String("indentationsensitive")));
+ }
+ } else if (reader.name() == QLatin1String("emptyLines")) {
+ loadFoldingIgnoreList(reader);
+ } else if (reader.name() == QLatin1String("comments")) {
+ loadComments(reader);
+ } else if (reader.name() == QLatin1String("spellchecking")) {
+ loadSpellchecking(reader);
+ } else {
+ reader.skipCurrentElement();
+ }
+ reader.readNext();
+ break;
+ case QXmlStreamReader::EndElement:
+ --elementRefCounter;
+ if (elementRefCounter == 0) {
+ return;
+ }
+ reader.readNext();
+ break;
+ default:
+ reader.readNext();
+ break;
}
}
}
@@ -679,35 +710,36 @@ void DefinitionData::loadComments(QXmlStreamReader &reader)
while (!reader.atEnd()) {
switch (reader.tokenType()) {
- case QXmlStreamReader::StartElement:
- ++elementRefCounter;
- if (reader.name() == QLatin1String("comment")) {
- const bool isSingleLine = reader.attributes().value(QStringLiteral("name")) == QStringLiteral("singleLine");
- if (isSingleLine) {
- singleLineCommentMarker = reader.attributes().value(QStringLiteral("start")).toString();
- const bool afterWhiteSpace = reader.attributes().value(QStringLiteral("position")).toString() == QStringLiteral("afterwhitespace");
- singleLineCommentPosition = afterWhiteSpace ? CommentPosition::AfterWhitespace : CommentPosition::StartOfLine;
- } else {
- multiLineCommentStartMarker = reader.attributes().value(QStringLiteral("start")).toString();
- multiLineCommentEndMarker = reader.attributes().value(QStringLiteral("end")).toString();
- }
+ case QXmlStreamReader::StartElement:
+ ++elementRefCounter;
+ if (reader.name() == QLatin1String("comment")) {
+ const bool isSingleLine = reader.attributes().value(QLatin1String("name")) == QLatin1String("singleLine");
+ if (isSingleLine) {
+ singleLineCommentMarker = reader.attributes().value(QLatin1String("start")).toString();
+ const bool afterWhiteSpace = reader.attributes().value(QLatin1String("position")) == QLatin1String("afterwhitespace");
+ singleLineCommentPosition = afterWhiteSpace ? CommentPosition::AfterWhitespace : CommentPosition::StartOfLine;
+ } else {
+ multiLineCommentStartMarker = reader.attributes().value(QLatin1String("start")).toString();
+ multiLineCommentEndMarker = reader.attributes().value(QLatin1String("end")).toString();
}
- reader.readNext();
- break;
- case QXmlStreamReader::EndElement:
- --elementRefCounter;
- if (elementRefCounter == 0)
- return;
- reader.readNext();
- break;
- default:
- reader.readNext();
- break;
+ }
+ reader.readNext();
+ break;
+ case QXmlStreamReader::EndElement:
+ --elementRefCounter;
+ if (elementRefCounter == 0) {
+ return;
+ }
+ reader.readNext();
+ break;
+ default:
+ reader.readNext();
+ break;
}
}
}
-void DefinitionData::loadFoldingIgnoreList(QXmlStreamReader& reader)
+void DefinitionData::loadFoldingIgnoreList(QXmlStreamReader &reader)
{
Q_ASSERT(reader.name() == QLatin1String("emptyLines"));
Q_ASSERT(reader.tokenType() == QXmlStreamReader::StartElement);
@@ -718,22 +750,23 @@ void DefinitionData::loadFoldingIgnoreList(QXmlStreamReader& reader)
while (!reader.atEnd()) {
switch (reader.tokenType()) {
- case QXmlStreamReader::StartElement:
- ++elementRefCounter;
- if (reader.name() == QLatin1String("emptyLine")) {
- foldingIgnoreList << reader.attributes().value(QStringLiteral("regexpr")).toString();
- }
- reader.readNext();
- break;
- case QXmlStreamReader::EndElement:
- --elementRefCounter;
- if (elementRefCounter == 0)
- return;
- reader.readNext();
- break;
- default:
- reader.readNext();
- break;
+ case QXmlStreamReader::StartElement:
+ ++elementRefCounter;
+ if (reader.name() == QLatin1String("emptyLine")) {
+ foldingIgnoreList << reader.attributes().value(QLatin1String("regexpr")).toString();
+ }
+ reader.readNext();
+ break;
+ case QXmlStreamReader::EndElement:
+ --elementRefCounter;
+ if (elementRefCounter == 0) {
+ return;
+ }
+ reader.readNext();
+ break;
+ default:
+ reader.readNext();
+ break;
}
}
}
@@ -749,31 +782,32 @@ void DefinitionData::loadSpellchecking(QXmlStreamReader &reader)
while (!reader.atEnd()) {
switch (reader.tokenType()) {
- case QXmlStreamReader::StartElement:
- ++elementRefCounter;
- if (reader.name() == QLatin1String("encoding")) {
- const auto charRef = reader.attributes().value(QStringLiteral("char"));
- if (!charRef.isEmpty()) {
- const auto str = reader.attributes().value(QStringLiteral("string")).toString();
- characterEncodings.push_back({ charRef[0], str });
- }
+ case QXmlStreamReader::StartElement:
+ ++elementRefCounter;
+ if (reader.name() == QLatin1String("encoding")) {
+ const auto charRef = reader.attributes().value(QLatin1String("char"));
+ if (!charRef.isEmpty()) {
+ const auto str = reader.attributes().value(QLatin1String("string"));
+ characterEncodings.push_back({charRef[0], str.toString()});
}
- reader.readNext();
- break;
- case QXmlStreamReader::EndElement:
- --elementRefCounter;
- if (elementRefCounter == 0)
- return;
- reader.readNext();
- break;
- default:
- reader.readNext();
- break;
+ }
+ reader.readNext();
+ break;
+ case QXmlStreamReader::EndElement:
+ --elementRefCounter;
+ if (elementRefCounter == 0) {
+ return;
+ }
+ reader.readNext();
+ break;
+ default:
+ reader.readNext();
+ break;
}
}
}
-bool DefinitionData::checkKateVersion(const QStringRef& verStr)
+bool DefinitionData::checkKateVersion(QStringView verStr)
{
const auto idx = verStr.indexOf(QLatin1Char('.'));
if (idx <= 0) {
@@ -783,7 +817,7 @@ bool DefinitionData::checkKateVersion(const QStringRef& verStr)
const auto major = verStr.left(idx).toInt();
const auto minor = verStr.mid(idx + 1).toInt();
- if (major > SyntaxHighlighting_VERSION_MAJOR || (major == SyntaxHighlighting_VERSION_MAJOR && minor > SyntaxHighlighting_VERSION_MINOR)) {
+ if (major > KSYNTAXHIGHLIGHTING_VERSION_MAJOR || (major == KSYNTAXHIGHLIGHTING_VERSION_MAJOR && minor > KSYNTAXHIGHLIGHTING_VERSION_MINOR)) {
qCWarning(Log) << "Skipping" << fileName << "due to being too new, version:" << verStr;
return false;
}
@@ -797,20 +831,24 @@ quint16 DefinitionData::foldingRegionId(const QString &foldName)
return RepositoryPrivate::get(repo)->foldingRegionId(name, foldName);
}
-DefinitionRef::DefinitionRef()
+void DefinitionData::addImmediateIncludedDefinition(const Definition &def)
{
+ if (get(def) != this) {
+ DefinitionRef defRef(def);
+ if (!immediateIncludedDefinitions.contains(defRef)) {
+ immediateIncludedDefinitions.push_back(std::move(defRef));
+ }
+ }
}
-DefinitionRef::DefinitionRef(const Definition &def) :
- d(def.d)
-{
-}
+DefinitionRef::DefinitionRef() = default;
-DefinitionRef::~DefinitionRef()
+DefinitionRef::DefinitionRef(const Definition &def) noexcept
+ : d(def.d)
{
}
-DefinitionRef& DefinitionRef::operator=(const Definition &def)
+DefinitionRef &DefinitionRef::operator=(const Definition &def) noexcept
{
d = def.d;
return *this;
@@ -818,16 +856,17 @@ DefinitionRef& DefinitionRef::operator=(const Definition &def)
Definition DefinitionRef::definition() const
{
- if (!d.expired())
- return Definition(d.lock());
- return Definition();
+ return Definition(d.lock());
}
bool DefinitionRef::operator==(const DefinitionRef &other) const
{
- if (d.expired() != other.d.expired()) {
- return false;
- }
+ return !d.owner_before(other.d) && !other.d.owner_before(d);
+}
- return d.expired() || d.lock().get() == other.d.lock().get();
+bool DefinitionRef::operator==(const Definition &other) const
+{
+ return !d.owner_before(other.d) && !other.d.owner_before(d);
}
+
+#include "moc_definition.cpp"
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/definition.h b/src/libs/3rdparty/syntax-highlighting/src/lib/definition.h
index 6f0dba9a45..e69492bee4 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/definition.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/definition.h
@@ -1,24 +1,8 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_DEFINITION_H
@@ -26,20 +10,14 @@
#include "ksyntaxhighlighting_export.h"
-#include <QTypeInfo>
+#include <QList>
#include <QPair>
-
+#include <QString>
#include <memory>
+#include <qobjectdefs.h>
-QT_BEGIN_NAMESPACE
-class QChar;
-class QString;
-class QStringList;
-template <typename T> class QVector;
-QT_END_NAMESPACE
-
-namespace KSyntaxHighlighting {
-
+namespace KSyntaxHighlighting
+{
class Context;
class Format;
class KeywordList;
@@ -51,8 +29,7 @@ class DefinitionData;
* @since 5.50
* @see Definition::singleLineCommentPosition()
*/
-enum class CommentPosition
-{
+enum class CommentPosition {
//! The comment marker is inserted at the beginning of a line at column 0
StartOfLine = 0,
//! The comment marker is inserted after leading whitespaces right befire
@@ -94,7 +71,7 @@ enum class CommentPosition
* singleLineCommentMarker() and multiLineCommentMarker() provide comment
* markers that can be used for commenting/uncommenting code. Similarly,
* formats() returns a list of Format items defined by this Definition (which
- * equal the itemDatas of a highlighing definition file). includedDefinitions()
+ * equal the itemDatas of a highlighting definition file). includedDefinitions()
* returns a list of all included Definition%s referenced by this Definition via
* the rule IncludeRules, which is useful for displaying all Format items for
* color configuration in the user interface.
@@ -104,6 +81,13 @@ enum class CommentPosition
*/
class KSYNTAXHIGHLIGHTING_EXPORT Definition
{
+ Q_GADGET
+ Q_PROPERTY(QString name READ name)
+ Q_PROPERTY(QString translatedName READ translatedName)
+ Q_PROPERTY(QString section READ section)
+ Q_PROPERTY(QString translatedSection READ translatedSection)
+ Q_PROPERTY(QString author READ author)
+ Q_PROPERTY(QString license READ license)
public:
/**
* Default constructor, creating an empty (invalid) Definition instance.
@@ -114,6 +98,14 @@ public:
Definition();
/**
+ * Move constructor.
+ * This definition takes the Definition data from @p other.
+ * @note @p other may only be assigned to or destroyed afterwards.
+ * @since 5.86
+ */
+ Definition(Definition &&other) noexcept;
+
+ /**
* Copy constructor.
* Both this definition as well as @p other share the Definition data.
*/
@@ -125,10 +117,18 @@ public:
~Definition();
/**
- * Assignment operator.
+ * Move assignment operator.
+ * This definition takes the Definition data from @p other.
+ * @note @p other may only be assigned to or destroyed afterwards.
+ * @since 5.86
+ */
+ Definition &operator=(Definition &&other) noexcept;
+
+ /**
+ * Copy assignment operator.
* Both this definition as well as @p rhs share the Definition data.
*/
- Definition& operator=(const Definition &rhs);
+ Definition &operator=(const Definition &rhs);
/**
* Checks two definitions for equality.
@@ -181,13 +181,13 @@ public:
/**
* Mime types associated with this syntax definition.
*/
- QVector<QString> mimeTypes() const;
+ QList<QString> mimeTypes() const;
/**
* File extensions associated with this syntax definition.
* The returned list contains wildcards.
*/
- QVector<QString> extensions() const;
+ QList<QString> extensions() const;
/**
* Returns the definition version.
@@ -329,16 +329,34 @@ public:
/**
* Returns the list of keywords for the keyword list @p name.
* @since 5.49
- * @see keywordLists()
+ * @see keywordLists(), setKeywordList()
+ */
+ QStringList keywordList(const QString &name) const;
+
+ /**
+ * Set the contents of the keyword list @p name to @p content.
+ * Only existing keywordLists() can be changed. For non-existent keyword lists,
+ * false is returned.
+ *
+ * Whenever you change a keyword list, make sure to trigger a rehighlight of
+ * your documents. In case you are using QSyntaxHighlighter via SyntaxHighlighter,
+ * this can be done by calling SyntaxHighlighter::rehighlight().
+ *
+ * @note In general, changing keyword lists via setKeywordList() is discouraged,
+ * since if a keyword list name in the syntax highlighting definition
+ * file changes, the call setKeywordList() may suddenly fail.
+ *
+ * @see keywordList(), keywordLists()
+ * @since 5.62
*/
- QStringList keywordList(const QString& name) const;
+ bool setKeywordList(const QString &name, const QStringList &content);
/**
* Returns a list of all Format items used by this definition.
* The order of the Format items equals the order of the itemDatas in the xml file.
* @since 5.49
*/
- QVector<Format> formats() const;
+ QList<Format> formats() const;
/**
* Returns a list of Definitions that are referenced with the IncludeRules rule.
@@ -347,7 +365,7 @@ public:
*
* @since 5.49
*/
- QVector<Definition> includedDefinitions() const;
+ QList<Definition> includedDefinitions() const;
/**
* Returns the marker that starts a single line comment.
@@ -378,7 +396,7 @@ public:
* the string \"{A} represents the character Ä.
* @since 5.50
*/
- QVector<QPair<QChar, QString>> characterEncodings() const;
+ QList<QPair<QChar, QString>> characterEncodings() const;
/**
* @}
@@ -387,14 +405,14 @@ public:
private:
friend class DefinitionData;
friend class DefinitionRef;
- explicit Definition(const std::shared_ptr<DefinitionData> &dd);
+ KSYNTAXHIGHLIGHTING_NO_EXPORT explicit Definition(std::shared_ptr<DefinitionData> &&dd);
std::shared_ptr<DefinitionData> d;
};
}
QT_BEGIN_NAMESPACE
-Q_DECLARE_TYPEINFO(KSyntaxHighlighting::Definition, Q_MOVABLE_TYPE);
+Q_DECLARE_TYPEINFO(KSyntaxHighlighting::Definition, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE
#endif
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/definition_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/definition_p.h
index 9bbf59691c..ec00b31897 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/definition_p.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/definition_p.h
@@ -1,43 +1,32 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_DEFINITION_P_H
#define KSYNTAXHIGHLIGHTING_DEFINITION_P_H
#include "definitionref_p.h"
-#include "definition.h"
+#include "highlightingdata_p.hpp"
+#include "state.h"
+#include "worddelimiters_p.h"
#include <QHash>
+#include <QList>
+#include <QSet>
#include <QString>
-#include <QVector>
+
+#include <vector>
QT_BEGIN_NAMESPACE
+class QCborMap;
class QXmlStreamReader;
-class QJsonObject;
QT_END_NAMESPACE
-namespace KSyntaxHighlighting {
-
+namespace KSyntaxHighlighting
+{
class Repository;
class DefinitionData
@@ -49,11 +38,14 @@ public:
DefinitionData(const DefinitionData &) = delete;
DefinitionData &operator=(const DefinitionData &) = delete;
- static DefinitionData* get(const Definition &def);
+ static DefinitionData *get(const Definition &def)
+ {
+ return def.d.get();
+ }
bool isLoaded() const;
bool loadMetaData(const QString &definitionFileName);
- bool loadMetaData(const QString &fileName, const QJsonObject &obj);
+ bool loadMetaData(const QString &fileName, const QCborMap &obj);
void clear();
@@ -68,28 +60,36 @@ public:
void loadComments(QXmlStreamReader &reader);
void loadFoldingIgnoreList(QXmlStreamReader &reader);
void loadSpellchecking(QXmlStreamReader &reader);
- bool checkKateVersion(const QStringRef &verStr);
+ bool checkKateVersion(QStringView verStr);
+
+ void resolveContexts();
void resolveIncludeKeywords();
KeywordList *keywordList(const QString &name);
- bool isWordDelimiter(QChar c) const;
- Context* initialContext() const;
- Context* contextByName(const QString &name) const;
+ Context *initialContext();
+ Context *contextByName(QStringView name);
Format formatByName(const QString &name) const;
quint16 foldingRegionId(const QString &foldName);
+ void addImmediateIncludedDefinition(const Definition &def);
+
DefinitionRef q;
+ uint64_t id = 0;
Repository *repo = nullptr;
QHash<QString, KeywordList> keywordLists;
- QVector<Context*> contexts;
+ std::vector<Context> contexts;
QHash<QString, Format> formats;
- QString wordDelimiters;
- QString wordWrapDelimiters;
+ // data loaded from xml file and emptied after loading contexts
+ QList<HighlightingContextData> contextDatas;
+ // Definition referenced by IncludeRules and ContextSwitch
+ QList<DefinitionRef> immediateIncludedDefinitions;
+ WordDelimiters wordDelimiters;
+ WordDelimiters wordWrapDelimiters;
bool keywordIsLoaded = false;
bool hasFoldingRegions = false;
bool indentationBasedFolding = false;
@@ -98,21 +98,28 @@ public:
CommentPosition singleLineCommentPosition = CommentPosition::StartOfLine;
QString multiLineCommentStartMarker;
QString multiLineCommentEndMarker;
- QVector<QPair<QChar, QString>> characterEncodings;
+ QList<QPair<QChar, QString>> characterEncodings;
QString fileName;
- QString name = QStringLiteral(QT_TRANSLATE_NOOP("Syntax highlighting", "None"));
+ QString name = QStringLiteral(QT_TRANSLATE_NOOP("Language", "None"));
+ QByteArray nameUtf8;
+ mutable QString translatedName;
QString section;
+ QByteArray sectionUtf8;
+ mutable QString translatedSection;
QString style;
QString indenter;
QString author;
QString license;
- QVector<QString> mimetypes;
- QVector<QString> extensions;
+ QList<QString> mimetypes;
+ QList<QString> extensions;
Qt::CaseSensitivity caseSensitive = Qt::CaseSensitive;
int version = 0;
int priority = 0;
bool hidden = false;
+
+ // cache that is used to unify states in AbstractHighlighter::highlightLine
+ mutable QSet<State> unify;
};
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/definitiondownloader.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/definitiondownloader.cpp
index 4c3e5f5f1e..88ba5d7759 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/definitiondownloader.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/definitiondownloader.cpp
@@ -1,33 +1,15 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#include "definitiondownloader.h"
#include "definition.h"
-#include "repository.h"
#include "ksyntaxhighlighting_logging.h"
#include "ksyntaxhighlighting_version.h"
+#include "repository.h"
-#include <QDebug>
#include <QDir>
#include <QFile>
#include <QNetworkAccessManager>
@@ -58,56 +40,62 @@ public:
void DefinitionDownloaderPrivate::definitionListDownloadFinished(QNetworkReply *reply)
{
- if (reply->error() != QNetworkReply::NoError) {
- qCWarning(Log) << reply->error();
- emit q->done(); // TODO return error
+ const auto networkError = reply->error();
+ if (networkError != QNetworkReply::NoError) {
+ qCWarning(Log) << networkError;
+ Q_EMIT q->done(); // TODO return error
return;
}
QXmlStreamReader parser(reply);
while (!parser.atEnd()) {
switch (parser.readNext()) {
- case QXmlStreamReader::StartElement:
- if (parser.name() == QLatin1String("Definition"))
- updateDefinition(parser);
- break;
- default:
- break;
+ case QXmlStreamReader::StartElement:
+ if (parser.name() == QLatin1String("Definition")) {
+ updateDefinition(parser);
+ }
+ break;
+ default:
+ break;
}
}
- if (pendingDownloads == 0)
- emit q->informationMessage(QObject::tr("All syntax definitions are up-to-date."));
+ if (pendingDownloads == 0) {
+ Q_EMIT q->informationMessage(QObject::tr("All syntax definitions are up-to-date."));
+ }
checkDone();
}
void DefinitionDownloaderPrivate::updateDefinition(QXmlStreamReader &parser)
{
const auto name = parser.attributes().value(QLatin1String("name"));
- if (name.isEmpty())
+ if (name.isEmpty()) {
return;
+ }
auto localDef = repo->definitionForName(name.toString());
if (!localDef.isValid()) {
- emit q->informationMessage(QObject::tr("Downloading new syntax definition for '%1'...").arg(name.toString()));
+ Q_EMIT q->informationMessage(QObject::tr("Downloading new syntax definition for '%1'...").arg(name));
downloadDefinition(QUrl(parser.attributes().value(QLatin1String("url")).toString()));
return;
}
const auto version = parser.attributes().value(QLatin1String("version"));
if (localDef.version() < version.toFloat()) {
- emit q->informationMessage(QObject::tr("Updating syntax definition for '%1' to version %2...").arg(name.toString(), version.toString()));
+ Q_EMIT q->informationMessage(QObject::tr("Updating syntax definition for '%1' to version %2...").arg(name, version));
downloadDefinition(QUrl(parser.attributes().value(QLatin1String("url")).toString()));
}
}
-void DefinitionDownloaderPrivate::downloadDefinition(const QUrl& downloadUrl)
+void DefinitionDownloaderPrivate::downloadDefinition(const QUrl &downloadUrl)
{
- if (!downloadUrl.isValid())
+ if (!downloadUrl.isValid()) {
return;
+ }
auto url = downloadUrl;
- if (url.scheme() == QLatin1String("http"))
+ if (url.scheme() == QLatin1String("http")) {
url.setScheme(QStringLiteral("https"));
+ }
QNetworkRequest req(url);
auto reply = nam->get(req);
@@ -121,8 +109,10 @@ void DefinitionDownloaderPrivate::downloadDefinition(const QUrl& downloadUrl)
void DefinitionDownloaderPrivate::downloadDefinitionFinished(QNetworkReply *reply)
{
--pendingDownloads;
- if (reply->error() != QNetworkReply::NoError) {
- qCWarning(Log) << "Failed to download definition file" << reply->url() << reply->error();
+
+ const auto networkError = reply->error();
+ if (networkError != QNetworkReply::NoError) {
+ qCWarning(Log) << "Failed to download definition file" << reply->url() << networkError;
checkDone();
return;
}
@@ -148,14 +138,14 @@ void DefinitionDownloaderPrivate::downloadDefinitionFinished(QNetworkReply *repl
void DefinitionDownloaderPrivate::checkDone()
{
if (pendingDownloads == 0) {
- if (needsReload)
+ if (needsReload) {
repo->reload();
+ }
- emit QTimer::singleShot(0, q, &DefinitionDownloader::done);
+ Q_EMIT QTimer::singleShot(0, q, &DefinitionDownloader::done);
}
}
-
DefinitionDownloader::DefinitionDownloader(Repository *repo, QObject *parent)
: QObject(parent)
, d(new DefinitionDownloaderPrivate())
@@ -179,15 +169,14 @@ DefinitionDownloader::~DefinitionDownloader()
void DefinitionDownloader::start()
{
- const QString url = QLatin1String("https://www.kate-editor.org/syntax/update-")
- + QString::number(SyntaxHighlighting_VERSION_MAJOR)
- + QLatin1Char('.')
- + QString::number(SyntaxHighlighting_VERSION_MINOR)
- + QLatin1String(".xml");
+ const QString url = QLatin1String("https://www.kate-editor.org/syntax/update-") + QString::number(KSYNTAXHIGHLIGHTING_VERSION_MAJOR) + QLatin1Char('.')
+ + QString::number(KSYNTAXHIGHLIGHTING_VERSION_MINOR) + QLatin1String(".xml");
auto req = QNetworkRequest(QUrl(url));
- req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
+ req.setAttribute(QNetworkRequest::RedirectPolicyAttribute, QNetworkRequest::NoLessSafeRedirectPolicy);
auto reply = d->nam->get(req);
- QObject::connect(reply, &QNetworkReply::finished, this, [=]() {
+ QObject::connect(reply, &QNetworkReply::finished, this, [this, reply]() {
d->definitionListDownloadFinished(reply);
});
}
+
+#include "moc_definitiondownloader.cpp"
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/definitiondownloader.h b/src/libs/3rdparty/syntax-highlighting/src/lib/definitiondownloader.h
index 06e28f6a65..2eaf0561ef 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/definitiondownloader.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/definitiondownloader.h
@@ -1,24 +1,7 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_DEFINITIONDOWNLOADER_H
@@ -29,8 +12,8 @@
#include <QObject>
#include <memory>
-namespace KSyntaxHighlighting {
-
+namespace KSyntaxHighlighting
+{
class DefinitionDownloaderPrivate;
class Repository;
@@ -76,7 +59,7 @@ public:
/**
* Destructor.
*/
- ~DefinitionDownloader();
+ ~DefinitionDownloader() override;
/**
* Starts the update procedure.
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/definitionref_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/definitionref_p.h
index 08604a4821..a7ef08f614 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/definitionref_p.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/definitionref_p.h
@@ -1,36 +1,20 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_DEFINITIONREF_P_H
#define KSYNTAXHIGHLIGHTING_DEFINITIONREF_P_H
-#include <memory>
+#include "definition.h"
-namespace KSyntaxHighlighting {
+#include <memory>
+namespace KSyntaxHighlighting
+{
class Definition;
class DefinitionData;
-class DefinitionPrivate;
/** Weak reference for Definition instances.
*
@@ -38,15 +22,16 @@ class DefinitionPrivate;
* in objects hold directly or indirectly by Definition
* to avoid reference count loops and thus memory leaks.
*
+ * This class follows the rule of zero. It is implicitly movable and copyable.
+ *
* @internal
*/
class DefinitionRef
{
public:
DefinitionRef();
- explicit DefinitionRef(const Definition &def);
- ~DefinitionRef();
- DefinitionRef& operator=(const Definition &def);
+ explicit DefinitionRef(const Definition &def) noexcept;
+ DefinitionRef &operator=(const Definition &def) noexcept;
Definition definition() const;
@@ -63,6 +48,19 @@ public:
return !(*this == other);
}
+ /**
+ * Checks two definition for equality.
+ */
+ bool operator==(const Definition &other) const;
+
+ /**
+ * Checks two definition for inequality.
+ */
+ bool operator!=(const Definition &other) const
+ {
+ return !(*this == other);
+ }
+
private:
friend class DefinitionData;
std::weak_ptr<DefinitionData> d;
@@ -71,4 +69,3 @@ private:
}
#endif
-
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/dynamicregexpcache_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/dynamicregexpcache_p.h
new file mode 100644
index 0000000000..dcef97a841
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/dynamicregexpcache_p.h
@@ -0,0 +1,39 @@
+/*
+ SPDX-FileCopyrightText: 2023 Jonathan Poelen <jonathan.poelen+kde@gmail.com>
+
+ SPDX-License-Identifier: MIT
+*/
+
+#ifndef KSYNTAXHIGHLIGHTING_DYNAMICREGEXPCACHE_P_H
+#define KSYNTAXHIGHLIGHTING_DYNAMICREGEXPCACHE_P_H
+
+#include <QCache>
+#include <QRegularExpression>
+#include <QString>
+
+#include <utility>
+
+namespace KSyntaxHighlighting
+{
+
+class DynamicRegexpCache
+{
+public:
+ const QRegularExpression &compileRegexp(QString &&pattern, QRegularExpression::PatternOptions patternOptions)
+ {
+ const auto key = std::pair{std::move(pattern), patternOptions};
+ if (const auto regexp = m_cache.object(key)) {
+ return *regexp;
+ }
+ auto regexp = new QRegularExpression(key.first, patternOptions);
+ m_cache.insert(key, regexp);
+ return *regexp;
+ }
+
+private:
+ QCache<std::pair<QString, QRegularExpression::PatternOptions>, QRegularExpression> m_cache;
+};
+
+}
+
+#endif
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/foldingregion.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/foldingregion.cpp
index e8f89bd788..9ed625b12e 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/foldingregion.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/foldingregion.cpp
@@ -1,60 +1,46 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#include "foldingregion.h"
using namespace KSyntaxHighlighting;
-static_assert(sizeof(FoldingRegion) == 2, "FoldingRegion is size-sensitive to frequent use in KTextEditor!");
+static_assert(sizeof(FoldingRegion) == sizeof(int), "FoldingRegion is size-sensitive to frequent use in KTextEditor!");
-FoldingRegion::FoldingRegion() :
- m_type(None),
- m_id(0)
-{
-}
+FoldingRegion::FoldingRegion() = default;
-FoldingRegion::FoldingRegion(Type type, quint16 id) :
- m_type(type),
- m_id(id)
+FoldingRegion::FoldingRegion(Type type, int id)
+ : m_idWithType((type == End) ? -id : id)
{
}
bool FoldingRegion::operator==(const FoldingRegion &other) const
{
- return m_id == other.m_id && m_type == other.m_type;
+ return m_idWithType == other.m_idWithType;
}
bool FoldingRegion::isValid() const
{
- return type() != None;
+ return m_idWithType != 0;
}
-quint16 FoldingRegion::id() const
+int FoldingRegion::id() const
{
- return m_id;
+ return (m_idWithType < 0) ? -m_idWithType : m_idWithType;
}
FoldingRegion::Type FoldingRegion::type() const
{
- return static_cast<FoldingRegion::Type>(m_type);
+ if (isValid()) {
+ return (m_idWithType < 0) ? End : Begin;
+ }
+ return None;
+}
+
+FoldingRegion FoldingRegion::sibling() const
+{
+ return isValid() ? FoldingRegion(type() ? End : Begin, id()) : FoldingRegion();
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/foldingregion.h b/src/libs/3rdparty/syntax-highlighting/src/lib/foldingregion.h
index 074b9478be..e2a9e1fc68 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/foldingregion.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/foldingregion.h
@@ -1,24 +1,7 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_FOLDINGREGION_H
@@ -28,8 +11,8 @@
#include <QTypeInfo>
-namespace KSyntaxHighlighting {
-
+namespace KSyntaxHighlighting
+{
/** Represents a begin or end of a folding region.
* @since 5.28 */
class KSYNTAXHIGHLIGHTING_EXPORT FoldingRegion
@@ -39,7 +22,7 @@ public:
* Defines whether a FoldingRegion starts or ends a folding region.
*/
enum Type {
- //! Used internally as indicator for invalid FoldingRegion%s.
+ //! Used internally as indicator for an invalid FoldingRegion.
None,
//! Indicates the start of a FoldingRegion.
Begin,
@@ -81,7 +64,7 @@ public:
* brace, you need to do kind of a reference counting to find the correct
* closing brace.
*/
- quint16 id() const;
+ int id() const;
/**
* Returns whether this is the begin or end of a region.
@@ -91,12 +74,21 @@ public:
*/
Type type() const;
+ /**
+ * Returns the matching start or end region.
+ *
+ * @note Will return invalid region for an invalid region.
+ *
+ * @since 6.0
+ */
+ FoldingRegion sibling() const;
+
private:
friend class Rule;
- FoldingRegion(Type type, quint16 id);
+ KSYNTAXHIGHLIGHTING_NO_EXPORT FoldingRegion(Type type, int id);
- quint16 m_type : 2;
- quint16 m_id: 14;
+ // 0 is invalid, positive begin, negative end
+ int m_idWithType = 0;
};
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/format.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/format.cpp
index d1808cafef..2259cd3411 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/format.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/format.cpp
@@ -1,58 +1,41 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
*/
#include "format.h"
-#include "format_p.h"
#include "definition.h"
#include "definitionref_p.h"
+#include "format_p.h"
#include "textstyledata_p.h"
#include "themedata_p.h"
#include "xml_p.h"
#include <QColor>
-#include <QDebug>
#include <QMetaEnum>
#include <QXmlStreamReader>
using namespace KSyntaxHighlighting;
-static Theme::TextStyle stringToDefaultFormat(const QStringRef &str)
+static Theme::TextStyle stringToDefaultFormat(QStringView str)
{
- if (!str.startsWith(QLatin1String("ds")))
+ if (!str.startsWith(QLatin1String("ds"))) {
return Theme::Normal;
+ }
- static const auto idx = Theme::staticMetaObject.indexOfEnumerator("TextStyle");
- Q_ASSERT(idx >= 0);
- const auto metaEnum = Theme::staticMetaObject.enumerator(idx);
+ const auto metaEnum = QMetaEnum::fromType<Theme::TextStyle>();
bool ok = false;
const auto value = metaEnum.keyToValue(str.mid(2).toLatin1().constData(), &ok);
- if (!ok || value < 0)
+ if (!ok || value < 0) {
return Theme::Normal;
+ }
return static_cast<Theme::TextStyle>(value);
}
-FormatPrivate* FormatPrivate::detachAndGet(Format &format)
+FormatPrivate *FormatPrivate::detachAndGet(Format &format)
{
format.d.detach();
return format.d.data();
@@ -60,10 +43,23 @@ FormatPrivate* FormatPrivate::detachAndGet(Format &format)
TextStyleData FormatPrivate::styleOverride(const Theme &theme) const
{
- const auto themeData = ThemeData::get(theme);
- if (themeData)
- return themeData->textStyleOverride(definition.definition().name(), name);
- return TextStyleData();
+ return ThemeData::get(theme)->textStyleOverride(definitionName, name);
+}
+
+QColor FormatPrivate::color(const Theme &theme, StyleColor styleColor, ThemeColor themeColor) const
+{
+ const auto overrideStyle = styleOverride(theme);
+ if (overrideStyle.*styleColor) {
+ return QColor::fromRgb(overrideStyle.*styleColor);
+ }
+ // use QColor::fromRgba for QRgb => QColor conversion to avoid unset colors == black!
+ return QColor::fromRgba(style.*styleColor ? style.*styleColor : (theme.*themeColor)(defaultStyle));
+}
+
+bool FormatPrivate::hasColor(const Theme &theme, StyleColor styleColor, ThemeColor themeColor) const
+{
+ // use QColor::fromRgba for background QRgb => QColor conversion to avoid unset colors == black!
+ return color(theme, styleColor, themeColor) != QColor::fromRgba((theme.*themeColor)(Theme::Normal)) && (style.*styleColor || (theme.*themeColor)(defaultStyle) || styleOverride(theme).*styleColor);
}
static QExplicitlySharedDataPointer<FormatPrivate> &sharedDefaultPrivate()
@@ -72,12 +68,13 @@ static QExplicitlySharedDataPointer<FormatPrivate> &sharedDefaultPrivate()
return def;
}
-Format::Format() : d(sharedDefaultPrivate())
+Format::Format()
+ : d(sharedDefaultPrivate())
{
}
-Format::Format(const Format &other) :
- d(other.d)
+Format::Format(const Format &other)
+ : d(other.d)
{
}
@@ -85,7 +82,7 @@ Format::~Format()
{
}
-Format& Format::operator=(const Format& other)
+Format &Format::operator=(const Format &other)
{
d = other.d;
return *this;
@@ -101,7 +98,7 @@ QString Format::name() const
return d->name;
}
-quint16 Format::id() const
+int Format::id() const
{
return d->id;
}
@@ -113,92 +110,76 @@ Theme::TextStyle Format::textStyle() const
bool Format::isDefaultTextStyle(const Theme &theme) const
{
- return (!hasTextColor(theme))
- && (!hasBackgroundColor(theme))
- && (selectedTextColor(theme) == theme.selectedTextColor(Theme::Normal))
- && (selectedBackgroundColor(theme) == theme.selectedBackgroundColor(Theme::Normal))
- && (isBold(theme) == theme.isBold(Theme::Normal))
- && (isItalic(theme) == theme.isItalic(Theme::Normal))
- && (isUnderline(theme) == theme.isUnderline(Theme::Normal))
+ // use QColor::fromRgba for background QRgb => QColor conversion to avoid unset colors == black!
+ return (!hasTextColor(theme)) && (!hasBackgroundColor(theme)) && (selectedTextColor(theme).rgba() == theme.selectedTextColor(Theme::Normal))
+ && (selectedBackgroundColor(theme).rgba() == (theme.selectedBackgroundColor(Theme::Normal))) && (isBold(theme) == theme.isBold(Theme::Normal))
+ && (isItalic(theme) == theme.isItalic(Theme::Normal)) && (isUnderline(theme) == theme.isUnderline(Theme::Normal))
&& (isStrikeThrough(theme) == theme.isStrikeThrough(Theme::Normal));
}
bool Format::hasTextColor(const Theme &theme) const
{
- const auto overrideStyle = d->styleOverride(theme);
- return textColor(theme) != theme.textColor(Theme::Normal)
- && (d->style.textColor || theme.textColor(d->defaultStyle) || overrideStyle.textColor);
+ return d->hasColor(theme, &TextStyleData::textColor, &Theme::textColor);
}
QColor Format::textColor(const Theme &theme) const
{
- const auto overrideStyle = d->styleOverride(theme);
- if (overrideStyle.textColor)
- return overrideStyle.textColor;
- return d->style.textColor ? d->style.textColor : theme.textColor(d->defaultStyle);
+ return d->color(theme, &TextStyleData::textColor, &Theme::textColor);
}
QColor Format::selectedTextColor(const Theme &theme) const
{
- const auto overrideStyle = d->styleOverride(theme);
- if (overrideStyle.selectedTextColor)
- return overrideStyle.selectedTextColor;
- return d->style.selectedTextColor ? d->style.selectedTextColor : theme.selectedTextColor(d->defaultStyle);
+ return d->color(theme, &TextStyleData::selectedTextColor, &Theme::selectedTextColor);
}
bool Format::hasBackgroundColor(const Theme &theme) const
{
- const auto overrideStyle = d->styleOverride(theme);
- return backgroundColor(theme) != theme.backgroundColor(Theme::Normal)
- && (d->style.backgroundColor || theme.backgroundColor(d->defaultStyle) || overrideStyle.backgroundColor);
+ return d->hasColor(theme, &TextStyleData::backgroundColor, &Theme::backgroundColor);
}
QColor Format::backgroundColor(const Theme &theme) const
{
- const auto overrideStyle = d->styleOverride(theme);
- if (overrideStyle.backgroundColor)
- return overrideStyle.backgroundColor;
- return d->style.backgroundColor ? d->style.backgroundColor : theme.backgroundColor(d->defaultStyle);
+ return d->color(theme, &TextStyleData::backgroundColor, &Theme::backgroundColor);
}
QColor Format::selectedBackgroundColor(const Theme &theme) const
{
- const auto overrideStyle = d->styleOverride(theme);
- if (overrideStyle.selectedBackgroundColor)
- return overrideStyle.selectedBackgroundColor;
- return d->style.selectedBackgroundColor ? d->style.selectedBackgroundColor
- : theme.selectedBackgroundColor(d->defaultStyle);
+ return d->color(theme, &TextStyleData::selectedBackgroundColor, &Theme::selectedBackgroundColor);
}
bool Format::isBold(const Theme &theme) const
{
const auto overrideStyle = d->styleOverride(theme);
- if (overrideStyle.hasBold)
+ if (overrideStyle.hasBold) {
return overrideStyle.bold;
+ }
return d->style.hasBold ? d->style.bold : theme.isBold(d->defaultStyle);
}
bool Format::isItalic(const Theme &theme) const
{
const auto overrideStyle = d->styleOverride(theme);
- if (overrideStyle.hasItalic)
+ if (overrideStyle.hasItalic) {
return overrideStyle.italic;
+ }
return d->style.hasItalic ? d->style.italic : theme.isItalic(d->defaultStyle);
}
bool Format::isUnderline(const Theme &theme) const
{
const auto overrideStyle = d->styleOverride(theme);
- if (overrideStyle.hasUnderline)
+ if (overrideStyle.hasUnderline) {
return overrideStyle.underline;
+ }
return d->style.hasUnderline ? d->style.underline : theme.isUnderline(d->defaultStyle);
}
bool Format::isStrikeThrough(const Theme &theme) const
{
const auto overrideStyle = d->styleOverride(theme);
- if (overrideStyle.hasStrikeThrough)
+ if (overrideStyle.hasStrikeThrough) {
return overrideStyle.strikeThrough;
+ }
return d->style.hasStrikeThrough ? d->style.strikeThrough : theme.isStrikeThrough(d->defaultStyle);
}
@@ -207,57 +188,96 @@ bool Format::spellCheck() const
return d->spellCheck;
}
+bool Format::hasBoldOverride() const
+{
+ return d->style.hasBold;
+}
+
+bool Format::hasItalicOverride() const
+{
+ return d->style.hasItalic;
+}
+
+bool Format::hasUnderlineOverride() const
+{
+ return d->style.hasUnderline;
+}
+
+bool Format::hasStrikeThroughOverride() const
+{
+ return d->style.hasStrikeThrough;
+}
+
+bool Format::hasTextColorOverride() const
+{
+ return d->style.textColor;
+}
+
+bool Format::hasBackgroundColorOverride() const
+{
+ return d->style.backgroundColor;
+}
+
+bool Format::hasSelectedTextColorOverride() const
+{
+ return d->style.selectedTextColor;
+}
+
+bool Format::hasSelectedBackgroundColorOverride() const
+{
+ return d->style.selectedBackgroundColor;
+}
-void FormatPrivate::load(QXmlStreamReader& reader)
+void FormatPrivate::load(QXmlStreamReader &reader)
{
- name = reader.attributes().value(QStringLiteral("name")).toString();
- defaultStyle = stringToDefaultFormat(reader.attributes().value(QStringLiteral("defStyleNum")));
+ name = reader.attributes().value(QLatin1String("name")).toString();
+ defaultStyle = stringToDefaultFormat(reader.attributes().value(QLatin1String("defStyleNum")));
- QStringRef attribute = reader.attributes().value(QStringLiteral("color"));
+ QStringView attribute = reader.attributes().value(QLatin1String("color"));
if (!attribute.isEmpty()) {
- style.textColor = QColor(attribute.toString()).rgba();
+ style.textColor = QColor(attribute).rgba();
}
- attribute = reader.attributes().value(QStringLiteral("selColor"));
+ attribute = reader.attributes().value(QLatin1String("selColor"));
if (!attribute.isEmpty()) {
- style.selectedTextColor = QColor(attribute.toString()).rgba();
+ style.selectedTextColor = QColor(attribute).rgba();
}
- attribute = reader.attributes().value(QStringLiteral("backgroundColor"));
+ attribute = reader.attributes().value(QLatin1String("backgroundColor"));
if (!attribute.isEmpty()) {
- style.backgroundColor = QColor(attribute.toString()).rgba();
+ style.backgroundColor = QColor(attribute).rgba();
}
- attribute = reader.attributes().value(QStringLiteral("selBackgroundColor"));
+ attribute = reader.attributes().value(QLatin1String("selBackgroundColor"));
if (!attribute.isEmpty()) {
- style.selectedBackgroundColor = QColor(attribute.toString()).rgba();
+ style.selectedBackgroundColor = QColor(attribute).rgba();
}
- attribute = reader.attributes().value(QStringLiteral("italic"));
+ attribute = reader.attributes().value(QLatin1String("italic"));
if (!attribute.isEmpty()) {
style.hasItalic = true;
style.italic = Xml::attrToBool(attribute);
}
- attribute = reader.attributes().value(QStringLiteral("bold"));
+ attribute = reader.attributes().value(QLatin1String("bold"));
if (!attribute.isEmpty()) {
style.hasBold = true;
style.bold = Xml::attrToBool(attribute);
}
- attribute = reader.attributes().value(QStringLiteral("underline"));
+ attribute = reader.attributes().value(QLatin1String("underline"));
if (!attribute.isEmpty()) {
style.hasUnderline = true;
style.underline = Xml::attrToBool(attribute);
}
- attribute = reader.attributes().value(QStringLiteral("strikeOut"));
+ attribute = reader.attributes().value(QLatin1String("strikeOut"));
if (!attribute.isEmpty()) {
style.hasStrikeThrough = true;
style.strikeThrough = Xml::attrToBool(attribute);
}
- attribute = reader.attributes().value(QStringLiteral("spellChecking"));
+ attribute = reader.attributes().value(QLatin1String("spellChecking"));
if (!attribute.isEmpty()) {
spellCheck = Xml::attrToBool(attribute);
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/format.h b/src/libs/3rdparty/syntax-highlighting/src/lib/format.h
index 24c58e73f6..397a1bab01 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/format.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/format.h
@@ -1,24 +1,8 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_FORMAT_H
@@ -28,17 +12,9 @@
#include "theme.h"
#include <QExplicitlySharedDataPointer>
-#include <QTypeInfo>
-
-QT_BEGIN_NAMESPACE
-class QColor;
-class QString;
-class QXmlStreamReader;
-QT_END_NAMESPACE
-
-namespace KSyntaxHighlighting {
-class DefinitionRef;
+namespace KSyntaxHighlighting
+{
class FormatPrivate;
/** Describes the format to be used for a specific text fragment.
@@ -56,7 +32,7 @@ public:
Format(const Format &other);
~Format();
- Format& operator=(const Format &other);
+ Format &operator=(const Format &other);
/** Returns @c true if this is a valid format, ie. one that
* was read from a syntax definition file.
@@ -72,7 +48,7 @@ public:
* the repository is reloaded (which also invalidatess the corresponding
* Definition anyway).
*/
- quint16 id() const;
+ int id() const;
/** Returns the underlying TextStyle of this Format.
* Every Theme::TextStyle is visually defined by a Theme. A Format uses one
@@ -139,6 +115,70 @@ public:
*/
bool spellCheck() const;
+ /** Returns @c true if the syntax definition file sets a value for the bold text
+ * attribute and, therefore, overrides the theme and the default formatting
+ * style. If the return is @p true, this value is obtained by isBold().
+ * @see isBold()
+ * @since 5.62
+ */
+ bool hasBoldOverride() const;
+
+ /** Returns @c true if the syntax definition file sets a value for the italic text
+ * attribute and, therefore, overrides the theme and the default formatting style.
+ * If the return is @p true, this value is obtained by isItalic().
+ * @see isItalic()
+ * @since 5.62
+ */
+ bool hasItalicOverride() const;
+
+ /** Returns @c true if the syntax definition file sets a value for the underlined
+ * text attribute and, therefore, overrides the theme and the default formatting
+ * style. If the return is @p true, this value is obtained by isUnderline().
+ * @see isUnderline()
+ * @since 5.62
+ */
+ bool hasUnderlineOverride() const;
+
+ /** Returns @c true if the syntax definition file specifies a value for the
+ * struck through text attribute. If the return is @p true, this value
+ * is obtained by isStrikeThrough().
+ * @see isStrikeThrough()
+ * @since 5.62
+ */
+ bool hasStrikeThroughOverride() const;
+
+ /** Returns @c true if the syntax definition file sets a value for the foreground
+ * text color attribute and, therefore, overrides the theme and the default formatting
+ * style. If the return is @p true, this value is obtained by textColor().
+ * @see textColor(), hasTextColor()
+ * @since 5.62
+ */
+ bool hasTextColorOverride() const;
+
+ /** Returns @c true if the syntax definition file sets a value for the background
+ * color attribute and, therefore, overrides the theme and the default formatting
+ * style. If the return is @p true, this value is obtained by backgroundColor().
+ * @see backgroundColor(), hasBackgroundColor()
+ * @since 5.62
+ */
+ bool hasBackgroundColorOverride() const;
+
+ /** Returns @c true if the syntax definition file specifies a value for the
+ * selected text color attribute. If the return is @p true, this value is
+ * obtained by selectedTextColor().
+ * @see selectedTextColor()
+ * @since 5.62
+ */
+ bool hasSelectedTextColorOverride() const;
+
+ /** Returns @c true if the syntax definition file specifies a value for the
+ * selected background color attribute. If the return is @p true, this
+ * value is obtained by selectedBackgroundColor().
+ * @see selectedBackgroundColor()
+ * @since 5.62
+ */
+ bool hasSelectedBackgroundColorOverride() const;
+
private:
friend class FormatPrivate;
QExplicitlySharedDataPointer<FormatPrivate> d;
@@ -146,7 +186,7 @@ private:
}
QT_BEGIN_NAMESPACE
-Q_DECLARE_TYPEINFO(KSyntaxHighlighting::Format, Q_MOVABLE_TYPE);
+Q_DECLARE_TYPEINFO(KSyntaxHighlighting::Format, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE
#endif // KSYNTAXHIGHLIGHTING_FORMAT_H
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/format_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/format_p.h
index e79b26b6a7..ea74531445 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/format_p.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/format_p.h
@@ -1,52 +1,48 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_FORMAT_P_H
#define KSYNTAXHIGHLIGHTING_FORMAT_P_H
-#include "definitionref_p.h"
#include "textstyledata_p.h"
#include "theme.h"
#include <QSharedData>
#include <QString>
-namespace KSyntaxHighlighting {
+QT_BEGIN_NAMESPACE
+class QXmlStreamReader;
+QT_END_NAMESPACE
+namespace KSyntaxHighlighting
+{
class FormatPrivate : public QSharedData
{
public:
FormatPrivate() = default;
- static FormatPrivate* detachAndGet(Format &format);
+ static FormatPrivate *detachAndGet(Format &format);
+
+ static std::intptr_t ptrId(const Format &format)
+ {
+ return std::intptr_t(format.d.data());
+ }
TextStyleData styleOverride(const Theme &theme) const;
void load(QXmlStreamReader &reader);
- DefinitionRef definition;
+ using StyleColor = QRgb(TextStyleData::*);
+ using ThemeColor = QRgb (Theme::*)(Theme::TextStyle) const;
+ bool hasColor(const Theme &theme, StyleColor styleColor, ThemeColor themeColor) const;
+ QColor color(const Theme &theme, StyleColor styleColor, ThemeColor themeColor) const;
+
+ QString definitionName;
QString name;
TextStyleData style;
Theme::TextStyle defaultStyle = Theme::Normal;
- quint16 id = 0;
+ int id = 0;
bool spellCheck = true;
};
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/highlightingdata.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/highlightingdata.cpp
new file mode 100644
index 0000000000..d95ad43b7f
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/highlightingdata.cpp
@@ -0,0 +1,406 @@
+/*
+ SPDX-FileCopyrightText: 2021 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
+*/
+
+#include "highlightingdata_p.hpp"
+#include "ksyntaxhighlighting_logging.h"
+#include "xml_p.h"
+
+#include <QXmlStreamReader>
+#include <QStringView>
+
+using namespace KSyntaxHighlighting;
+
+template<class Data, class... Args>
+static void initRuleData(Data &data, Args &&...args)
+{
+ new (&data) Data{std::move(args)...};
+}
+
+static Qt::CaseSensitivity attrToCaseSensitivity(QStringView str)
+{
+ return Xml::attrToBool(str) ? Qt::CaseInsensitive : Qt::CaseSensitive;
+}
+
+static HighlightingContextData::Rule::WordDelimiters loadAdditionalWordDelimiters(QXmlStreamReader &reader)
+{
+ return HighlightingContextData::Rule::WordDelimiters{
+ reader.attributes().value(QLatin1String("additionalDeliminator")).toString(),
+ reader.attributes().value(QLatin1String("weakDeliminator")).toString(),
+ };
+}
+
+static bool checkIsNotEmpty(QStringView str, const char *attrName, const QString &defName, QXmlStreamReader &reader)
+{
+ if (!str.isEmpty()) {
+ return true;
+ }
+
+ qCWarning(Log) << defName << "at line" << reader.lineNumber() << ": " << attrName << "attribute is empty";
+ return false;
+}
+
+static bool checkIsChar(QStringView str, const char *attrName, const QString &defName, QXmlStreamReader &reader)
+{
+ if (str.size() == 1) {
+ return true;
+ }
+
+ qCWarning(Log) << defName << "at line" << reader.lineNumber() << ": " << attrName << "attribute must contain exactly 1 character";
+ return false;
+}
+
+static bool loadRule(const QString &defName, HighlightingContextData::Rule &rule, QXmlStreamReader &reader)
+{
+ using Rule = HighlightingContextData::Rule;
+
+ QStringView name = reader.name();
+ const auto attrs = reader.attributes();
+ bool isIncludeRules = false;
+
+ if (name == QLatin1String("DetectChar")) {
+ const auto s = attrs.value(QLatin1String("char"));
+ if (!checkIsChar(s, "char", defName, reader)) {
+ return false;
+ }
+ const QChar c = s.at(0);
+ const bool dynamic = Xml::attrToBool(attrs.value(QLatin1String("dynamic")));
+
+ initRuleData(rule.data.detectChar, c, dynamic);
+ rule.type = Rule::Type::DetectChar;
+ } else if (name == QLatin1String("RegExpr")) {
+ const auto pattern = attrs.value(QLatin1String("String"));
+ if (!checkIsNotEmpty(pattern, "String", defName, reader)) {
+ return false;
+ }
+
+ const auto isCaseInsensitive = attrToCaseSensitivity(attrs.value(QLatin1String("insensitive")));
+ const auto isMinimal = Xml::attrToBool(attrs.value(QLatin1String("minimal")));
+ const auto dynamic = Xml::attrToBool(attrs.value(QLatin1String("dynamic")));
+
+ initRuleData(rule.data.regExpr, pattern.toString(), isCaseInsensitive, isMinimal, dynamic);
+ rule.type = Rule::Type::RegExpr;
+ } else if (name == QLatin1String("IncludeRules")) {
+ const auto context = attrs.value(QLatin1String("context"));
+ if (!checkIsNotEmpty(context, "context", defName, reader)) {
+ return false;
+ }
+ const bool includeAttribute = Xml::attrToBool(attrs.value(QLatin1String("includeAttrib")));
+
+ initRuleData(rule.data.includeRules, context.toString(), includeAttribute);
+ rule.type = Rule::Type::IncludeRules;
+ isIncludeRules = true;
+ } else if (name == QLatin1String("Detect2Chars")) {
+ const auto s1 = attrs.value(QLatin1String("char"));
+ const auto s2 = attrs.value(QLatin1String("char1"));
+ if (!checkIsChar(s1, "char", defName, reader)) {
+ return false;
+ }
+ if (!checkIsChar(s2, "char1", defName, reader)) {
+ return false;
+ }
+
+ initRuleData(rule.data.detect2Chars, s1.at(0), s2.at(0));
+ rule.type = Rule::Type::Detect2Chars;
+ } else if (name == QLatin1String("keyword")) {
+ const auto s = attrs.value(QLatin1String("String"));
+ if (!checkIsNotEmpty(s, "String", defName, reader)) {
+ return false;
+ }
+ Qt::CaseSensitivity caseSensitivityOverride = Qt::CaseInsensitive;
+ bool hasCaseSensitivityOverride = false;
+
+ /**
+ * we might overwrite the case sensitivity
+ * then we need to init the list for lookup of that sensitivity setting
+ */
+ if (attrs.hasAttribute(QLatin1String("insensitive"))) {
+ hasCaseSensitivityOverride = true;
+ caseSensitivityOverride = attrToCaseSensitivity(attrs.value(QLatin1String("insensitive")));
+ }
+
+ initRuleData(rule.data.keyword, s.toString(), loadAdditionalWordDelimiters(reader), caseSensitivityOverride, hasCaseSensitivityOverride);
+ rule.type = Rule::Type::Keyword;
+ } else if (name == QLatin1String("DetectSpaces")) {
+ rule.type = Rule::Type::DetectSpaces;
+ } else if (name == QLatin1String("StringDetect")) {
+ const auto string = attrs.value(QLatin1String("String"));
+ if (!checkIsNotEmpty(string, "String", defName, reader)) {
+ return false;
+ }
+ const auto caseSensitivity = attrToCaseSensitivity(attrs.value(QLatin1String("insensitive")));
+ const auto dynamic = Xml::attrToBool(attrs.value(QLatin1String("dynamic")));
+ const bool isSensitive = (caseSensitivity == Qt::CaseSensitive);
+
+ // String can be replaced with DetectChar or AnyChar
+ if (!dynamic && string.size() == 1) {
+ QChar c = string.at(0);
+ if (isSensitive || c.toLower() == c.toUpper()) {
+ initRuleData(rule.data.detectChar, c, dynamic);
+ rule.type = Rule::Type::DetectChar;
+ } else {
+ initRuleData(rule.data.anyChar, c.toLower() + c.toUpper());
+ rule.type = Rule::Type::AnyChar;
+ }
+ }
+ // String can be replaced with Detect2Chars
+ else if (isSensitive && !dynamic && string.size() == 2) {
+ initRuleData(rule.data.detect2Chars, string.at(0), string.at(1));
+ rule.type = Rule::Type::Detect2Chars;
+ } else {
+ initRuleData(rule.data.stringDetect, string.toString(), caseSensitivity, dynamic);
+ rule.type = Rule::Type::StringDetect;
+ }
+ } else if (name == QLatin1String("WordDetect")) {
+ const auto word = attrs.value(QLatin1String("String"));
+ if (!checkIsNotEmpty(word, "String", defName, reader)) {
+ return false;
+ }
+ const auto caseSensitivity = attrToCaseSensitivity(attrs.value(QLatin1String("insensitive")));
+
+ initRuleData(rule.data.wordDetect, word.toString(), loadAdditionalWordDelimiters(reader), caseSensitivity);
+ rule.type = Rule::Type::WordDetect;
+ } else if (name == QLatin1String("AnyChar")) {
+ const auto chars = attrs.value(QLatin1String("String"));
+ if (!checkIsNotEmpty(chars, "String", defName, reader)) {
+ return false;
+ }
+
+ // AnyChar can be replaced with DetectChar
+ if (chars.size() == 1) {
+ initRuleData(rule.data.detectChar, chars.at(0), false);
+ rule.type = Rule::Type::DetectChar;
+ } else {
+ initRuleData(rule.data.anyChar, chars.toString());
+ rule.type = Rule::Type::AnyChar;
+ }
+ } else if (name == QLatin1String("DetectIdentifier")) {
+ rule.type = Rule::Type::DetectIdentifier;
+ } else if (name == QLatin1String("LineContinue")) {
+ const auto s = attrs.value(QLatin1String("char"));
+ const QChar c = s.isEmpty() ? QLatin1Char('\\') : s.at(0);
+
+ initRuleData(rule.data.lineContinue, c);
+ rule.type = Rule::Type::LineContinue;
+ } else if (name == QLatin1String("Int")) {
+ initRuleData(rule.data.detectInt, loadAdditionalWordDelimiters(reader));
+ rule.type = Rule::Type::Int;
+ } else if (name == QLatin1String("Float")) {
+ initRuleData(rule.data.detectFloat, loadAdditionalWordDelimiters(reader));
+ rule.type = Rule::Type::Float;
+ } else if (name == QLatin1String("HlCStringChar")) {
+ rule.type = Rule::Type::HlCStringChar;
+ } else if (name == QLatin1String("RangeDetect")) {
+ const auto s1 = attrs.value(QLatin1String("char"));
+ const auto s2 = attrs.value(QLatin1String("char1"));
+ if (!checkIsChar(s1, "char", defName, reader)) {
+ return false;
+ }
+ if (!checkIsChar(s2, "char1", defName, reader)) {
+ return false;
+ }
+
+ initRuleData(rule.data.rangeDetect, s1.at(0), s2.at(0));
+ rule.type = Rule::Type::RangeDetect;
+ } else if (name == QLatin1String("HlCHex")) {
+ initRuleData(rule.data.hlCHex, loadAdditionalWordDelimiters(reader));
+ rule.type = Rule::Type::HlCHex;
+ } else if (name == QLatin1String("HlCChar")) {
+ rule.type = Rule::Type::HlCChar;
+ } else if (name == QLatin1String("HlCOct")) {
+ initRuleData(rule.data.hlCOct, loadAdditionalWordDelimiters(reader));
+ rule.type = Rule::Type::HlCOct;
+ } else {
+ qCWarning(Log) << "Unknown rule type:" << name;
+ return false;
+ }
+
+ if (!isIncludeRules) {
+ rule.common.contextName = attrs.value(QLatin1String("context")).toString();
+ rule.common.beginRegionName = attrs.value(QLatin1String("beginRegion")).toString();
+ rule.common.endRegionName = attrs.value(QLatin1String("endRegion")).toString();
+ rule.common.firstNonSpace = Xml::attrToBool(attrs.value(QLatin1String("firstNonSpace")));
+ rule.common.lookAhead = Xml::attrToBool(attrs.value(QLatin1String("lookAhead")));
+ // attribute is only used when lookAhead is false
+ if (!rule.common.lookAhead) {
+ rule.common.attributeName = attrs.value(QLatin1String("attribute")).toString();
+ }
+ bool colOk = false;
+ rule.common.column = attrs.value(QLatin1String("column")).toInt(&colOk);
+ if (!colOk) {
+ rule.common.column = -1;
+ }
+ }
+
+ return true;
+}
+
+template<class Data1, class Data2, class Visitor>
+static void dataRuleVisit(HighlightingContextData::Rule::Type type, Data1 &&data1, Data2 &&data2, Visitor &&visitor)
+{
+ using Rule = HighlightingContextData::Rule;
+ using Type = Rule::Type;
+ switch (type) {
+ case Type::AnyChar:
+ visitor(data1.anyChar, data2.anyChar);
+ break;
+ case Type::DetectChar:
+ visitor(data1.detectChar, data2.detectChar);
+ break;
+ case Type::Detect2Chars:
+ visitor(data1.detect2Chars, data2.detect2Chars);
+ break;
+ case Type::HlCOct:
+ visitor(data1.hlCOct, data2.hlCOct);
+ break;
+ case Type::IncludeRules:
+ visitor(data1.includeRules, data2.includeRules);
+ break;
+ case Type::Int:
+ visitor(data1.detectInt, data2.detectInt);
+ break;
+ case Type::Keyword:
+ visitor(data1.keyword, data2.keyword);
+ break;
+ case Type::LineContinue:
+ visitor(data1.lineContinue, data2.lineContinue);
+ break;
+ case Type::RangeDetect:
+ visitor(data1.rangeDetect, data2.rangeDetect);
+ break;
+ case Type::RegExpr:
+ visitor(data1.regExpr, data2.regExpr);
+ break;
+ case Type::StringDetect:
+ visitor(data1.stringDetect, data2.stringDetect);
+ break;
+ case Type::WordDetect:
+ visitor(data1.wordDetect, data2.wordDetect);
+ break;
+ case Type::Float:
+ visitor(data1.detectFloat, data2.detectFloat);
+ break;
+ case Type::HlCHex:
+ visitor(data1.hlCHex, data2.hlCHex);
+ break;
+
+ case Type::HlCStringChar:
+ case Type::DetectIdentifier:
+ case Type::DetectSpaces:
+ case Type::HlCChar:
+ case Type::Unknown:;
+ }
+}
+
+HighlightingContextData::Rule::Rule() noexcept = default;
+
+HighlightingContextData::Rule::Rule(Rule &&other) noexcept
+ : common(std::move(other.common))
+{
+ dataRuleVisit(other.type, data, other.data, [](auto &data1, auto &data2) {
+ using Data = std::remove_reference_t<decltype(data1)>;
+ new (&data1) Data(std::move(data2));
+ });
+ type = other.type;
+}
+
+HighlightingContextData::Rule::Rule(const Rule &other)
+ : common(other.common)
+{
+ dataRuleVisit(other.type, data, other.data, [](auto &data1, auto &data2) {
+ using Data = std::remove_reference_t<decltype(data1)>;
+ new (&data1) Data(data2);
+ });
+ type = other.type;
+}
+
+HighlightingContextData::Rule::~Rule()
+{
+ dataRuleVisit(type, data, data, [](auto &data, auto &) {
+ using Data = std::remove_reference_t<decltype(data)>;
+ data.~Data();
+ });
+}
+
+HighlightingContextData::ContextSwitch::ContextSwitch(QStringView str)
+{
+ if (str.isEmpty() || str == QStringLiteral("#stay")) {
+ return;
+ }
+
+ while (str.startsWith(QStringLiteral("#pop"))) {
+ ++m_popCount;
+ if (str.size() > 4 && str.at(4) == QLatin1Char('!')) {
+ str = str.mid(5);
+ break;
+ }
+ str = str.mid(4);
+ }
+
+ if (str.isEmpty()) {
+ return;
+ }
+
+ m_contextAndDefName = str.toString();
+ m_defNameIndex = str.indexOf(QStringLiteral("##"));
+}
+
+bool HighlightingContextData::ContextSwitch::isStay() const
+{
+ return m_popCount == -1 && m_contextAndDefName.isEmpty();
+}
+
+QStringView HighlightingContextData::ContextSwitch::contextName() const
+{
+ if (m_defNameIndex == -1) {
+ return m_contextAndDefName;
+ }
+ return QStringView(m_contextAndDefName).left(m_defNameIndex);
+}
+
+QStringView HighlightingContextData::ContextSwitch::defName() const
+{
+ if (m_defNameIndex == -1) {
+ return QStringView();
+ }
+ return QStringView(m_contextAndDefName).mid(m_defNameIndex + 2);
+}
+
+void HighlightingContextData::load(const QString &defName, QXmlStreamReader &reader)
+{
+ Q_ASSERT(reader.name() == QLatin1String("context"));
+ Q_ASSERT(reader.tokenType() == QXmlStreamReader::StartElement);
+
+ name = reader.attributes().value(QLatin1String("name")).toString();
+ attribute = reader.attributes().value(QLatin1String("attribute")).toString();
+ lineEndContext = reader.attributes().value(QLatin1String("lineEndContext")).toString();
+ lineEmptyContext = reader.attributes().value(QLatin1String("lineEmptyContext")).toString();
+ fallthroughContext = reader.attributes().value(QLatin1String("fallthroughContext")).toString();
+ noIndentationBasedFolding = Xml::attrToBool(reader.attributes().value(QLatin1String("noIndentationBasedFolding")));
+ stopEmptyLineContextSwitchLoop = Xml::attrToBool(reader.attributes().value(QLatin1String("stopEmptyLineContextSwitchLoop")));
+
+ rules.reserve(8);
+
+ reader.readNext();
+ while (!reader.atEnd()) {
+ switch (reader.tokenType()) {
+ case QXmlStreamReader::StartElement: {
+ auto &rule = rules.emplace_back();
+ if (!loadRule(defName, rule, reader)) {
+ rules.pop_back();
+ }
+ // be done with this rule, skip all subelements, e.g. no longer supported sub-rules
+ reader.skipCurrentElement();
+ reader.readNext();
+ break;
+ }
+ case QXmlStreamReader::EndElement:
+ return;
+ default:
+ reader.readNext();
+ break;
+ }
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/highlightingdata_p.hpp b/src/libs/3rdparty/syntax-highlighting/src/lib/highlightingdata_p.hpp
new file mode 100644
index 0000000000..f49227dbf9
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/highlightingdata_p.hpp
@@ -0,0 +1,216 @@
+/*
+ SPDX-FileCopyrightText: 2021 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
+*/
+
+#ifndef KSYNTAXHIGHLIGHTING_HIGHLIGHTING_DATA_P_H
+#define KSYNTAXHIGHLIGHTING_HIGHLIGHTING_DATA_P_H
+
+#include <QString>
+#include <QStringList>
+
+#include <vector>
+
+QT_BEGIN_NAMESPACE
+class QXmlStreamReader;
+QT_END_NAMESPACE
+
+namespace KSyntaxHighlighting
+{
+/**
+ * Represents the raw xml data of a context and its rules.
+ * After resolving contexts, members of this class are no longer
+ * use and the instance can be freed to recover used memory.
+ */
+class HighlightingContextData
+{
+public:
+ void load(const QString &defName, QXmlStreamReader &reader);
+
+ struct ContextSwitch {
+ ContextSwitch() = default;
+ ContextSwitch(QStringView str);
+
+ QStringView contextName() const;
+ QStringView defName() const;
+
+ bool isStay() const;
+
+ int popCount() const
+ {
+ return m_popCount;
+ }
+
+ private:
+ int m_popCount = 0;
+ int m_defNameIndex = -1;
+ QString m_contextAndDefName;
+ };
+
+ struct Rule {
+ enum class Type : quint8 {
+ Unknown,
+ AnyChar,
+ Detect2Chars,
+ DetectChar,
+ HlCOct,
+ IncludeRules,
+ Int,
+ Keyword,
+ LineContinue,
+ RangeDetect,
+ RegExpr,
+ StringDetect,
+ WordDetect,
+ Float,
+ HlCStringChar,
+ DetectIdentifier,
+ DetectSpaces,
+ HlCChar,
+ HlCHex,
+ };
+
+ struct AnyChar {
+ QString chars;
+ };
+
+ struct Detect2Chars {
+ QChar char1;
+ QChar char2;
+ };
+
+ struct DetectChar {
+ QChar char1;
+ bool dynamic;
+ };
+
+ struct WordDelimiters {
+ QString additionalDeliminator;
+ QString weakDeliminator;
+ };
+
+ struct Float {
+ WordDelimiters wordDelimiters;
+ };
+
+ struct HlCHex {
+ WordDelimiters wordDelimiters;
+ };
+
+ struct HlCOct {
+ WordDelimiters wordDelimiters;
+ };
+
+ struct IncludeRules {
+ QString contextName;
+ bool includeAttribute;
+ };
+
+ struct Int {
+ WordDelimiters wordDelimiters;
+ };
+
+ struct Keyword {
+ QString name;
+ WordDelimiters wordDelimiters;
+ Qt::CaseSensitivity caseSensitivityOverride;
+ bool hasCaseSensitivityOverride;
+ };
+
+ struct LineContinue {
+ QChar char1;
+ };
+
+ struct RangeDetect {
+ QChar begin;
+ QChar end;
+ };
+
+ struct RegExpr {
+ QString pattern;
+ Qt::CaseSensitivity caseSensitivity;
+ bool isMinimal;
+ bool dynamic;
+ };
+
+ struct StringDetect {
+ QString string;
+ Qt::CaseSensitivity caseSensitivity;
+ bool dynamic;
+ };
+
+ struct WordDetect {
+ QString word;
+ WordDelimiters wordDelimiters;
+ Qt::CaseSensitivity caseSensitivity;
+ };
+
+ union Data {
+ AnyChar anyChar;
+ Detect2Chars detect2Chars;
+ DetectChar detectChar;
+ HlCOct hlCOct;
+ IncludeRules includeRules;
+ Int detectInt;
+ Keyword keyword;
+ LineContinue lineContinue;
+ RangeDetect rangeDetect;
+ RegExpr regExpr;
+ StringDetect stringDetect;
+ WordDetect wordDetect;
+ Float detectFloat;
+ HlCHex hlCHex;
+
+ Data() noexcept
+ {
+ }
+
+ ~Data()
+ {
+ }
+ };
+
+ struct Common {
+ QString contextName;
+ QString attributeName;
+ QString beginRegionName;
+ QString endRegionName;
+ int column = -1;
+ bool firstNonSpace = false;
+ bool lookAhead = false;
+ };
+
+ Type type = Type::Unknown;
+ Common common;
+ Data data;
+
+ Rule() noexcept;
+ Rule(Rule &&other) noexcept;
+ Rule(const Rule &other);
+ ~Rule();
+
+ // since nothing is deleted in the rules vector, these functions do not need to be implemented
+ Rule &operator=(Rule &&other) = delete;
+ Rule &operator=(const Rule &other) = delete;
+ };
+
+ QString name;
+
+ /**
+ * attribute name, to lookup our format
+ */
+ QString attribute;
+
+ QString lineEndContext;
+ QString lineEmptyContext;
+ QString fallthroughContext;
+
+ std::vector<Rule> rules;
+
+ bool stopEmptyLineContextSwitchLoop = false;
+ bool noIndentationBasedFolding = false;
+};
+}
+
+#endif
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/htmlhighlighter.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/htmlhighlighter.cpp
index 4ebd465b77..928ae149d1 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/htmlhighlighter.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/htmlhighlighter.cpp
@@ -1,52 +1,37 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
- Copyright (C) 2018 Christoph Cullmann <cullmann@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2018 Christoph Cullmann <cullmann@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#include "htmlhighlighter.h"
+#include "abstracthighlighter_p.h"
#include "definition.h"
+#include "definition_p.h"
#include "format.h"
+#include "ksyntaxhighlighting_logging.h"
#include "state.h"
#include "theme.h"
-#include "ksyntaxhighlighting_logging.h"
-#include <QDebug>
#include <QFile>
#include <QFileInfo>
+#include <QIODevice>
#include <QTextStream>
-#include <QVarLengthArray>
using namespace KSyntaxHighlighting;
-class KSyntaxHighlighting::HtmlHighlighterPrivate
+class KSyntaxHighlighting::HtmlHighlighterPrivate : public AbstractHighlighterPrivate
{
public:
std::unique_ptr<QTextStream> out;
std::unique_ptr<QFile> file;
QString currentLine;
+ std::vector<QString> htmlStyles;
};
HtmlHighlighter::HtmlHighlighter()
- : d(new HtmlHighlighterPrivate())
+ : AbstractHighlighter(new HtmlHighlighterPrivate())
{
}
@@ -54,24 +39,26 @@ HtmlHighlighter::~HtmlHighlighter()
{
}
-void HtmlHighlighter::setOutputFile(const QString& fileName)
+void HtmlHighlighter::setOutputFile(const QString &fileName)
{
+ Q_D(HtmlHighlighter);
d->file.reset(new QFile(fileName));
if (!d->file->open(QFile::WriteOnly | QFile::Truncate)) {
qCWarning(Log) << "Failed to open output file" << fileName << ":" << d->file->errorString();
return;
}
d->out.reset(new QTextStream(d->file.get()));
- d->out->setCodec("UTF-8");
+ d->out->setEncoding(QStringConverter::Utf8);
}
void HtmlHighlighter::setOutputFile(FILE *fileHandle)
{
+ Q_D(HtmlHighlighter);
d->out.reset(new QTextStream(fileHandle, QIODevice::WriteOnly));
- d->out->setCodec("UTF-8");
+ d->out->setEncoding(QStringConverter::Utf8);
}
-void HtmlHighlighter::highlightFile(const QString& fileName, const QString& title)
+void HtmlHighlighter::highlightFile(const QString &fileName, const QString &title)
{
QFileInfo fi(fileName);
QFile f(fileName);
@@ -80,40 +67,120 @@ void HtmlHighlighter::highlightFile(const QString& fileName, const QString& titl
return;
}
- if (title.isEmpty())
+ if (title.isEmpty()) {
highlightData(&f, fi.fileName());
- else
+ } else {
highlightData(&f, title);
+ }
+}
+
+/**
+ * @brief toHtmlRgba
+ * Converts QColor -> #RRGGBBAA if there is an alpha channel
+ * otherwise it will just return the hexcode. This is because QColor
+ * outputs #AARRGGBB, whereas browser support #RRGGBBAA.
+ *
+ * @param color
+ * @return
+ */
+static QString toHtmlRgbaString(const QColor &color)
+{
+ if (color.alpha() == 0xFF) {
+ return color.name();
+ }
+ static const char16_t digits[]{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
+ QChar hexcode[9];
+ hexcode[0] = QLatin1Char('#');
+ hexcode[1] = digits[color.red() >> 4];
+ hexcode[2] = digits[color.red() & 0xf];
+ hexcode[3] = digits[color.green() >> 4];
+ hexcode[4] = digits[color.green() & 0xf];
+ hexcode[5] = digits[color.blue() >> 4];
+ hexcode[6] = digits[color.blue() & 0xf];
+ hexcode[7] = digits[color.alpha() >> 4];
+ hexcode[8] = digits[color.alpha() & 0xf];
+ return QString(hexcode, 9);
}
-void HtmlHighlighter::highlightData(QIODevice *dev, const QString& title)
+void HtmlHighlighter::highlightData(QIODevice *dev, const QString &title)
{
+ Q_D(HtmlHighlighter);
+
if (!d->out) {
qCWarning(Log) << "No output stream defined!";
return;
}
QString htmlTitle;
- if (title.isEmpty())
- htmlTitle = QStringLiteral("Kate Syntax Highlighter");
- else
+ if (title.isEmpty()) {
+ htmlTitle = QStringLiteral("KSyntaxHighlighter");
+ } else {
htmlTitle = title.toHtmlEscaped();
+ }
+
+ const auto &theme = d->m_theme;
+ const auto &definition = d->m_definition;
+
+ auto definitions = definition.includedDefinitions();
+ definitions.append(definition);
+
+ int maxId = 0;
+ for (const auto &definition : std::as_const(definitions)) {
+ for (const auto &format : std::as_const(DefinitionData::get(definition)->formats)) {
+ maxId = qMax(maxId, format.id());
+ }
+ }
+ d->htmlStyles.clear();
+ // htmlStyles must not be empty for applyFormat to work even with a definition without any context
+ d->htmlStyles.resize(maxId + 1);
+
+ // initialize htmlStyles
+ for (const auto &definition : std::as_const(definitions)) {
+ for (const auto &format : std::as_const(DefinitionData::get(definition)->formats)) {
+ auto &buffer = d->htmlStyles[format.id()];
+ if (format.hasTextColor(theme)) {
+ buffer += QStringLiteral("color:") + toHtmlRgbaString(format.textColor(theme)) + QStringLiteral(";");
+ }
+ if (format.hasBackgroundColor(theme)) {
+ buffer += QStringLiteral("background-color:") + toHtmlRgbaString(format.backgroundColor(theme)) + QStringLiteral(";");
+ }
+ if (format.isBold(theme)) {
+ buffer += QStringLiteral("font-weight:bold;");
+ }
+ if (format.isItalic(theme)) {
+ buffer += QStringLiteral("font-style:italic;");
+ }
+ if (format.isUnderline(theme)) {
+ buffer += QStringLiteral("text-decoration:underline;");
+ }
+ if (format.isStrikeThrough(theme)) {
+ buffer += QStringLiteral("text-decoration:line-through;");
+ }
+
+ if (!buffer.isEmpty()) {
+ buffer.insert(0, QStringLiteral("<span style=\""));
+ // replace last ';'
+ buffer.back() = u'"';
+ buffer += u'>';
+ }
+ }
+ }
State state;
*d->out << "<!DOCTYPE html>\n";
*d->out << "<html><head>\n";
*d->out << "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n";
*d->out << "<title>" << htmlTitle << "</title>\n";
- *d->out << "<meta name=\"generator\" content=\"KF5::SyntaxHighlighting (" << definition().name() << ")\"/>\n";
+ *d->out << "<meta name=\"generator\" content=\"KF5::SyntaxHighlighting - Definition (" << definition.name() << ") - Theme (" << theme.name() << ")\"/>\n";
*d->out << "</head><body";
- if (theme().textColor(Theme::Normal))
- *d->out << " style=\"color:" << QColor(theme().textColor(Theme::Normal)).name() << "\"";
- *d->out << "><pre>\n";
+ *d->out << " style=\"background-color:" << toHtmlRgbaString(QColor::fromRgba(theme.editorColor(Theme::BackgroundColor)));
+ if (theme.textColor(Theme::Normal)) {
+ *d->out << ";color:" << toHtmlRgbaString(QColor::fromRgba(theme.textColor(Theme::Normal)));
+ }
+ *d->out << "\"><pre>\n";
QTextStream in(dev);
- in.setCodec("UTF-8");
- while (!in.atEnd()) {
- d->currentLine = in.readLine();
+ while (in.readLineInto(&d->currentLine)) {
state = highlightLine(d->currentLine, state);
*d->out << "\n";
}
@@ -125,37 +192,30 @@ void HtmlHighlighter::highlightData(QIODevice *dev, const QString& title)
d->file.reset();
}
-void HtmlHighlighter::applyFormat(int offset, int length, const Format& format)
+void HtmlHighlighter::applyFormat(int offset, int length, const Format &format)
{
- if (length == 0)
+ if (length == 0) {
return;
+ }
- // collect potential output, cheaper than thinking about "is there any?"
- QVarLengthArray<QString, 16> formatOutput;
- if (format.hasTextColor(theme()))
- formatOutput << QStringLiteral("color:") << format.textColor(theme()).name() << QStringLiteral(";");
- if (format.hasBackgroundColor(theme()))
- formatOutput << QStringLiteral("background-color:") << format.backgroundColor(theme()).name() << QStringLiteral(";");
- if (format.isBold(theme()))
- formatOutput << QStringLiteral("font-weight:bold;");
- if (format.isItalic(theme()))
- formatOutput << QStringLiteral("font-style:italic;");
- if (format.isUnderline(theme()))
- formatOutput << QStringLiteral("text-decoration:underline;");
- if (format.isStrikeThrough(theme()))
- formatOutput << QStringLiteral("text-decoration:line-through;");
-
- if (!formatOutput.isEmpty()) {
- *d->out << "<span style=\"";
- for (const auto &out : qAsConst(formatOutput)) {
- *d->out << out;
- }
- *d->out << "\">";
+ Q_D(HtmlHighlighter);
+
+ auto const &htmlStyle = d->htmlStyles[format.id()];
+
+ if (!htmlStyle.isEmpty()) {
+ *d->out << htmlStyle;
}
- *d->out << d->currentLine.mid(offset, length).toHtmlEscaped();
+ for (QChar ch : QStringView(d->currentLine).mid(offset, length)) {
+ if (ch == u'<')
+ *d->out << QStringLiteral("&lt;");
+ else if (ch == u'&')
+ *d->out << QStringLiteral("&amp;");
+ else
+ *d->out << ch;
+ }
- if (!formatOutput.isEmpty()) {
- *d->out << "</span>";
+ if (!htmlStyle.isEmpty()) {
+ *d->out << QStringLiteral("</span>");
}
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/htmlhighlighter.h b/src/libs/3rdparty/syntax-highlighting/src/lib/htmlhighlighter.h
index b7eda02d54..741cb85103 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/htmlhighlighter.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/htmlhighlighter.h
@@ -1,44 +1,23 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_HTMLHIGHLIGHTER_H
#define KSYNTAXHIGHLIGHTING_HTMLHIGHLIGHTER_H
-#include "ksyntaxhighlighting_export.h"
#include "abstracthighlighter.h"
+#include "ksyntaxhighlighting_export.h"
#include <QString>
-#include <QIODevice>
-
-#include <memory>
QT_BEGIN_NAMESPACE
-class QFile;
-class QTextStream;
+class QIODevice;
QT_END_NAMESPACE
-namespace KSyntaxHighlighting {
-
+namespace KSyntaxHighlighting
+{
class HtmlHighlighterPrivate;
class KSYNTAXHIGHLIGHTING_EXPORT HtmlHighlighter : public AbstractHighlighter
@@ -57,7 +36,7 @@ protected:
void applyFormat(int offset, int length, const Format &format) override;
private:
- std::unique_ptr<HtmlHighlighterPrivate> d;
+ Q_DECLARE_PRIVATE(HtmlHighlighter)
};
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/keywordlist.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/keywordlist.cpp
index f042baac27..847f6af6d4 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/keywordlist.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/keywordlist.cpp
@@ -1,39 +1,43 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
*/
-#include "keywordlist_p.h"
-#include "repository.h"
#include "definition_p.h"
+#include "keywordlist_p.h"
#include "ksyntaxhighlighting_logging.h"
+#include "repository.h"
-#include <QDebug>
#include <QXmlStreamReader>
#include <algorithm>
using namespace KSyntaxHighlighting;
-bool KeywordList::contains(const QStringRef &str, Qt::CaseSensitivity caseSensitive) const
+namespace
+{
+struct KeywordComparator {
+ Qt::CaseSensitivity caseSensitive;
+
+ bool operator()(QStringView a, QStringView b) const
+ {
+ if (a.size() < b.size()) {
+ return true;
+ }
+
+ if (a.size() > b.size()) {
+ return false;
+ }
+
+ return a.compare(b, caseSensitive) < 0;
+ }
+};
+
+}
+
+bool KeywordList::contains(QStringView str, Qt::CaseSensitivity caseSensitive) const
{
/**
* get right vector to search in
@@ -43,37 +47,36 @@ bool KeywordList::contains(const QStringRef &str, Qt::CaseSensitivity caseSensit
/**
* search with right predicate
*/
- return std::binary_search(vectorToSearch.begin(), vectorToSearch.end(), str, [caseSensitive] (const QStringRef &a, const QStringRef &b) { return a.compare(b, caseSensitive) < 0; });
+ return std::binary_search(vectorToSearch.begin(), vectorToSearch.end(), str, KeywordComparator{caseSensitive});
}
-void KeywordList::load(QXmlStreamReader& reader)
+void KeywordList::load(QXmlStreamReader &reader)
{
Q_ASSERT(reader.name() == QLatin1String("list"));
Q_ASSERT(reader.tokenType() == QXmlStreamReader::StartElement);
- m_name = reader.attributes().value(QStringLiteral("name")).toString();
+ m_name = reader.attributes().value(QLatin1String("name")).toString();
while (!reader.atEnd()) {
switch (reader.tokenType()) {
- case QXmlStreamReader::StartElement:
- if (reader.name() == QLatin1String("item")) {
- m_keywords.append(reader.readElementText().trimmed());
- reader.readNextStartElement();
- break;
- }
- else if (reader.name() == QLatin1String("include")) {
- m_includes.append(reader.readElementText().trimmed());
- reader.readNextStartElement();
- break;
- }
- reader.readNext();
+ case QXmlStreamReader::StartElement:
+ if (reader.name() == QLatin1String("item")) {
+ m_keywords.append(reader.readElementText().trimmed());
+ reader.readNextStartElement();
break;
- case QXmlStreamReader::EndElement:
- reader.readNext();
- return;
- default:
- reader.readNext();
+ } else if (reader.name() == QLatin1String("include")) {
+ m_includes.append(reader.readElementText().trimmed());
+ reader.readNextStartElement();
break;
+ }
+ reader.readNext();
+ break;
+ case QXmlStreamReader::EndElement:
+ reader.readNext();
+ return;
+ default:
+ reader.readNext();
+ break;
}
}
}
@@ -100,15 +103,12 @@ void KeywordList::initLookupForCaseSensitivity(Qt::CaseSensitivity caseSensitive
/**
* fill vector with refs to keywords
*/
- vectorToSort.reserve(m_keywords.size());
- for (const auto &keyword : qAsConst(m_keywords)) {
- vectorToSort.push_back(&keyword);
- }
+ vectorToSort.assign(m_keywords.constBegin(), m_keywords.constEnd());
/**
* sort with right predicate
*/
- std::sort(vectorToSort.begin(), vectorToSort.end(), [caseSensitive] (const QStringRef &a, const QStringRef &b) { return a.compare(b, caseSensitive) < 0; });
+ std::sort(vectorToSort.begin(), vectorToSort.end(), KeywordComparator{caseSensitive});
}
void KeywordList::resolveIncludeKeywords(DefinitionData &def)
@@ -121,15 +121,14 @@ void KeywordList::resolveIncludeKeywords(DefinitionData &def)
KeywordList *keywords = nullptr;
if (idx >= 0) {
- auto listName = kw_include.left(idx);
auto defName = kw_include.mid(idx + 2);
auto includeDef = def.repo->definitionForName(defName);
if (includeDef.isValid()) {
+ auto listName = kw_include.left(idx);
auto defData = DefinitionData::get(includeDef);
defData->load(DefinitionData::OnlyKeywords(true));
keywords = defData->keywordList(listName);
- }
- else {
+ } else {
qCWarning(Log) << "Unable to resolve external include keyword for definition" << defName << "in" << def.name;
}
} else {
@@ -141,8 +140,7 @@ void KeywordList::resolveIncludeKeywords(DefinitionData &def)
keywords->resolveIncludeKeywords(def);
}
m_keywords += keywords->m_keywords;
- }
- else {
+ } else {
qCWarning(Log) << "Unresolved include keyword" << kw_include << "in" << def.name;
}
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/keywordlist_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/keywordlist_p.h
index 25d0022dbe..a8578522cb 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/keywordlist_p.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/keywordlist_p.h
@@ -1,32 +1,16 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_KEYWORDLIST_P_H
#define KSYNTAXHIGHLIGHTING_KEYWORDLIST_P_H
-#include <QSet>
#include <QString>
-#include <QVector>
+#include <QStringList>
+#include <QStringView>
#include <vector>
@@ -34,8 +18,8 @@ QT_BEGIN_NAMESPACE
class QXmlStreamReader;
QT_END_NAMESPACE
-namespace KSyntaxHighlighting {
-
+namespace KSyntaxHighlighting
+{
class Repository;
class DefinitionData;
@@ -60,14 +44,27 @@ public:
return m_keywords;
}
+ Qt::CaseSensitivity caseSensitivity() const
+ {
+ return m_caseSensitive;
+ }
+
+ void setKeywordList(const QStringList &keywords)
+ {
+ m_keywords = keywords;
+ m_keywordsSortedCaseSensitive.clear();
+ m_keywordsSortedCaseInsensitive.clear();
+ initLookupForCaseSensitivity(m_caseSensitive);
+ }
+
/** Checks if @p str is a keyword in this list. */
- bool contains(const QStringRef &str) const
+ bool contains(QStringView str) const
{
return contains(str, m_caseSensitive);
}
/** Checks if @p str is a keyword in this list, overriding the global case-sensitivity setting. */
- bool contains(const QStringRef &str, Qt::CaseSensitivity caseSensitive) const;
+ bool contains(QStringView str, Qt::CaseSensitivity caseSensitive) const;
void load(QXmlStreamReader &reader);
void setCaseSensitivity(Qt::CaseSensitivity caseSensitive);
@@ -98,12 +95,12 @@ private:
/**
* case-sensitive sorted string references to m_keywords for lookup
*/
- std::vector<QStringRef> m_keywordsSortedCaseSensitive;
+ std::vector<QStringView> m_keywordsSortedCaseSensitive;
/**
* case-insensitive sorted string references to m_keywords for lookup
*/
- std::vector<QStringRef> m_keywordsSortedCaseInsensitive;
+ std::vector<QStringView> m_keywordsSortedCaseInsensitive;
};
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/ksyntaxhighlighting_export.h b/src/libs/3rdparty/syntax-highlighting/src/lib/ksyntaxhighlighting_export.h
deleted file mode 100644
index a39adb5ed6..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/ksyntaxhighlighting_export.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt Creator.
-**
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-****************************************************************************/
-
-#pragma once
-
-#include <QtGlobal>
-
-#if defined(KSYNTAXHIGHLIGHTING_LIBRARY)
-# define KSYNTAXHIGHLIGHTING_EXPORT Q_DECL_EXPORT
-#else
-# define KSYNTAXHIGHLIGHTING_EXPORT Q_DECL_IMPORT
-#endif
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/matchresult_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/matchresult_p.h
index b1a05ee636..7112d4e291 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/matchresult_p.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/matchresult_p.h
@@ -1,24 +1,7 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_MATCHRESULT_P_H
@@ -26,8 +9,8 @@
#include <QStringList>
-namespace KSyntaxHighlighting {
-
+namespace KSyntaxHighlighting
+{
/**
* Storage for match result of a Rule.
* Heavily used internally during highlightLine, therefore completely inline.
@@ -58,9 +41,9 @@ public:
* @param offset offset of match
* @param captures captures of the match
*/
- explicit MatchResult(const int offset, const QStringList &captures)
+ explicit MatchResult(const int offset, QStringList &&captures)
: m_offset(offset)
- , m_captures(captures)
+ , m_captures(std::move(captures))
{
}
@@ -73,7 +56,6 @@ public:
return m_offset;
}
-
/**
* Skip offset of the match
* @return skip offset of the match, no match possible until this offset is reached
@@ -87,7 +69,7 @@ public:
* Captures of the match.
* @return captured text of this match
*/
- const QStringList &captures() const
+ QStringList &captures()
{
return m_captures;
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/repository.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/repository.cpp
index aaba9616dc..07c28454c5 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/repository.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/repository.cpp
@@ -1,50 +1,93 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#include "repository.h"
-#include "repository_p.h"
#include "definition.h"
#include "definition_p.h"
+#include "ksyntaxhighlighting_logging.h"
+#include "repository_p.h"
#include "theme.h"
#include "themedata_p.h"
-#include "ksyntaxhighlighting_logging.h"
-#include "wildcardmatcher_p.h"
+#include "wildcardmatcher.h"
-#include <QDebug>
+#include <QCborMap>
+#include <QCborValue>
#include <QDirIterator>
#include <QFile>
#include <QFileInfo>
-#include <QJsonDocument>
-#include <QJsonObject>
+#include <QPalette>
+#include <QString>
+#include <QStringView>
#ifndef NO_STANDARD_PATHS
#include <QStandardPaths>
#endif
+#include <algorithm>
+#include <iterator>
#include <limits>
using namespace KSyntaxHighlighting;
+namespace
+{
+QString fileNameFromFilePath(const QString &filePath)
+{
+ return QFileInfo{filePath}.fileName();
+}
+
+auto anyWildcardMatches(QStringView str)
+{
+ return [str](const Definition &def) {
+ const auto strings = def.extensions();
+ return std::any_of(strings.cbegin(), strings.cend(), [str](QStringView wildcard) {
+ return WildcardMatcher::exactMatch(str, wildcard);
+ });
+ };
+}
+
+auto anyMimeTypeEquals(QStringView mimeTypeName)
+{
+ return [mimeTypeName](const Definition &def) {
+ const auto strings = def.mimeTypes();
+ return std::any_of(strings.cbegin(), strings.cend(), [mimeTypeName](QStringView name) {
+ return mimeTypeName == name;
+ });
+ };
+}
+
+// The two function templates below take defs - a map sorted by highlighting name - to be deterministic and independent of translations.
+
+template<typename UnaryPredicate>
+Definition findHighestPriorityDefinitionIf(const QMap<QString, Definition> &defs, UnaryPredicate predicate)
+{
+ const Definition *match = nullptr;
+ auto matchPriority = std::numeric_limits<int>::lowest();
+ for (const Definition &def : defs) {
+ const auto defPriority = def.priority();
+ if (defPriority > matchPriority && predicate(def)) {
+ match = &def;
+ matchPriority = defPriority;
+ }
+ }
+ return match == nullptr ? Definition{} : *match;
+}
+
+template<typename UnaryPredicate>
+QList<Definition> findDefinitionsIf(const QMap<QString, Definition> &defs, UnaryPredicate predicate)
+{
+ QList<Definition> matches;
+ std::copy_if(defs.cbegin(), defs.cend(), std::back_inserter(matches), predicate);
+ std::stable_sort(matches.begin(), matches.end(), [](const Definition &lhs, const Definition &rhs) {
+ return lhs.priority() > rhs.priority();
+ });
+ return matches;
+}
+} // unnamed namespace
+
static void initResource()
{
#ifdef HAS_SYNTAX_RESOURCE
@@ -53,13 +96,13 @@ static void initResource()
Q_INIT_RESOURCE(theme_data);
}
-RepositoryPrivate* RepositoryPrivate::get(Repository *repo)
+RepositoryPrivate *RepositoryPrivate::get(Repository *repo)
{
return repo->d.get();
}
-Repository::Repository() :
- d(new RepositoryPrivate)
+Repository::Repository()
+ : d(new RepositoryPrivate)
{
initResource();
d->load(this);
@@ -69,93 +112,97 @@ Repository::~Repository()
{
// reset repo so we can detect in still alive definition instances
// that the repo was deleted
- for (const auto &def : qAsConst(d->m_sortedDefs))
+ for (const auto &def : std::as_const(d->m_sortedDefs)) {
DefinitionData::get(def)->repo = nullptr;
+ }
}
-Definition Repository::definitionForName(const QString& defName) const
+Definition Repository::definitionForName(const QString &defName) const
{
return d->m_defs.value(defName);
}
-static void sortDefinitions(QVector<Definition> &definitions)
+Definition Repository::definitionForFileName(const QString &fileName) const
{
- std::stable_sort(definitions.begin(), definitions.end(), [](const Definition &lhs, const Definition &rhs) {
- return lhs.priority() > rhs.priority();
- });
+ return findHighestPriorityDefinitionIf(d->m_defs, anyWildcardMatches(fileNameFromFilePath(fileName)));
}
-Definition Repository::definitionForFileName(const QString& fileName) const
+QList<Definition> Repository::definitionsForFileName(const QString &fileName) const
{
- return definitionsForFileName(fileName).value(0);
+ return findDefinitionsIf(d->m_defs, anyWildcardMatches(fileNameFromFilePath(fileName)));
}
-QVector<Definition> Repository::definitionsForFileName(const QString &fileName) const
+Definition Repository::definitionForMimeType(const QString &mimeType) const
{
- QFileInfo fi(fileName);
- const auto name = fi.fileName();
-
- QVector<Definition> candidates;
- for (const Definition &def : qAsConst(d->m_sortedDefs)) {
- for (const auto &pattern : def.extensions()) {
- if (WildcardMatcher::exactMatch(name, pattern)) {
- candidates.push_back(def);
- break;
- }
- }
- }
-
- sortDefinitions(candidates);
- return candidates;
+ return findHighestPriorityDefinitionIf(d->m_defs, anyMimeTypeEquals(mimeType));
}
-Definition Repository::definitionForMimeType(const QString& mimeType) const
+QList<Definition> Repository::definitionsForMimeType(const QString &mimeType) const
{
- return definitionsForMimeType(mimeType).value(0);
+ return findDefinitionsIf(d->m_defs, anyMimeTypeEquals(mimeType));
}
-QVector<Definition> Repository::definitionsForMimeType(const QString &mimeType) const
+QList<Definition> Repository::definitions() const
{
- QVector<Definition> candidates;
- for (const Definition &def : qAsConst(d->m_sortedDefs)) {
- for (const auto &matchType : def.mimeTypes()) {
- if (mimeType == matchType) {
- candidates.push_back(def);
- break;
- }
- }
- }
-
- sortDefinitions(candidates);
- return candidates;
+ return d->m_sortedDefs;
}
-QVector<Definition> Repository::definitions() const
+QList<Theme> Repository::themes() const
{
- return d->m_sortedDefs;
+ return d->m_themes;
}
-QVector<Theme> Repository::themes() const
+static auto lowerBoundTheme(const QList<KSyntaxHighlighting::Theme> &themes, QStringView themeName)
{
- return d->m_themes;
+ return std::lower_bound(themes.begin(), themes.end(), themeName, [](const Theme &lhs, QStringView rhs) {
+ return lhs.name() < rhs;
+ });
}
Theme Repository::theme(const QString &themeName) const
{
- for (const auto &theme : qAsConst(d->m_themes)) {
- if (theme.name() == themeName) {
- return theme;
- }
+ const auto &themes = d->m_themes;
+ const auto it = lowerBoundTheme(themes, themeName);
+ if (it != themes.end() && (*it).name() == themeName) {
+ return *it;
}
-
return Theme();
}
-Theme Repository::defaultTheme(Repository::DefaultTheme t)
+Theme Repository::defaultTheme(Repository::DefaultTheme t) const
{
- if (t == DarkTheme)
- return theme(QLatin1String("Breeze Dark"));
- return theme(QLatin1String("Default"));
+ if (t == DarkTheme) {
+ return theme(QStringLiteral("Breeze Dark"));
+ }
+ return theme(QStringLiteral("Breeze Light"));
+}
+
+Theme Repository::themeForPalette(const QPalette &palette) const
+{
+ const auto base = palette.color(QPalette::Base);
+ const auto highlight = palette.color(QPalette::Highlight).rgb();
+
+ // find themes with matching background and highlight colors
+ const Theme *firstMatchingTheme = nullptr;
+ for (const auto &theme : std::as_const(d->m_themes)) {
+ const auto background = theme.editorColor(Theme::EditorColorRole::BackgroundColor);
+ if (background == base.rgb()) {
+ // find theme with a matching highlight color
+ auto selection = theme.editorColor(Theme::EditorColorRole::TextSelection);
+ if (selection == highlight) {
+ return theme;
+ }
+ if (!firstMatchingTheme) {
+ firstMatchingTheme = &theme;
+ }
+ }
+ }
+ if (firstMatchingTheme) {
+ return *firstMatchingTheme;
+ }
+
+ // fallback to just use the default light or dark theme
+ return defaultTheme((base.lightness() < 128) ? Repository::DarkTheme : Repository::LightTheme);
}
void RepositoryPrivate::load(Repository *repo)
@@ -165,28 +212,44 @@ void RepositoryPrivate::load(Repository *repo)
// do lookup in standard paths, if not disabled
#ifndef NO_STANDARD_PATHS
- for (const auto &dir : QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("org.kde.syntax-highlighting/syntax"), QStandardPaths::LocateDirectory))
- loadSyntaxFolder(repo, dir);
+ // do lookup in installed path when has no syntax resource
+#ifndef HAS_SYNTAX_RESOURCE
+ for (const auto &dir : QStandardPaths::locateAll(QStandardPaths::GenericDataLocation,
+ QStringLiteral("org.kde.syntax-highlighting/syntax-bundled"),
+ QStandardPaths::LocateDirectory)) {
+ if (!loadSyntaxFolderFromIndex(repo, dir)) {
+ loadSyntaxFolder(repo, dir);
+ }
+ }
+#endif
- // backward compatibility with Kate
- for (const auto &dir : QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("katepart5/syntax"), QStandardPaths::LocateDirectory))
+ for (const auto &dir : QStandardPaths::locateAll(QStandardPaths::GenericDataLocation,
+ QStringLiteral("org.kde.syntax-highlighting/syntax"),
+ QStandardPaths::LocateDirectory)) {
loadSyntaxFolder(repo, dir);
+ }
#endif
- // default resources are always used
- loadSyntaxFolder(repo, QStringLiteral(":/org.kde.syntax-highlighting/syntax"));
+ // default resources are always used, this is the one location that has a index cbor file
+ loadSyntaxFolderFromIndex(repo, QStringLiteral(":/org.kde.syntax-highlighting/syntax"));
+
+ // extra resources provided by 3rdparty libraries/applications
+ loadSyntaxFolder(repo, QStringLiteral(":/org.kde.syntax-highlighting/syntax-addons"));
// user given extra paths
- for (const auto &path : qAsConst(m_customSearchPaths))
+ for (const auto &path : std::as_const(m_customSearchPaths)) {
loadSyntaxFolder(repo, path + QStringLiteral("/syntax"));
+ }
m_sortedDefs.reserve(m_defs.size());
- for (auto it = m_defs.constBegin(); it != m_defs.constEnd(); ++it)
+ for (auto it = m_defs.constBegin(); it != m_defs.constEnd(); ++it) {
m_sortedDefs.push_back(it.value());
+ }
std::sort(m_sortedDefs.begin(), m_sortedDefs.end(), [](const Definition &left, const Definition &right) {
auto comparison = left.translatedSection().compare(right.translatedSection(), Qt::CaseInsensitive);
- if (comparison == 0)
+ if (comparison == 0) {
comparison = left.translatedName().compare(right.translatedName(), Qt::CaseInsensitive);
+ }
return comparison < 0;
});
@@ -194,52 +257,61 @@ void RepositoryPrivate::load(Repository *repo)
// do lookup in standard paths, if not disabled
#ifndef NO_STANDARD_PATHS
- for (const auto &dir : QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("org.kde.syntax-highlighting/themes"), QStandardPaths::LocateDirectory))
+ for (const auto &dir : QStandardPaths::locateAll(QStandardPaths::GenericDataLocation,
+ QStringLiteral("org.kde.syntax-highlighting/themes"),
+ QStandardPaths::LocateDirectory)) {
loadThemeFolder(dir);
+ }
#endif
// default resources are always used
loadThemeFolder(QStringLiteral(":/org.kde.syntax-highlighting/themes"));
+ // extra resources provided by 3rdparty libraries/applications
+ loadThemeFolder(QStringLiteral(":/org.kde.syntax-highlighting/themes-addons"));
+
// user given extra paths
- for (const auto &path : qAsConst(m_customSearchPaths))
+ for (const auto &path : std::as_const(m_customSearchPaths)) {
loadThemeFolder(path + QStringLiteral("/themes"));
+ }
}
void RepositoryPrivate::loadSyntaxFolder(Repository *repo, const QString &path)
{
- if (loadSyntaxFolderFromIndex(repo, path))
- return;
-
QDirIterator it(path, QStringList() << QLatin1String("*.xml"), QDir::Files);
while (it.hasNext()) {
Definition def;
auto defData = DefinitionData::get(def);
defData->repo = repo;
- if (defData->loadMetaData(it.next()))
+ if (defData->loadMetaData(it.next())) {
addDefinition(def);
+ }
}
}
bool RepositoryPrivate::loadSyntaxFolderFromIndex(Repository *repo, const QString &path)
{
QFile indexFile(path + QLatin1String("/index.katesyntax"));
- if (!indexFile.open(QFile::ReadOnly))
+ if (!indexFile.open(QFile::ReadOnly)) {
return false;
+ }
- const auto indexDoc(QJsonDocument::fromBinaryData(indexFile.readAll()));
- const auto index = indexDoc.object();
+ const auto indexDoc(QCborValue::fromCbor(indexFile.readAll()));
+ const auto index = indexDoc.toMap();
for (auto it = index.begin(); it != index.end(); ++it) {
- if (!it.value().isObject())
+ if (!it.value().isMap()) {
continue;
- const auto fileName = QString(path + QLatin1Char('/') + it.key());
- const auto defMap = it.value().toObject();
+ }
+ const auto fileName = QString(path + QLatin1Char('/') + it.key().toString());
+ const auto defMap = it.value().toMap();
Definition def;
auto defData = DefinitionData::get(def);
defData->repo = repo;
- if (defData->loadMetaData(fileName, defMap))
+ if (defData->loadMetaData(fileName, defMap)) {
addDefinition(def);
+ }
}
+
return true;
}
@@ -251,8 +323,9 @@ void RepositoryPrivate::addDefinition(const Definition &def)
return;
}
- if (it.value().version() >= def.version())
+ if (it.value().version() >= def.version()) {
return;
+ }
m_defs.insert(def.name(), def);
}
@@ -261,8 +334,9 @@ void RepositoryPrivate::loadThemeFolder(const QString &path)
QDirIterator it(path, QStringList() << QLatin1String("*.theme"), QDir::Files);
while (it.hasNext()) {
auto themeData = std::unique_ptr<ThemeData>(new ThemeData);
- if (themeData->load(it.next()))
+ if (themeData->load(it.next())) {
addTheme(Theme(themeData.release()));
+ }
}
}
@@ -274,37 +348,43 @@ static int themeRevision(const Theme &theme)
void RepositoryPrivate::addTheme(const Theme &theme)
{
- const auto it = std::lower_bound(m_themes.begin(), m_themes.end(), theme, [](const Theme &lhs, const Theme &rhs) {
- return lhs.name() < rhs.name();
- });
- if (it == m_themes.end() || (*it).name() != theme.name()) {
- m_themes.insert(it, theme);
+ const auto &constThemes = m_themes;
+ const auto themeName = theme.name();
+ const auto constIt = lowerBoundTheme(constThemes, themeName);
+ const auto index = constIt - constThemes.begin();
+ if (constIt == constThemes.end() || (*constIt).name() != themeName) {
+ m_themes.insert(index, theme);
return;
}
- if (themeRevision(*it) < themeRevision(theme))
- *it = theme;
+ if (themeRevision(*constIt) < themeRevision(theme)) {
+ m_themes[index] = theme;
+ }
}
-quint16 RepositoryPrivate::foldingRegionId(const QString &defName, const QString &foldName)
+int RepositoryPrivate::foldingRegionId(const QString &defName, const QString &foldName)
{
const auto it = m_foldingRegionIds.constFind(qMakePair(defName, foldName));
- if (it != m_foldingRegionIds.constEnd())
+ if (it != m_foldingRegionIds.constEnd()) {
return it.value();
+ }
+ Q_ASSERT(m_foldingRegionId < std::numeric_limits<int>::max());
m_foldingRegionIds.insert(qMakePair(defName, foldName), ++m_foldingRegionId);
return m_foldingRegionId;
}
-quint16 RepositoryPrivate::nextFormatId()
+int RepositoryPrivate::nextFormatId()
{
- Q_ASSERT(m_formatId < std::numeric_limits<quint16>::max());
+ Q_ASSERT(m_formatId < std::numeric_limits<int>::max());
return ++m_formatId;
}
void Repository::reload()
{
- qCDebug(Log) << "Reloading syntax definitions!";
- for (const auto &def : qAsConst(d->m_sortedDefs))
+ Q_EMIT aboutToReload();
+
+ for (const auto &def : std::as_const(d->m_sortedDefs)) {
DefinitionData::get(def)->clear();
+ }
d->m_defs.clear();
d->m_sortedDefs.clear();
@@ -316,6 +396,8 @@ void Repository::reload()
d->m_formatId = 0;
d->load(this);
+
+ Q_EMIT reloaded();
}
void Repository::addCustomSearchPath(const QString &path)
@@ -324,7 +406,9 @@ void Repository::addCustomSearchPath(const QString &path)
reload();
}
-QVector<QString> Repository::customSearchPaths() const
+QList<QString> Repository::customSearchPaths() const
{
return d->m_customSearchPaths;
}
+
+#include "moc_repository.cpp"
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/repository.h b/src/libs/3rdparty/syntax-highlighting/src/lib/repository.h
index 2bc66965cf..612ba54d6a 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/repository.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/repository.h
@@ -1,24 +1,7 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_REPOSITORY_H
@@ -26,12 +9,15 @@
#include "ksyntaxhighlighting_export.h"
-#include <qglobal.h>
+#include <QList>
+#include <QObject>
+#include <QtGlobal>
+
#include <memory>
QT_BEGIN_NAMESPACE
class QString;
-template <typename T> class QVector;
+class QPalette;
QT_END_NAMESPACE
/**
@@ -43,8 +29,8 @@ QT_END_NAMESPACE
*
* @see Repository
*/
-namespace KSyntaxHighlighting {
-
+namespace KSyntaxHighlighting
+{
class Definition;
class RepositoryPrivate;
class Theme;
@@ -91,17 +77,15 @@ class Theme;
* map to $HOME/.local5/share/org.kde.syntax-highlighting/syntax and
* /usr/share/org.kde.syntax-highlighting/syntax.
*
- * -# Next, for backwards compatibility with Kate, all syntax highlighting
- * files are loaded that are located in
- * QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("katepart5/syntax"), QStandardPaths::LocateDirectory);
- * Again, under Unix, this uses $XDG_DATA_HOME and $XDG_DATA_DIRS, which
- * could map to $HOME/.local5/share/katepart5/syntax and
- * /usr/share/katepart5/syntax.
- *
* -# Then, all files compiled into the library through resources are loaded.
* The internal resource path is ":/org.kde.syntax-highlighting/syntax".
* This path should never be touched by other applications.
*
+ * -# Then, all custom files compiled into resources are loaded.
+ * The resource path is ":/org.kde.syntax-highlighting/syntax-addons".
+ * This path can be used by other libraries/applications to bundle specialized definitions.
+ * Per default this path isn't used by the framework itself.
+ *
* -# Finally, the search path can be extended by calling addCustomSearchPath().
* A custom search path can either be a path on disk or again a path to
* a Qt resource.
@@ -118,6 +102,11 @@ class Theme;
* The internal resource path is ":/org.kde.syntax-highlighting/themes".
* This path should never be touched by other applications.
*
+ * -# Then, all custom files compiled into resources are loaded.
+ * The resource path is ":/org.kde.syntax-highlighting/themes-addons".
+ * This path can be used by other libraries/applications to bundle specialized themes.
+ * Per default this path isn't used by the framework itself.
+ *
* -# Finally, all Theme%s located in the paths added addCustomSearchPath()
* are loaded.
*
@@ -129,8 +118,12 @@ class Theme;
* @see Definition, Theme, AbstractHighlighter
* @since 5.28
*/
-class KSYNTAXHIGHLIGHTING_EXPORT Repository
+class KSYNTAXHIGHLIGHTING_EXPORT Repository : public QObject
{
+ Q_OBJECT
+ Q_PROPERTY(QList<KSyntaxHighlighting::Definition> definitions READ definitions NOTIFY reloaded)
+ Q_PROPERTY(QList<KSyntaxHighlighting::Theme> themes READ themes NOTIFY reloaded)
+
public:
/**
* Create a new syntax definition repository.
@@ -153,7 +146,7 @@ public:
* Therefore, only the string "JavaScript" will return a valid
* Definition file.
*/
- Definition definitionForName(const QString &defName) const;
+ Q_INVOKABLE KSyntaxHighlighting::Definition definitionForName(const QString &defName) const;
/**
* Returns the best matching Definition for the file named @p fileName.
@@ -164,7 +157,7 @@ public:
* If no match is found, Definition::isValid() of the returned instance
* returns false.
*/
- Definition definitionForFileName(const QString &fileName) const;
+ Q_INVOKABLE KSyntaxHighlighting::Definition definitionForFileName(const QString &fileName) const;
/**
* Returns all Definition%s for the file named @p fileName sorted by priority.
@@ -173,7 +166,7 @@ public:
*
* @since 5.56
*/
- QVector<Definition> definitionsForFileName(const QString &fileName) const;
+ Q_INVOKABLE QList<KSyntaxHighlighting::Definition> definitionsForFileName(const QString &fileName) const;
/**
* Returns the best matching Definition to the type named @p mimeType
@@ -183,34 +176,34 @@ public:
*
* @since 5.50
*/
- Definition definitionForMimeType(const QString &mimeType) const;
+ Q_INVOKABLE KSyntaxHighlighting::Definition definitionForMimeType(const QString &mimeType) const;
/**
* Returns all Definition%s to the type named @p mimeType sorted by priority
*
* @since 5.56
*/
- QVector<Definition> definitionsForMimeType(const QString &mimeType) const;
+ Q_INVOKABLE QList<KSyntaxHighlighting::Definition> definitionsForMimeType(const QString &mimeType) const;
/**
* Returns all available Definition%s.
* Definition%ss are ordered by translated section and translated names,
* for consistent displaying.
*/
- QVector<Definition> definitions() const;
+ Q_INVOKABLE QList<KSyntaxHighlighting::Definition> definitions() const;
/**
* Returns all available color themes.
* The returned list should never be empty.
*/
- QVector<Theme> themes() const;
+ Q_INVOKABLE QList<KSyntaxHighlighting::Theme> themes() const;
/**
* Returns the theme called @p themeName.
* If the requested theme cannot be found, the retunred Theme is invalid,
* see Theme::isValid().
*/
- Theme theme(const QString &themeName) const;
+ Q_INVOKABLE KSyntaxHighlighting::Theme theme(const QString &themeName) const;
/**
* Built-in default theme types.
@@ -222,12 +215,20 @@ public:
//! Theme with a dark background color.
DarkTheme
};
+ Q_ENUM(DefaultTheme)
/**
* Returns a default theme instance of the given type.
* The returned Theme is guaranteed to be a valid theme.
+ * @since 5.79
*/
- Theme defaultTheme(DefaultTheme t = LightTheme);
+ Q_INVOKABLE KSyntaxHighlighting::Theme defaultTheme(DefaultTheme t = LightTheme) const;
+
+ /**
+ * Returns the best matching theme for the given palette
+ * @since 5.79
+ **/
+ Theme themeForPalette(const QPalette &palette) const;
/**
* Reloads the repository.
@@ -260,7 +261,20 @@ public:
* @see addCustomSearchPath()
* @since 5.39
*/
- QVector<QString> customSearchPaths() const;
+ QList<QString> customSearchPaths() const;
+
+Q_SIGNALS:
+ /**
+ * This signal is emitted before the reload is started.
+ * @since 6.0
+ */
+ void aboutToReload();
+
+ /**
+ * This signal is emitted when the reload is finished.
+ * @since 6.0
+ */
+ void reloaded();
private:
Q_DISABLE_COPY(Repository)
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/repository_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/repository_p.h
index 9db876be59..bb9f8ba082 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/repository_p.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/repository_p.h
@@ -1,38 +1,21 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_REPOSITORY_P_H
#define KSYNTAXHIGHLIGHTING_REPOSITORY_P_H
#include <QHash>
-#include <QVector>
-
-QT_BEGIN_NAMESPACE
-class QString;
-QT_END_NAMESPACE
+#include <QList>
+#include <QMap>
+#include <QString>
-namespace KSyntaxHighlighting {
+#include "dynamicregexpcache_p.h"
+namespace KSyntaxHighlighting
+{
class Definition;
class Repository;
class Theme;
@@ -42,7 +25,7 @@ class RepositoryPrivate
public:
RepositoryPrivate() = default;
- static RepositoryPrivate* get(Repository *repo);
+ static RepositoryPrivate *get(Repository *repo);
void load(Repository *repo);
void loadSyntaxFolder(Repository *repo, const QString &path);
@@ -53,19 +36,24 @@ public:
void loadThemeFolder(const QString &path);
void addTheme(const Theme &theme);
- quint16 foldingRegionId(const QString &defName, const QString &foldName);
- quint16 nextFormatId();
+ int foldingRegionId(const QString &defName, const QString &foldName);
+ int nextFormatId();
+
+ QList<QString> m_customSearchPaths;
+
+ // sorted map to have deterministic iteration order for e.g. definitionsForFileName
+ QMap<QString, Definition> m_defs;
- QVector<QString> m_customSearchPaths;
+ // this vector is sorted by translated sections/names
+ QList<Definition> m_sortedDefs;
- QHash<QString, Definition> m_defs;
- QVector<Definition> m_sortedDefs;
+ QList<Theme> m_themes;
- QVector<Theme> m_themes;
+ QHash<QPair<QString, QString>, int> m_foldingRegionIds;
+ int m_foldingRegionId = 0;
+ int m_formatId = 0;
- QHash<QPair<QString, QString>, quint16> m_foldingRegionIds;
- quint16 m_foldingRegionId = 0;
- quint16 m_formatId = 0;
+ DynamicRegexpCache m_dynamicRegexpCache;
};
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/rule.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/rule.cpp
index d9cf5eb211..186ed16120 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/rule.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/rule.cpp
@@ -1,84 +1,86 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
- Copyright (C) 2018 Christoph Cullmann <cullmann@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2018 Christoph Cullmann <cullmann@kde.org>
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen+kde@gmail.com>
+
+ SPDX-License-Identifier: MIT
*/
-#include "rule_p.h"
#include "context_p.h"
#include "definition_p.h"
+#include "dynamicregexpcache_p.h"
#include "ksyntaxhighlighting_logging.h"
+#include "rule_p.h"
+#include "worddelimiters_p.h"
#include "xml_p.h"
-#include <QString>
-#include <QXmlStreamReader>
-
using namespace KSyntaxHighlighting;
+// QChar::isDigit() match any digit in unicode (romain numeral, etc)
+static bool isDigit(QChar c)
+{
+ return (c <= QLatin1Char('9') && QLatin1Char('0') <= c);
+}
+
static bool isOctalChar(QChar c)
{
- return c.isNumber() && c != QLatin1Char('9') && c != QLatin1Char('8');
+ return (c <= QLatin1Char('7') && QLatin1Char('0') <= c);
}
static bool isHexChar(QChar c)
{
- return c.isNumber()
- || c == QLatin1Char('a') || c == QLatin1Char('A')
- || c == QLatin1Char('b') || c == QLatin1Char('B')
- || c == QLatin1Char('c') || c == QLatin1Char('C')
- || c == QLatin1Char('d') || c == QLatin1Char('D')
- || c == QLatin1Char('e') || c == QLatin1Char('E')
- || c == QLatin1Char('f') || c == QLatin1Char('F');
+ return isDigit(c) || (c <= QLatin1Char('f') && QLatin1Char('a') <= c) || (c <= QLatin1Char('F') && QLatin1Char('A') <= c);
}
-static int matchEscapedChar(const QString &text, int offset)
+static int matchEscapedChar(QStringView text, int offset)
{
- if (text.at(offset) != QLatin1Char('\\') || text.size() < offset + 2)
+ if (text.at(offset) != QLatin1Char('\\') || text.size() < offset + 2) {
return offset;
+ }
const auto c = text.at(offset + 1);
- static const auto controlChars = QStringLiteral("abefnrtv\"'?\\");
- if (controlChars.contains(c))
+ switch (c.unicode()) {
+ // control chars
+ case 'a':
+ case 'b':
+ case 'e':
+ case 'f':
+ case 'n':
+ case 'r':
+ case 't':
+ case 'v':
+ case '"':
+ case '\'':
+ case '?':
+ case '\\':
return offset + 2;
// hex encoded character
- if (c == QLatin1Char('x')) {
- auto newOffset = offset + 2;
- for (int i = 0; i < 2 && newOffset + i < text.size(); ++i, ++newOffset) {
- if (!isHexChar(text.at(newOffset)))
- break;
+ case 'x':
+ if (offset + 2 < text.size() && isHexChar(text.at(offset + 2))) {
+ if (offset + 3 < text.size() && isHexChar(text.at(offset + 3))) {
+ return offset + 4;
+ }
+ return offset + 3;
}
- if (newOffset == offset + 2)
- return offset;
- return newOffset;
- }
+ return offset;
// octal encoding, simple \0 is OK, too, unlike simple \x above
- if (isOctalChar(c)) {
- auto newOffset = offset + 2;
- for (int i = 0; i < 2 && newOffset + i < text.size(); ++i, ++newOffset) {
- if (!isOctalChar(text.at(newOffset)))
- break;
+ case '0':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ if (offset + 2 < text.size() && isOctalChar(text.at(offset + 2))) {
+ if (offset + 3 < text.size() && isOctalChar(text.at(offset + 3))) {
+ return offset + 4;
+ }
+ return offset + 3;
}
- return newOffset;
+ return offset + 2;
}
return offset;
@@ -87,521 +89,545 @@ static int matchEscapedChar(const QString &text, int offset)
static QString replaceCaptures(const QString &pattern, const QStringList &captures, bool quote)
{
auto result = pattern;
- for (int i = captures.size() - 1; i >= 1; --i) {
- result.replace(QLatin1Char('%') + QString::number(i), quote ? QRegularExpression::escape(captures.at(i)) : captures.at(i));
+ for (int i = captures.size(); i >= 1; --i) {
+ result.replace(QLatin1Char('%') + QString::number(i), quote ? QRegularExpression::escape(captures.at(i - 1)) : captures.at(i - 1));
}
return result;
}
-Definition Rule::definition() const
+static MatchResult matchString(QStringView pattern, QStringView text, int offset, Qt::CaseSensitivity caseSensitivity)
{
- return m_def.definition();
+ if (offset + pattern.size() <= text.size() && text.mid(offset, pattern.size()).compare(pattern, caseSensitivity) == 0) {
+ return offset + pattern.size();
+ }
+ return offset;
}
-void Rule::setDefinition(const Definition &def)
+static void resolveAdditionalWordDelimiters(WordDelimiters &wordDelimiters, const HighlightingContextData::Rule::WordDelimiters &delimiters)
{
- m_def = def;
-
// cache for DefinitionData::wordDelimiters, is accessed VERY often
- m_wordDelimiter = &DefinitionData::get(m_def.definition())->wordDelimiters;
+ if (!delimiters.additionalDeliminator.isEmpty() || !delimiters.weakDeliminator.isEmpty()) {
+ wordDelimiters.append(QStringView(delimiters.additionalDeliminator));
+ wordDelimiters.remove(QStringView(delimiters.weakDeliminator));
+ }
}
-bool Rule::load(QXmlStreamReader &reader)
-{
- Q_ASSERT(reader.tokenType() == QXmlStreamReader::StartElement);
-
- m_attribute = reader.attributes().value(QStringLiteral("attribute")).toString();
- if (reader.name() != QLatin1String("IncludeRules")) // IncludeRules uses this with a different semantic
- m_context.parse(reader.attributes().value(QStringLiteral("context")));
- m_firstNonSpace = Xml::attrToBool(reader.attributes().value(QStringLiteral("firstNonSpace")));
- m_lookAhead = Xml::attrToBool(reader.attributes().value(QStringLiteral("lookAhead")));
- bool colOk = false;
- m_column = reader.attributes().value(QStringLiteral("column")).toInt(&colOk);
- if (!colOk)
- m_column = -1;
+Rule::~Rule() = default;
- auto regionName = reader.attributes().value(QLatin1String("beginRegion"));
- if (!regionName.isEmpty())
- m_beginRegion = FoldingRegion(FoldingRegion::Begin, DefinitionData::get(m_def.definition())->foldingRegionId(regionName.toString()));
- regionName = reader.attributes().value(QLatin1String("endRegion"));
- if (!regionName.isEmpty())
- m_endRegion = FoldingRegion(FoldingRegion::End, DefinitionData::get(m_def.definition())->foldingRegionId(regionName.toString()));
-
- auto result = doLoad(reader);
-
- if (m_lookAhead && m_context.isStay())
- result = false;
-
- // be done with this rule, skip all subelements, e.g. no longer supported sub-rules
- reader.skipCurrentElement();
- return result;
-}
-
-void Rule::resolveContext()
+const IncludeRules *Rule::castToIncludeRules() const
{
- m_context.resolve(m_def.definition());
-}
+ if (m_type != Type::IncludeRules) {
+ return nullptr;
+ }
+ return static_cast<const IncludeRules *>(this);
+}
+
+bool Rule::resolveCommon(DefinitionData &def, const HighlightingContextData::Rule &ruleData, QStringView lookupContextName)
+{
+ switch (ruleData.type) {
+ // IncludeRules uses this with a different semantic
+ case HighlightingContextData::Rule::Type::IncludeRules:
+ m_type = Type::IncludeRules;
+ return true;
+ case HighlightingContextData::Rule::Type::LineContinue:
+ m_type = Type::LineContinue;
+ break;
+ default:
+ m_type = Type::OtherRule;
+ break;
+ }
-void Rule::resolveAttributeFormat(Context *lookupContext)
-{
/**
* try to get our format from the definition we stem from
*/
- if (!m_attribute.isEmpty()) {
- m_attributeFormat = DefinitionData::get(definition())->formatByName(m_attribute);
+ if (!ruleData.common.attributeName.isEmpty()) {
+ m_attributeFormat = def.formatByName(ruleData.common.attributeName);
if (!m_attributeFormat.isValid()) {
- qCWarning(Log) << "Rule: Unknown format" << m_attribute << "in context" << lookupContext->name() << "of definition" << definition().name();
+ qCWarning(Log) << "Rule: Unknown format" << ruleData.common.attributeName << "in context" << lookupContextName << "of definition" << def.name;
}
}
-}
-bool Rule::doLoad(QXmlStreamReader& reader)
-{
- Q_UNUSED(reader);
- return true;
-}
+ m_firstNonSpace = ruleData.common.firstNonSpace;
+ m_lookAhead = ruleData.common.lookAhead;
+ m_column = ruleData.common.column;
-Rule::Ptr Rule::create(const QStringRef& name)
-{
- Rule *rule = nullptr;
- if (name == QLatin1String("AnyChar"))
- rule = new AnyChar;
- else if (name == QLatin1String("DetectChar"))
- rule = new DetectChar;
- else if (name == QLatin1String("Detect2Chars"))
- rule = new Detect2Char;
- else if (name == QLatin1String("DetectIdentifier"))
- rule = new DetectIdentifier;
- else if (name == QLatin1String("DetectSpaces"))
- rule = new DetectSpaces;
- else if (name == QLatin1String("Float"))
- rule = new Float;
- else if (name == QLatin1String("Int"))
- rule = new Int;
- else if (name == QLatin1String("HlCChar"))
- rule = new HlCChar;
- else if (name == QLatin1String("HlCHex"))
- rule = new HlCHex;
- else if (name == QLatin1String("HlCOct"))
- rule = new HlCOct;
- else if (name == QLatin1String("HlCStringChar"))
- rule = new HlCStringChar;
- else if (name == QLatin1String("IncludeRules"))
- rule = new IncludeRules;
- else if (name == QLatin1String("keyword"))
- rule = new KeywordListRule;
- else if (name == QLatin1String("LineContinue"))
- rule = new LineContinue;
- else if (name == QLatin1String("RangeDetect"))
- rule = new RangeDetect;
- else if (name == QLatin1String("RegExpr"))
- rule = new RegExpr;
- else if (name == QLatin1String("StringDetect"))
- rule = new StringDetect;
- else if (name == QLatin1String("WordDetect"))
- rule = new WordDetect;
- else
- qCWarning(Log) << "Unknown rule type:" << name;
+ if (!ruleData.common.beginRegionName.isEmpty()) {
+ m_beginRegion = FoldingRegion(FoldingRegion::Begin, def.foldingRegionId(ruleData.common.beginRegionName));
+ }
+ if (!ruleData.common.endRegionName.isEmpty()) {
+ m_endRegion = FoldingRegion(FoldingRegion::End, def.foldingRegionId(ruleData.common.endRegionName));
+ }
- return Ptr(rule);
+ m_context.resolve(def, ruleData.common.contextName);
+
+ return !(m_lookAhead && m_context.isStay());
+}
+
+static Rule::Ptr createRule(DefinitionData &def, const HighlightingContextData::Rule &ruleData, QStringView lookupContextName)
+{
+ using Type = HighlightingContextData::Rule::Type;
+
+ switch (ruleData.type) {
+ case Type::AnyChar:
+ return std::make_shared<AnyChar>(ruleData.data.anyChar);
+ case Type::DetectChar:
+ return std::make_shared<DetectChar>(ruleData.data.detectChar);
+ case Type::Detect2Chars:
+ return std::make_shared<Detect2Chars>(ruleData.data.detect2Chars);
+ case Type::IncludeRules:
+ return std::make_shared<IncludeRules>(ruleData.data.includeRules);
+ case Type::Int:
+ return std::make_shared<Int>(def, ruleData.data.detectInt);
+ case Type::Keyword:
+ return KeywordListRule::create(def, ruleData.data.keyword, lookupContextName);
+ case Type::LineContinue:
+ return std::make_shared<LineContinue>(ruleData.data.lineContinue);
+ case Type::RangeDetect:
+ return std::make_shared<RangeDetect>(ruleData.data.rangeDetect);
+ case Type::RegExpr:
+ if (!ruleData.data.regExpr.dynamic) {
+ return std::make_shared<RegExpr>(ruleData.data.regExpr);
+ } else {
+ return std::make_shared<DynamicRegExpr>(ruleData.data.regExpr);
+ }
+ case Type::StringDetect:
+ if (ruleData.data.stringDetect.dynamic) {
+ return std::make_shared<DynamicStringDetect>(ruleData.data.stringDetect);
+ }
+ return std::make_shared<StringDetect>(ruleData.data.stringDetect);
+ case Type::WordDetect:
+ return std::make_shared<WordDetect>(def, ruleData.data.wordDetect);
+ case Type::Float:
+ return std::make_shared<Float>(def, ruleData.data.detectFloat);
+ case Type::HlCOct:
+ return std::make_shared<HlCOct>(def, ruleData.data.hlCOct);
+ case Type::HlCStringChar:
+ return std::make_shared<HlCStringChar>();
+ case Type::DetectIdentifier:
+ return std::make_shared<DetectIdentifier>();
+ case Type::DetectSpaces:
+ return std::make_shared<DetectSpaces>();
+ case Type::HlCChar:
+ return std::make_shared<HlCChar>();
+ case Type::HlCHex:
+ return std::make_shared<HlCHex>(def, ruleData.data.hlCHex);
+
+ case Type::Unknown:;
+ }
+
+ return Rule::Ptr(nullptr);
}
-bool Rule::isWordDelimiter(QChar c) const
+Rule::Ptr Rule::create(DefinitionData &def, const HighlightingContextData::Rule &ruleData, QStringView lookupContextName)
{
- // perf tells contains is MUCH faster than binary search here, very short array
- return m_wordDelimiter.contains(c);
+ auto rule = createRule(def, ruleData, lookupContextName);
+ if (rule && !rule->resolveCommon(def, ruleData, lookupContextName)) {
+ rule.reset();
+ }
+ return rule;
}
-
-bool AnyChar::doLoad(QXmlStreamReader& reader)
+AnyChar::AnyChar(const HighlightingContextData::Rule::AnyChar &data)
+ : m_chars(data.chars)
{
- m_chars = reader.attributes().value(QStringLiteral("String")).toString();
- if (m_chars.size() == 1)
- qCDebug(Log) << "AnyChar rule with just one char: use DetectChar instead.";
- return !m_chars.isEmpty();
}
-MatchResult AnyChar::doMatch(const QString& text, int offset, const QStringList&) const
+MatchResult AnyChar::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
- if (m_chars.contains(text.at(offset)))
+ if (m_chars.contains(text.at(offset))) {
return offset + 1;
+ }
return offset;
}
-
-bool DetectChar::doLoad(QXmlStreamReader& reader)
+DetectChar::DetectChar(const HighlightingContextData::Rule::DetectChar &data)
+ : m_char(data.char1)
+ , m_captureIndex((data.dynamic ? data.char1.digitValue() : 0) - 1)
{
- const auto s = reader.attributes().value(QStringLiteral("char"));
- if (s.isEmpty())
- return false;
- m_char = s.at(0);
- m_dynamic = Xml::attrToBool(reader.attributes().value(QStringLiteral("dynamic")));
- if (m_dynamic) {
- m_captureIndex = m_char.digitValue();
- }
- return true;
+ m_dynamic = data.dynamic;
}
-MatchResult DetectChar::doMatch(const QString& text, int offset, const QStringList &captures) const
+MatchResult DetectChar::doMatch(QStringView text, int offset, const QStringList &captures, DynamicRegexpCache &) const
{
if (m_dynamic) {
- if (m_captureIndex == 0 || captures.size() <= m_captureIndex || captures.at(m_captureIndex).isEmpty())
+ if (m_captureIndex == -1 || captures.size() <= m_captureIndex || captures.at(m_captureIndex).isEmpty()) {
return offset;
- if (text.at(offset) == captures.at(m_captureIndex).at(0))
+ }
+ if (text.at(offset) == captures.at(m_captureIndex).at(0)) {
return offset + 1;
+ }
return offset;
}
- if (text.at(offset) == m_char)
+ if (text.at(offset) == m_char) {
return offset + 1;
+ }
return offset;
}
-
-bool Detect2Char::doLoad(QXmlStreamReader& reader)
+Detect2Chars::Detect2Chars(const HighlightingContextData::Rule::Detect2Chars &data)
+ : m_char1(data.char1)
+ , m_char2(data.char2)
{
- const auto s1 = reader.attributes().value(QStringLiteral("char"));
- const auto s2 = reader.attributes().value(QStringLiteral("char1"));
- if (s1.isEmpty() || s2.isEmpty())
- return false;
- m_char1 = s1.at(0);
- m_char2 = s2.at(0);
- return true;
}
-MatchResult Detect2Char::doMatch(const QString& text, int offset, const QStringList &) const
+MatchResult Detect2Chars::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
- if (text.size() - offset < 2)
+ if (text.size() - offset < 2) {
return offset;
- if (text.at(offset) == m_char1 && text.at(offset + 1) == m_char2)
+ }
+ if (text.at(offset) == m_char1 && text.at(offset + 1) == m_char2) {
return offset + 2;
+ }
return offset;
}
-
-MatchResult DetectIdentifier::doMatch(const QString& text, int offset, const QStringList&) const
+MatchResult DetectIdentifier::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
- if (!text.at(offset).isLetter() && text.at(offset) != QLatin1Char('_'))
+ if (!text.at(offset).isLetter() && text.at(offset) != QLatin1Char('_')) {
return offset;
+ }
for (int i = offset + 1; i < text.size(); ++i) {
const auto c = text.at(i);
- if (!c.isLetterOrNumber() && c != QLatin1Char('_'))
+ if (!c.isLetterOrNumber() && c != QLatin1Char('_')) {
return i;
+ }
}
return text.size();
}
-
-MatchResult DetectSpaces::doMatch(const QString& text, int offset, const QStringList&) const
+MatchResult DetectSpaces::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
- while(offset < text.size() && text.at(offset).isSpace())
+ while (offset < text.size() && text.at(offset).isSpace()) {
++offset;
+ }
return offset;
}
+Float::Float(DefinitionData &def, const HighlightingContextData::Rule::Float &data)
+ : m_wordDelimiters(def.wordDelimiters)
+{
+ resolveAdditionalWordDelimiters(m_wordDelimiters, data.wordDelimiters);
+}
-MatchResult Float::doMatch(const QString& text, int offset, const QStringList&) const
+MatchResult Float::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
- if (offset > 0 && !isWordDelimiter(text.at(offset - 1)))
+ if (offset > 0 && !m_wordDelimiters.contains(text.at(offset - 1))) {
return offset;
+ }
auto newOffset = offset;
- while (newOffset < text.size() && text.at(newOffset).isDigit())
+ while (newOffset < text.size() && isDigit(text.at(newOffset))) {
++newOffset;
+ }
- if (newOffset >= text.size() || text.at(newOffset) != QLatin1Char('.'))
+ if (newOffset >= text.size() || text.at(newOffset) != QLatin1Char('.')) {
return offset;
+ }
++newOffset;
- while (newOffset < text.size() && text.at(newOffset).isDigit())
+ while (newOffset < text.size() && isDigit(text.at(newOffset))) {
++newOffset;
+ }
- if (newOffset == offset + 1) // we only found a decimal point
+ if (newOffset == offset + 1) { // we only found a decimal point
return offset;
+ }
auto expOffset = newOffset;
- if (expOffset >= text.size() || (text.at(expOffset) != QLatin1Char('e') && text.at(expOffset) != QLatin1Char('E')))
+ if (expOffset >= text.size() || (text.at(expOffset) != QLatin1Char('e') && text.at(expOffset) != QLatin1Char('E'))) {
return newOffset;
+ }
++expOffset;
- if (expOffset < text.size() && (text.at(expOffset) == QLatin1Char('+') || text.at(expOffset) == QLatin1Char('-')))
+ if (expOffset < text.size() && (text.at(expOffset) == QLatin1Char('+') || text.at(expOffset) == QLatin1Char('-'))) {
++expOffset;
+ }
bool foundExpDigit = false;
- while (expOffset < text.size() && text.at(expOffset).isDigit()) {
+ while (expOffset < text.size() && isDigit(text.at(expOffset))) {
++expOffset;
foundExpDigit = true;
}
- if (!foundExpDigit)
+ if (!foundExpDigit) {
return newOffset;
+ }
return expOffset;
}
-
-MatchResult HlCChar::doMatch(const QString& text, int offset, const QStringList&) const
+MatchResult HlCChar::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
- if (text.size() < offset + 3)
+ if (text.size() < offset + 3) {
return offset;
+ }
- if (text.at(offset) != QLatin1Char('\'') || text.at(offset + 1) == QLatin1Char('\''))
+ if (text.at(offset) != QLatin1Char('\'') || text.at(offset + 1) == QLatin1Char('\'')) {
return offset;
+ }
auto newOffset = matchEscapedChar(text, offset + 1);
if (newOffset == offset + 1) {
- if (text.at(newOffset) == QLatin1Char('\\'))
+ if (text.at(newOffset) == QLatin1Char('\\')) {
return offset;
- else
+ } else {
++newOffset;
+ }
}
- if (newOffset >= text.size())
+ if (newOffset >= text.size()) {
return offset;
+ }
- if (text.at(newOffset) == QLatin1Char('\''))
+ if (text.at(newOffset) == QLatin1Char('\'')) {
return newOffset + 1;
+ }
return offset;
}
+HlCHex::HlCHex(DefinitionData &def, const HighlightingContextData::Rule::HlCHex &data)
+ : m_wordDelimiters(def.wordDelimiters)
+{
+ resolveAdditionalWordDelimiters(m_wordDelimiters, data.wordDelimiters);
+}
-MatchResult HlCHex::doMatch(const QString& text, int offset, const QStringList&) const
+MatchResult HlCHex::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
- if (offset > 0 && !isWordDelimiter(text.at(offset - 1)))
+ if (offset > 0 && !m_wordDelimiters.contains(text.at(offset - 1))) {
return offset;
+ }
- if (text.size() < offset + 3)
+ if (text.size() < offset + 3) {
return offset;
+ }
- if (text.at(offset) != QLatin1Char('0') || (text.at(offset + 1) != QLatin1Char('x') && text.at(offset + 1) != QLatin1Char('X')))
+ if (text.at(offset) != QLatin1Char('0') || (text.at(offset + 1) != QLatin1Char('x') && text.at(offset + 1) != QLatin1Char('X'))) {
return offset;
+ }
- if (!isHexChar(text.at(offset + 2)))
+ if (!isHexChar(text.at(offset + 2))) {
return offset;
+ }
offset += 3;
- while (offset < text.size() && isHexChar(text.at(offset)))
+ while (offset < text.size() && isHexChar(text.at(offset))) {
++offset;
+ }
// TODO Kate matches U/L suffix, QtC does not?
return offset;
}
+HlCOct::HlCOct(DefinitionData &def, const HighlightingContextData::Rule::HlCOct &data)
+ : m_wordDelimiters(def.wordDelimiters)
+{
+ resolveAdditionalWordDelimiters(m_wordDelimiters, data.wordDelimiters);
+}
-MatchResult HlCOct::doMatch(const QString& text, int offset, const QStringList&) const
+MatchResult HlCOct::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
- if (offset > 0 && !isWordDelimiter(text.at(offset - 1)))
+ if (offset > 0 && !m_wordDelimiters.contains(text.at(offset - 1))) {
return offset;
+ }
- if (text.size() < offset + 2)
+ if (text.size() < offset + 2) {
return offset;
+ }
- if (text.at(offset) != QLatin1Char('0'))
+ if (text.at(offset) != QLatin1Char('0')) {
return offset;
+ }
- if (!isOctalChar(text.at(offset + 1)))
+ if (!isOctalChar(text.at(offset + 1))) {
return offset;
+ }
offset += 2;
- while (offset < text.size() && isOctalChar(text.at(offset)))
+ while (offset < text.size() && isOctalChar(text.at(offset))) {
++offset;
+ }
return offset;
}
-
-MatchResult HlCStringChar::doMatch(const QString& text, int offset, const QStringList&) const
+MatchResult HlCStringChar::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
return matchEscapedChar(text, offset);
}
-
-QString IncludeRules::contextName() const
+IncludeRules::IncludeRules(const HighlightingContextData::Rule::IncludeRules &data)
+ : m_contextName(data.contextName)
+ , m_includeAttribute(data.includeAttribute)
{
- return m_contextName;
}
-QString IncludeRules::definitionName() const
-{
- return m_defName;
-}
-
-bool IncludeRules::includeAttribute() const
-{
- return m_includeAttribute;
-}
-
-bool IncludeRules::doLoad(QXmlStreamReader& reader)
-{
- const auto s = reader.attributes().value(QLatin1String("context"));
- const auto split = s.split(QLatin1String("##"), QString::KeepEmptyParts);
- if (split.isEmpty())
- return false;
- m_contextName = split.at(0).toString();
- if (split.size() > 1)
- m_defName = split.at(1).toString();
- m_includeAttribute = Xml::attrToBool(reader.attributes().value(QLatin1String("includeAttrib")));
-
- return !m_contextName.isEmpty() || !m_defName.isEmpty();
-}
-
-MatchResult IncludeRules::doMatch(const QString& text, int offset, const QStringList&) const
+MatchResult IncludeRules::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
Q_UNUSED(text);
- qCWarning(Log) << "Unresolved include rule for" << m_contextName << "##" << m_defName;
+ qCWarning(Log) << "Unresolved include rule";
return offset;
}
+Int::Int(DefinitionData &def, const HighlightingContextData::Rule::Int &data)
+ : m_wordDelimiters(def.wordDelimiters)
+{
+ resolveAdditionalWordDelimiters(m_wordDelimiters, data.wordDelimiters);
+}
-MatchResult Int::doMatch(const QString& text, int offset, const QStringList &) const
+MatchResult Int::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
- if (offset > 0 && !isWordDelimiter(text.at(offset - 1)))
+ if (offset > 0 && !m_wordDelimiters.contains(text.at(offset - 1))) {
return offset;
+ }
- while(offset < text.size() && text.at(offset).isDigit())
+ while (offset < text.size() && isDigit(text.at(offset))) {
++offset;
+ }
return offset;
}
-
-bool KeywordListRule::doLoad(QXmlStreamReader& reader)
+Rule::Ptr KeywordListRule::create(DefinitionData &def, const HighlightingContextData::Rule::Keyword &data, QStringView lookupContextName)
{
/**
* get our keyword list, if not found => bail out
*/
- auto defData = DefinitionData::get(definition());
- m_keywordList = defData->keywordList(reader.attributes().value(QLatin1String("String")).toString());
- if (!m_keywordList) {
- return false;
+ auto *keywordList = def.keywordList(data.name);
+ if (!keywordList) {
+ qCWarning(Log) << "Rule: Unknown keyword list" << data.name << "in context" << lookupContextName << "of definition" << def.name;
+ return Rule::Ptr();
+ }
+
+ if (keywordList->isEmpty()) {
+ return Rule::Ptr();
}
/**
* we might overwrite the case sensitivity
* then we need to init the list for lookup of that sensitivity setting
*/
- if (reader.attributes().hasAttribute(QLatin1String("insensitive"))) {
- m_hasCaseSensitivityOverride = true;
- m_caseSensitivityOverride = Xml::attrToBool(reader.attributes().value(QLatin1String("insensitive"))) ?
- Qt::CaseInsensitive : Qt::CaseSensitive;
- m_keywordList->initLookupForCaseSensitivity(m_caseSensitivityOverride);
- } else {
- m_hasCaseSensitivityOverride = false;
+ if (data.hasCaseSensitivityOverride) {
+ keywordList->initLookupForCaseSensitivity(data.caseSensitivityOverride);
}
- return !m_keywordList->isEmpty();
+ return std::make_shared<KeywordListRule>(*keywordList, def, data);
+}
+
+KeywordListRule::KeywordListRule(const KeywordList &keywordList, DefinitionData &def, const HighlightingContextData::Rule::Keyword &data)
+ : m_wordDelimiters(def.wordDelimiters)
+ , m_keywordList(keywordList)
+ , m_caseSensitivity(data.hasCaseSensitivityOverride ? data.caseSensitivityOverride : keywordList.caseSensitivity())
+{
+ resolveAdditionalWordDelimiters(m_wordDelimiters, data.wordDelimiters);
+ m_hasSkipOffset = true;
}
-MatchResult KeywordListRule::doMatch(const QString& text, int offset, const QStringList&) const
+MatchResult KeywordListRule::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
auto newOffset = offset;
- while (text.size() > newOffset && !isWordDelimiter(text.at(newOffset)))
+ while (text.size() > newOffset && !m_wordDelimiters.contains(text.at(newOffset))) {
++newOffset;
- if (newOffset == offset)
+ }
+ if (newOffset == offset) {
return offset;
+ }
- if (m_hasCaseSensitivityOverride) {
- if (m_keywordList->contains(text.midRef(offset, newOffset - offset), m_caseSensitivityOverride))
- return newOffset;
- } else {
- if (m_keywordList->contains(text.midRef(offset, newOffset - offset)))
- return newOffset;
+ if (m_keywordList.contains(text.mid(offset, newOffset - offset), m_caseSensitivity)) {
+ return newOffset;
}
// we don't match, but we can skip until newOffset as we can't start a keyword in-between
return MatchResult(offset, newOffset);
}
-
-bool LineContinue::doLoad(QXmlStreamReader& reader)
+LineContinue::LineContinue(const HighlightingContextData::Rule::LineContinue &data)
+ : m_char(data.char1)
{
- const auto s = reader.attributes().value(QStringLiteral("char"));
- if (s.isEmpty())
- m_char = QLatin1Char('\\');
- else
- m_char = s.at(0);
- return true;
}
-MatchResult LineContinue::doMatch(const QString& text, int offset, const QStringList&) const
+MatchResult LineContinue::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
- if (offset == text.size() - 1 && text.at(offset) == m_char)
+ if (offset == text.size() - 1 && text.at(offset) == m_char) {
return offset + 1;
+ }
return offset;
}
-
-bool RangeDetect::doLoad(QXmlStreamReader& reader)
+RangeDetect::RangeDetect(const HighlightingContextData::Rule::RangeDetect &data)
+ : m_begin(data.begin)
+ , m_end(data.end)
{
- const auto s1 = reader.attributes().value(QStringLiteral("char"));
- const auto s2 = reader.attributes().value(QStringLiteral("char1"));
- if (s1.isEmpty() || s2.isEmpty())
- return false;
- m_begin = s1.at(0);
- m_end = s2.at(0);
- return true;
}
-MatchResult RangeDetect::doMatch(const QString& text, int offset, const QStringList&) const
+MatchResult RangeDetect::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
- if (text.size() - offset < 2)
+ if (text.size() - offset < 2) {
return offset;
- if (text.at(offset) != m_begin)
+ }
+ if (text.at(offset) != m_begin) {
return offset;
+ }
auto newOffset = offset + 1;
while (newOffset < text.size()) {
- if (text.at(newOffset) == m_end)
+ if (text.at(newOffset) == m_end) {
return newOffset + 1;
+ }
++newOffset;
}
return offset;
}
-bool RegExpr::doLoad(QXmlStreamReader& reader)
+static QRegularExpression::PatternOptions makePattenOptions(const HighlightingContextData::Rule::RegExpr &data)
{
- m_regexp.setPattern(reader.attributes().value(QStringLiteral("String")).toString());
+ return (data.isMinimal ? QRegularExpression::InvertedGreedinessOption : QRegularExpression::NoPatternOption)
+ | (data.caseSensitivity == Qt::CaseInsensitive ? QRegularExpression::CaseInsensitiveOption : QRegularExpression::NoPatternOption)
+ // DontCaptureOption is removed by resolve() when necessary
+ | QRegularExpression::DontCaptureOption
+ // ensure Unicode support is enabled
+ | QRegularExpression::UseUnicodePropertiesOption;
+}
- const auto isMinimal = Xml::attrToBool(reader.attributes().value(QStringLiteral("minimal")));
- const auto isCaseInsensitive = Xml::attrToBool(reader.attributes().value(QStringLiteral("insensitive")));
- m_regexp.setPatternOptions(
- (isMinimal ? QRegularExpression::InvertedGreedinessOption : QRegularExpression::NoPatternOption) |
- (isCaseInsensitive ? QRegularExpression::CaseInsensitiveOption : QRegularExpression::NoPatternOption));
+static void resolveRegex(QRegularExpression &regexp, Context *context)
+{
+ bool enableCapture = context && context->hasDynamicRule();
- // optimize the pattern for the non-dynamic case, we use them OFTEN
- m_dynamic = Xml::attrToBool(reader.attributes().value(QStringLiteral("dynamic")));
- if (!m_dynamic) {
- m_regexp.optimize();
+ // disable DontCaptureOption when reference a context with dynamic rule or
+ // with invalid regex because DontCaptureOption with back reference capture is an error
+ if (enableCapture || !regexp.isValid()) {
+ regexp.setPatternOptions(regexp.patternOptions() & ~QRegularExpression::DontCaptureOption);
}
- // always using m_regexp.isValid() would be better, but parses the regexp and thus is way too expensive for release builds
-
- if (Log().isDebugEnabled()) {
- if (!m_regexp.isValid())
- qCDebug(Log) << "Invalid regexp:" << m_regexp.pattern();
+ if (!regexp.isValid()) {
+ qCDebug(Log) << "Invalid regexp:" << regexp.pattern();
}
- return !m_regexp.pattern().isEmpty();
}
-MatchResult RegExpr::doMatch(const QString& text, int offset, const QStringList &captures) const
+static MatchResult regexMatch(const QRegularExpression &regexp, QStringView text, int offset)
{
/**
- * for dynamic case: create new pattern with right instantiation
- */
- const auto &regexp = m_dynamic ? QRegularExpression(replaceCaptures(m_regexp.pattern(), captures, true), m_regexp.patternOptions()) : m_regexp;
-
- /**
* match the pattern
*/
+#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
+ const auto result = regexp.matchView(text, offset, QRegularExpression::NormalMatch, QRegularExpression::DontCheckSubjectStringMatchOption);
+#else
const auto result = regexp.match(text, offset, QRegularExpression::NormalMatch, QRegularExpression::DontCheckSubjectStringMatchOption);
+#endif
if (result.capturedStart() == offset) {
/**
* we only need to compute the captured texts if we have real capture groups
* highlightings should only address %1..%.., see e.g. replaceCaptures
* DetectChar ignores %0, too
*/
- if (result.lastCapturedIndex() > 0) {
- return MatchResult(offset + result.capturedLength(), result.capturedTexts());
+ int lastCapturedIndex = result.lastCapturedIndex();
+ if (lastCapturedIndex > 0) {
+ QStringList captures;
+ captures.reserve(lastCapturedIndex);
+ // ignore the capturing group number 0
+ for (int i = 1; i <= lastCapturedIndex; ++i)
+ captures.push_back(result.captured(i));
+ return MatchResult(offset + result.capturedLength(), std::move(captures));
}
/**
@@ -612,52 +638,121 @@ MatchResult RegExpr::doMatch(const QString& text, int offset, const QStringList
/**
* no match
+ * we can always compute the skip offset as the highlighter will invalidate the cache for changed captures for dynamic rules!
*/
return MatchResult(offset, result.capturedStart());
}
+RegExpr::RegExpr(const HighlightingContextData::Rule::RegExpr &data)
+ : m_regexp(data.pattern, makePattenOptions(data))
+{
+ m_hasSkipOffset = true;
+}
-bool StringDetect::doLoad(QXmlStreamReader& reader)
+void RegExpr::resolve()
{
- m_string = reader.attributes().value(QStringLiteral("String")).toString();
- m_caseSensitivity = Xml::attrToBool(reader.attributes().value(QStringLiteral("insensitive"))) ? Qt::CaseInsensitive : Qt::CaseSensitive;
- m_dynamic = Xml::attrToBool(reader.attributes().value(QStringLiteral("dynamic")));
- return !m_string.isEmpty();
+ m_isResolved = true;
+
+ resolveRegex(m_regexp, context().context());
}
-MatchResult StringDetect::doMatch(const QString& text, int offset, const QStringList &captures) const
+MatchResult RegExpr::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
+ if (Q_UNLIKELY(!m_isResolved)) {
+ const_cast<RegExpr *>(this)->resolve();
+ }
+
+ return regexMatch(m_regexp, text, offset);
+}
+
+DynamicRegExpr::DynamicRegExpr(const HighlightingContextData::Rule::RegExpr &data)
+ : m_pattern(data.pattern)
+ , m_patternOptions(makePattenOptions(data))
+{
+ m_dynamic = true;
+ m_hasSkipOffset = true;
+}
+
+void DynamicRegExpr::resolve()
+{
+ m_isResolved = true;
+
+ QRegularExpression regexp(m_pattern, m_patternOptions);
+ resolveRegex(regexp, context().context());
+ m_patternOptions = regexp.patternOptions();
+}
+
+MatchResult DynamicRegExpr::doMatch(QStringView text, int offset, const QStringList &captures, DynamicRegexpCache &dynamicRegexpCache) const
+{
+ if (Q_UNLIKELY(!m_isResolved)) {
+ const_cast<DynamicRegExpr *>(this)->resolve();
+ }
+
/**
- * for dynamic case: create new pattern with right instantiation
+ * create new pattern with right instantiation
*/
- const auto &pattern = m_dynamic ? replaceCaptures(m_string, captures, false) : m_string;
+ auto pattern = replaceCaptures(m_pattern, captures, true);
+ auto &regexp = dynamicRegexpCache.compileRegexp(std::move(pattern), m_patternOptions);
+ return regexMatch(regexp, text, offset);
+}
- if (text.midRef(offset, pattern.size()).compare(pattern, m_caseSensitivity) == 0)
- return offset + pattern.size();
- return offset;
+StringDetect::StringDetect(const HighlightingContextData::Rule::StringDetect &data)
+ : m_string(data.string)
+ , m_caseSensitivity(data.caseSensitivity)
+{
+}
+
+MatchResult StringDetect::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
+{
+ return matchString(m_string, text, offset, m_caseSensitivity);
}
+DynamicStringDetect::DynamicStringDetect(const HighlightingContextData::Rule::StringDetect &data)
+ : m_string(data.string)
+ , m_caseSensitivity(data.caseSensitivity)
+{
+ m_dynamic = true;
+}
+
+MatchResult DynamicStringDetect::doMatch(QStringView text, int offset, const QStringList &captures, DynamicRegexpCache &) const
+{
+ /**
+ * for dynamic case: create new pattern with right instantiation
+ */
+ const auto pattern = replaceCaptures(m_string, captures, false);
+ return matchString(pattern, text, offset, m_caseSensitivity);
+}
-bool WordDetect::doLoad(QXmlStreamReader& reader)
+WordDetect::WordDetect(DefinitionData &def, const HighlightingContextData::Rule::WordDetect &data)
+ : m_wordDelimiters(def.wordDelimiters)
+ , m_word(data.word)
+ , m_caseSensitivity(data.caseSensitivity)
{
- m_word = reader.attributes().value(QStringLiteral("String")).toString();
- m_caseSensitivity = Xml::attrToBool(reader.attributes().value(QStringLiteral("insensitive"))) ? Qt::CaseInsensitive : Qt::CaseSensitive;
- return !m_word.isEmpty();
+ resolveAdditionalWordDelimiters(m_wordDelimiters, data.wordDelimiters);
}
-MatchResult WordDetect::doMatch(const QString& text, int offset, const QStringList &) const
+MatchResult WordDetect::doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const
{
- if (text.size() - offset < m_word.size())
+ if (text.size() - offset < m_word.size()) {
return offset;
+ }
- if (offset > 0 && !isWordDelimiter(text.at(offset - 1)))
+ /**
+ * detect delimiter characters on the inner and outer boundaries of the string
+ * NOTE: m_word isn't empty
+ */
+ if (offset > 0 && !m_wordDelimiters.contains(text.at(offset - 1)) && !m_wordDelimiters.contains(text.at(offset))) {
return offset;
+ }
- if (text.midRef(offset, m_word.size()).compare(m_word, m_caseSensitivity) != 0)
+ if (text.mid(offset, m_word.size()).compare(m_word, m_caseSensitivity) != 0) {
return offset;
+ }
- if (text.size() == offset + m_word.size() || isWordDelimiter(text.at(offset + m_word.size())))
+ if (text.size() == offset + m_word.size() || m_wordDelimiters.contains(text.at(offset + m_word.size()))
+ || m_wordDelimiters.contains(text.at(offset + m_word.size() - 1))) {
return offset + m_word.size();
+ }
return offset;
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/rule_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/rule_p.h
index 538fdeda8a..bc5f367ad6 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/rule_p.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/rule_p.h
@@ -1,60 +1,42 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_RULE_P_H
#define KSYNTAXHIGHLIGHTING_RULE_P_H
#include "contextswitch_p.h"
-#include "definition.h"
#include "definitionref_p.h"
#include "foldingregion.h"
#include "format.h"
+#include "highlightingdata_p.hpp"
#include "keywordlist_p.h"
#include "matchresult_p.h"
+#include "worddelimiters_p.h"
#include <QRegularExpression>
#include <QString>
-#include <QVector>
#include <memory>
-QT_BEGIN_NAMESPACE
-class QXmlStreamReader;
-QT_END_NAMESPACE
-
-namespace KSyntaxHighlighting {
+namespace KSyntaxHighlighting
+{
+class WordDelimiters;
+class DefinitionData;
+class IncludeRules;
+class DynamicRegexpCache;
class Rule
{
public:
Rule() = default;
- virtual ~Rule() = default;
+ virtual ~Rule();
typedef std::shared_ptr<Rule> Ptr;
- Definition definition() const;
- void setDefinition(const Definition &def);
-
const Format &attributeFormat() const
{
return m_attributeFormat;
@@ -70,6 +52,11 @@ public:
return m_lookAhead;
}
+ bool isDynamic() const
+ {
+ return m_dynamic;
+ }
+
bool firstNonSpace() const
{
return m_firstNonSpace;
@@ -90,198 +77,290 @@ public:
return m_endRegion;
}
- bool load(QXmlStreamReader &reader);
- void resolveContext();
- void resolveAttributeFormat(Context *lookupContext);
+ const IncludeRules *castToIncludeRules() const;
- virtual MatchResult doMatch(const QString &text, int offset, const QStringList &captures) const = 0;
+ bool isLineContinue() const
+ {
+ return m_type == Type::LineContinue;
+ }
- static Rule::Ptr create(const QStringRef &name);
+ // If true, then the rule uses the skipOffset parameter of MatchResult.
+ // This is used by AbstractHighlighter::highlightLine() to look for a rule
+ // in the skipOffsets cache only if it can be found there.
+ bool hasSkipOffset() const
+ {
+ return m_hasSkipOffset;
+ }
-protected:
- virtual bool doLoad(QXmlStreamReader &reader);
+ virtual MatchResult doMatch(QStringView text, int offset, const QStringList &captures, DynamicRegexpCache &dynamicRegexpCache) const = 0;
- bool isWordDelimiter(QChar c) const;
+ static Rule::Ptr create(DefinitionData &def, const HighlightingContextData::Rule &ruleData, QStringView lookupContextName);
private:
Q_DISABLE_COPY(Rule)
- DefinitionRef m_def;
- QString m_attribute;
+ bool resolveCommon(DefinitionData &def, const HighlightingContextData::Rule &ruleData, QStringView lookupContextName);
+
+ enum class Type : quint8 {
+ OtherRule,
+ LineContinue,
+ IncludeRules,
+ };
+
+private:
Format m_attributeFormat;
ContextSwitch m_context;
int m_column = -1;
FoldingRegion m_beginRegion;
FoldingRegion m_endRegion;
+ Type m_type;
bool m_firstNonSpace = false;
bool m_lookAhead = false;
- // cache for DefinitionData::wordDelimiters, is accessed VERY often
- QStringRef m_wordDelimiter;
+protected:
+ bool m_hasSkipOffset = false;
+ bool m_dynamic = false;
};
-
-class AnyChar : public Rule
+class AnyChar final : public Rule
{
+public:
+ AnyChar(const HighlightingContextData::Rule::AnyChar &data);
+
protected:
- bool doLoad(QXmlStreamReader & reader) override;
- MatchResult doMatch(const QString & text, int offset, const QStringList&) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
private:
- QString m_chars;
+ WordDelimiters m_chars;
};
-class DetectChar : public Rule
+class DetectChar final : public Rule
{
+public:
+ DetectChar(const HighlightingContextData::Rule::DetectChar &data);
+
protected:
- bool doLoad(QXmlStreamReader & reader) override;
- MatchResult doMatch(const QString & text, int offset, const QStringList &captures) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
private:
QChar m_char;
- bool m_dynamic = false;
int m_captureIndex = 0;
};
-class Detect2Char : public Rule
+class Detect2Chars final : public Rule
{
+public:
+ Detect2Chars(const HighlightingContextData::Rule::Detect2Chars &data);
+
protected:
- bool doLoad(QXmlStreamReader & reader) override;
- MatchResult doMatch(const QString & text, int offset, const QStringList &captures) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
private:
QChar m_char1;
QChar m_char2;
};
-class DetectIdentifier : public Rule
+class DetectIdentifier final : public Rule
{
protected:
- MatchResult doMatch(const QString & text, int offset, const QStringList&) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
};
-class DetectSpaces : public Rule
+class DetectSpaces final : public Rule
{
protected:
- MatchResult doMatch(const QString & text, int offset, const QStringList&) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
};
-class Float : public Rule
+class Float final : public Rule
{
+public:
+ Float(DefinitionData &def, const HighlightingContextData::Rule::Float &data);
+
protected:
- MatchResult doMatch(const QString & text, int offset, const QStringList&) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
+
+private:
+ WordDelimiters m_wordDelimiters;
};
-class IncludeRules : public Rule
+class IncludeRules final : public Rule
{
public:
- QString contextName() const;
- QString definitionName() const;
- bool includeAttribute() const;
+ IncludeRules(const HighlightingContextData::Rule::IncludeRules &data);
+
+ const QString &contextName() const
+ {
+ return m_contextName;
+ }
+
+ bool includeAttribute() const
+ {
+ return m_includeAttribute;
+ }
protected:
- bool doLoad(QXmlStreamReader & reader) override;
- MatchResult doMatch(const QString & text, int offset, const QStringList&) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
private:
QString m_contextName;
- QString m_defName;
bool m_includeAttribute;
};
-class Int : public Rule
+class Int final : public Rule
{
+public:
+ Int(DefinitionData &def, const HighlightingContextData::Rule::Int &data);
+
protected:
- MatchResult doMatch(const QString & text, int offset, const QStringList &captures) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
+
+private:
+ WordDelimiters m_wordDelimiters;
};
-class HlCChar : public Rule
+class HlCChar final : public Rule
{
protected:
- MatchResult doMatch(const QString & text, int offset, const QStringList&) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
};
-class HlCHex : public Rule
+class HlCHex final : public Rule
{
+public:
+ HlCHex(DefinitionData &def, const HighlightingContextData::Rule::HlCHex &data);
+
protected:
- MatchResult doMatch(const QString & text, int offset, const QStringList&) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
+
+private:
+ WordDelimiters m_wordDelimiters;
};
-class HlCOct : public Rule
+class HlCOct final : public Rule
{
+public:
+ HlCOct(DefinitionData &def, const HighlightingContextData::Rule::HlCOct &data);
+
protected:
- MatchResult doMatch(const QString & text, int offset, const QStringList&) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
+
+private:
+ WordDelimiters m_wordDelimiters;
};
-class HlCStringChar : public Rule
+class HlCStringChar final : public Rule
{
protected:
- MatchResult doMatch(const QString & text, int offset, const QStringList&) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
};
-class KeywordListRule : public Rule
+class KeywordListRule final : public Rule
{
+public:
+ KeywordListRule(const KeywordList &keywordList, DefinitionData &def, const HighlightingContextData::Rule::Keyword &data);
+
+ static Rule::Ptr create(DefinitionData &def, const HighlightingContextData::Rule::Keyword &data, QStringView lookupContextName);
+
protected:
- bool doLoad(QXmlStreamReader & reader) override;
- MatchResult doMatch(const QString & text, int offset, const QStringList&) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
private:
- KeywordList *m_keywordList;
- bool m_hasCaseSensitivityOverride;
- Qt::CaseSensitivity m_caseSensitivityOverride;
+ WordDelimiters m_wordDelimiters;
+ const KeywordList &m_keywordList;
+ Qt::CaseSensitivity m_caseSensitivity;
};
-class LineContinue : public Rule
+class LineContinue final : public Rule
{
+public:
+ LineContinue(const HighlightingContextData::Rule::LineContinue &data);
+
protected:
- bool doLoad(QXmlStreamReader & reader) override;
- MatchResult doMatch(const QString & text, int offset, const QStringList&) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
private:
QChar m_char;
};
-class RangeDetect : public Rule
+class RangeDetect final : public Rule
{
+public:
+ RangeDetect(const HighlightingContextData::Rule::RangeDetect &data);
+
protected:
- bool doLoad(QXmlStreamReader & reader) override;
- MatchResult doMatch(const QString & text, int offset, const QStringList&) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
private:
QChar m_begin;
QChar m_end;
};
-class RegExpr : public Rule
+class RegExpr final : public Rule
{
+public:
+ RegExpr(const HighlightingContextData::Rule::RegExpr &data);
+
protected:
- bool doLoad(QXmlStreamReader & reader) override;
- MatchResult doMatch(const QString & text, int offset, const QStringList &captures) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
private:
+ void resolve();
QRegularExpression m_regexp;
- bool m_dynamic = false;
+ bool m_isResolved = false;
+};
+
+class DynamicRegExpr final : public Rule
+{
+public:
+ DynamicRegExpr(const HighlightingContextData::Rule::RegExpr &data);
+
+protected:
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
+
+private:
+ void resolve();
+ QString m_pattern;
+ QRegularExpression::PatternOptions m_patternOptions;
+ bool m_isResolved = false;
};
-class StringDetect : public Rule
+class StringDetect final : public Rule
{
+public:
+ StringDetect(const HighlightingContextData::Rule::StringDetect &data);
+
protected:
- bool doLoad(QXmlStreamReader & reader) override;
- MatchResult doMatch(const QString & text, int offset, const QStringList &captures) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
+
+private:
+ QString m_string;
+ Qt::CaseSensitivity m_caseSensitivity;
+};
+
+class DynamicStringDetect final : public Rule
+{
+public:
+ DynamicStringDetect(const HighlightingContextData::Rule::StringDetect &data);
+
+protected:
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
private:
QString m_string;
Qt::CaseSensitivity m_caseSensitivity;
- bool m_dynamic = false;
};
-class WordDetect : public Rule
+class WordDetect final : public Rule
{
+public:
+ WordDetect(DefinitionData &def, const HighlightingContextData::Rule::WordDetect &data);
+
protected:
- bool doLoad(QXmlStreamReader & reader) override;
- MatchResult doMatch(const QString & text, int offset, const QStringList &captures) const override;
+ MatchResult doMatch(QStringView text, int offset, const QStringList &, DynamicRegexpCache &) const override;
private:
+ WordDelimiters m_wordDelimiters;
QString m_word;
Qt::CaseSensitivity m_caseSensitivity;
};
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/state.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/state.cpp
index f970e13f8b..dca58b35b7 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/state.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/state.cpp
@@ -1,25 +1,8 @@
-/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
- Copyright (C) 2018 Christoph Cullmann <cullmann@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+/*
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2018 Christoph Cullmann <cullmann@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#include "state.h"
@@ -31,31 +14,23 @@
using namespace KSyntaxHighlighting;
-StateData* StateData::get(State &state)
-{
- state.d.detach();
- return state.d.data();
-}
-
-bool StateData::isEmpty() const
-{
- return m_contextStack.isEmpty();
-}
-
-void StateData::clear()
+StateData *StateData::reset(State &state)
{
- m_contextStack.clear();
+ auto *p = new StateData();
+ state.d.reset(p);
+ return p;
}
-int StateData::size() const
+StateData *StateData::detach(State &state)
{
- return m_contextStack.size();
+ state.d.detach();
+ return state.d.data();
}
-void StateData::push(Context *context, const QStringList &captures)
+void StateData::push(Context *context, QStringList &&captures)
{
Q_ASSERT(context);
- m_contextStack.push_back(qMakePair(context, captures));
+ m_contextStack.push_back(StackValue{context, std::move(captures)});
}
bool StateData::pop(int popCount)
@@ -66,48 +41,28 @@ bool StateData::pop(int popCount)
}
// keep the initial context alive in any case
- Q_ASSERT(!isEmpty());
- const bool initialContextSurvived = m_contextStack.size() > popCount;
- m_contextStack.resize(std::max(1, m_contextStack.size() - popCount));
+ Q_ASSERT(!m_contextStack.empty());
+ const bool initialContextSurvived = int(m_contextStack.size()) > popCount;
+ m_contextStack.resize(std::max(1, int(m_contextStack.size()) - popCount));
return initialContextSurvived;
}
-Context* StateData::topContext() const
-{
- Q_ASSERT(!isEmpty());
- return m_contextStack.last().first;
-}
+State::State() = default;
-const QStringList &StateData::topCaptures() const
-{
- Q_ASSERT(!isEmpty());
- return m_contextStack.last().second;
-}
+State::State(State &&other) noexcept = default;
-State::State() :
- d(new StateData)
-{
-}
+State::State(const State &other) noexcept = default;
-State::State(const State &other) :
- d(other.d)
-{
-}
+State::~State() = default;
-State::~State()
-{
-}
+State &State::operator=(State &&other) noexcept = default;
-State& State::operator=(const State &other)
-{
- d = other.d;
- return *this;
-}
+State &State::operator=(const State &other) noexcept = default;
bool State::operator==(const State &other) const
{
// use pointer equal as shortcut for shared states
- return (d == other.d) || (d->m_contextStack == other.d->m_contextStack && d->m_defRef == other.d->m_defRef);
+ return (d == other.d) || (d && other.d && d->m_contextStack == other.d->m_contextStack && d->m_defId == other.d->m_defId);
}
bool State::operator!=(const State &other) const
@@ -117,7 +72,13 @@ bool State::operator!=(const State &other) const
bool State::indentationBasedFoldingEnabled() const
{
- if (d->m_contextStack.isEmpty())
+ if (!d || d->m_contextStack.empty()) {
return false;
- return d->m_contextStack.last().first->indentationBasedFoldingEnabled();
+ }
+ return d->m_contextStack.back().context->indentationBasedFoldingEnabled();
+}
+
+std::size_t KSyntaxHighlighting::qHash(const State &state, std::size_t seed)
+{
+ return state.d ? qHashMulti(seed, *state.d) : 0;
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/state.h b/src/libs/3rdparty/syntax-highlighting/src/lib/state.h
index fce4bc71e8..3003a9b7cb 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/state.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/state.h
@@ -1,24 +1,7 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_STATE_H
@@ -27,12 +10,15 @@
#include "ksyntaxhighlighting_export.h"
#include <QExplicitlySharedDataPointer>
-#include <QTypeInfo>
-
-namespace KSyntaxHighlighting {
+#include <QHash>
+namespace KSyntaxHighlighting
+{
+class State;
class StateData;
+KSYNTAXHIGHLIGHTING_EXPORT std::size_t qHash(const State &state, std::size_t seed = 0);
+
/** Opaque handle to the state of the highlighting engine.
* This needs to be fed into AbstractHighlighter for every line of text
* and allows concrete highlighter implementations to store state per
@@ -47,9 +33,11 @@ public:
* in a document.
*/
State();
- State(const State &other);
+ State(State &&other) noexcept;
+ State(const State &other) noexcept;
~State();
- State& operator=(const State &rhs);
+ State &operator=(State &&rhs) noexcept;
+ State &operator=(const State &rhs) noexcept;
/** Compares two states for equality.
* For two equal states and identical text input, AbstractHighlighter
@@ -74,13 +62,13 @@ public:
private:
friend class StateData;
+ KSYNTAXHIGHLIGHTING_EXPORT friend std::size_t qHash(const State &, std::size_t);
QExplicitlySharedDataPointer<StateData> d;
};
-
}
QT_BEGIN_NAMESPACE
-Q_DECLARE_TYPEINFO(KSyntaxHighlighting::State, Q_MOVABLE_TYPE);
+Q_DECLARE_TYPEINFO(KSyntaxHighlighting::State, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE
#endif // KSYNTAXHIGHLIGHTING_STATE_H
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/state_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/state_p.h
index a99192b4c6..9971f7f660 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/state_p.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/state_p.h
@@ -1,57 +1,47 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
- Copyright (C) 2018 Christoph Cullmann <cullmann@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2018 Christoph Cullmann <cullmann@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_STATE_P_H
#define KSYNTAXHIGHLIGHTING_STATE_P_H
+#include <vector>
+
#include <QSharedData>
-#include <QVector>
+#include <QStringList>
#include "definitionref_p.h"
-QT_BEGIN_NAMESPACE
-class QStringList;
-QT_END_NAMESPACE
-
namespace KSyntaxHighlighting
{
-
class Context;
class StateData : public QSharedData
{
friend class State;
friend class AbstractHighlighter;
+ friend std::size_t qHash(const StateData &, std::size_t);
public:
StateData() = default;
- static StateData* get(State &state);
- bool isEmpty() const;
- void clear();
- int size() const;
- void push(Context *context, const QStringList &captures);
+ static StateData *reset(State &state);
+ static StateData *detach(State &state);
+
+ static StateData *get(const State &state)
+ {
+ return state.d.data();
+ }
+
+ std::size_t size() const
+ {
+ return m_contextStack.size();
+ }
+
+ void push(Context *context, QStringList &&captures);
/**
* Pop the number of elements given from the top of the current stack.
@@ -61,21 +51,47 @@ public:
*/
bool pop(int popCount);
- Context* topContext() const;
- const QStringList &topCaptures() const;
+ Context *topContext() const
+ {
+ return m_contextStack.back().context;
+ }
+
+ const QStringList &topCaptures() const
+ {
+ return m_contextStack.back().captures;
+ }
+
+ struct StackValue {
+ Context *context;
+ QStringList captures;
+
+ bool operator==(const StackValue &other) const
+ {
+ return context == other.context && captures == other.captures;
+ }
+ };
private:
/**
- * weak reference to the used definition to filter out invalid states
+ * definition id to filter out invalid states
*/
- DefinitionRef m_defRef;
+ uint64_t m_defId = 0;
/**
* the context stack combines the active context + valid captures
*/
- QVector<QPair<Context *, QStringList>> m_contextStack;
+ std::vector<StackValue> m_contextStack;
};
+inline std::size_t qHash(const StateData::StackValue &stackValue, std::size_t seed = 0)
+{
+ return qHashMulti(seed, stackValue.context, stackValue.captures);
+}
+
+inline std::size_t qHash(const StateData &k, std::size_t seed = 0)
+{
+ return qHashMulti(seed, k.m_defId, qHashRange(k.m_contextStack.begin(), k.m_contextStack.end(), seed));
+}
}
#endif
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/syntaxhighlighter.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/syntaxhighlighter.cpp
index 4987dc95f0..70b26a79bf 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/syntaxhighlighter.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/syntaxhighlighter.cpp
@@ -1,79 +1,124 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#include "syntaxhighlighter.h"
#include "abstracthighlighter_p.h"
#include "definition.h"
+#include "definition_p.h"
#include "foldingregion.h"
#include "format.h"
+#include "format_p.h"
#include "state.h"
#include "theme.h"
-
-#include <QDebug>
+#include "themedata_p.h"
Q_DECLARE_METATYPE(QTextBlock)
using namespace KSyntaxHighlighting;
-namespace KSyntaxHighlighting {
+namespace KSyntaxHighlighting
+{
class TextBlockUserData : public QTextBlockUserData
{
public:
State state;
- QVector<FoldingRegion> foldingRegions;
+ QList<FoldingRegion> foldingRegions;
};
class SyntaxHighlighterPrivate : public AbstractHighlighterPrivate
{
public:
static FoldingRegion foldingRegion(const QTextBlock &startBlock);
- QVector<FoldingRegion> foldingRegions;
+ void initTextFormat(QTextCharFormat &tf, const Format &format);
+ void computeTextFormats();
+
+ struct TextFormat {
+ QTextCharFormat tf;
+ /**
+ * id to check that the format belongs to the definition
+ */
+ std::intptr_t ptrId;
+ };
+
+ QList<FoldingRegion> foldingRegions;
+ std::vector<TextFormat> tfs;
};
}
-FoldingRegion SyntaxHighlighterPrivate::foldingRegion(const QTextBlock& startBlock)
+FoldingRegion SyntaxHighlighterPrivate::foldingRegion(const QTextBlock &startBlock)
{
- const auto data = dynamic_cast<TextBlockUserData*>(startBlock.userData());
- if (!data)
+ const auto data = dynamic_cast<TextBlockUserData *>(startBlock.userData());
+ if (!data) {
return FoldingRegion();
+ }
for (int i = data->foldingRegions.size() - 1; i >= 0; --i) {
- if (data->foldingRegions.at(i).type() == FoldingRegion::Begin)
+ if (data->foldingRegions.at(i).type() == FoldingRegion::Begin) {
return data->foldingRegions.at(i);
+ }
}
return FoldingRegion();
}
-SyntaxHighlighter::SyntaxHighlighter(QObject* parent) :
- QSyntaxHighlighter(parent),
- AbstractHighlighter(new SyntaxHighlighterPrivate)
+void SyntaxHighlighterPrivate::initTextFormat(QTextCharFormat &tf, const Format &format)
+{
+ // always set the foreground color to avoid palette issues
+ tf.setForeground(format.textColor(m_theme));
+
+ if (format.hasBackgroundColor(m_theme)) {
+ tf.setBackground(format.backgroundColor(m_theme));
+ }
+ if (format.isBold(m_theme)) {
+ tf.setFontWeight(QFont::Bold);
+ }
+ if (format.isItalic(m_theme)) {
+ tf.setFontItalic(true);
+ }
+ if (format.isUnderline(m_theme)) {
+ tf.setFontUnderline(true);
+ }
+ if (format.isStrikeThrough(m_theme)) {
+ tf.setFontStrikeOut(true);
+ }
+}
+
+void SyntaxHighlighterPrivate::computeTextFormats()
+{
+ auto definitions = m_definition.includedDefinitions();
+ definitions.append(m_definition);
+
+ int maxId = 0;
+ for (const auto &definition : std::as_const(definitions)) {
+ for (const auto &format : std::as_const(DefinitionData::get(definition)->formats)) {
+ maxId = qMax(maxId, format.id());
+ }
+ }
+ tfs.clear();
+ tfs.resize(maxId + 1);
+
+ // initialize tfs
+ for (const auto &definition : std::as_const(definitions)) {
+ for (const auto &format : std::as_const(DefinitionData::get(definition)->formats)) {
+ auto &tf = tfs[format.id()];
+ tf.ptrId = FormatPrivate::ptrId(format);
+ initTextFormat(tf.tf, format);
+ }
+ }
+}
+
+SyntaxHighlighter::SyntaxHighlighter(QObject *parent)
+ : QSyntaxHighlighter(parent)
+ , AbstractHighlighter(new SyntaxHighlighterPrivate)
{
qRegisterMetaType<QTextBlock>();
}
-SyntaxHighlighter::SyntaxHighlighter(QTextDocument *document) :
- QSyntaxHighlighter(document),
- AbstractHighlighter(new SyntaxHighlighterPrivate)
+SyntaxHighlighter::SyntaxHighlighter(QTextDocument *document)
+ : QSyntaxHighlighter(document)
+ , AbstractHighlighter(new SyntaxHighlighterPrivate)
{
qRegisterMetaType<QTextBlock>();
}
@@ -82,12 +127,27 @@ SyntaxHighlighter::~SyntaxHighlighter()
{
}
-void SyntaxHighlighter::setDefinition(const Definition& def)
+void SyntaxHighlighter::setDefinition(const Definition &def)
{
- const auto needsRehighlight = definition() != def;
- AbstractHighlighter::setDefinition(def);
- if (needsRehighlight)
+ Q_D(SyntaxHighlighter);
+
+ const auto needsRehighlight = d->m_definition != def;
+ if (DefinitionData::get(d->m_definition) != DefinitionData::get(def)) {
+ d->m_definition = def;
+ d->tfs.clear();
+ }
+ if (needsRehighlight) {
rehighlight();
+ }
+}
+
+void SyntaxHighlighter::setTheme(const Theme &theme)
+{
+ Q_D(SyntaxHighlighter);
+ if (ThemeData::get(d->m_theme) != ThemeData::get(theme)) {
+ d->m_theme = theme;
+ d->tfs.clear();
+ }
}
bool SyntaxHighlighter::startsFoldingRegion(const QTextBlock &startBlock) const
@@ -103,78 +163,87 @@ QTextBlock SyntaxHighlighter::findFoldingRegionEnd(const QTextBlock &startBlock)
int depth = 1;
while (block.isValid()) {
block = block.next();
- const auto data = dynamic_cast<TextBlockUserData*>(block.userData());
- if (!data)
+ const auto data = dynamic_cast<TextBlockUserData *>(block.userData());
+ if (!data) {
continue;
- for (auto it = data->foldingRegions.constBegin(); it != data->foldingRegions.constEnd(); ++it) {
- if ((*it).id() != region.id())
+ }
+ for (const auto &foldingRegion : std::as_const(data->foldingRegions)) {
+ if (foldingRegion.id() != region.id()) {
continue;
- if ((*it).type() == FoldingRegion::End)
+ }
+ if (foldingRegion.type() == FoldingRegion::End) {
--depth;
- else if ((*it).type() == FoldingRegion::Begin)
+ } else if (foldingRegion.type() == FoldingRegion::Begin) {
++depth;
- if (depth == 0)
+ }
+ if (depth == 0) {
return block;
+ }
}
}
return QTextBlock();
}
-void SyntaxHighlighter::highlightBlock(const QString& text)
+void SyntaxHighlighter::highlightBlock(const QString &text)
{
Q_D(SyntaxHighlighter);
- State state;
+ static const State emptyState;
+ const State *previousState = &emptyState;
if (currentBlock().position() > 0) {
const auto prevBlock = currentBlock().previous();
- const auto prevData = dynamic_cast<TextBlockUserData*>(prevBlock.userData());
- if (prevData)
- state = prevData->state;
+ const auto prevData = dynamic_cast<TextBlockUserData *>(prevBlock.userData());
+ if (prevData) {
+ previousState = &prevData->state;
+ }
}
d->foldingRegions.clear();
- state = highlightLine(text, state);
+ auto newState = highlightLine(text, *previousState);
- auto data = dynamic_cast<TextBlockUserData*>(currentBlockUserData());
+ auto data = dynamic_cast<TextBlockUserData *>(currentBlockUserData());
if (!data) { // first time we highlight this
data = new TextBlockUserData;
- data->state = state;
+ data->state = std::move(newState);
data->foldingRegions = d->foldingRegions;
setCurrentBlockUserData(data);
return;
}
- if (data->state == state && data->foldingRegions == d->foldingRegions) // we ended up in the same state, so we are done here
+ if (data->state == newState && data->foldingRegions == d->foldingRegions) { // we ended up in the same state, so we are done here
return;
- data->state = state;
+ }
+ data->state = std::move(newState);
data->foldingRegions = d->foldingRegions;
const auto nextBlock = currentBlock().next();
- if (nextBlock.isValid())
+ if (nextBlock.isValid()) {
QMetaObject::invokeMethod(this, "rehighlightBlock", Qt::QueuedConnection, Q_ARG(QTextBlock, nextBlock));
+ }
}
-void SyntaxHighlighter::applyFormat(int offset, int length, const KSyntaxHighlighting::Format& format)
+void SyntaxHighlighter::applyFormat(int offset, int length, const Format &format)
{
- if (length == 0)
+ if (length == 0) {
return;
+ }
- QTextCharFormat tf;
- // always set the foreground color to avoid palette issues
- tf.setForeground(format.textColor(theme()));
+ Q_D(SyntaxHighlighter);
- if (format.hasBackgroundColor(theme()))
- tf.setBackground(format.backgroundColor(theme()));
- if (format.isBold(theme()))
- tf.setFontWeight(QFont::Bold);
- if (format.isItalic(theme()))
- tf.setFontItalic(true);
- if (format.isUnderline(theme()))
- tf.setFontUnderline(true);
- if (format.isStrikeThrough(theme()))
- tf.setFontStrikeOut(true);
+ if (Q_UNLIKELY(d->tfs.empty())) {
+ d->computeTextFormats();
+ }
- QSyntaxHighlighter::setFormat(offset, length, tf);
+ const auto id = static_cast<std::size_t>(format.id());
+ // This doesn't happen when format comes from the definition.
+ // But as the user can override the function to pass any format, this is a possible scenario.
+ if (id < d->tfs.size() && d->tfs[id].ptrId == FormatPrivate::ptrId(format)) {
+ QSyntaxHighlighter::setFormat(offset, length, d->tfs[id].tf);
+ } else {
+ QTextCharFormat tf;
+ d->initTextFormat(tf, format);
+ QSyntaxHighlighter::setFormat(offset, length, tf);
+ }
}
void SyntaxHighlighter::applyFolding(int offset, int length, FoldingRegion region)
@@ -183,16 +252,20 @@ void SyntaxHighlighter::applyFolding(int offset, int length, FoldingRegion regio
Q_UNUSED(length);
Q_D(SyntaxHighlighter);
- if (region.type() == FoldingRegion::Begin)
+ if (region.type() == FoldingRegion::Begin) {
d->foldingRegions.push_back(region);
+ }
if (region.type() == FoldingRegion::End) {
for (int i = d->foldingRegions.size() - 1; i >= 0; --i) {
- if (d->foldingRegions.at(i).id() != region.id() || d->foldingRegions.at(i).type() != FoldingRegion::Begin)
+ if (d->foldingRegions.at(i).id() != region.id() || d->foldingRegions.at(i).type() != FoldingRegion::Begin) {
continue;
+ }
d->foldingRegions.remove(i);
return;
}
d->foldingRegions.push_back(region);
}
}
+
+#include "moc_syntaxhighlighter.cpp"
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/syntaxhighlighter.h b/src/libs/3rdparty/syntax-highlighting/src/lib/syntaxhighlighter.h
index f5d2a5e219..c19cb798dd 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/syntaxhighlighter.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/syntaxhighlighter.h
@@ -1,24 +1,7 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_QSYNTAXHIGHLIGHTER_H
@@ -30,8 +13,8 @@
#include <QSyntaxHighlighter>
-namespace KSyntaxHighlighting {
-
+namespace KSyntaxHighlighting
+{
class SyntaxHighlighterPrivate;
/** A QSyntaxHighlighter implementation for use with QTextDocument.
@@ -49,6 +32,7 @@ public:
~SyntaxHighlighter() override;
void setDefinition(const Definition &def) override;
+ void setTheme(const Theme &theme) override;
/** Returns whether there is a folding region beginning at @p startBlock.
* This only considers syntax-based folding regions,
@@ -73,7 +57,7 @@ public:
QTextBlock findFoldingRegionEnd(const QTextBlock &startBlock) const;
protected:
- void highlightBlock(const QString & text) override;
+ void highlightBlock(const QString &text) override;
void applyFormat(int offset, int length, const Format &format) override;
void applyFolding(int offset, int length, FoldingRegion region) override;
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/textstyledata_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/textstyledata_p.h
index 40c5ef679e..51910bd8be 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/textstyledata_p.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/textstyledata_p.h
@@ -1,24 +1,7 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_TEXTSTYLEDATA_P_H
@@ -26,13 +9,13 @@
#include <QColor>
-namespace KSyntaxHighlighting {
-
+namespace KSyntaxHighlighting
+{
class TextStyleData
{
public:
// Constructor initializing all data.
- TextStyleData()
+ TextStyleData() noexcept
: bold(false)
, italic(false)
, underline(false)
@@ -41,21 +24,22 @@ public:
, hasItalic(false)
, hasUnderline(false)
, hasStrikeThrough(false)
- {}
+ {
+ }
QRgb textColor = 0x0;
QRgb backgroundColor = 0x0;
QRgb selectedTextColor = 0x0;
QRgb selectedBackgroundColor = 0x0;
- bool bold :1;
- bool italic :1;
- bool underline :1;
- bool strikeThrough :1;
-
- bool hasBold :1;
- bool hasItalic :1;
- bool hasUnderline :1;
- bool hasStrikeThrough :1;
+ bool bold : 1;
+ bool italic : 1;
+ bool underline : 1;
+ bool strikeThrough : 1;
+
+ bool hasBold : 1;
+ bool hasItalic : 1;
+ bool hasUnderline : 1;
+ bool hasStrikeThrough : 1;
};
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/theme.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/theme.cpp
index 57f62ef6ab..c54bb38b18 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/theme.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/theme.cpp
@@ -1,24 +1,8 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2022 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
*/
#include "theme.h"
@@ -28,97 +12,96 @@
using namespace KSyntaxHighlighting;
-Theme::Theme()
+static QExplicitlySharedDataPointer<ThemeData> &sharedDefaultThemeData()
{
+ static QExplicitlySharedDataPointer<ThemeData> data(new ThemeData);
+ return data;
}
-Theme::Theme(const Theme &copy)
+Theme::Theme()
+ : m_data(sharedDefaultThemeData())
{
- m_data = copy.m_data;
}
-Theme::Theme(ThemeData* data)
+Theme::Theme(const Theme &copy) = default;
+
+Theme::Theme(ThemeData *data)
: m_data(data)
{
}
-Theme::~Theme()
-{
-}
+Theme::~Theme() = default;
-Theme &Theme::operator=(const Theme &other)
-{
- m_data = other.m_data;
- return *this;
-}
+Theme &Theme::operator=(const Theme &other) = default;
bool Theme::isValid() const
{
- return m_data.data();
+ return m_data.data() != sharedDefaultThemeData().data();
}
QString Theme::name() const
{
- return m_data ? m_data->name() : QString();
+ return m_data->name();
}
QString Theme::translatedName() const
{
- return m_data ? QCoreApplication::instance()->translate("Theme", m_data->name().toUtf8().constData())
- : QString();
+ return isValid() ? QCoreApplication::instance()->translate("Theme", m_data->name().toUtf8().constData()) : QString();
}
bool Theme::isReadOnly() const
{
- return m_data ? m_data->isReadOnly() : false;
+ return m_data->isReadOnly();
}
QString Theme::filePath() const
{
- return m_data ? m_data->filePath() : QString();
+ return m_data->filePath();
}
QRgb Theme::textColor(TextStyle style) const
{
- return m_data ? m_data->textColor(style) : 0;
+ return m_data->textColor(style);
}
QRgb Theme::selectedTextColor(TextStyle style) const
{
- return m_data ? m_data->selectedTextColor(style) : 0;
+ return m_data->selectedTextColor(style);
}
QRgb Theme::backgroundColor(TextStyle style) const
{
- return m_data ? m_data->backgroundColor(style) : 0;
+ return m_data->backgroundColor(style);
}
QRgb Theme::selectedBackgroundColor(TextStyle style) const
{
- return m_data ? m_data->selectedBackgroundColor(style) : 0;
+ return m_data->selectedBackgroundColor(style);
}
bool Theme::isBold(TextStyle style) const
{
- return m_data ? m_data->isBold(style) : false;
+ return m_data->isBold(style);
}
bool Theme::isItalic(TextStyle style) const
{
- return m_data ? m_data->isItalic(style) : false;
+ return m_data->isItalic(style);
}
bool Theme::isUnderline(TextStyle style) const
{
- return m_data ? m_data->isUnderline(style) : false;
+ return m_data->isUnderline(style);
}
bool Theme::isStrikeThrough(TextStyle style) const
{
- return m_data ? m_data->isStrikeThrough(style) : false;
+ return m_data->isStrikeThrough(style);
}
QRgb Theme::editorColor(EditorColorRole role) const
{
- return m_data ? m_data->editorColor(role) : 0;
+ return m_data->editorColor(role);
}
+
+#include "moc_theme.cpp"
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/theme.h b/src/libs/3rdparty/syntax-highlighting/src/lib/theme.h
index adb8431f6a..c3fb0e6b6e 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/theme.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/theme.h
@@ -1,24 +1,7 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_THEME_H
@@ -28,11 +11,11 @@
#include <QColor>
#include <QExplicitlySharedDataPointer>
-#include <qobjectdefs.h>
#include <QTypeInfo>
+#include <qobjectdefs.h>
-namespace KSyntaxHighlighting {
-
+namespace KSyntaxHighlighting
+{
class ThemeData;
class RepositoryPrivate;
@@ -81,13 +64,9 @@ class RepositoryPrivate;
class KSYNTAXHIGHLIGHTING_EXPORT Theme
{
Q_GADGET
+ Q_PROPERTY(QString name READ name)
+ Q_PROPERTY(QString translatedName READ translatedName)
public:
-
- // TODO KF6:
- // - make TextStyle an enum class
- // - move out of Theme into KSyntaxHighlighting
- // - do the same for EditorColorRole
-
/**
* Default styles that can be referenced from syntax definition XML files.
* Make sure to choose readable colors with good contrast especially in
@@ -358,7 +337,7 @@ private:
/**
* Constructor taking a shared ThemeData instance.
*/
- explicit Theme(ThemeData* data);
+ KSYNTAXHIGHLIGHTING_NO_EXPORT explicit Theme(ThemeData *data);
friend class RepositoryPrivate;
friend class ThemeData;
@@ -372,7 +351,7 @@ private:
}
QT_BEGIN_NAMESPACE
-Q_DECLARE_TYPEINFO(KSyntaxHighlighting::Theme, Q_MOVABLE_TYPE);
+Q_DECLARE_TYPEINFO(KSyntaxHighlighting::Theme, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE
#endif // KSYNTAXHIGHLIGHTING_THEME_H
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/themedata.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/themedata.cpp
index eac9a92264..9d42d03db0 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/themedata.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/themedata.cpp
@@ -1,29 +1,13 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
- Copyright (C) 2016 Dominik Haumann <dhaumann@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2016 Dominik Haumann <dhaumann@kde.org>
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
*/
-#include "themedata_p.h"
#include "ksyntaxhighlighting_logging.h"
+#include "themedata_p.h"
#include <QFile>
#include <QFileInfo>
@@ -32,23 +16,17 @@
#include <QJsonValue>
#include <QMetaEnum>
-#include <QDebug>
-
using namespace KSyntaxHighlighting;
-ThemeData* ThemeData::get(const Theme &theme)
-{
- return theme.m_data.data();
-}
-
ThemeData::ThemeData()
{
memset(m_editorColors, 0, sizeof(m_editorColors));
+ m_textStyles.resize(QMetaEnum::fromType<Theme::TextStyle>().keyCount());
}
/**
* Convert QJsonValue @p val into a color, if possible. Valid colors are only
- * in hex format: #rrggbb. On error, returns 0x00000000.
+ * in hex format: #aarrggbb. On error, returns 0x00000000.
*/
static inline QRgb readColor(const QJsonValue &val)
{
@@ -61,7 +39,7 @@ static inline QRgb readColor(const QJsonValue &val)
return unsetColor;
}
const QColor color(str);
- return color.isValid() ? color.rgb() : unsetColor;
+ return color.isValid() ? color.rgba() : unsetColor;
}
static inline TextStyleData readThemeData(const QJsonObject &obj)
@@ -104,9 +82,18 @@ bool ThemeData::load(const QString &filePath)
return false;
}
const QByteArray jsonData = loadFile.readAll();
+ // look for metadata object
+ int metaDataStart = jsonData.indexOf("\"metadata\"");
+ int start = jsonData.indexOf('{', metaDataStart);
+ int end = jsonData.indexOf("}", metaDataStart);
+ if (start < 0 || end < 0) {
+ qCWarning(Log) << "Failed to parse theme file" << filePath << ":"
+ << "no metadata object found";
+ return false;
+ }
QJsonParseError parseError;
- QJsonDocument jsonDoc = QJsonDocument::fromJson(jsonData, &parseError);
+ QJsonDocument jsonDoc = QJsonDocument::fromJson(jsonData.mid(start, (end + 1) - start), &parseError);
if (parseError.error != QJsonParseError::NoError) {
qCWarning(Log) << "Failed to parse theme file" << filePath << ":" << parseError.errorString();
return false;
@@ -114,65 +101,93 @@ bool ThemeData::load(const QString &filePath)
m_filePath = filePath;
- QJsonObject obj = jsonDoc.object();
-
// read metadata
- const QJsonObject metadata = obj.value(QLatin1String("metadata")).toObject();
+ QJsonObject metadata = jsonDoc.object();
m_name = metadata.value(QLatin1String("name")).toString();
m_revision = metadata.value(QLatin1String("revision")).toInt();
+ return true;
+}
+
+void ThemeData::loadComplete()
+{
+ if (m_completelyLoaded) {
+ return;
+ }
+ m_completelyLoaded = true;
+
+ QFile loadFile(m_filePath);
+ if (!loadFile.open(QIODevice::ReadOnly)) {
+ return;
+ }
+ const QByteArray jsonData = loadFile.readAll();
+
+ QJsonParseError parseError;
+ QJsonDocument jsonDoc = QJsonDocument::fromJson(jsonData, &parseError);
+ if (parseError.error != QJsonParseError::NoError) {
+ qCWarning(Log) << "Failed to parse theme file" << m_filePath << ":" << parseError.errorString();
+ return;
+ }
+ QJsonObject obj = jsonDoc.object();
// read text styles
- static const auto idx = Theme::staticMetaObject.indexOfEnumerator("TextStyle");
- Q_ASSERT(idx >= 0);
- const auto metaEnum = Theme::staticMetaObject.enumerator(idx);
+ const auto metaEnumStyle = QMetaEnum::fromType<Theme::TextStyle>();
const QJsonObject textStyles = obj.value(QLatin1String("text-styles")).toObject();
- for (int i = 0; i < metaEnum.keyCount(); ++i) {
- Q_ASSERT(i == metaEnum.value(i));
- m_textStyles[i] = readThemeData(textStyles.value(QLatin1String(metaEnum.key(i))).toObject());
+ for (int i = 0; i < metaEnumStyle.keyCount(); ++i) {
+ Q_ASSERT(i == metaEnumStyle.value(i));
+ m_textStyles[i] = readThemeData(textStyles.value(QLatin1String(metaEnumStyle.key(i))).toObject());
}
- // read editor area colors
+ // read editor colors
+ const auto metaEnumColor = QMetaEnum::fromType<Theme::EditorColorRole>();
const QJsonObject editorColors = obj.value(QLatin1String("editor-colors")).toObject();
- m_editorColors[Theme::BackgroundColor] = readColor(editorColors.value(QLatin1String("background-color")));
- m_editorColors[Theme::TextSelection] = readColor(editorColors.value(QLatin1String("selection")));
- m_editorColors[Theme::CurrentLine] = readColor(editorColors.value(QLatin1String("current-line")));
- m_editorColors[Theme::SearchHighlight] = readColor(editorColors.value(QLatin1String("search-highlight")));
- m_editorColors[Theme::ReplaceHighlight] = readColor(editorColors.value(QLatin1String("replace-highlight")));
- m_editorColors[Theme::BracketMatching] = readColor(editorColors.value(QLatin1String("bracket-matching")));
- m_editorColors[Theme::TabMarker] = readColor(editorColors.value(QLatin1String("tab-marker")));
- m_editorColors[Theme::SpellChecking] = readColor(editorColors.value(QLatin1String("spell-checking")));
- m_editorColors[Theme::IndentationLine] = readColor(editorColors.value(QLatin1String("indentation-line")));
- m_editorColors[Theme::IconBorder] = readColor(editorColors.value(QLatin1String("icon-border")));
- m_editorColors[Theme::CodeFolding] = readColor(editorColors.value(QLatin1String("code-folding")));
- m_editorColors[Theme::LineNumbers] = readColor(editorColors.value(QLatin1String("line-numbers")));
- m_editorColors[Theme::CurrentLineNumber] = readColor(editorColors.value(QLatin1String("current-line-number")));
- m_editorColors[Theme::WordWrapMarker] = readColor(editorColors.value(QLatin1String("word-wrap-marker")));
- m_editorColors[Theme::ModifiedLines] = readColor(editorColors.value(QLatin1String("modified-lines")));
- m_editorColors[Theme::SavedLines] = readColor(editorColors.value(QLatin1String("saved-lines")));
- m_editorColors[Theme::Separator] = readColor(editorColors.value(QLatin1String("separator")));
- m_editorColors[Theme::MarkBookmark] = readColor(editorColors.value(QLatin1String("mark-bookmark")));
- m_editorColors[Theme::MarkBreakpointActive] = readColor(editorColors.value(QLatin1String("mark-breakpoint-active")));
- m_editorColors[Theme::MarkBreakpointReached] = readColor(editorColors.value(QLatin1String("mark-breakpoint-reached")));
- m_editorColors[Theme::MarkBreakpointDisabled] = readColor(editorColors.value(QLatin1String("mark-breakpoint-disabled")));
- m_editorColors[Theme::MarkExecution] = readColor(editorColors.value(QLatin1String("mark-execution")));
- m_editorColors[Theme::MarkWarning] = readColor(editorColors.value(QLatin1String("mark-warning")));
- m_editorColors[Theme::MarkError] = readColor(editorColors.value(QLatin1String("mark-error")));
- m_editorColors[Theme::TemplateBackground] = readColor(editorColors.value(QLatin1String("template-background")));
- m_editorColors[Theme::TemplatePlaceholder] = readColor(editorColors.value(QLatin1String("template-placeholder")));
- m_editorColors[Theme::TemplateFocusedPlaceholder] = readColor(editorColors.value(QLatin1String("template-focused-placeholder")));
- m_editorColors[Theme::TemplateReadOnlyPlaceholder] = readColor(editorColors.value(QLatin1String("template-read-only-placeholder")));
+ for (int i = 0; i < metaEnumColor.keyCount(); ++i) {
+ Q_ASSERT(i == metaEnumColor.value(i));
+ m_editorColors[i] = readColor(editorColors.value(QLatin1String(metaEnumColor.key(i))));
+ }
+
+ // if we have no new key around for Theme::BackgroundColor => use old variants to be compatible
+ if (!editorColors.contains(QLatin1String(metaEnumColor.key(Theme::BackgroundColor)))) {
+ m_editorColors[Theme::BackgroundColor] = readColor(editorColors.value(QLatin1String("background-color")));
+ m_editorColors[Theme::TextSelection] = readColor(editorColors.value(QLatin1String("selection")));
+ m_editorColors[Theme::CurrentLine] = readColor(editorColors.value(QLatin1String("current-line")));
+ m_editorColors[Theme::SearchHighlight] = readColor(editorColors.value(QLatin1String("search-highlight")));
+ m_editorColors[Theme::ReplaceHighlight] = readColor(editorColors.value(QLatin1String("replace-highlight")));
+ m_editorColors[Theme::BracketMatching] = readColor(editorColors.value(QLatin1String("bracket-matching")));
+ m_editorColors[Theme::TabMarker] = readColor(editorColors.value(QLatin1String("tab-marker")));
+ m_editorColors[Theme::SpellChecking] = readColor(editorColors.value(QLatin1String("spell-checking")));
+ m_editorColors[Theme::IndentationLine] = readColor(editorColors.value(QLatin1String("indentation-line")));
+ m_editorColors[Theme::IconBorder] = readColor(editorColors.value(QLatin1String("icon-border")));
+ m_editorColors[Theme::CodeFolding] = readColor(editorColors.value(QLatin1String("code-folding")));
+ m_editorColors[Theme::LineNumbers] = readColor(editorColors.value(QLatin1String("line-numbers")));
+ m_editorColors[Theme::CurrentLineNumber] = readColor(editorColors.value(QLatin1String("current-line-number")));
+ m_editorColors[Theme::WordWrapMarker] = readColor(editorColors.value(QLatin1String("word-wrap-marker")));
+ m_editorColors[Theme::ModifiedLines] = readColor(editorColors.value(QLatin1String("modified-lines")));
+ m_editorColors[Theme::SavedLines] = readColor(editorColors.value(QLatin1String("saved-lines")));
+ m_editorColors[Theme::Separator] = readColor(editorColors.value(QLatin1String("separator")));
+ m_editorColors[Theme::MarkBookmark] = readColor(editorColors.value(QLatin1String("mark-bookmark")));
+ m_editorColors[Theme::MarkBreakpointActive] = readColor(editorColors.value(QLatin1String("mark-breakpoint-active")));
+ m_editorColors[Theme::MarkBreakpointReached] = readColor(editorColors.value(QLatin1String("mark-breakpoint-reached")));
+ m_editorColors[Theme::MarkBreakpointDisabled] = readColor(editorColors.value(QLatin1String("mark-breakpoint-disabled")));
+ m_editorColors[Theme::MarkExecution] = readColor(editorColors.value(QLatin1String("mark-execution")));
+ m_editorColors[Theme::MarkWarning] = readColor(editorColors.value(QLatin1String("mark-warning")));
+ m_editorColors[Theme::MarkError] = readColor(editorColors.value(QLatin1String("mark-error")));
+ m_editorColors[Theme::TemplateBackground] = readColor(editorColors.value(QLatin1String("template-background")));
+ m_editorColors[Theme::TemplatePlaceholder] = readColor(editorColors.value(QLatin1String("template-placeholder")));
+ m_editorColors[Theme::TemplateFocusedPlaceholder] = readColor(editorColors.value(QLatin1String("template-focused-placeholder")));
+ m_editorColors[Theme::TemplateReadOnlyPlaceholder] = readColor(editorColors.value(QLatin1String("template-read-only-placeholder")));
+ }
// read per-definition style overrides
const auto customStyles = obj.value(QLatin1String("custom-styles")).toObject();
for (auto it = customStyles.begin(); it != customStyles.end(); ++it) {
const auto obj = it.value().toObject();
- QHash<QString, TextStyleData> overrideStyle;
- for (auto it2 = obj.begin(); it2 != obj.end(); ++it2)
+ auto &overrideStyle = m_textStyleOverrides[it.key()];
+ for (auto it2 = obj.begin(); it2 != obj.end(); ++it2) {
overrideStyle.insert(it2.key(), readThemeData(it2.value().toObject()));
- m_textStyleOverrides.insert(it.key(), overrideStyle);
+ }
}
- return true;
+ return;
}
QString ThemeData::name() const
@@ -195,61 +210,71 @@ QString ThemeData::filePath() const
return m_filePath;
}
+TextStyleData ThemeData::textStyle(Theme::TextStyle style) const
+{
+ if (!m_completelyLoaded) {
+ const_cast<ThemeData *>(this)->loadComplete();
+ }
+ return m_textStyles[style];
+}
+
QRgb ThemeData::textColor(Theme::TextStyle style) const
{
- Q_ASSERT(static_cast<int>(style) >= 0 && static_cast<int>(style) <= static_cast<int>(Theme::Others));
- return m_textStyles[style].textColor;
+ return textStyle(style).textColor;
}
QRgb ThemeData::selectedTextColor(Theme::TextStyle style) const
{
- Q_ASSERT(static_cast<int>(style) >= 0 && static_cast<int>(style) <= static_cast<int>(Theme::Others));
- return m_textStyles[style].selectedTextColor;
+ return textStyle(style).selectedTextColor;
}
QRgb ThemeData::backgroundColor(Theme::TextStyle style) const
{
- Q_ASSERT(static_cast<int>(style) >= 0 && static_cast<int>(style) <= static_cast<int>(Theme::Others));
- return m_textStyles[style].backgroundColor;
+ return textStyle(style).backgroundColor;
}
QRgb ThemeData::selectedBackgroundColor(Theme::TextStyle style) const
{
- Q_ASSERT(static_cast<int>(style) >= 0 && static_cast<int>(style) <= static_cast<int>(Theme::Others));
- return m_textStyles[style].selectedBackgroundColor;
+ return textStyle(style).selectedBackgroundColor;
}
bool ThemeData::isBold(Theme::TextStyle style) const
{
- Q_ASSERT(static_cast<int>(style) >= 0 && static_cast<int>(style) <= static_cast<int>(Theme::Others));
- return m_textStyles[style].bold;
+ return textStyle(style).bold;
}
bool ThemeData::isItalic(Theme::TextStyle style) const
{
- Q_ASSERT(static_cast<int>(style) >= 0 && static_cast<int>(style) <= static_cast<int>(Theme::Others));
- return m_textStyles[style].italic;
+ return textStyle(style).italic;
}
bool ThemeData::isUnderline(Theme::TextStyle style) const
{
- Q_ASSERT(static_cast<int>(style) >= 0 && static_cast<int>(style) <= static_cast<int>(Theme::Others));
- return m_textStyles[style].underline;
+ return textStyle(style).underline;
}
bool ThemeData::isStrikeThrough(Theme::TextStyle style) const
{
- Q_ASSERT(static_cast<int>(style) >= 0 && static_cast<int>(style) <= static_cast<int>(Theme::Others));
- return m_textStyles[style].strikeThrough;
+ return textStyle(style).strikeThrough;
}
QRgb ThemeData::editorColor(Theme::EditorColorRole role) const
{
+ if (!m_completelyLoaded) {
+ const_cast<ThemeData *>(this)->loadComplete();
+ }
Q_ASSERT(static_cast<int>(role) >= 0 && static_cast<int>(role) <= static_cast<int>(Theme::TemplateReadOnlyPlaceholder));
return m_editorColors[role];
}
-TextStyleData ThemeData::textStyleOverride(const QString& definitionName, const QString& attributeName) const
+TextStyleData ThemeData::textStyleOverride(const QString &definitionName, const QString &attributeName) const
{
- return m_textStyleOverrides.value(definitionName).value(attributeName);
+ if (!m_completelyLoaded) {
+ const_cast<ThemeData *>(this)->loadComplete();
+ }
+ auto it = m_textStyleOverrides.find(definitionName);
+ if (it != m_textStyleOverrides.end()) {
+ return it->value(attributeName);
+ }
+ return TextStyleData();
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/themedata_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/themedata_p.h
index 3b5f4637a9..6ee772f172 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/themedata_p.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/themedata_p.h
@@ -1,45 +1,33 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
- Copyright (C) 2016 Dominik Haumann <dhaumann@kde.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2016 Dominik Haumann <dhaumann@kde.org>
+
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_THEMEDATA_P_H
#define KSYNTAXHIGHLIGHTING_THEMEDATA_P_H
-#include "theme.h"
#include "textstyledata_p.h"
+#include "theme.h"
#include <QHash>
#include <QSharedData>
-namespace KSyntaxHighlighting {
+#include <vector>
+namespace KSyntaxHighlighting
+{
/**
* Data container for a Theme.
*/
class ThemeData : public QSharedData
{
public:
- static ThemeData* get(const Theme &theme);
+ static ThemeData *get(const Theme &theme)
+ {
+ return theme.m_data.data();
+ }
/**
* Default constructor, creating an uninitialized ThemeData instance.
@@ -52,6 +40,8 @@ public:
*/
bool load(const QString &filePath);
+ void loadComplete();
+
/**
* Returns the unique name of this Theme.
*/
@@ -141,6 +131,11 @@ public:
*/
TextStyleData textStyleOverride(const QString &definitionName, const QString &attributeName) const;
+ /**
+ * Returns the TextStyle data for the given @p style.
+ */
+ TextStyleData textStyle(Theme::TextStyle style) const;
+
private:
int m_revision = 0;
QString m_name;
@@ -150,12 +145,14 @@ private:
//! on disk (in a read-only or a writeable location).
QString m_filePath;
+ bool m_completelyLoaded = false;
+
//! TextStyles
- TextStyleData m_textStyles[Theme::Others + 1];
+ std::vector<TextStyleData> m_textStyles;
//! style overrides for individual itemData entries
//! definition name -> attribute name -> style
- QHash<QString, QHash<QString, TextStyleData> > m_textStyleOverrides;
+ QHash<QString, QHash<QString, TextStyleData>> m_textStyleOverrides;
//! Editor area colors
QRgb m_editorColors[Theme::TemplateReadOnlyPlaceholder + 1];
@@ -164,7 +161,7 @@ private:
}
QT_BEGIN_NAMESPACE
-Q_DECLARE_TYPEINFO(KSyntaxHighlighting::TextStyleData, Q_MOVABLE_TYPE);
+Q_DECLARE_TYPEINFO(KSyntaxHighlighting::TextStyleData, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE
#endif // KSYNTAXHIGHLIGHTING_THEMEDATA_P_H
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/wildcardmatcher.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/wildcardmatcher.cpp
index 167295a930..ab62f88b7e 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/wildcardmatcher.cpp
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/wildcardmatcher.cpp
@@ -1,35 +1,18 @@
/*
- Copyright (C) 2007 Sebastian Pipping <webmaster@hartwork.org>
+ SPDX-FileCopyrightText: 2007 Sebastian Pipping <webmaster@hartwork.org>
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-License-Identifier: MIT
*/
-#include "wildcardmatcher_p.h"
+#include "wildcardmatcher.h"
using namespace KSyntaxHighlighting;
-#include <QString>
#include <QChar>
-static bool exactMatch(const QString &candidate, const QString &wildcard, int candidatePosFromRight,
- int wildcardPosFromRight, bool caseSensitive = true)
+namespace
+{
+bool wildcardMatch(QStringView candidate, QStringView wildcard, int candidatePosFromRight, int wildcardPosFromRight)
{
for (; wildcardPosFromRight >= 0; wildcardPosFromRight--) {
const auto ch = wildcard.at(wildcardPosFromRight).unicode();
@@ -45,7 +28,7 @@ static bool exactMatch(const QString &candidate, const QString &wildcard, int ca
// Eat all we can and go back as far as we have to
for (int j = -1; j <= candidatePosFromRight; j++) {
- if (exactMatch(candidate, wildcard, j, wildcardPosFromRight - 1)) {
+ if (wildcardMatch(candidate, wildcard, j, wildcardPosFromRight - 1)) {
return true;
}
}
@@ -65,19 +48,19 @@ static bool exactMatch(const QString &candidate, const QString &wildcard, int ca
}
const auto candidateCh = candidate.at(candidatePosFromRight).unicode();
- const auto match = caseSensitive ? (candidateCh == ch) : (QChar::toLower(candidateCh) == QChar::toLower(ch));
- if (match) {
+ if (candidateCh == ch) {
candidatePosFromRight--;
} else {
return false;
}
}
}
- return true;
+ return candidatePosFromRight == -1;
}
-bool WildcardMatcher::exactMatch(const QString &candidate, const QString &wildcard,
- bool caseSensitive)
+} // unnamed namespace
+
+bool WildcardMatcher::exactMatch(QStringView candidate, QStringView wildcard)
{
- return ::exactMatch(candidate, wildcard, candidate.length() - 1, wildcard.length() - 1, caseSensitive);
+ return ::wildcardMatch(candidate, wildcard, candidate.length() - 1, wildcard.length() - 1);
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/wildcardmatcher.h b/src/libs/3rdparty/syntax-highlighting/src/lib/wildcardmatcher.h
new file mode 100644
index 0000000000..4042de3788
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/wildcardmatcher.h
@@ -0,0 +1,33 @@
+/*
+ SPDX-FileCopyrightText: 2007 Sebastian Pipping <webmaster@hartwork.org>
+
+ SPDX-License-Identifier: MIT
+*/
+
+#ifndef KSYNTAXHIGHLIGHTING_WILDCARDMATCHER_H
+#define KSYNTAXHIGHLIGHTING_WILDCARDMATCHER_H
+
+#include "ksyntaxhighlighting_export.h"
+
+#include <QStringView>
+
+namespace KSyntaxHighlighting
+{
+namespace WildcardMatcher
+{
+/**
+ * Matches a string against a given wildcard case-sensitively.
+ * The wildcard supports '*' (".*" in regex) and '?' ("." in regex), not more.
+ *
+ * @param candidate Text to match
+ * @param wildcard Wildcard to use
+ * @return True for an exact match, false otherwise
+ *
+ * @since 5.86
+ */
+KSYNTAXHIGHLIGHTING_EXPORT bool exactMatch(QStringView candidate, QStringView wildcard);
+}
+
+}
+
+#endif // KSYNTAXHIGHLIGHTING_WILDCARDMATCHER_H
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/wildcardmatcher_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/wildcardmatcher_p.h
deleted file mode 100644
index 016b10fe66..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/wildcardmatcher_p.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- Copyright (C) 2007 Sebastian Pipping <webmaster@hartwork.org>
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-#ifndef KSYNTAXHIGHLIGHTING_WILDCARDMATCHER_P_H
-#define KSYNTAXHIGHLIGHTING_WILDCARDMATCHER_P_H
-
-#include <QtGlobal>
-
-QT_BEGIN_NAMESPACE
-class QString;
-QT_END_NAMESPACE
-
-namespace KSyntaxHighlighting {
-
-namespace WildcardMatcher
-{
- /**
- * Matches a string against a given wildcard.
- * The wildcard supports '*' (".*" in regex) and '?' ("." in regex), not more.
- *
- * @param candidate Text to match
- * @param wildcard Wildcard to use
- * @param caseSensitive Case-sensitivity flag
- * @return True for an exact match, false otherwise
- */
- bool exactMatch(const QString &candidate, const QString &wildcard, bool caseSensitive = true);
-}
-
-}
-
-#endif // KSYNTAXHIGHLIGHTING_WILDCARDMATCHER_P_H
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/worddelimiters.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/worddelimiters.cpp
new file mode 100644
index 0000000000..ce55cd4b29
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/worddelimiters.cpp
@@ -0,0 +1,54 @@
+/*
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
+*/
+
+#include "worddelimiters_p.h"
+
+using namespace KSyntaxHighlighting;
+
+WordDelimiters::WordDelimiters()
+ : asciiDelimiters{}
+{
+ for (const char *p = "\t !%&()*+,-./:;<=>?[\\]^{|}~"; *p; ++p) {
+ asciiDelimiters.set(*p);
+ }
+}
+
+WordDelimiters::WordDelimiters(QStringView str)
+ : asciiDelimiters{}
+{
+ append(str);
+}
+
+bool WordDelimiters::contains(QChar c) const
+{
+ if (c.unicode() < 128) {
+ return asciiDelimiters.test(c.unicode());
+ }
+ // perf tells contains is MUCH faster than binary search here, very short array
+ return notAsciiDelimiters.contains(c);
+}
+
+void WordDelimiters::append(QStringView s)
+{
+ for (QChar c : s) {
+ if (c.unicode() < 128) {
+ asciiDelimiters.set(c.unicode());
+ } else {
+ notAsciiDelimiters.append(c);
+ }
+ }
+}
+
+void WordDelimiters::remove(QStringView s)
+{
+ for (QChar c : s) {
+ if (c.unicode() < 128) {
+ asciiDelimiters.set(c.unicode(), false);
+ } else {
+ notAsciiDelimiters.remove(c);
+ }
+ }
+}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/worddelimiters_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/worddelimiters_p.h
new file mode 100644
index 0000000000..c23670d634
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/worddelimiters_p.h
@@ -0,0 +1,63 @@
+/*
+ SPDX-FileCopyrightText: 2020 Jonathan Poelen <jonathan.poelen@gmail.com>
+
+ SPDX-License-Identifier: MIT
+*/
+
+#ifndef KSYNTAXHIGHLIGHTING_WORDDELIMITERS_P_H
+#define KSYNTAXHIGHLIGHTING_WORDDELIMITERS_P_H
+
+#include <QString>
+
+#include <bitset>
+
+namespace KSyntaxHighlighting
+{
+/**
+ * Represents a list of character that separates 2 words.
+ *
+ * Default delimiters are .():!+*,-<=>%&/;?[]^{|}~\, space (' ') and tabulator ('\t').
+ *
+ * @see Rule
+ * @since 5.74
+ */
+class WordDelimiters
+{
+public:
+ WordDelimiters();
+
+ /**
+ * Initialize with a default delimiters.
+ */
+ explicit WordDelimiters(QStringView str);
+
+ /**
+ * Returns @c true if @p c is a word delimiter; otherwise returns @c false.
+ */
+ bool contains(QChar c) const;
+
+ /**
+ * Appends each character of @p s to word delimiters.
+ */
+ void append(QStringView s);
+
+ /**
+ * Removes each character of @p s from word delimiters.
+ */
+ void remove(QStringView c);
+
+private:
+ /**
+ * An array which represents ascii characters for very fast lookup.
+ * The character is used as an index and the value @c true indicates a word delimiter.
+ */
+ std::bitset<128> asciiDelimiters;
+
+ /**
+ * Contains characters that are not ascii and is empty for most syntax definition.
+ */
+ QString notAsciiDelimiters;
+};
+}
+
+#endif
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/xml_p.h b/src/libs/3rdparty/syntax-highlighting/src/lib/xml_p.h
index 5f1f066dfd..2e1dd25cc8 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/xml_p.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/xml_p.h
@@ -1,24 +1,7 @@
/*
- Copyright (C) 2016 Volker Krause <vkrause@kde.org>
+ SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ SPDX-License-Identifier: MIT
*/
#ifndef KSYNTAXHIGHLIGHTING_XML_P_H
@@ -26,14 +9,15 @@
#include <QString>
-namespace KSyntaxHighlighting {
+namespace KSyntaxHighlighting
+{
/** Utilities for XML parsing. */
-namespace Xml {
-
+namespace Xml
+{
/** Parse a xs:boolean attribute. */
-inline bool attrToBool(const QStringRef &str)
+inline bool attrToBool(QStringView str)
{
- return str == QLatin1String("1") || str.compare(QLatin1String("true"), Qt::CaseInsensitive) == 0;
+ return str == QStringLiteral("1") || str.compare(QStringLiteral("true"), Qt::CaseInsensitive) == 0;
}
}
diff --git a/src/libs/3rdparty/syntax-highlighting/src/quick/CMakeLists.txt b/src/libs/3rdparty/syntax-highlighting/src/quick/CMakeLists.txt
new file mode 100644
index 0000000000..1fb92ad220
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/src/quick/CMakeLists.txt
@@ -0,0 +1,16 @@
+# SPDX-FileCopyrightText: 2018 Eike Hein <hein@kde.org>
+# SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org>
+# SPDX-License-Identifier: BSD-3-Clause
+
+ecm_add_qml_module(kquicksyntaxhighlightingplugin URI "org.kde.syntaxhighlighting")
+
+target_sources(kquicksyntaxhighlightingplugin PRIVATE
+ kquicksyntaxhighlightingplugin.cpp
+ kquicksyntaxhighlighter.cpp
+)
+target_link_libraries(kquicksyntaxhighlightingplugin PRIVATE
+ KF6SyntaxHighlighting
+ Qt6::Quick
+)
+
+ecm_finalize_qml_module(kquicksyntaxhighlightingplugin DESTINATION ${KDE_INSTALL_QMLDIR})
diff --git a/src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlighter.cpp b/src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlighter.cpp
new file mode 100644
index 0000000000..19cfbacf58
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlighter.cpp
@@ -0,0 +1,114 @@
+/*
+ SPDX-FileCopyrightText: 2018 Eike Hein <hein@kde.org>
+ SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
+*/
+
+#include "kquicksyntaxhighlighter.h"
+
+#include <KSyntaxHighlighting/Repository>
+#include <KSyntaxHighlighting/SyntaxHighlighter>
+
+#include <QGuiApplication>
+#include <QPalette>
+#include <QQuickTextDocument>
+#include <QTextDocument>
+
+using namespace KSyntaxHighlighting;
+
+extern Repository *defaultRepository();
+
+KQuickSyntaxHighlighter::KQuickSyntaxHighlighter(QObject *parent)
+ : QObject(parent)
+ , m_textEdit(nullptr)
+ , m_highlighter(new KSyntaxHighlighting::SyntaxHighlighter(this))
+{
+}
+
+KQuickSyntaxHighlighter::~KQuickSyntaxHighlighter() = default;
+
+QObject *KQuickSyntaxHighlighter::textEdit() const
+{
+ return m_textEdit;
+}
+
+void KQuickSyntaxHighlighter::setTextEdit(QObject *textEdit)
+{
+ if (m_textEdit != textEdit) {
+ m_textEdit = textEdit;
+ m_highlighter->setDocument(m_textEdit->property("textDocument").value<QQuickTextDocument *>()->textDocument());
+ }
+}
+
+QVariant KQuickSyntaxHighlighter::definition() const
+{
+ return QVariant::fromValue(m_definition);
+}
+
+void KQuickSyntaxHighlighter::setDefinition(const QVariant &definition)
+{
+ Definition def;
+ if (definition.userType() == QMetaType::QString) {
+ def = unwrappedRepository()->definitionForName(definition.toString());
+ } else {
+ def = definition.value<Definition>();
+ }
+
+ if (m_definition != def) {
+ m_definition = def;
+
+ m_highlighter->setTheme(m_theme.isValid() ? m_theme : unwrappedRepository()->themeForPalette(QGuiApplication::palette()));
+ m_highlighter->setDefinition(def);
+
+ Q_EMIT definitionChanged();
+ }
+}
+
+QVariant KQuickSyntaxHighlighter::theme() const
+{
+ return QVariant::fromValue(m_theme);
+}
+
+void KQuickSyntaxHighlighter::setTheme(const QVariant &theme)
+{
+ Theme t;
+ if (theme.userType() == QMetaType::QString) {
+ t = unwrappedRepository()->theme(theme.toString());
+ } else if (theme.userType() == QMetaType::Int) {
+ t = unwrappedRepository()->defaultTheme(static_cast<Repository::DefaultTheme>(theme.toInt()));
+ } else {
+ t = theme.value<Theme>();
+ }
+
+ if (m_theme.name() != t.name()) {
+ m_theme = t;
+ m_highlighter->setTheme(m_theme);
+ m_highlighter->rehighlight();
+ Q_EMIT themeChanged();
+ }
+}
+
+Repository *KQuickSyntaxHighlighter::repository() const
+{
+ return m_repository;
+}
+
+void KQuickSyntaxHighlighter::setRepository(Repository *repository)
+{
+ if (m_repository == repository) {
+ return;
+ }
+ m_repository = repository;
+ Q_EMIT repositoryChanged();
+}
+
+Repository *KQuickSyntaxHighlighter::unwrappedRepository() const
+{
+ if (m_repository) {
+ return m_repository;
+ }
+ return defaultRepository();
+}
+
+#include "moc_kquicksyntaxhighlighter.cpp"
diff --git a/src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlighter.h b/src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlighter.h
new file mode 100644
index 0000000000..b45c26339f
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlighter.h
@@ -0,0 +1,64 @@
+/*
+ SPDX-FileCopyrightText: 2018 Eike Hein <hein@kde.org>
+ SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
+*/
+
+#ifndef KQUICKSYNTAXHIGHLIGHTER_H
+#define KQUICKSYNTAXHIGHLIGHTER_H
+
+#include <KSyntaxHighlighting/Definition>
+#include <KSyntaxHighlighting/Theme>
+
+#include <QObject>
+#include <QVariant>
+
+namespace KSyntaxHighlighting
+{
+class Repository;
+class SyntaxHighlighter;
+}
+
+class KQuickSyntaxHighlighter : public QObject
+{
+ Q_OBJECT
+
+ Q_PROPERTY(QObject *textEdit READ textEdit WRITE setTextEdit NOTIFY textEditChanged)
+ Q_PROPERTY(QVariant definition READ definition WRITE setDefinition NOTIFY definitionChanged)
+ Q_PROPERTY(QVariant theme READ theme WRITE setTheme NOTIFY themeChanged)
+ Q_PROPERTY(KSyntaxHighlighting::Repository *repository READ repository WRITE setRepository NOTIFY repositoryChanged)
+
+public:
+ explicit KQuickSyntaxHighlighter(QObject *parent = nullptr);
+ ~KQuickSyntaxHighlighter() override;
+
+ QObject *textEdit() const;
+ void setTextEdit(QObject *textEdit);
+
+ QVariant definition() const;
+ void setDefinition(const QVariant &definition);
+
+ QVariant theme() const;
+ void setTheme(const QVariant &theme);
+
+ KSyntaxHighlighting::Repository *repository() const;
+ void setRepository(KSyntaxHighlighting::Repository *repository);
+
+Q_SIGNALS:
+ void textEditChanged() const;
+ void definitionChanged() const;
+ void themeChanged();
+ void repositoryChanged();
+
+private:
+ KSyntaxHighlighting::Repository *unwrappedRepository() const;
+
+ QObject *m_textEdit;
+ KSyntaxHighlighting::Definition m_definition;
+ KSyntaxHighlighting::Theme m_theme;
+ KSyntaxHighlighting::Repository *m_repository = nullptr;
+ KSyntaxHighlighting::SyntaxHighlighter *m_highlighter = nullptr;
+};
+
+#endif // KQUICKSYNTAXHIGHLIGHTER_H
diff --git a/src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlightingplugin.cpp b/src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlightingplugin.cpp
new file mode 100644
index 0000000000..5eb06862df
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlightingplugin.cpp
@@ -0,0 +1,46 @@
+/*
+ SPDX-FileCopyrightText: 2018 Eike Hein <hein@kde.org>
+ SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org>
+
+ SPDX-License-Identifier: MIT
+*/
+
+#include "kquicksyntaxhighlightingplugin.h"
+#include "kquicksyntaxhighlighter.h"
+
+#include <KSyntaxHighlighting/Definition>
+#include <KSyntaxHighlighting/Repository>
+#include <KSyntaxHighlighting/Theme>
+
+#include <memory>
+
+using namespace KSyntaxHighlighting;
+
+Repository *defaultRepository()
+{
+ static std::unique_ptr<Repository> s_instance;
+ if (!s_instance) {
+ s_instance = std::make_unique<Repository>();
+ }
+ return s_instance.get();
+}
+
+void KQuickSyntaxHighlightingPlugin::registerTypes(const char *uri)
+{
+ Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.syntaxhighlighting"));
+ qRegisterMetaType<Definition>();
+ qRegisterMetaType<QList<Definition>>();
+ qRegisterMetaType<Theme>();
+ qRegisterMetaType<QList<Theme>>();
+ qmlRegisterType<KQuickSyntaxHighlighter>(uri, 1, 0, "SyntaxHighlighter");
+ qmlRegisterUncreatableMetaObject(Definition::staticMetaObject, uri, 1, 0, "Definition", {});
+ qmlRegisterUncreatableMetaObject(Theme::staticMetaObject, uri, 1, 0, "Theme", {});
+ qmlRegisterSingletonType<Repository>(uri, 1, 0, "Repository", [](auto engine, auto scriptEngine) {
+ (void)engine;
+ auto repo = defaultRepository();
+ scriptEngine->setObjectOwnership(repo, QJSEngine::CppOwnership);
+ return defaultRepository();
+ });
+}
+
+#include "moc_kquicksyntaxhighlightingplugin.cpp"
diff --git a/src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlightingplugin.h b/src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlightingplugin.h
new file mode 100644
index 0000000000..a92405bb15
--- /dev/null
+++ b/src/libs/3rdparty/syntax-highlighting/src/quick/kquicksyntaxhighlightingplugin.h
@@ -0,0 +1,22 @@
+/*
+ SPDX-FileCopyrightText: 2018 Eike Hein <hein@kde.org>
+
+ SPDX-License-Identifier: MIT
+*/
+
+#ifndef KQUICKSYNTAXHIGHLIGHTINGPLUGIN_H
+#define KQUICKSYNTAXHIGHLIGHTINGPLUGIN_H
+
+#include <QQmlEngine>
+#include <QQmlExtensionPlugin>
+
+class KQuickSyntaxHighlightingPlugin : public QQmlExtensionPlugin
+{
+ Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
+
+public:
+ void registerTypes(const char *uri) override;
+};
+
+#endif // KQUICKSYNTAXHIGHLIGHTINGPLUGIN_H
diff --git a/src/libs/3rdparty/syntax-highlighting/syntax-highlighting.pro b/src/libs/3rdparty/syntax-highlighting/syntax-highlighting.pro
deleted file mode 100644
index 38127e1cfe..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/syntax-highlighting.pro
+++ /dev/null
@@ -1,55 +0,0 @@
-include(../../../qtcreatorlibrary.pri)
-include(autogenerated/autogenerated.pri)
-
-QT += network
-
-DEFINES += KSYNTAXHIGHLIGHTING_LIBRARY
-
-RESOURCES += \
- data/themes/theme-data.qrc
-
-HEADERS += \
- src/lib/abstracthighlighter.h \
- src/lib/abstracthighlighter_p.h \
- src/lib/context_p.h \
- src/lib/contextswitch_p.h \
- src/lib/definition.h \
- src/lib/definition_p.h \
- src/lib/definitiondownloader.h \
- src/lib/definitionref_p.h \
- src/lib/foldingregion.h \
- src/lib/format.h \
- src/lib/format_p.h \
- src/lib/htmlhighlighter.h \
- src/lib/keywordlist_p.h \
- src/lib/ksyntaxhighlighting_export.h \
- src/lib/matchresult_p.h \
- src/lib/repository.h \
- src/lib/repository_p.h \
- src/lib/rule_p.h \
- src/lib/state.h \
- src/lib/state_p.h \
- src/lib/syntaxhighlighter.h \
- src/lib/textstyledata_p.h \
- src/lib/theme.h \
- src/lib/themedata_p.h \
- src/lib/wildcardmatcher_p.h \
- src/lib/xml_p.h \
-
-SOURCES += \
- src/lib/abstracthighlighter.cpp \
- src/lib/context.cpp \
- src/lib/contextswitch.cpp \
- src/lib/definition.cpp \
- src/lib/definitiondownloader.cpp \
- src/lib/foldingregion.cpp \
- src/lib/format.cpp \
- src/lib/htmlhighlighter.cpp \
- src/lib/keywordlist.cpp \
- src/lib/repository.cpp \
- src/lib/rule.cpp \
- src/lib/state.cpp \
- src/lib/syntaxhighlighter.cpp \
- src/lib/theme.cpp \
- src/lib/themedata.cpp \
- src/lib/wildcardmatcher.cpp \
diff --git a/src/libs/3rdparty/syntax-highlighting/syntax-highlighting.qbs b/src/libs/3rdparty/syntax-highlighting/syntax-highlighting.qbs
index 526265220c..b049589767 100644
--- a/src/libs/3rdparty/syntax-highlighting/syntax-highlighting.qbs
+++ b/src/libs/3rdparty/syntax-highlighting/syntax-highlighting.qbs
@@ -4,51 +4,93 @@ import qbs.FileInfo
import qbs.Environment
Project {
- QtcDevHeaders {
- productName: "syntax-highlighting (3rd party)"
- baseDir: sourceDirectory + "/src/lib"
- }
- QtcDevHeaders {
- productName: "syntax-highlighting autogenerated (3rd party)"
- baseDir: sourceDirectory + "/autogenerated/src/lib"
- Group {
- prefix: baseDir + '/'
- files: [
- "AbstractHighlighter",
- "Definition",
- "DefinitionDownloader",
- "FoldingRegion",
- "Format",
- "Repository",
- "State",
- "SyntaxHighlighter",
- "Theme"
- ]
- qbs.install: true
- qbs.installDir: qtc.ide_include_path + '/' + FileInfo.fileName(product.sourceDirectory)
- qbs.installSourceBase: baseDir
+ Product {
+ name: "KSyntaxHighlighting"
+
+ Export {
+ Depends { name: "qtc" }
+ Depends {
+ name: "Qt.KSyntaxHighlighting"
+ condition: qtc.preferSystemSyntaxHighlighting
+ required: false
+ }
+ Depends {
+ name: "KSyntaxHighlighting_bundled"
+ required: !qtc.preferSystemSyntaxHighlighting
+ }
}
}
QtcLibrary {
- name: "KSyntaxHighlighting"
+ name: "KSyntaxHighlighting_bundled"
+ condition: !qtc.preferSystemSyntaxHighlighting || !Qt.KSyntaxHighlighting.present
- cpp.defines: base.concat("KSYNTAXHIGHLIGHTING_LIBRARY")
+ cpp.defines: base.concat("KF6SyntaxHighlighting_EXPORTS")
cpp.includePaths: [
product.sourceDirectory + "/src/lib/",
+ product.sourceDirectory + "/autogenerated/include/",
product.sourceDirectory + "/autogenerated/src/lib/",
product.sourceDirectory + "/autogenerated/"
]
Depends { name: "Qt.gui" }
Depends { name: "Qt.network" }
+ Depends {
+ name: "Qt.KSyntaxHighlighting"
+ condition: qtc.preferSystemSyntaxHighlighting
+ required: false
+ }
Group {
name: "lib"
prefix: "src/lib/"
files: [
- "*.h",
- "*.cpp"
+ "abstracthighlighter.cpp",
+ "abstracthighlighter.h",
+ "abstracthighlighter_p.h",
+ "context.cpp",
+ "context_p.h",
+ "contextswitch.cpp",
+ "contextswitch_p.h",
+ "definition.cpp",
+ "definition.h",
+ "definition_p.h",
+ "definitiondownloader.cpp",
+ "definitiondownloader.h",
+ "definitionref_p.h",
+ "dynamicregexpcache_p.h",
+ "foldingregion.cpp",
+ "foldingregion.h",
+ "format.cpp",
+ "format.h",
+ "format_p.h",
+ "highlightingdata.cpp",
+ "highlightingdata_p.hpp",
+ "htmlhighlighter.cpp",
+ "htmlhighlighter.h",
+ "keywordlist.cpp",
+ "keywordlist_p.h",
+ "matchresult_p.h",
+ "repository.cpp",
+ "repository.h",
+ "repository_p.h",
+ "rule.cpp",
+ "rule_p.h",
+ "state.cpp",
+ "state.h",
+ "state_p.h",
+ "syntaxhighlighter.cpp",
+ "syntaxhighlighter.h",
+ "textstyledata_p.h",
+ "theme.cpp",
+ "theme.h",
+ "themedata.cpp",
+ "themedata_p.h",
+ "wildcardmatcher.cpp",
+ "wildcardmatcher.h",
+ "worddelimiters.cpp",
+ "worddelimiters_p.h",
+ "xml_p.h",
]
}
@@ -81,8 +123,9 @@ Project {
Export {
Depends { name: "cpp" }
cpp.includePaths: [
- product.sourceDirectory + "/src/lib/",
- product.sourceDirectory + "/autogenerated/src/lib/",
+ exportingProduct.sourceDirectory + "/src/lib/",
+ exportingProduct.sourceDirectory + "/autogenerated/include/",
+ exportingProduct.sourceDirectory + "/autogenerated/src/lib/",
]
}
}
diff --git a/src/libs/3rdparty/syntax-highlighting/syntax-highlighting_dependencies.pri b/src/libs/3rdparty/syntax-highlighting/syntax-highlighting_dependencies.pri
deleted file mode 100644
index f2fd3e61b2..0000000000
--- a/src/libs/3rdparty/syntax-highlighting/syntax-highlighting_dependencies.pri
+++ /dev/null
@@ -1,3 +0,0 @@
-QTC_LIB_NAME = KSyntaxHighlighting
-INCLUDEPATH *= $$PWD/src/lib
-INCLUDEPATH *= $$PWD/autogenerated/src/lib