|
Assembled 2
A column based text editor
|
#include <editor/buffer/buffer.h>#include <editor/syntax/syntax.h>#include <editor/syntax/backends/nasm.h>#include <string.h>#include <includes.h>#include <global.h>Functions | |
| void | init_syntax () |
| struct AS_SyntaxPoint * | get_syntax (struct AS_TextFile *file, struct AS_LLElement *element) |
Assembled - Column based text editor Copyright (C) 2023-2024 awewsomegamer
This file is apart of Assembled.
Assembled is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Responsible for selecting the proper syntax backend for a given file, and installing all syntax backends into as_ctx.syn_backends.
| struct AS_SyntaxPoint * get_syntax | ( | struct AS_TextFile * | file, |
| struct AS_LLElement * | element ) |
Wrapper function to get syntax for a file.
This function determines which syntax backend to use based on the file's extension.
| struct | AS_TextFile *file - File in which next parameter is in. |
| struct | AS_LLElement *element - The line for which to create a syntax point linked list. |
| void init_syntax | ( | ) |
Initalize as_ctx.syn_backends.