ScintillaOrg / lexilla

A library of language lexers for use with Scintilla
https://www.scintilla.org/Lexilla.html
Other
179 stars 64 forks source link

Update Assembly (Update Syntax Highlighting) #220

Open GabrielFrigo4 opened 9 months ago

GabrielFrigo4 commented 9 months ago

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