github.com/arnodel/golua@v0.0.0-20230215163904-e0b5347eaaa1/luatesting/lua/long_brackets.lua (about)

     1  print([[hello world!]])
     2  --> =hello world!
     3  
     4  print([==[A long ]] ]=] ]===] bracket]==])
     5  --> =A long ]] ]=] ]===] bracket
     6  
     7  print([===[a
     8  b
     9  c]===])
    10  --> =a
    11  --> =b
    12  --> =c
    13  
    14  print([[
    15  xxx]])
    16  --> =xxx
    17  
    18  --[[
    19  A long comment
    20  ]]
    21  
    22  --[====[
    23  Another [==[ long ]==] comment
    24  ]====]