Re: GtkSourceView: adding multiline comments to Julia
Kevin Squire <[email protected]> Sun, 11 May 2014 07:21:56 -0700
| Newsgroups | gmane.comp.gnome.devtools |
|---|---|
| Message-ID | <CAL9P-JFF7D8hKrHTicN8LGBg3Rx32THfowTSbvsu4Hf19QbGYQ@mail.gmail.com> |
--===============4031912381748980806== Content-Type: multipart/alternative; boundary=047d7b2e548acd322304f9208eb1 --047d7b2e548acd322304f9208eb1 Content-Type: text/plain; charset=UTF-8 Okay, I the issue might be that first character of the two-character multiline comment (#) is identical to the (one-character) line comment, and the line comment is being parsed first? Browsing through the .lang files, I don't see any other languages like this. The only one that comes to mind is coffeescript (which uses ###), and there's no .lang file for that. Haven't dug into the source yet, but if anyone has any suggestions on whether or not this is fixable just within julia.lang, or where else to look, I'm all ears. Cheers! Kevin On Sat, May 10, 2014 at 5:08 PM, Kevin Squire <[email protected]>wrote: > Julia recently added multiline comments, with start and end defined as #= > and =#. > > I've attempted to add these to julia.lang, based off of other .lang files > (e.g., scala.lang), but the syntax highlighting isn't working. Any hints > on what I'm doing wrong? > > Thanks, > Kevin > --047d7b2e548acd322304f9208eb1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Okay, I the issue might be that first character of the two= -character multiline comment (#) is identical to the (one-character) line c= omment, and the line comment is being parsed first? Browsing through the .l= ang files, I don't see any other languages like this. =C2=A0The only on= e that comes to mind is coffeescript (which uses ###), and there's no .= lang file for that.<div> <br></div><div>Haven't dug into the source yet, but if anyone has any s= uggestions on whether or not this is fixable just within julia.lang, or whe= re else to look, I'm all ears.</div><div><br></div><div>Cheers!</div> <div>=C2=A0 =C2=A0Kevin=C2=A0<br></div></div><div class=3D"gmail_extra"><br= ><br><div class=3D"gmail_quote">On Sat, May 10, 2014 at 5:08 PM, Kevin Squi= re <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Julia recently added m= ultiline comments, with start and end defined as #=3D and =3D#.</div><div><= br></div> <div>I've attempted to add these to julia.lang, based off of other .lan= g files (e.g., scala.lang), but the syntax highlighting isn't working. = =C2=A0Any hints on what I'm doing wrong?=C2=A0</div> <div><br></div><div>Thanks,</div><div>=C2=A0 =C2=A0Kevin</div> </div> </blockquote></div><br></div> --047d7b2e548acd322304f9208eb1-- --===============4031912381748980806== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gnome-devtools mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnome-devtools --===============4031912381748980806==--