From 388f2e21f7e25c6f7a97d99bed76bd2a85099234 Mon Sep 17 00:00:00 2001 From: penguin-teal <130006737+penguin-teal@users.noreply.github.com> Date: Thu, 8 Feb 2024 04:44:30 -0600 Subject: [PATCH] impr(quotes): add Code C quotes (penguin-teal) (#5015) --- frontend/static/quotes/code_c.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/frontend/static/quotes/code_c.json b/frontend/static/quotes/code_c.json index 00cbff9c904c..63fd88c801f7 100644 --- a/frontend/static/quotes/code_c.json +++ b/frontend/static/quotes/code_c.json @@ -72,6 +72,24 @@ "source": "The C Programming Language (K&R)", "length": 109, "id": 11 + }, + { + "text": "void vterm_keyboard_start_paste(VTerm *vt)\n{\n\tif(vt->state->mode.bracketpaste)\n\t\tvterm_push_output_sprintf_ctrl(vt, C1_CSI, \"200~\");\n}\n\nvoid vterm_keyboard_end_paste(VTerm *vt)\n{\n\tif(vt->state->mode.bracketpaste)\n\t\tvterm_push_output_sprintf_ctrl(vt, C1_CSI, \"201~\");\n}", + "source": "Vim Source Code", + "length": 268, + "id": 12 + }, + { + "text": "void\ngtk_css_section_unref (GtkCssSection *section)\n{\n\tg_return_if_fail (section != NULL);\n\n\tsection->ref_count -= 1;\n\tif (section->ref_count > 0)\n\t\treturn;\n\n\tif (section->parent)\n\t\tgtk_css_section_unref (section->parent);\n\tif (section->file)\n\t\tg_object_unref (section->file);\n\n\tg_free (section);\n}", + "source": "GTK Source Code", + "length": 298, + "id": 13 + }, + { + "text": "long\n_ttelldir (_TDIR * dirp)\n{\n\terrno = 0;\n\n\tif (!dirp)\n\t\t{\n\t\t\terrno = EFAULT;\n\t\t\treturn -1;\n\t\t}\n\treturn dirp->dd_stat;\n}", + "source": "GLib Source Code", + "length": 122, + "id": 14 } ] }