1
0
This commit is contained in:
Jeff 2024-02-18 15:09:53 -05:00
parent 0805b96809
commit 88d05f0dc9
6 changed files with 19059 additions and 18797 deletions

View File

@ -344,7 +344,7 @@ impl Ord for ValueNode {
} }
impl PartialOrd for ValueNode { impl PartialOrd for ValueNode {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> { fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
Some(self.cmp(other)) Some(self.cmp(other))
} }
} }

View File

@ -82,14 +82,15 @@ enum Foobar<T> {
(type_arguments (type_arguments
(type (type
(identifier) (identifier)
(type_arguments
(type (type
(identifier))))))))) (identifier))))))))))
================================================================================ ================================================================================
Simple Enum Instance Simple Enum Instance
================================================================================ ================================================================================
Foobar::Foo FooBar::Foo
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View File

@ -365,14 +365,7 @@ module.exports = grammar({
// Custom type with arguments // Custom type with arguments
seq( seq(
$.identifier, $.identifier,
'<', $.type_arguments
repeat1(
seq(
$.type,
optional(','),
),
),
'>',
), ),
// Map with exact fields // Map with exact fields

View File

@ -1103,37 +1103,9 @@
"type": "SYMBOL", "type": "SYMBOL",
"name": "identifier" "name": "identifier"
}, },
{
"type": "STRING",
"value": "<"
},
{
"type": "REPEAT1",
"content": {
"type": "SEQ",
"members": [
{ {
"type": "SYMBOL", "type": "SYMBOL",
"name": "type" "name": "type_arguments"
},
{
"type": "CHOICE",
"members": [
{
"type": "STRING",
"value": ","
},
{
"type": "BLANK"
}
]
}
]
}
},
{
"type": "STRING",
"value": ">"
} }
] ]
}, },

View File

@ -727,6 +727,10 @@
"type": "type", "type": "type",
"named": true "named": true
}, },
{
"type": "type_arguments",
"named": true
},
{ {
"type": "type_specification", "type": "type_specification",
"named": true "named": true

File diff suppressed because it is too large Load Diff