Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpp: Fully support C++11 raw strings. #1897

Merged
merged 3 commits into from
Feb 3, 2019

Commits on Oct 30, 2018

  1. cpp: Fully support C++11 raw strings.

    See https://en.cppreference.com/w/cpp/language/string_literal for the
    syntax. This requires a fix in highlight.js itself.
    
    mode.terminators joins each node's begin regexps with |. This breaks if
    one of the begin regexps has backreferences. Backreferences count
    capturing parenthesized groups, and adding new groups in front will
    change that count.  Thus far, the only language that uses backreferences
    is Rust (also for raw strings), which happens to be the first in the
    list and avoids this bug. C++ cannot as easily avoid this because, even
    were raw strings the first option in STRINGS, STRINGS itself is included
    in other lists.
    
    Rather than carefully order things, rewrite the regularly expressions to
    fix the backreferences.
    davidben committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    ea62729 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2019

  1. Configuration menu
    Copy the full SHA
    b333ebf View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2019

  1. Configuration menu
    Copy the full SHA
    66b928a View commit details
    Browse the repository at this point in the history