[PATCH] syntax/asm: Add word termination anchors

LIU Hao <[email protected]>
Newsgroups gmane.editors.nano.devel
Message-ID <[email protected]>
-- 
Best regards,
LIU Hao
0001-syntax-asm-Add-word-termination-anchors.patch (text/x-patch, 1.4 KB)
From e7160be2e28b9291661eac685fd992ff81847a85 Mon Sep 17 00:00:00 2001
From: LIU Hao <[email protected]>
Date: Tue, 5 Nov 2024 08:43:09 +0800
Subject: [PATCH] syntax/asm: Add word termination anchors

Previously this cound color part of a directive; namely the `.int` prefix
of `.intel_syntax`.

Signed-off-by: LIU Hao <[email protected]>
---
 syntax/asm.nanorc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/syntax/asm.nanorc b/syntax/asm.nanorc
index 6eef092ba6..ffab707607 100644
--- a/syntax/asm.nanorc
+++ b/syntax/asm.nanorc
@@ -7,11 +7,11 @@ magic "assembler source"
 comment "//"
 
 color red "\<[A-Z_]{2,}\>"
-color brightgreen "\.(data|subsection|text)"
-color green "\.(align|file|globl|global|hidden|section|size|type|weak)"
-color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)"
+color brightgreen "\.(data|subsection|text)\>"
+color green "\.(align|file|globl|global|hidden|section|size|type|weak)\>"
+color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)\>"
 color brightred "^[[:blank:]]*[.0-9A-Za-z_]*:"
-color brightcyan "^[[:blank:]]*#[[:blank:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)"
+color brightcyan "^[[:blank:]]*#[[:blank:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)\>"
 
 # Strings and names of included files.
 color brightyellow ""([^"\]|\\.)*"|<[^= 	]*>"
-- 
2.43.0
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEYmSQWY4DEzq4FUs4hfveZl3ogBsFAmcpb40FAwAAAAAACgkQhfveZl3ogBtM
cw//d9c4Rt1H42jwTt2NzqxdW9/1G/x72+61MaeVmsWJ7jjUsY5MPlF3iNQOvP0VYOBx3TwEu4rA
+0mwaDfGorWZNXkcJKQ2zo2k2o7NXwjdl8oXoam7EQAfbttzLx1b5m7lS4oFpTvXxfhW/2kCz45e
0xRSgKEcRlcdon6+pbwFfuKB7GWxAVRS3hIyyDkJWsGePegB2nGlTmuvhGDYlDP3Me3XEbZfrtdY
hGZncQEAEqIFAKl3Anmc9I2ulbxYwE7Q65i1LojMA/nyiwWLjCd0PXVmqodd0Se9ZC2ughcWmSkh
Z9T0UCQpmnx9/QZsv/Mxo3sKMaxELzennLXBTxylfA5/c0/2NTlsOn+m25ngJPQp5IG2294LzrDV
7ed2MW7kBdkkjyYsxhHNrdINF06mayvKxBaWAxrgv3n+DXA4IgcziLQi4KgnmkNI36+dyv74sLKN
Jx/Q21l+U9yuBUcpwv5kFynl+gWAt8YFmi+6Qozj5z7jUv++PwquLlk340W3sXHYkaac4mB45XsA
R+iH2Mh8fKR46XYkw+nTNUBX4iS9ByHuKWyPsJvwyVuvOIlXTRDLYD8/c23jPO/OBBdHyNMjxmAb
D70cVE1ni5ogGOKRWBT6jiSao8dKdXiVfKAhdJx37QrUPQGrd77WYgEekpn8o2pjRvLAK3Rv/Eat
jpg=
=WApP
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.