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 {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
Some(self.cmp(other))
}
}

View File

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

View File

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

View File

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

View File

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

File diff suppressed because it is too large Load Diff