lib/code/parser/string.rb in template-ruby-0.3.1 vs lib/code/parser/string.rb in template-ruby-0.4.0
- old
+ new
@@ -47,32 +47,32 @@
(backslash >> u >> base_16_digit.repeat(4, 4)) |
(backslash >> (b | f | n | r | t)) | (backslash.ignore >> any)
end
rule(:single_quoted_character) do
- escaped_character | (opening_curly_bracket.absent? >> single_quote.absent? >> any)
+ escaped_character |
+ (opening_curly_bracket.absent? >> single_quote.absent? >> any)
end
rule(:double_quoted_character) do
- escaped_character | (opening_curly_bracket.absent? >> double_quote.absent? >> any)
+ escaped_character |
+ (opening_curly_bracket.absent? >> double_quote.absent? >> any)
end
rule(:single_quoted_string) do
single_quote.ignore >>
(
interpolation.as(:interpolation) |
- single_quoted_character.repeat(1).as(:characters)
- ).repeat >>
- single_quote.ignore
+ single_quoted_character.repeat(1).as(:characters)
+ ).repeat >> single_quote.ignore
end
rule(:double_quoted_string) do
double_quote.ignore >>
(
interpolation.as(:interpolation) |
- double_quoted_character.repeat(1).as(:characters)
- ).repeat >>
- double_quote.ignore
+ double_quoted_character.repeat(1).as(:characters)
+ ).repeat >> double_quote.ignore
end
rule(:symbol) { colon.ignore >> name }
rule(:string) do