Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Assembly (Update Syntax Highlighting) #220

Open
GabrielFrigo4 opened this issue Dec 30, 2023 · 0 comments
Open

Update Assembly (Update Syntax Highlighting) #220

GabrielFrigo4 opened this issue Dec 30, 2023 · 0 comments
Labels
asm Caused by the asm lexer

Comments

@GabrielFrigo4
Copy link

The idea is to add the use of backquote (') to declare strings, in addition to the single quote (') and double quote (") that are already defined in the lexilla code for Assembly Syntax.

NASM Docs => "A character string consists of up to eight characters enclosed in either single quotes ('.. .CHARACTER ...'), double quotes ("... STRING 1 ...") or backquotes (`... STRING 2 ...`) ..."

The Assembly language has several variations in its syntaxes. This is because of the existence of several assemblers, which compile the assembly language. However, the variation between these syntaxes is slight and hardly causes conflicts between them. The use of backquote (`) to declare strings is a NASM feature (at least I don't remember another assembler that uses backquote to declare strings).

As NASM is one of the most famous assemblers (along with MASM, FASM, and GAS, all for x86/Intel). I think it's a good idea to add the string declaration with the backquotes, since this type of declaration is very common in NASM

I know that notepad++ != lexilla. However, notepad++ uses lexilla and it's lexila that defines what is and isn't string in the code to add highlighting.

image

@nyamatongwe nyamatongwe added the asm Caused by the asm lexer label Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
asm Caused by the asm lexer
Projects
None yet
Development

No branches or pull requests

2 participants