Add support for strings ending with $ (#24)
This commit is contained in:
parent
0f29cf2972
commit
886a957d1e
|
@ -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)))
|
||||
|
||||
|
|
|
@ -389,6 +389,7 @@ module.exports = grammar({
|
|||
),
|
||||
optional($._concat)
|
||||
)),
|
||||
optional('$'),
|
||||
'"'
|
||||
),
|
||||
|
||||
|
|
|
@ -1570,6 +1570,18 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "$"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "\""
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue