code folding not working

Topics: Developer Forum, Project Management Forum, User Forum
Oct 23, 2010 at 7:43 PM

Hi. I want to enable code folding with ASM. I set the Margin2 to 20, language to ASM and my path to ASM.xml. It looks like this:

<?xml version="1.0" encoding="utf-8"?>
<ScintillaNET>
  <Language Name="ASM">
    <Lexer LexerName ="Asm"></Lexer>
    <Lexer LineCommentPrefix=";" StreamCommentPrefix="/* " StreamCommentSuffix=" /*" >
    </Lexer>
      <Properties>
        <Property Name="fold.comment" Value="1" />
      </Properties>
      <Snippets IsOneKeySelectionEmbedEnabled="True" IsEnabled="true">
        <Snippet Shortcut="Status" IsSurroundsWith="true">[[$StatusMessage$]]</Snippet>
        <Snippet Shortcut="If" IsSurroundsWith="true">
          if ($end$)
          {
          $DropMarker$$selected$}
          }
        </Snippet>
        <Snippet Shortcut="IfElse" IsSurroundsWith="true">
          if ($end$)
          {
          $DropMarker$$selected$}
          }
          else
          {
          $DropMarker$$selected$}
          }
        </Snippet>
      </Snippets>
    </Language>
</ScintillaNET>
But it doesn't work. When I set the lexer to cpp, it works fine. Is it possible to make folding work with ASM?