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 [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
