Clean up
This commit is contained in:
parent
0805b96809
commit
88d05f0dc9
@ -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))
|
||||
}
|
||||
}
|
||||
|
@ -82,14 +82,15 @@ enum Foobar<T> {
|
||||
(type_arguments
|
||||
(type
|
||||
(identifier)
|
||||
(type
|
||||
(identifier)))))))))
|
||||
(type_arguments
|
||||
(type
|
||||
(identifier))))))))))
|
||||
|
||||
================================================================================
|
||||
Simple Enum Instance
|
||||
================================================================================
|
||||
|
||||
Foobar::Foo
|
||||
FooBar::Foo
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@ -365,14 +365,7 @@ module.exports = grammar({
|
||||
// Custom type with arguments
|
||||
seq(
|
||||
$.identifier,
|
||||
'<',
|
||||
repeat1(
|
||||
seq(
|
||||
$.type,
|
||||
optional(','),
|
||||
),
|
||||
),
|
||||
'>',
|
||||
$.type_arguments
|
||||
),
|
||||
|
||||
// Map with exact fields
|
||||
|
@ -1104,36 +1104,8 @@
|
||||
"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": ">"
|
||||
"type": "SYMBOL",
|
||||
"name": "type_arguments"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user