nasm098SSE syntax error
Volker Kuhlmann
list0570 at paradise.net.nz
Sun Apr 20 01:04:51 CEST 2008
On Thu 10 Apr 2008 01:33:00 NZST +1200, Joor Loohuis wrote:
> > There's a syntax error in
> > http://www.nedit.org/ftp/contrib/highlighting/nasm098SSE.pats
> >
> > Can someone with write access to that file please remove trailing white
> > space from the lines?
>
> I only saw a trailing backslash on the last line of the file, so I
> assume that was the problem. It should be ok now.
No it gives an error too.
The problem is that the backslash as line-continuation character has to
be last on the line, trailing white space is not permitted. There are 4
lines with trailing white space, 2 in the header comments, 1 empty one,
and one as part of an X11 resource definition - the last one causes an
error when loading the patterns with -import.
I include a diff below for your convenience (do not use it for patch,
just for identifying the problematic line).
Volker
--- /usr/share/doc/packages/nedit/contrib/highlighting/nasm098SSE.pats 2002-07-01 00:00:00.00000000
0 +1200
+++ nasm098SSE-fixedsyntaxerrorVK.pats 2008-04-10 01:21:58.000000000 +1200
@@ -1,4 +1,4 @@
-! Syntax Highlighting Patterns for Nasm 0.98 Assembly Language
+! Syntax Highlighting Patterns for Nasm 0.98 Assembly Language
! (Author: Claudio Fanin)
! (Contributions: Wojciech Mula - SSE[2], numbers, labels)
! Last update 2002-07-01
@@ -18,7 +18,7 @@
! strings by escaping all newlines within a resource value with \ (backslash),
! leaving only the last line of the resource value not ending in \.
!
-! Please consider that the suggested colours are related to a "medium"
+! Please consider that the suggested colours are related to a "medium"
! background for me defined, in .Xdefaults, as:
!
! nedit*text.background: #909080
@@ -39,9 +39,9 @@
NASM decnumber:"<[0-9]+[dD]?>":::NASM Number::\n\
NASM label:"^\\s*[\\l_][\\w]*[:]":::NASM Label::\n\
NASM locallabel:"^\\s*[.][\\l_][\\w]+[:]":::NASM Locallabel::\n\
- NASM mem_ref:"(?i<(byte|word|dword|qword|tword)?\\s*\\[.*\\]>)":::NASM mem_ref::\n\
+ NASM mem_ref:"(?i<(byte|word|dword|qword|tword)?\\s*\\[.*\\]>)":::NASM mem_ref::\n\
}
-
+
nedit.languageModes: NASM Assembly:.asm .nasm .nas .S::Auto::::
--
Volker Kuhlmann is list0570 with the domain in header
http://volker.dnsalias.net/ Please do not CC list postings to me.
More information about the Discuss
mailing list