diff --git a/src/prelexer.mll b/src/prelexer.mll index d6589b9..594eab7 100644 --- a/src/prelexer.mll +++ b/src/prelexer.mll @@ -482,7 +482,6 @@ rule token current = parse | "}" { debug ~rule:"parameter-closing-brace" lexbuf current; if under_braces current then - let current = pop_quotation OpeningBrace current in let _ = debug ~rule:"parameter-closing-brace-after-pop" lexbuf current in return lexbuf current [] else diff --git a/src/prelexerState.ml b/src/prelexerState.ml index 60b1032..76fe63e 100644 --- a/src/prelexerState.ml +++ b/src/prelexerState.ml @@ -23,7 +23,7 @@ type atom = | QuotingMark of quote_kind | AssignmentMark -and quote_kind = SingleQuote | DoubleQuote | OpeningBrace +and quote_kind = SingleQuote | DoubleQuote module AtomBuffer : sig type t @@ -267,13 +267,11 @@ let pop_quotation k b = match k with | SingleQuote -> WordSingleQuoted word | DoubleQuote -> WordDoubleQuoted word - | OpeningBrace -> WordDoubleQuoted word in let squote = match k with | SingleQuote -> "'" ^ squote ^ "'" | DoubleQuote -> "\"" ^ squote ^ "\"" - | OpeningBrace -> squote in let quote = WordComponent (squote, quoted_word) in let buffer = AtomBuffer.make (quote :: buffer) in diff --git a/tests/golden/good/2.6-word-expansions/2.6.2-parameter-expansion/basic.t/expected.json b/tests/golden/good/2.6-word-expansions/2.6.2-parameter-expansion/basic.t/expected.json index 536f941..5a739b3 100644 --- a/tests/golden/good/2.6-word-expansions/2.6.2-parameter-expansion/basic.t/expected.json +++ b/tests/golden/good/2.6-word-expansions/2.6.2-parameter-expansion/basic.t/expected.json @@ -105,21 +105,7 @@ [ "Word", "word", - [ - [ - "WordDoubleQuoted", - [ - "Word", - "word", - [ - [ - "WordLiteral", - "word" - ] - ] - ] - ] - ] + [ [ "WordLiteral", "word" ] ] ] ] ] @@ -169,21 +155,7 @@ [ "Word", "word", - [ - [ - "WordDoubleQuoted", - [ - "Word", - "word", - [ - [ - "WordLiteral", - "word" - ] - ] - ] - ] - ] + [ [ "WordLiteral", "word" ] ] ] ] ] @@ -233,21 +205,7 @@ [ "Word", "word", - [ - [ - "WordDoubleQuoted", - [ - "Word", - "word", - [ - [ - "WordLiteral", - "word" - ] - ] - ] - ] - ] + [ [ "WordLiteral", "word" ] ] ] ] ] @@ -297,21 +255,7 @@ [ "Word", "word", - [ - [ - "WordDoubleQuoted", - [ - "Word", - "word", - [ - [ - "WordLiteral", - "word" - ] - ] - ] - ] - ] + [ [ "WordLiteral", "word" ] ] ] ] ] @@ -361,21 +305,7 @@ [ "Word", "word", - [ - [ - "WordDoubleQuoted", - [ - "Word", - "word", - [ - [ - "WordLiteral", - "word" - ] - ] - ] - ] - ] + [ [ "WordLiteral", "word" ] ] ] ] ] @@ -425,21 +355,7 @@ [ "Word", "word", - [ - [ - "WordDoubleQuoted", - [ - "Word", - "word", - [ - [ - "WordLiteral", - "word" - ] - ] - ] - ] - ] + [ [ "WordLiteral", "word" ] ] ] ] ] @@ -489,21 +405,7 @@ [ "Word", "word", - [ - [ - "WordDoubleQuoted", - [ - "Word", - "word", - [ - [ - "WordLiteral", - "word" - ] - ] - ] - ] - ] + [ [ "WordLiteral", "word" ] ] ] ] ] @@ -553,21 +455,7 @@ [ "Word", "word", - [ - [ - "WordDoubleQuoted", - [ - "Word", - "word", - [ - [ - "WordLiteral", - "word" - ] - ] - ] - ] - ] + [ [ "WordLiteral", "word" ] ] ] ] ] diff --git a/tests/golden/good/2.6-word-expansions/2.6.2-parameter-expansion/operator-in-parameter.t/expected.json b/tests/golden/good/2.6-word-expansions/2.6.2-parameter-expansion/operator-in-parameter.t/expected.json index 1e6a1ad..1415da1 100644 --- a/tests/golden/good/2.6-word-expansions/2.6.2-parameter-expansion/operator-in-parameter.t/expected.json +++ b/tests/golden/good/2.6-word-expansions/2.6.2-parameter-expansion/operator-in-parameter.t/expected.json @@ -46,21 +46,7 @@ [ "Word", "<