Skip to content
This repository has been archived by the owner on Dec 24, 2023. It is now read-only.

Commit

Permalink
Single interpolated expression
Browse files Browse the repository at this point in the history
  • Loading branch information
deathbeam committed May 9, 2016
1 parent 62b1bf7 commit 2a512ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spoon/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def initialize

# Matches interpolation inside string
rule(:interpolation) {
str('#{') >> expression >> str('}')
(str('#{') >> expression >> str('}')) | str('#') >> expression
}

# Matches numbers
Expand Down

0 comments on commit 2a512ca

Please sign in to comment.