lizard 1.17.13__py2.py3-none-any.whl → 1.17.15__py2.py3-none-any.whl

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.
@@ -0,0 +1,25 @@
1
+ """
2
+ Language parser for Zig
3
+ """
4
+
5
+ from __future__ import annotations
6
+
7
+ from .clike import CCppCommentsMixin
8
+ from .code_reader import CodeReader
9
+ from .golike import GoLikeStates
10
+
11
+
12
+ class ZigReader(CodeReader, CCppCommentsMixin):
13
+ ext = ["zig"]
14
+ language_names = ["zig"]
15
+ _conditions = {"if", "for", "while", "and", "or", "orelse", "try", "catch", "=>"}
16
+
17
+ def __init__(self, context):
18
+ super().__init__(context)
19
+ self.parallel_states = [ZigStates(context)]
20
+
21
+
22
+ class ZigStates(GoLikeStates):
23
+ FUNC_KEYWORD = "fn"
24
+
25
+ _type_definition = GoLikeStates._state_global