Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rouge-ruby/rouge
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.20.0
Choose a base ref
...
head repository: rouge-ruby/rouge
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.21.0
Choose a head ref
  • 16 commits
  • 44 files changed
  • 7 contributors

Commits on Jun 19, 2020

  1. Fix YARD error when parsing LiveScript lexer (#1541)

    A single line if-statement in the LiveScript lexer causes an error when
    YARD runs over the project. Replacing it with a ternary statement fixes
    the problem.
    pyrmont authored Jun 19, 2020
    Configuration menu
    Copy the full SHA
    29ad1ba View commit details
    Browse the repository at this point in the history
  2. Allow @ before REM in Batchfile lexer (#1545)

    The `@` symbol tells the command interpreter not to show any prompts.
    This commit special cases it for `rem` so that using `@` also indicates
    a comment.
    KamilaBorowska authored Jun 19, 2020
    Configuration menu
    Copy the full SHA
    f4aaa8a View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2020

  1. Add BrightScript lexer (#1544)

    This commit adds a lexer for BrightScript.
    
    Co-authored-by: Dom Rowan <rowand@amazon.com>
    Co-authored-by: Michael Camilleri <mike@inqk.net>
    3 people authored Jun 29, 2020
    Configuration menu
    Copy the full SHA
    16ce5ce View commit details
    Browse the repository at this point in the history
  2. Add SSH config lexer (#1543)

    This commit adds a lexer for SSH configuration files.
    
    Co-authored-by: Michael Camilleri <mike@inqk.net>
    cmbuckley and pyrmont authored Jun 29, 2020
    Configuration menu
    Copy the full SHA
    b33aa4e View commit details
    Browse the repository at this point in the history
  3. Fix & selector matching in Sass/SCSS lexer (#1554)

    The `&` selector does not match correctly if it is combined with certain
    characters. This commit fixes the problem by adding a rule matching `&`
    to the `:content_common` state.
    pyrmont authored Jun 29, 2020
    Configuration menu
    Copy the full SHA
    32fedc9 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2020

  1. Support template parameter packs in C++ lexer (#1555)

    The change in #1495 to the way that the `template` keyword caused
    template parameter packs not to be highlighted correctly. This commit
    fixes that bug while also introducing a more robust set of rules for
    highlighting identifiers succeeding the `template` keyword.
    pyrmont authored Jul 4, 2020
    Configuration menu
    Copy the full SHA
    8a05269 View commit details
    Browse the repository at this point in the history
  2. Support using grave character to escape characters in PowerShell lexer (

    #1551)
    
    The ` character escapes characters in PowerShell statements. This
    commit adds support for it to the `:parameters` state.
    pyrmont authored Jul 4, 2020
    Configuration menu
    Copy the full SHA
    c96bb98 View commit details
    Browse the repository at this point in the history
  3. Remove docker_ file glob from Docker lexer (#1550)

    In addition to adding the `*.Dockerfile` file glob, #1059 added a file
    glob for `Dockerfile_*` to address #1070. However, as noted by #1539,
    this causes issues for files that begin with `dockerfile_` but that are
    not Dockerfiles.
    
    Adding the `Dockerfile_*` file glob was an error and this commit
    removes it. It is a non-standard name and is not recognised by other
    syntax highlighting libraries (e.g. Pygments, Chroma, Linguist). The
    correct fix for the issue that precipitated #1070 is to use a
    `.gitattributes` file.
    pyrmont authored Jul 4, 2020
    Configuration menu
    Copy the full SHA
    9872cee View commit details
    Browse the repository at this point in the history
  4. Fix nesting of raw and verbatim tags in Jinja/Twig lexers (#1552)

    The current Jinja lexer ends a `raw` or `verbatim` block when the lexer
    encounters either `endraw` or `endverbatim`. This behaviour is
    incorrect. The block should only end with a matching tag. This commit
    fixes that behaviour.
    pyrmont authored Jul 4, 2020
    Configuration menu
    Copy the full SHA
    a507bd6 View commit details
    Browse the repository at this point in the history
  5. Improve support for Unicode identifiers in various lexers (#1537)

    Most of Rouge's lexers use rules that only match ASCII characters. This
    is often not strictly correct as many languages support the use of
    non-ASCII characters in their identifiers.
    
    This commit adds support for non-ASCII characters to the CSS, HTML,
    JavaScript, Julia, XML and YAML lexers. The regular expressions used
    are more permissive than they should be if they were to be completely
    correct but this is intentional. Ease of maintenance has been
    prioritised over syntactic correctness.
    
    Co-authored-by: Michael Camilleri <mike@inqk.net>
    BenjaminGalliot and pyrmont authored Jul 4, 2020
    Configuration menu
    Copy the full SHA
    730208c View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2020

  1. Add Janet lexer (#1558)

    This commit adds a lexer for Janet.
    
    Co-authored-by: Michael Camilleri <mike@inqk.net>
    sogaiu and pyrmont authored Jul 5, 2020
    Configuration menu
    Copy the full SHA
    e870b5e View commit details
    Browse the repository at this point in the history
  2. Fix character escaping in Perl lexer (#1549)

    In single- and double-quoted strings, the Perl lexer currently
    tokenises `\` as an error if it is not followed by a character in part
    of a recognised escape sequence. This is a bug. Perl accepts the use of
    `\` in single- and double-quoted strings even if it is not part of a
    valid escape sequence.
    
    This commit permits the use of `\` in single-quoted and double-quoted
    strings as well as increasing the range of escape sequences that are
    recognised in double-quoted strings.
    pyrmont authored Jul 5, 2020
    Configuration menu
    Copy the full SHA
    9539764 View commit details
    Browse the repository at this point in the history
  3. Fix identifier matching in Rego lexer (#1556)

    The Rego lexer matches certain identifiers using `\b`. This will match
    identifiers that include `_`. This commit replaces these rules with a
    more robust generic regular expression. In addition, it changes the
    token used for variable names to `Name`.
    pyrmont authored Jul 5, 2020
    Configuration menu
    Copy the full SHA
    1863a89 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2020

  1. Support ? in PowerShell lexer (#1559)

    The `?` symbol is an alias for the `Where-Object` in PowerShell. This
    commit adds support for it to Rouge.
    pyrmont authored Jul 14, 2020
    Configuration menu
    Copy the full SHA
    43846d2 View commit details
    Browse the repository at this point in the history
  2. Support fat comma in Perl lexer (#1553)

    The `=>` operator (sometimes called the 'fat comma') is an operator in
    Perl that causes the identifier to the immediate left of the fat comma
    to be treated as if it were a string. This commit adds support for it
    using a simple lookahead heuristic.
    pyrmont authored Jul 14, 2020
    Configuration menu
    Copy the full SHA
    32186d5 View commit details
    Browse the repository at this point in the history
  3. Release v3.21.0 (#1560)

    pyrmont authored Jul 14, 2020
    Configuration menu
    Copy the full SHA
    76497f8 View commit details
    Browse the repository at this point in the history
Loading