File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ def _unittest_simple() -> None:
143
143
vendor.nested.Empty.255.255 new_empty_implicit
144
144
vendor.nested.Empty.255.255 new_empty_explicit
145
145
vendor.nested.Empty.255.254 old_empty
146
- ---# ---# ---# ---# ---# ---# ---# ---# ---
146
+ -------------------------------- ---
147
147
Constants.5.0 constants # RELATIVE REFERENCE
148
148
vendor.nested.Abc.1.2 abc
149
149
''' )
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ comment = ~r"#[^\r\n]*"
4
4
end_of_line = ~r"\r?\n" # Unix/Windows
5
5
_ = ~r"[ \t]+" # Whitespace
6
6
7
+ identifier = ~r"[a-zA-Z_][a-zA-Z0-9_]*"
8
+
7
9
# ==================================================== Statements ====================================================
8
10
9
11
statement = statement_directive
@@ -18,15 +20,13 @@ statement_constant = type _ identifier _? "=" _? expression
18
20
statement_field = type _ identifier
19
21
statement_padding_field = type_void "" # The trailing empty symbol is to prevent the node from being optimized away.
20
22
21
- statement_service_response_marker = "---" # Separates request/response, specifies that the definition is a service.
23
+ statement_service_response_marker = ~r "---+ " # Separates request/response, specifies that the definition is a service.
22
24
23
25
statement_directive = statement_directive_with_expression
24
26
/ statement_directive_without_expression
25
27
statement_directive_with_expression = "@" identifier _ expression # The expression type must match the directive.
26
28
statement_directive_without_expression = "@" identifier
27
29
28
- identifier = ~r"[a-zA-Z_][a-zA-Z0-9_]*"
29
-
30
30
# ==================================================== Data types ====================================================
31
31
32
32
type = type_array
You can’t perform that action at this time.
0 commit comments