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.22.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.23.0
Choose a head ref
  • 7 commits
  • 15 files changed
  • 7 contributors

Commits on Sep 8, 2020

  1. Fix floating point separators in Rust lexer (#1581)

    The Rust lexer does not currently support the use of `_` in floating
    point numbers. If the separator comes immedately after the first digit,
    Rouge lexes it as an error. This commit fixes that bug.
    hugopeixoto authored Sep 8, 2020
    Configuration menu
    Copy the full SHA
    6c9d1b7 View commit details
    Browse the repository at this point in the history
  2. Support tuple index expressions in Rust lexer (#1580)

    Currently, the Rust lexer does not support tuple index expressions. This
    commit adds that support. To differentiate between tuple index
    expressions and field access expressions, the `Name::Attribute` token
    is used.
    
    Co-authored-by: Michael Camilleri <mike@inqk.net>
    hugopeixoto and pyrmont authored Sep 8, 2020
    Configuration menu
    Copy the full SHA
    1bd8eb1 View commit details
    Browse the repository at this point in the history
  3. Add PostScript lexer (#1578)

    This commit adds a lexer for PostScript.
    
    Co-authored-by: Trond Aasan <trond.aasan@gmail.com>
    Co-authored-by: Michael Camilleri <mike@inqk.net>
    3 people authored Sep 8, 2020
    Configuration menu
    Copy the full SHA
    a889401 View commit details
    Browse the repository at this point in the history
  4. Handle % like / in Ruby lexer (#1563)

    The Ruby lexer only treats `%` consistently as the modulo operator if it
    is followed by whitespace. This is not consistent with Ruby itself which
    treats this use of `%` as the modulo operator:
    
        if board[i/w][i%s] == 'O'
          region << i
        end
    
    This is a difficult problem to solve because Ruby's parser categorises
    `%` based on the variables which are in scope (which is not something
    Rouge can do). This commit improves the handling of `%` by treating it
    in a similar way to `/`.
    jneen authored Sep 8, 2020
    Configuration menu
    Copy the full SHA
    2d4976c View commit details
    Browse the repository at this point in the history
  5. Add systemd lexer (#1568)

    This commit adds a lexer for systemd unit files. These unit files can
    have multiple extensions but this commit only supports the `*.service`
    file glob at this stage.
    
    Co-authored-by: Michael Camilleri <mike@inqk.net>
    jljouannic and pyrmont authored Sep 8, 2020
    Configuration menu
    Copy the full SHA
    f039145 View commit details
    Browse the repository at this point in the history
  6. Fix handling of ::class in Kotlin lexer (#1572)

    Due to the way the Kotlin lexer treats the 'class' keyword, the use of
    the callable reference, `::class`, can result in the lexer moving into
    an incorrect state where it interprets `class` as beginning a class
    definition. This commit fixes that bug.
    
    Co-authored-by: Michael Camilleri <mike@inqk.net>
    contradictioned and pyrmont authored Sep 8, 2020
    Configuration menu
    Copy the full SHA
    eef2a4f View commit details
    Browse the repository at this point in the history
  7. Release v3.23.0 (#1582)

    pyrmont authored Sep 8, 2020
    Configuration menu
    Copy the full SHA
    593f3c9 View commit details
    Browse the repository at this point in the history
Loading