Re: Cannot load a lexer

Roger Tunnicliffe <[email protected]> Tue, 30 Dec 2025 15:40:50 -0800 (PST)
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
------=_Part_852878_260755382.1767138050867
Content-Type: multipart/alternative; 
	boundary="----=_Part_852879_670160345.1767138050867"

------=_Part_852879_670160345.1767138050867
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Neil, not sure if you monitor this that closely but I have managed to=20
get this working. (I'm just not sure how)

You know when you struggle with something for a long time you just lose=20
track of what you have changed, what you have tried, what you have=20
google'd. Well I woke up one morning and tried something and it worked.=20
Just annoying that I don't know what that change was but have now got a=20
number of lexers going and (hopefully) understand it.
Anyway, thanks for you help with this
Cheers
Roger

On Wednesday, December 17, 2025 at 11:03:32=E2=80=AFPM UTC+11 Roger Tunnicl=
iffe=20
wrote:

> It's just a null terminated string (a C string) -> 4 bytes D,i,m,0x0
> and=20
> scintilla_send_message(sci, SCI_SETKEYWORDS, 1, strptr(one_keyword))
>
> and strptr (one_keyword) is the address of that string because FreeBasic=
=20
> holds a descriptor for the string (strptr is used to pass the string NOT=
=20
> the descriptor)
>
> Your saying to the Lexer that DIM is the only keyword (sadly it is never=
=20
> highlighted)
>
> Cheers
> Roger
>
>
> On Wednesday, December 17, 2025 at 1:00:02=E2=80=AFPM UTC+11 Neil wrote:
>
>> Roger Tunnicliffe:=20
>>
>> > dim one_keyword as string =3D "dim" & &h00=20
>>
>> I'm not familiar with FreeBasic and have no idea what the above line=20
>> does, particularly '& &h00'.=20
>>
>> > If this is to replace keywords it tells us that they already exist so =
I=20
>> am not sure why I would have to add any..=20
>>
>> You need to replace an initially empty list "" with a non-empty list "x =
y=20
>> z".=20
>>
>> Neil=20
>>
>

--=20
You received this message because you are subscribed to the Google Groups "=
scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scintilla-i=
nterest/9eb7bc6b-d32b-4be4-a396-c449d358ca84n%40googlegroups.com.

------=_Part_852879_670160345.1767138050867
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Neil, not sure if you monitor this that closely but I have managed to ge=
t this working. (I'm just not sure how)<div><br /></div><div>You know when =
you struggle with something for a long time you just lose track of what you=
 have changed, what you have tried, what you have google'd. Well I woke up =
one morning and tried something and it worked. Just annoying that I don't k=
now what that change was but have now got a number of lexers going and (hop=
efully) understand it.</div><div>Anyway, thanks for you help with this</div=
><div>Cheers</div><div>Roger<br /><br /></div><div class=3D"gmail_quote"><d=
iv dir=3D"auto" class=3D"gmail_attr">On Wednesday, December 17, 2025 at 11:=
03:32=E2=80=AFPM UTC+11 Roger Tunnicliffe wrote:<br/></div><blockquote clas=
s=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left: 1px solid rgb(=
204, 204, 204); padding-left: 1ex;">It&#39;s just a null terminated string =
(a C string) -&gt; 4 bytes D,i,m,0x0<br>and=C2=A0<div><span style=3D"font-f=
amily:&quot;Droid Sans Mono&quot;,&quot;monospace&quot;,monospace;font-size=
:13px;white-space:pre;background-color:rgb(31,31,31);color:rgb(220,220,170)=
">scintilla_send_message</span><span style=3D"color:rgb(204,204,204);font-f=
amily:&quot;Droid Sans Mono&quot;,&quot;monospace&quot;,monospace;font-size=
:13px;white-space:pre;background-color:rgb(31,31,31)">(</span><span style=
=3D"font-family:&quot;Droid Sans Mono&quot;,&quot;monospace&quot;,monospace=
;font-size:13px;white-space:pre;background-color:rgb(31,31,31);color:rgb(15=
6,220,254)">sci</span><span style=3D"color:rgb(204,204,204);font-family:&qu=
ot;Droid Sans Mono&quot;,&quot;monospace&quot;,monospace;font-size:13px;whi=
te-space:pre;background-color:rgb(31,31,31)">,</span><span style=3D"font-fa=
mily:&quot;Droid Sans Mono&quot;,&quot;monospace&quot;,monospace;font-size:=
13px;white-space:pre;background-color:rgb(31,31,31);color:rgb(156,220,254)"=
> SCI_SETKEYWORDS</span><span style=3D"color:rgb(204,204,204);font-family:&=
quot;Droid Sans Mono&quot;,&quot;monospace&quot;,monospace;font-size:13px;w=
hite-space:pre;background-color:rgb(31,31,31)">, </span><span style=3D"font=
-family:&quot;Droid Sans Mono&quot;,&quot;monospace&quot;,monospace;font-si=
ze:13px;white-space:pre;background-color:rgb(31,31,31);color:rgb(181,206,16=
8)">1</span><span style=3D"color:rgb(204,204,204);font-family:&quot;Droid S=
ans Mono&quot;,&quot;monospace&quot;,monospace;font-size:13px;white-space:p=
re;background-color:rgb(31,31,31)">, </span><span style=3D"font-family:&quo=
t;Droid Sans Mono&quot;,&quot;monospace&quot;,monospace;font-size:13px;whit=
e-space:pre;background-color:rgb(31,31,31);color:rgb(220,220,170)">strptr</=
span><span style=3D"color:rgb(204,204,204);font-family:&quot;Droid Sans Mon=
o&quot;,&quot;monospace&quot;,monospace;font-size:13px;white-space:pre;back=
ground-color:rgb(31,31,31)">(</span><span style=3D"font-family:&quot;Droid =
Sans Mono&quot;,&quot;monospace&quot;,monospace;font-size:13px;white-space:=
pre;background-color:rgb(31,31,31);color:rgb(156,220,254)">one_keyword</spa=
n><span style=3D"color:rgb(204,204,204);font-family:&quot;Droid Sans Mono&q=
uot;,&quot;monospace&quot;,monospace;font-size:13px;white-space:pre;backgro=
und-color:rgb(31,31,31)">))</span></div><div><br></div><div>and strptr (one=
_keyword) is the address of that string because FreeBasic holds a descripto=
r for the string (strptr is used to pass the string NOT the descriptor)</di=
v><div><br></div><div>Your saying to the Lexer that DIM is the only keyword=
 (sadly it is never highlighted)</div><div><br></div><div>Cheers</div><div>=
Roger</div><div><br></div><div><br></div><div class=3D"gmail_quote"><div di=
r=3D"auto" class=3D"gmail_attr">On Wednesday, December 17, 2025 at 1:00:02=
=E2=80=AFPM UTC+11 Neil wrote:<br></div><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204);padding-l=
eft:1ex">Roger Tunnicliffe:
<br>
<br>&gt; dim one_keyword as string =3D &quot;dim&quot; &amp; &amp;h00
<br>
<br>I&#39;m not familiar with FreeBasic and have no idea what the above lin=
e
<br>does, particularly &#39;&amp; &amp;h00&#39;.
<br>
<br>&gt; If this is to replace keywords it tells us that they already exist=
 so I am not sure why I would have to add any..
<br>
<br>You need to replace an initially empty list &quot;&quot; with a non-emp=
ty list &quot;x y z&quot;.
<br>
<br>Neil
<br></blockquote></div></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;scintilla-interest&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
scintilla-interest/9eb7bc6b-d32b-4be4-a396-c449d358ca84n%40googlegroups.com=
?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/=
scintilla-interest/9eb7bc6b-d32b-4be4-a396-c449d358ca84n%40googlegroups.com=
</a>.<br />

------=_Part_852879_670160345.1767138050867--

------=_Part_852878_260755382.1767138050867--