dotemacs

My Emacs configuration
git clone git://git.entf.net/dotemacs
Log | Files | Refs | LICENSE

region-fontification.cs (1214B)


      1 using System;
      2 
      3 public class Test
      4 {
      5     public void Test()
      6     {
      7         #region fontifies as a region comment
      8         string foo = "bar";
      9         #endregion
     10         
     11         #region quotes shouldn't mess up a region comment
     12         string foo = "bar";
     13         #endregion
     14         
     15         #region   any number of spaces are allowed before a region comment
     16         string foo = "bar";
     17         #endregion
     18         
     19         #region	a TAB is also allowed before a region comment
     20         string foo = "bar";
     21         #endregion
     22 
     23         #  region a region comment is fine when there are spaces between the # and the region
     24         string foo = "bar";
     25         #  endregion
     26         
     27         #	region a TAB between the # and the region doesn't stop this being a region comment either
     28         string foo = "bar";
     29         #	endregion
     30 
     31         #region --- a region comment doesn't have to start with a word ---
     32         string foo = "bar";
     33         #endregion
     34 
     35         #region "a region comment can even look like this"
     36         string foo = "bar";
     37         #endregion
     38 
     39         // This is here just to ensure the commentification doesn't bleed to the next line
     40         #region
     41         string foo = "bar";
     42         #endregion
     43     }
     44 }