Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions tests/inputs-luau-full_moon/attributes.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@example
function foo()
end

@native
local function bar()
end

local foo = @example function() end

@example
function foo:bar()
end

@attribute1 @attribute2 @attribute3 @attribute4 @attribute5
local function many_attributes()
end
22 changes: 22 additions & 0 deletions tests/snapshots/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
source: tests/tests.rs
expression: "format(&contents, LuaVersion::Luau)"
input_file: tests/inputs-luau-full_moon/attributes.lua
---
@example
function foo() end

@native
local function bar() end

local foo = @example function() end

@example
function foo:bar() end

@attribute1
@attribute2
@attribute3
@attribute4
@attribute5
local function many_attributes() end