intention descriptions

This commit is contained in:
FalsePattern 2024-10-31 01:48:50 +01:00
parent 4a45348b15
commit 5457d83296
Signed by: falsepattern
GPG key ID: E930CDEC50C50E23
7 changed files with 66 additions and 2 deletions

View file

@ -0,0 +1,4 @@
const myText =
\\Hello
\\World!💯
;

View file

@ -0,0 +1 @@
const myText = <spot>"Hello\nWorld!\u{1f4af}"</spot>;

View file

@ -0,0 +1,27 @@
<!--
~ This file is part of ZigBrains.
~
~ Copyright (C) 2023-2024 FalsePattern
~ All Rights Reserved
~
~ The above copyright notice and this permission notice shall be included
~ in all copies or substantial portions of the Software.
~
~ ZigBrains is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Lesser General Public License as published by
~ the Free Software Foundation, only version 3 of the License.
~
~ ZigBrains is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public License
~ along with ZigBrains. If not, see <https://www.gnu.org/licenses/>.
-->
<html>
<body>
Converts quoted strings into multi-line strings, un-escaping any escape sequences.
</body>
</html>

View file

@ -0,0 +1 @@
const myText = "Hello\nWorld!\u{1f4af}";

View file

@ -0,0 +1,4 @@
const myText =
<spot>\\Hello
\\World!💯</spot>
;

View file

@ -0,0 +1,27 @@
<!--
~ This file is part of ZigBrains.
~
~ Copyright (C) 2023-2024 FalsePattern
~ All Rights Reserved
~
~ The above copyright notice and this permission notice shall be included
~ in all copies or substantial portions of the Software.
~
~ ZigBrains is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Lesser General Public License as published by
~ the Free Software Foundation, only version 3 of the License.
~
~ ZigBrains is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public License
~ along with ZigBrains. If not, see <https://www.gnu.org/licenses/>.
-->
<html>
<body>
Converts multi-line strings into quoted strings, escaping characters if necessary.
</body>
</html>

View file

@ -41,12 +41,12 @@
<intentionAction> <intentionAction>
<language>Zig</language> <language>Zig</language>
<className>com.falsepattern.zigbrains.zig.intentions.MakeStringMultiline</className> <className>com.falsepattern.zigbrains.zig.intentions.MakeStringMultiline</className>
<category>Zig intentions</category> <category>Zig</category>
</intentionAction> </intentionAction>
<intentionAction> <intentionAction>
<language>Zig</language> <language>Zig</language>
<className>com.falsepattern.zigbrains.zig.intentions.MakeStringQuoted</className> <className>com.falsepattern.zigbrains.zig.intentions.MakeStringQuoted</className>
<category>Zig intentions</category> <category>Zig</category>
</intentionAction> </intentionAction>
<!-- Language injection --> <!-- Language injection -->