Fix misplaced field in comparison_operator (#105)

ida_star
berchn 2021-03-27 12:41:53 +07:00 committed by GitHub
parent 8da4ad9f3a
commit d6210ceab1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1879 additions and 1870 deletions

@ -618,8 +618,8 @@ module.exports = grammar({
comparison_operator: $ => prec.left(PREC.compare, seq(
$.primary_expression,
field('operators',
repeat1(seq(
repeat1(seq(
field('operators',
choice(
'<',
'<=',
@ -632,9 +632,9 @@ module.exports = grammar({
seq('not', 'in'),
'is',
seq('is', 'not')
),
)),
$.primary_expression
)))
))
)),
lambda: $ => prec(PREC.lambda, seq(

26
src/grammar.json vendored

@ -2982,14 +2982,14 @@
"name": "primary_expression"
},
{
"type": "FIELD",
"name": "operators",
"type": "REPEAT1",
"content": {
"type": "REPEAT1",
"content": {
"type": "SEQ",
"members": [
{
"type": "SEQ",
"members": [
{
"type": "FIELD",
"name": "operators",
"content": {
"type": "CHOICE",
"members": [
{
@ -3055,13 +3055,13 @@
]
}
]
},
{
"type": "SYMBOL",
"name": "primary_expression"
}
]
}
},
{
"type": "SYMBOL",
"name": "primary_expression"
}
]
}
}
]

@ -852,16 +852,12 @@
{
"type": "not",
"named": false
},
{
"type": "primary_expression",
"named": true
}
]
}
},
"children": {
"multiple": false,
"multiple": true,
"required": true,
"types": [
{

3709
src/parser.c vendored

File diff suppressed because it is too large Load Diff