mirror of
https://github.com/pnx/tree-sitter-dotenv
synced 2026-06-17 14:20:02 +02:00
add integer and boolean values
This commit is contained in:
parent
948e93ffac
commit
adc9052da5
5 changed files with 293 additions and 71 deletions
31
src/grammar.json
generated
31
src/grammar.json
generated
|
|
@ -73,6 +73,14 @@
|
|||
"type": "SYMBOL",
|
||||
"name": "string_interpolation"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "integer"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "boolean"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "value"
|
||||
|
|
@ -141,6 +149,29 @@
|
|||
"value": "[^\"]*"
|
||||
}
|
||||
},
|
||||
"integer": {
|
||||
"type": "TOKEN",
|
||||
"content": {
|
||||
"type": "PATTERN",
|
||||
"value": "(\\-)?\\d+"
|
||||
}
|
||||
},
|
||||
"boolean": {
|
||||
"type": "TOKEN",
|
||||
"content": {
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "true"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "false"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"type": "TOKEN",
|
||||
"content": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue