Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects

Resolve "Incorrect syntax highlighting for block comments"

  1. Mar 03, 2019
    • Dominik Seeger's avatar
      fixed incorrect syntax highlighting for block comments · 94f0c460
      Dominik Seeger authored
      Tested with the following piece of code which should hava all edge cases. Works fine :
      
      // should not be commented out
      char c = '/*';
      String s = "/* some stupid stuff */";
      
      long test(REPLACED k){ /* only this should be commented out */
          if(REPLACED)
              return REPLACED;
          if(REPLACED)
              return REPLACED;
          /* this should be commented out
          if(REPLACED){
              if(REPLACED)
                  return REPLACED;
              if(REPLACED)
                  return (REPLACED);
          }
         */ this should not
          return 0;
      }
      94f0c460
Loading