branch: externals/csharp-mode
commit 48b11cfc8c0173d755dac697d30276d551081824
Author: Jostein Kjønigsen <jost...@kjonigsen.net>
Commit: Jostein Kjønigsen <jost...@kjonigsen.net>

    Fix issues with non-nested using-statements.
    
    C# now supports non-nested using statements.
    
    These gets picked up and fontified using the same regexp meant for
    namespace imports.
    
    Fix that by requiring namespace imports to start at the beginning of
    the line.
---
 csharp-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/csharp-mode.el b/csharp-mode.el
index 5431f0a..84a0739 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -58,7 +58,7 @@
     "Regex matching a type identifier in C#.")
 
   (defconst csharp--regex-using-or-namespace
-    (concat "using" "\\|" "namespace"
+    (concat "\"using" "\\|" "namespace"
             "\\s *"
             csharp--regex-type-name-matcher)
     "Regex matching identifiers after a using or namespace

Reply via email to