Skip to main content
deleted 7 characters in body
Source Link
InSync
  • 141
  • 4

I'm surprised that Lua hasn't been discussed:

-- Singleline

--[[
Multiline with delimiters.
]]

--[=[
[[Delimiters]]
]=]

--[==[
[[can be]] [=[arbitrarily long]=].
]==]

These delimiters are called opening and closing long brackets. The comment nesting problem mentioned by other answers can be easily avoided by increasing the level of the opening long bracketbrackets, as shown in the example above.

What's more, these brackets are also used to delimit (multiline) string literals:

local s = [=[
Foo[[bar]]baz[==[qux]==]
]=]

I'm surprised that Lua hasn't been discussed:

-- Singleline

--[[
Multiline with delimiters.
]]

--[=[
[[Delimiters]]
]=]

--[==[
[[can be]] [=[arbitrarily long]=].
]==]

These delimiters are called opening and closing long brackets. The comment nesting problem mentioned by other answers can be easily avoided by increasing the level of the opening long bracket, as shown in the example above.

What's more, these brackets are also used to delimit (multiline) string literals:

local s = [=[
Foo[[bar]]baz[==[qux]==]
]=]

I'm surprised that Lua hasn't been discussed:

-- Singleline

--[[
Multiline with delimiters.
]]

--[=[
[[Delimiters]]
]=]

--[==[
[[can be]] [=[arbitrarily long]=].
]==]

These delimiters are called opening and closing long brackets. The comment nesting problem mentioned by other answers can be easily avoided by increasing the level of the long brackets, as shown in the example above.

What's more, these brackets are also used to delimit (multiline) string literals:

local s = [=[
Foo[[bar]]baz[==[qux]==]
]=]
added 13 characters in body
Source Link
InSync
  • 141
  • 4

I'm surprised that Lua hasn't been discussed:

-- Singleline

--[[
Multiline with delimiters.
]]

--[=[
[[Delimiters]]
]=]

--[==[
[[can be]] [=[arbitrarily long]=].
]==]

These delimiters are called opening and closing long brackets. The comment nesting problem mentioned by other answers can be easily avoided by increasing the level of the opening long bracket, as shown in the example above. 

What's more, theythese brackets are also used to delimit (multiline) string literals:

local s = [=[
Foo[[bar]]baz[==[qux]==]
]=]

I'm surprised that Lua hasn't been discussed:

-- Singleline

--[[
Multiline with delimiters.
]]

--[=[
[[Delimiters]]
]=]

--[==[
[[can be]] [=[arbitrarily long]=].
]==]

These delimiters are called opening and closing long brackets. The comment nesting problem mentioned by other answers can be easily avoided by increasing the level of the opening long bracket, as shown in the example above. What's more, they are also used to delimit (multiline) string literals:

local s = [=[
Foo[[bar]]baz[==[qux]==]
]=]

I'm surprised that Lua hasn't been discussed:

-- Singleline

--[[
Multiline with delimiters.
]]

--[=[
[[Delimiters]]
]=]

--[==[
[[can be]] [=[arbitrarily long]=].
]==]

These delimiters are called opening and closing long brackets. The comment nesting problem mentioned by other answers can be easily avoided by increasing the level of the opening long bracket, as shown in the example above. 

What's more, these brackets are also used to delimit (multiline) string literals:

local s = [=[
Foo[[bar]]baz[==[qux]==]
]=]
deleted 5 characters in body
Source Link
InSync
  • 141
  • 4

I'm surprised that Lua hasn't been discussed:

-- Singleline

--[[
Multiline with delimiters.
]]

--[=[
[[Delimiters]]
]=]

--[==[
[[can be]] [=[arbitrarily long]=].
]==]

These delimiters are called opening and closing long brackets. The comment nesting problem mentioned by other answers can be easily avoided by increasing the level of the opening long bracket, as shown in the example above. What's more, they are also used to delimit (multiline) string literals:

local strings = [=[
Foo[[bar]]baz[==[qux]==]
]=]

I'm surprised that Lua hasn't been discussed:

-- Singleline

--[[
Multiline with delimiters.
]]

--[=[
[[Delimiters]]
]=]

--[==[
[[can be]] [=[arbitrarily long]=].
]==]

These delimiters are called opening and closing long brackets. The comment nesting problem mentioned by other answers can be easily avoided by increasing the level of the opening long bracket, as shown in the example above. What's more, they are also used to delimit (multiline) string literals:

local string = [=[
Foo[[bar]]baz[==[qux]==]
]=]

I'm surprised that Lua hasn't been discussed:

-- Singleline

--[[
Multiline with delimiters.
]]

--[=[
[[Delimiters]]
]=]

--[==[
[[can be]] [=[arbitrarily long]=].
]==]

These delimiters are called opening and closing long brackets. The comment nesting problem mentioned by other answers can be easily avoided by increasing the level of the opening long bracket, as shown in the example above. What's more, they are also used to delimit (multiline) string literals:

local s = [=[
Foo[[bar]]baz[==[qux]==]
]=]
Source Link
InSync
  • 141
  • 4
Loading