[Tinyos-help] nesc syntax hilighting for // in kwrite
Harshavardhan Chenji
harshavardhan.cj at gmail.com
Wed Jul 16 00:55:10 PDT 2008
Good news David, here's the working syntax file.
Please send me a beer if you find this useful :).
On Tue, May 6, 2008 at 6:11 AM, David <wizzardx at gmail.com> wrote:
> Hi list.
>
> I've got nesc syntax hilighting working in kwrite by copying
> /usr/share/ncc/editor-modes/kde/nesc.xml to
> ~/.kde/share/apps/katepart/syntax/
>
> This works great.
>
> But it looks like nesc.xml isn't setup to recognise comments starting
> with "//". Comments in the /* */ style work fine however.
>
> nesc.xml was installed on my Debian Sid workstation by the 'nesc'
> ubuntu package, version 1.2.8a-2 (I followed the instructions on this
> page to install it: http://www.5secondfuse.com/tinyos/install.html).
>
> It looks like '//' is meant to work, because the XML file has this
> section at the end:
>
> <general>
> <comments>
> <comment name="singleLine" start="//" />
> <comment name="multiLine" start="/*" end="*/" />
> </comments>
> <keywords casesensitive="1" />
> </general>
>
> But if I remove that section, the /* */ comments still work. It looks
> like there is some comment-recognition logic earlier for /* */
> comments, but none for //
>
> I had a quick look at the cpp.xml file for comparison, but it's too
> complicated for me to understand how I would add // support to
> nesc.xml.
>
> Any suggestions?
>
> David.
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080716/23ffd041/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nesc.xml
Type: text/xml
Size: 8703 bytes
Desc: not available
Url : https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080716/23ffd041/attachment-0001.bin
More information about the Tinyos-help
mailing list