neovim-confs/tree-sitter-lua/test/corpus/comments.txt

81 lines
1.2 KiB
Plaintext

================================================================================
comment
================================================================================
--
-- single-line comment, below an empty single-line comment
--[[
print("block comment")
--]]
--[[
print("block comment")
]]
-- [[
print("not block comment")
--]]
--[=[[print("level 1 block comment")]]=]
--[=[
[print("level 1 block comment")]
]=]
--[=[
[print("level 1 block comment")
]=]
--[=[
print("level 1 block comment")]
]=]
--[=[
[[print("level 1 block comment")
]=]
--[=[
print("level 1 block comment")]]
]=]
--[==[
print("level 2 block comment")
-- ]==]
--[==[
print("level 2 block comment")
]==]
-- [==[
print("not level 2 block comment")
--]==]
--------------------------------------------------------------------------------
(chunk
(comment)
(comment)
(comment)
(comment)
(comment)
(function_call
name: (identifier)
arguments: (arguments
(string)))
(comment)
(comment)
(comment)
(comment)
(comment)
(comment)
(comment)
(comment)
(comment)
(comment)
(function_call
name: (identifier)
arguments: (arguments
(string)))
(comment))