Skip to content

Commit

Permalink
add interpolated string case
Browse files Browse the repository at this point in the history
  • Loading branch information
jeparlefrancais committed Nov 24, 2023
1 parent 874dff7 commit a7fe7c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,5 @@ object : method ({ key = [[true]], [ true ] = ( nil )
object . field : method
{ if value then ok else err, { }, }

local string = `-{ true }-{ object }={ c + 8 }`

Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ object:method--[[call]]({key--[[]]=[[true]],[true--[[key]] ]=(nil)-- nil

object.--[[get field]]field:method--
{if--[[condition]]value then--[[true]]ok else--[[false]]err,{--[[empty table]]},--[[trailing comma]]}

local string=`-{true}-{object--[[ok]]}={c+8}`-- interpolated string
2 changes: 2 additions & 0 deletions tests/test_cases/spaces_and_comments.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ object : method --[[call]] ({ key --[[]] = [[true]], [ true --[[key]]] = ( nil )

object . --[[get field]] field : method --
{ if --[[condition]] value then --[[true]] ok else --[[false]] err, { --[[empty table]] }, --[[trailing comma]] }

local string = `-{ true }-{ object --[[ok]] }={ c + 8 }` -- interpolated string

0 comments on commit a7fe7c1

Please sign in to comment.