diff --git a/tests/inputs-luau-full_moon/attributes.lua b/tests/inputs-luau-full_moon/attributes.lua new file mode 100644 index 00000000..28e3a9f7 --- /dev/null +++ b/tests/inputs-luau-full_moon/attributes.lua @@ -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 \ No newline at end of file diff --git a/tests/snapshots/tests__luau_full_moon@attributes.lua.snap b/tests/snapshots/tests__luau_full_moon@attributes.lua.snap new file mode 100644 index 00000000..345df64a --- /dev/null +++ b/tests/snapshots/tests__luau_full_moon@attributes.lua.snap @@ -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