Add support for strings ending with $ (#24)

This commit is contained in:
Kenneth Skovhus 2018-08-03 01:32:30 +02:00 committed by Max Brunsfeld
parent 0f29cf2972
commit 886a957d1e
4 changed files with 59892 additions and 58806 deletions

View File

@ -252,10 +252,12 @@ Strings containing special characters
echo "s/$/'/"
echo "#"
echo "s$"
---
(program
(command (command_name (word)) (string))
(command (command_name (word)) (string))
(command (command_name (word)) (string)))

View File

@ -389,6 +389,7 @@ module.exports = grammar({
),
optional($._concat)
)),
optional('$'),
'"'
),

12
src/grammar.json vendored
View File

@ -1570,6 +1570,18 @@
]
}
},
{
"type": "CHOICE",
"members": [
{
"type": "STRING",
"value": "$"
},
{
"type": "BLANK"
}
]
},
{
"type": "STRING",
"value": "\""

118683
src/parser.c vendored

File diff suppressed because it is too large Load Diff