Wuff 0.0.3__tar.gz → 0.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of Wuff might be problematic. Click here for more details.
- {Wuff-0.0.3 → Wuff-0.0.4}/PKG-INFO +2 -2
- {Wuff-0.0.3 → Wuff-0.0.4}/Wuff.egg-info/PKG-INFO +2 -2
- {Wuff-0.0.3 → Wuff-0.0.4}/Wuff.egg-info/SOURCES.txt +0 -3
- {Wuff-0.0.3 → Wuff-0.0.4}/setup.py +2 -2
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/components/Completer.cpp +1 -1
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/components/Folder.cpp +1 -1
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/components/Highlighter.cpp +3 -3
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/components/Hoverer.cpp +1 -1
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/DialectManager.cpp +1 -1
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/parser/Parser.cpp +2 -2
- Wuff-0.0.4/wuff/tree-sitter/woowoo/parser.c +10363 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/tree-sitter/woowoo/scanner.cc +1 -1
- Wuff-0.0.3/wuff/LICENSE +0 -21
- Wuff-0.0.3/wuff/components/queries/highlights.scm +0 -46
- Wuff-0.0.3/wuff/components/queries/yaml-highlights.scm +0 -56
- Wuff-0.0.3/wuff/tree-sitter/woowoo/parser.c +0 -6173
- {Wuff-0.0.3 → Wuff-0.0.4}/MANIFEST.in +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/README.md +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/Wuff.egg-info/dependency_links.txt +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/Wuff.egg-info/not-zip-safe +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/Wuff.egg-info/requires.txt +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/Wuff.egg-info/top_level.txt +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/setup.cfg +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/Bindings.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/CMakeLists.txt +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/README.md +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/WooWooAnalyzer.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/WooWooAnalyzer.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/components/Completer.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/components/Component.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/components/Component.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/components/Folder.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/components/Highlighter.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/components/Hoverer.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/components/Linter.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/components/Linter.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/components/Navigator.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/components/Navigator.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/Dialect.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/Dialect.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/DialectManager.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/DocumentPart.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/DocumentPart.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/Field.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/Field.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/IDescribable.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/InnerEnvironment.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/InnerEnvironment.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/MetaBlock.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/MetaBlock.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/OuterEnvironment.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/OuterEnvironment.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/Reference.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/Reference.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/Shorthand.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/Shorthand.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/Wobject.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/dialect/Wobject.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/document/CommentLine.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/document/CommentLine.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/document/DialectedWooWooDocument.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/document/DialectedWooWooDocument.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/document/MetaContext.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/document/MetaContext.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/document/UTF8toUTF16Mapping.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/document/UTF8toUTF16Mapping.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/document/WooWooDocument.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/document/WooWooDocument.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/lsp/LSPTypes.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/parser/Parser.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/tree-sitter/woowoo/tree_sitter/parser.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/tree-sitter/yaml/parser.c +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/tree-sitter/yaml/scanner.cc +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/tree-sitter/yaml/schema.generated.cc +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/tree-sitter/yaml/tree_sitter/parser.h +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/utils/utils.cpp +0 -0
- {Wuff-0.0.3 → Wuff-0.0.4}/wuff/utils/utils.h +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: Wuff
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Analyzer tools for WooWoo projects
|
|
5
5
|
Author: Michal Janecek
|
|
6
6
|
Author-email: michal.janecek@gmail.com
|
|
7
|
-
Requires-Python: >=3.
|
|
7
|
+
Requires-Python: >=3.7
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
Provides-Extra: test
|
|
10
10
|
Requires-Dist: pytest>=6.0; extra == "test"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: Wuff
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Analyzer tools for WooWoo projects
|
|
5
5
|
Author: Michal Janecek
|
|
6
6
|
Author-email: michal.janecek@gmail.com
|
|
7
|
-
Requires-Python: >=3.
|
|
7
|
+
Requires-Python: >=3.7
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
Provides-Extra: test
|
|
10
10
|
Requires-Dist: pytest>=6.0; extra == "test"
|
|
@@ -9,7 +9,6 @@ Wuff.egg-info/requires.txt
|
|
|
9
9
|
Wuff.egg-info/top_level.txt
|
|
10
10
|
wuff/Bindings.cpp
|
|
11
11
|
wuff/CMakeLists.txt
|
|
12
|
-
wuff/LICENSE
|
|
13
12
|
wuff/README.md
|
|
14
13
|
wuff/WooWooAnalyzer.cpp
|
|
15
14
|
wuff/WooWooAnalyzer.h
|
|
@@ -27,8 +26,6 @@ wuff/components/Linter.cpp
|
|
|
27
26
|
wuff/components/Linter.h
|
|
28
27
|
wuff/components/Navigator.cpp
|
|
29
28
|
wuff/components/Navigator.h
|
|
30
|
-
wuff/components/queries/highlights.scm
|
|
31
|
-
wuff/components/queries/yaml-highlights.scm
|
|
32
29
|
wuff/dialect/Dialect.cpp
|
|
33
30
|
wuff/dialect/Dialect.h
|
|
34
31
|
wuff/dialect/DialectManager.cpp
|
|
@@ -132,7 +132,7 @@ with open(path.join(this_directory, 'wuff/README.md'), encoding='utf-8') as f:
|
|
|
132
132
|
# logic and declaration, and simpler if you include description/version in a file.
|
|
133
133
|
setup(
|
|
134
134
|
name="Wuff",
|
|
135
|
-
version="0.0.
|
|
135
|
+
version="0.0.4",
|
|
136
136
|
author="Michal Janecek",
|
|
137
137
|
author_email="michal.janecek@gmail.com",
|
|
138
138
|
description="Analyzer tools for WooWoo projects",
|
|
@@ -142,6 +142,6 @@ setup(
|
|
|
142
142
|
cmdclass={"build_ext": CMakeBuild},
|
|
143
143
|
zip_safe=False,
|
|
144
144
|
extras_require={"test": ["pytest>=6.0"]},
|
|
145
|
-
python_requires=">=3.
|
|
145
|
+
python_requires=">=3.7",
|
|
146
146
|
)
|
|
147
147
|
|
|
@@ -146,7 +146,7 @@ const std::string Completer::shortInnerEnvironmentQuery = "shortInnerEnvironment
|
|
|
146
146
|
const std::unordered_map<std::string, std::pair<TSLanguage *, std::string>> Completer::queryStringsByName = {
|
|
147
147
|
{includeCollisionQuery, std::make_pair(tree_sitter_woowoo(), R"(
|
|
148
148
|
(block) @b
|
|
149
|
-
(
|
|
149
|
+
(wobject) @ob
|
|
150
150
|
)")},
|
|
151
151
|
{shortInnerEnvironmentQuery, std::make_pair(tree_sitter_woowoo(), "(short_inner_environment_type) @siet")}
|
|
152
152
|
};
|
|
@@ -47,6 +47,6 @@ const std::string Folder::foldableTypesQuery = "foldableTypesQuery";
|
|
|
47
47
|
const std::unordered_map<std::string, std::pair<TSLanguage *, std::string>> Folder::queryStringsByName = {
|
|
48
48
|
{foldableTypesQuery, std::make_pair(tree_sitter_woowoo(), R"(
|
|
49
49
|
(document_part) @dp
|
|
50
|
-
(
|
|
50
|
+
(wobject) @ob
|
|
51
51
|
(block) @b
|
|
52
52
|
)")}};
|
|
@@ -191,9 +191,9 @@ const std::unordered_map<std::string, std::pair<TSLanguage*, std::string>> Highl
|
|
|
191
191
|
;(document_part_title) @variable
|
|
192
192
|
|
|
193
193
|
|
|
194
|
-
;
|
|
195
|
-
;(
|
|
196
|
-
;(
|
|
194
|
+
; Wobject
|
|
195
|
+
;(wobject ["." ":"] @operator)
|
|
196
|
+
;(wobject_type) @storage.type.struct
|
|
197
197
|
|
|
198
198
|
|
|
199
199
|
; Block
|
|
@@ -47,7 +47,7 @@ const std::string Hoverer::hoverableNodesQuery = "hoverableNodesQuery";
|
|
|
47
47
|
const std::unordered_map <std::string, std::pair<TSLanguage *, std::string>> Hoverer::queryStringsByName = {
|
|
48
48
|
{hoverableNodesQuery, std::make_pair(tree_sitter_woowoo(), R"(
|
|
49
49
|
(document_part_type) @node
|
|
50
|
-
(
|
|
50
|
+
(wobject_type) @node
|
|
51
51
|
(short_inner_environment_type) @node
|
|
52
52
|
(verbose_inner_environment_type) @node
|
|
53
53
|
(outer_environment_type) @node
|
|
@@ -82,7 +82,7 @@ std::string DialectManager::getDescription(const std::string &type, const std::s
|
|
|
82
82
|
description = scanForDescriptionByName(activeDialect->inner_environments, name);
|
|
83
83
|
} else if (type == "document_part_type") {
|
|
84
84
|
description = scanForDescriptionByName(activeDialect->document_parts, name);
|
|
85
|
-
} else if (type == "
|
|
85
|
+
} else if (type == "wobject_type") {
|
|
86
86
|
description = scanForDescriptionByName(activeDialect->wobjects, name);
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -88,8 +88,8 @@ std::string Parser::extractStructureName(const TSNode &node, const std::string &
|
|
|
88
88
|
childWithNameType = "document_part_type";
|
|
89
89
|
} else if (nodeType.find("outer_environment") != std::string::npos) {
|
|
90
90
|
childWithNameType = "outer_environment_type";
|
|
91
|
-
} else if (nodeType == "
|
|
92
|
-
childWithNameType = "
|
|
91
|
+
} else if (nodeType == "wobject") {
|
|
92
|
+
childWithNameType = "wobject_type";
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
if (childWithNameType.empty()) {
|