Menu

Comment works wrong in user defined language

2007-10-03
2012-11-13
  • Reijo Tomperi

    Reijo Tomperi - 2007-10-03

    When I try to define comments like this:
    <Keywords name="Comment">1/* 2* /0</Keywords>

    The comment coloring works incorrectly if I have clode like this:
    a = val; /*value*/
    b = val; <-- This line is also commented and everything after it, because there is no space after and before the comment characters.

    But If I remove the spaces from the xml-file, then comment-coloring doesn't work at all:
    <Keywords name="Comment">1/*2*/0</Keywords>

    How should I define comments so that they work? The comments in question should work similarly as they work in C.

     
    • Nobody/Anonymous

      Has anyone seen a problem using both // as a comment line and / as an operator?   The operator designation seems to override the comment - so anything with // looks like an operator, not a comment.

       
    • Reijo Tomperi

      Reijo Tomperi - 2007-10-05

      Small typo on my previous message, I actually tried this:
      <Keywords name="Comment">1/* 2*/ 0</Keywords>

      But this doesn't work either. Could this be a bug?

       
    • Reijo Tomperi

      Reijo Tomperi - 2007-10-09

      Submitted this as a bug:
      [ 1809647 ] User defined C-style comment block
      http://sourceforge.net/tracker/index.php?func=detail&aid=1809647&group_id=95717&atid=612382

       
MongoDB Logo MongoDB