Menu

#3888 span_regexp does not support regexp attribute in END subtag

minor bug
closed-works-for-me
5
2015-08-05
2014-10-24
No

This could be considered a documentation bug, so I'm not really sure it should be submitted here, but this page states that

In addition, the END subtag supports the attribute REGEXP, which if set to TRUE, tells the highlighter to interpret the END text as a regular expression as well.

This is absolutely false, as any simple test will demonstrate:

<SPAN_REGEXP HASH_CHAR="a">
    <BEGIN>aaa</BEGIN>
    <END REGEXP="TRUE">[a]</END>
</SPAN_REGEXP>

This span is only closed by the string "[a]", not the character "a"

Discussion

  • Dale Anson

    Dale Anson - 2015-08-05
    • status: open --> closed-works-for-me
    • assigned_to: Dale Anson
     
  • Dale Anson

    Dale Anson - 2015-08-05

    The END REGEXP works as documented. It is used with great effect in several of the existing mode files.

     

Log in to post a comment.