Assembled 2
A column based text editor
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
nasm.c File Reference
#include <editor/syntax/syntax.h>
#include <editor/buffer/buffer.h>
#include <editor/syntax/backends/nasm.h>
#include <interface/theming/themes.h>
#include <includes.h>
#include <global.h>
#include <string.h>

Classes

struct  AS_Keyword
 

Enumerations

enum  AS_NASM_SYNTAX_COLORS {
  INSTRUCTION = AS_CUSTOM_COLOR_START + 1 , LABEL , COLON , SQUARE ,
  COMMENT , MACRO , REGISTER , NASM_KEYWORD ,
  SYMBOL
}
 

Functions

struct AS_SyntaxPointas_asm_get_syntax (char *line)
 
void as_asm_backend_init (int i)
 

Detailed Description

Author
awewsomegamer awews.nosp@m.omeg.nosp@m.amer@.nosp@m.gmai.nosp@m.l.com

LICENSE

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.

DESCRIPTION

This is a syntax backend module.

Enumeration Type Documentation

◆ AS_NASM_SYNTAX_COLORS

Colors for different types of keywords.

Describes the color pairs used for the given type of keyword.

Function Documentation

◆ as_asm_backend_init()

void as_asm_backend_init ( int i)

Initialization function for the backend

Will restructure the keywords array into a g_hash_table if AS_GLIB_ENABLE is defined.

Parameters
inti - The position the backend should place itself in as_ctx.syn_backends

◆ as_asm_get_syntax()

struct AS_SyntaxPoint * as_asm_get_syntax ( char * line)

Internal function to parse an unwrapped line into syntax point

Parameters
char*line - The unwrapped line to be decoded into a series of syntax points.
Returns
A pointer to the head of a AS_SyntaxPoint list, its memory is owned by the caller.