Skip to content

Commit

Permalink
Merge pull request #17 from qvalentin/fix/selector-expressions
Browse files Browse the repository at this point in the history
fix: don't allow whitespace between selector-expressions
  • Loading branch information
qvalentin authored May 17, 2024
2 parents 17144a7 + 39f5bcc commit 9d3f6e5
Show file tree
Hide file tree
Showing 9 changed files with 8,318 additions and 8,030 deletions.
28 changes: 24 additions & 4 deletions dialects/helm/src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -906,13 +906,33 @@
"type": "FIELD",
"name": "operand",
"content": {
"type": "SYMBOL",
"name": "_pipeline"
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "parenthesized_pipeline"
},
{
"type": "SYMBOL",
"name": "field"
},
{
"type": "SYMBOL",
"name": "variable"
},
{
"type": "SYMBOL",
"name": "selector_expression"
}
]
}
},
{
"type": "STRING",
"value": "."
"type": "IMMEDIATE_TOKEN",
"content": {
"type": "STRING",
"value": "."
}
},
{
"type": "FIELD",
Expand Down
60 changes: 0 additions & 60 deletions dialects/helm/src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -1794,81 +1794,21 @@
"multiple": false,
"required": true,
"types": [
{
"type": "assignment",
"named": true
},
{
"type": "chained_pipeline",
"named": true
},
{
"type": "dot",
"named": true
},
{
"type": "false",
"named": true
},
{
"type": "field",
"named": true
},
{
"type": "float_literal",
"named": true
},
{
"type": "function_call",
"named": true
},
{
"type": "imaginary_literal",
"named": true
},
{
"type": "int_literal",
"named": true
},
{
"type": "interpreted_string_literal",
"named": true
},
{
"type": "method_call",
"named": true
},
{
"type": "nil",
"named": true
},
{
"type": "parenthesized_pipeline",
"named": true
},
{
"type": "raw_string_literal",
"named": true
},
{
"type": "rune_literal",
"named": true
},
{
"type": "selector_expression",
"named": true
},
{
"type": "true",
"named": true
},
{
"type": "variable",
"named": true
},
{
"type": "variable_definition",
"named": true
}
]
}
Expand Down
Loading

0 comments on commit 9d3f6e5

Please sign in to comment.