I've asked david to put the patched version in the next release of nesC. Kevin
On Wed, Jul 16, 2008 at 1:07 AM, David <[EMAIL PROTECTED]> wrote: > Thanks, this works! > > I don't know how to send you a bear, so I hope you like this instead: > > http://icanhascheezburger.com/tag/beer/ > > David. > > PS: Please also forward the updated nesc.xml file to the nesc Ubuntu > package maintainer so it goes in the next release :-) > > On Wed, Jul 16, 2008 at 9:55 AM, Harshavardhan Chenji > <[EMAIL PROTECTED]> wrote: >> 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 <[EMAIL PROTECTED]> 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@millennium.berkeley.edu >>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> >> > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- ~Kevin _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help