Crayon Syntax Highlighter
[resolved] Regex problem (2 posts)

  1. andrespenaloza
    Posted 2 years ago #

    Hi, im writing a new language, and im having trouble writing a Regex expression. I want to select a word which is uppercase(and may have digits, or "_").

    im wrote:

    but, for some reason, its giving the same results as:


  2. andrespenaloza
    Posted 2 years ago #

    I've fix'd it. For some reason, the parser code was set to CASE_INSENSITIVE=TRUE.

    Just need to change line 20 in crayon_parser.class.php to:

    private static $modes = array(self::CASE_INSENSITIVE => FALSE, self::MULTI_LINE => TRUE, self::SINGLE_LINE => TRUE, self::ALLOW_MIXED => TRUE);

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Crayon Syntax Highlighter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic