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

81 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-08-07 05:31:11 +00:00
================================================================================
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))