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.24.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.25.0
Choose a head ref
  • 13 commits
  • 21 files changed
  • 8 contributors

Commits on Oct 17, 2020

  1. Feature: Add Dockerfile as an alias for the docker lexer. (#1609)

    * Update docker.rb
    
    * format: change double quotes to single quote
    KonnorRogers authored Oct 17, 2020
    Configuration menu
    Copy the full SHA
    d8ef971 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2020

  1. Fix lexing of brackets in Velocity lexer (#1605)

    The Velocity lexer includes a rule that incorrectly spells the `:push`
    magic state as `:push!`. This causes an error when lexing brackets
    (which match this rule). This commit fixes that mistake.
    domRowan authored Oct 20, 2020
    Configuration menu
    Copy the full SHA
    47c0718 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2020

  1. used 'Enumerator#with_index' to detect lineno. (#1615)

    * used 'Enumerator#with_index' to detect lineno.
    
    * Changing variable names
    
    * 'tokens_in_line' -> 'line_tokens'
    The names of variables used as "line_tokens" in html_line_table and html_linewise files should be changed to match the names of those files.
    fumihumi authored Oct 30, 2020
    Configuration menu
    Copy the full SHA
    6ef0daa View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2020

  1. Add continue to keywords in Rust lexer (#1617)

    The `continue` keyword is missing from the list of keywords. This
    commit adds it.
    matklad authored Nov 9, 2020
    Configuration menu
    Copy the full SHA
    3475ae3 View commit details
    Browse the repository at this point in the history
  2. Fix binary literal digit separator in C++ lexer (#1620)

    The C++ lexer uses `_` as a digit separator for binary literals. This
    is syntactically incorrect. The digit separator in C++ is `'`. This
    commit fixes that error.
    
    Co-authored-by: Stuart <stuart.wheaton@jhuapl.edu>
    Co-authored-by: Michael Camilleri <mike@inqk.net>
    3 people authored Nov 9, 2020
    Configuration menu
    Copy the full SHA
    b4cdfaf View commit details
    Browse the repository at this point in the history
  3. Improve handling of data structure literals in PowerShell lexer (#1595)

    The PowerShell lexer includes a hash table state as a special case and
    is not tested on more complex tables (e.g. including comments and
    code). This commit factors out the hash table state into a more generic
    `:expr` state that can handle more complex structures.
    
    This commit also reduces the overall level of highlighting. This 
    improves the visibility of the more important syntax.
    jneen authored Nov 9, 2020
    Configuration menu
    Copy the full SHA
    d7fd623 View commit details
    Browse the repository at this point in the history
  4. Ensure word break follows keywords in Kotlin lexer (#1621)

    Rouge will currently match identifiers in the Kotlin lexer that begin
    with certain keywords (such as `super`). This is because of a change in
    #1496 that added a rule to support labels. That change should have
    updated the rule to end with a `\b` so as to ensure that identifiers
    that begin with the listed keywords are followed by a word break.
    This commit fixes that error.
    pyrmont authored Nov 9, 2020
    Configuration menu
    Copy the full SHA
    2e2627e View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2020

  1. Add support for long options to Batchfile lexer (#1626)

    The Batchfile lexer does not support 'long options' (i.e. options that
    begin with --). This commit adds support for that.
    pyrmont authored Nov 10, 2020
    Configuration menu
    Copy the full SHA
    5a40f6f View commit details
    Browse the repository at this point in the history
  2. Improve support for sigils in Perl lexer (#1625)

    Perl supports a variety of different sigils (`$`, `@`, `%`, etc). This
    commit improves support for some of the more unusual combinations of
    sigils.
    pyrmont authored Nov 10, 2020
    Configuration menu
    Copy the full SHA
    03b91ed View commit details
    Browse the repository at this point in the history
  3. Revert empty patterns in Ruby lexer (#1624)

    The maintenance changes in #1548 resulted in updates to two rules in
    the Ruby lexer, one regarding regular expression flags and the other
    regarding heredoc strings. However, these patterns should not have been
    changed. The change in #1548 was to prevent rules that matched an empty
    string unless they contained a 'predicate' of some sort. Both rules in
    the Ruby lexer contained such a predicate and so should not have been
    changed. This commit fixes that error.
    pyrmont authored Nov 10, 2020
    Configuration menu
    Copy the full SHA
    ba8096c View commit details
    Browse the repository at this point in the history
  4. Fix template string lexing in JavaScript lexer (#1623)

    The changes made in #1548 to avoid empty regular expression patterns,
    broke the template string rules in the JavaScript lexer (and lexers
    such as the TypeScript lexer that inherit from it). This commit adds the
    rules necessary to fix this lexing.
    pyrmont authored Nov 10, 2020
    Configuration menu
    Copy the full SHA
    f10994d View commit details
    Browse the repository at this point in the history
  5. Improve lexing of nested data structures in PowerShell lexer (#1622)

    While #1595 improved the lexing of more complex structures, the
    PowerShell lexer is limited in its support for nested data structures.
    This commit moves more of the syntax for representing values from the
    `:root` state to the `:expr` state so that this syntax can work when
    nested.
    pyrmont authored Nov 10, 2020
    Configuration menu
    Copy the full SHA
    d7e67da View commit details
    Browse the repository at this point in the history
  6. Release v3.25.0 (#1629)

    pyrmont authored Nov 10, 2020
    Configuration menu
    Copy the full SHA
    2b0a298 View commit details
    Browse the repository at this point in the history
Loading