From a94735a96da9e53b41cfe2a444ab420786fda02f Mon Sep 17 00:00:00 2001 From: Viter Zakhar <72973198+deltamolfar@users.noreply.github.com> Date: Fri, 14 Jun 2024 01:33:36 +0300 Subject: [PATCH] Update new expression2 file comment (#3083) * Update wire_expression2_editor.lua * Update lua/wire/client/text_editor/wire_expression2_editor.lua Co-authored-by: Periapsises <94928308+Periapsises@users.noreply.github.com> * Update lua/wire/client/text_editor/wire_expression2_editor.lua Co-authored-by: Periapsises <94928308+Periapsises@users.noreply.github.com> * Update lua/wire/client/text_editor/wire_expression2_editor.lua Co-authored-by: Periapsises <94928308+Periapsises@users.noreply.github.com> * Update wire_expression2_editor.lua --------- Co-authored-by: Periapsises <94928308+Periapsises@users.noreply.github.com> --- .../text_editor/wire_expression2_editor.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lua/wire/client/text_editor/wire_expression2_editor.lua b/lua/wire/client/text_editor/wire_expression2_editor.lua index 38b8e5ef27..a2de0a26cf 100644 --- a/lua/wire/client/text_editor/wire_expression2_editor.lua +++ b/lua/wire/client/text_editor/wire_expression2_editor.lua @@ -959,16 +959,20 @@ function Editor:InitComponents() end -- code1 contains the code that is not to be marked -local code1 = "@name \n@inputs \n@outputs \n@persist \n@trigger \n@strict\n\n" +local code1 = "@name \n@inputs \n@outputs \n@persist \n@strict\n\n" -- code2 contains the code that is to be marked, so it can simply be overwritten or deleted. local code2 = [[#[ - Documentation and examples are available at: + Documentation, instructions and examples are available at: https://github.com/wiremod/wire/wiki/Expression-2 - ^ Read what @strict and other directives do here ^ + ^ There you can read about: ^ - Discord is available at https://discord.gg/H8UKY3Y - Reddit is available at https://www.reddit.com/r/wiremod - Report any bugs you find here https://github.com/wiremod/wire/issues + - What is @strict and other directives (https://github.com/wiremod/wire/wiki/Expression-2-Directives) + - What are events (https://github.com/wiremod/wire/wiki/Expression-2-Events) + - What are lambdas (https://github.com/wiremod/wire/wiki/E2-Guide:-Lambdas) + + You can find our Discord here: https://discord.gg/H8UKY3Y + You can find our Reddit here: https://www.reddit.com/r/wiremod + Please report any bugs here: https://github.com/wiremod/wire/issues ]#]] local defaultcode = code1 .. code2 .. "\n"