title: Notepad++ expand/collapse code blocks for the user defined languages
body: <p>I am trying to add the syntax plugin for the TAL (Transaction Application Language) in Notepad++</p>
  
  <p>I have downloaded the xml file for TAL from <a href="http://docs.notepad-plus-plus.org/index.php/User_Defined_Language_Files" rel="nofollow noreferrer">http://docs.notepad-plus-plus.org/index.php/User_Defined_Language_Files</a> and kept in C:\Users[user]\AppData\Roaming\Notepad++ folder.</p>
  
  <p>After the above step, I have restarted Notepad++ and I could see all the keywords are getting highlighted correctly but the expand/collapse of the blocks are not working as expected.</p>
  
  <p>The downloaded xml file has the following lines for the code expand/collapse.</p>
  
  <pre><code>    &lt;Keywords name="Folders in code1, open"&gt;BEGIN ?nolist&lt;/Keywords&gt;
      &lt;Keywords name="Folders in code1, middle"&gt;&lt;/Keywords&gt;
      &lt;Keywords name="Folders in code1, close"&gt;END; ?list&lt;/Keywords&gt;
  </code></pre>
  
  <p>As per the above xml statement the block ends at END; (Semicolon)</p>
  
  <p>The syntax for the conditional statements will be as below,</p>
  
  <pre><code>IF CONDITION1 THEN
     BEGIN
       statements;
     END;
  
  IF CONDITION2 THEN
     BEGIN
       statements;
     END  -- no semicolon
  ELSE IF CONDITION3 THEN
     BEGIN
        statements;
     END;
  </code></pre>
  
  <p>The expand/collapse is working good for the first syntax example. In the second syntax the first BEGIN ending at END;(semicolon) where as it should end at END (No semicolon)</p>
  
  <p>I have modified the third line to </p>
  
  <pre><code>&lt;Keywords name="Folders in code1, close"&gt;END ?list&lt;/Keywords&gt;
  </code></pre>
  
  <p>and I started seeing the block ending at the partial words as below.</p>
  
  <pre><code>IF CONDITION4 THEN
     BEGIN
       statements;
       SENDTOSERVER();  -- ending here as END is present
       statements;
  END;
  </code></pre>
  
  <p>Changing the third line to any of below line also resulted the same.</p>
  
  <pre><code>&lt;Keywords name="Folders in code1, close"&gt;END END; ?list&lt;/Keywords&gt;
  &lt;Keywords name="Folders in code1, close"&gt;"END" "END;"?list&lt;/Keywords&gt;
  </code></pre>
  
  <p>How can I match ending blocks to either END or END; (complete word).
  I am using the notepad++ version 7.2.2</p>