title: Doxygen Alias not working in php function after raw html
body: <p>I'm using Doxygen to document my php project and have set up a few aliases. They're working fine most of the time, but when it encounters them in a Function level block that is after a function with raw HTML, it complains that its an unknown hook (warning: Found unknown command '\hook'). I have it working in several different files, but anywhere that it's after this raw HTML, it doesn't work. What am I doing wrong?</p>
  
  <p>Simplified file:</p>
  
  <pre><code>&lt;?php
  /**
   * @file foo.php
   * Some description.
   *
   * @since       1.0.0
   * @author      Me
   * @hook        init  //This one works
   */
  
  /**
   * Simple description.
   *
   * Long description.
   *
   * @class   Bar
   * @since   1.0.0
   * @author  Me
   * @hook    init  //This one works
   */
  class Bar{
  
      /**
       * Description.
       *
       * @hook    init  //This one works
       * @since   1.0.0
       */
      function foobar1(){
          //Do stuff here...
      }
  
      /**
       * Description.
       *
       * @since   1.0.0
       */
      function html(){
          $url = "https://www.website.com/path";
  
          if($some_condition): ?&gt;
  
              &lt;div class="notice notice-info"&gt;
                  &lt;h2&gt;Welcome!&lt;/h2&gt;
                  &lt;p&gt;If you need access to a site, additional permissions or you've found a bug, please visit &lt;a href="&lt;?php echo $url; ?&gt;" target="_blank"&gt;this link&lt;/a&gt;&lt;/p&gt;
              &lt;/div&gt;
  
          &lt;?php endif;
      }
  
      /**
       * Description.
       *
       * @hook    init  //This one doesn't work
       * @since   1.0.0
       */
      function foobar2(){
          //Do stuff here...
      }
  }
  </code></pre>
  
  <p>These are the fields (except input and things like that) that are modified in my Doxyfile:</p>
  
  <pre><code>JAVADOC_AUTOBRIEF      = YES
  
  ALIASES                = Block="@par Block name^^"
  ALIASES                += Description="@par Block description^^"
  ALIASES                += hook="@par Hook^^"
  
  EXTRACT_ALL            = YES
  EXTRACT_PRIVATE        = YES
  EXTRACT_PACKAGE        = YES
  EXTRACT_STATIC         = YES
  
  SORT_MEMBER_DOCS       = NO
  
  SHOW_NAMESPACES        = NO
  
  #Using this to keep Doxygen from thinking reserved php words are variables
  EXCLUDE_SYMBOLS        =  if
  EXCLUDE_SYMBOLS        += elseif
  EXCLUDE_SYMBOLS        += endif
  EXCLUDE_SYMBOLS        += for
  EXCLUDE_SYMBOLS        += endfor
  EXCLUDE_SYMBOLS        += foreach
  EXCLUDE_SYMBOLS        += endforeach
  EXCLUDE_SYMBOLS        += while
  EXCLUDE_SYMBOLS        += endwhile
  EXCLUDE_SYMBOLS        += &lt;?php
  EXCLUDE_SYMBOLS        += ?&gt;
  EXCLUDE_SYMBOLS        += &lt;script&gt;
  EXCLUDE_SYMBOLS        += &lt;/script&gt;
  </code></pre>
  
  <p>My code example shows the Hook alias, but its the same story for any of them.</p>
  
  <p>Update: It seems to have something to do with the fact that the function is below another one that has raw html in it. I've updated the code accordingly.</p>
  
  <p>Update: I've updated the problematic function with HTML that is closer to what I am actually using. As requested, here is the output on this file when running <code>doxygen -d commentscan</code></p>
  
  <pre><code>CommentScanner: C:/path/bar.php:2
  input=[
  @file bar.php
  Some description.
  
  @since       1.0.0
  @author      Me
  @par Hook\_linebr         init  //This one works
  ]
  -----------
  CommentScanner: C:/path/bar.php:2
  output=[
  brief=[line=2
  ]
  docs=[line=3
  Some description.
  
  @since       1.0.0
  @author      Me
  @par Hook
  init  //This one works]
  inbody=[line=-1
  ]
  ]
  ===========
  -----------
  CommentScanner: C:/path/bar.php:11
  input=[
  Simple description.
  
  Long description.
  
  @class   Bar
  @since   1.0.0
  @author  Me
  @par Hook\_linebr     init  //This one works
  ]
  -----------
  CommentScanner: C:/path/bar.php:11
  output=[
  brief=[line=11
  Simple description.]
  docs=[line=13
  Long description.
  
  
  @since   1.0.0
  @author  Me
  @par Hook
  init  //This one works]
  inbody=[line=-1
  ]
  ]
  ===========
  -----------
  CommentScanner: C:/path/bar.php:23
  input=[
  Description.
  
  @par Hook\_linebr     init  //This one works
  @since   1.0.0
  ]
  -----------
  CommentScanner: C:/path/bar.php:23
  output=[
  brief=[line=23
  Description.]
  docs=[line=25
  @par Hook
  init  //This one works
  @since   1.0.0]
  inbody=[line=-1
  ]
  ]
  ===========
  -----------
  CommentScanner: C:/path/bar.php:33
  input=[
  Description.
  
  @since   1.0.0
  ]
  -----------
  CommentScanner: C:/path/bar.php:33
  output=[
  brief=[line=33
  Description.]
  docs=[line=35
  @since   1.0.0]
  inbody=[line=-1
  ]
  ]
  ===========
  -----------
  CommentScanner: C:/path/bar.php:52
  input=[
  Description.
  
  @hook    init  //This one doesn't work
  @since   1.0.0
  ]
  -----------
  CommentScanner: C:/path/bar.php:52
  output=[
  brief=[line=52
  Description.]
  docs=[line=54
  @hook    init  //This one doesn't work
  @since   1.0.0]
  inbody=[line=-1
  ]
  ]
  ===========
  C:/path/bar.php:54: warning: Found unknown command '\hook'
  </code></pre>