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.14.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.15.0
Choose a head ref
  • 12 commits
  • 29 files changed
  • 8 contributors

Commits on Dec 15, 2019

  1. Add addrspacecast keyword, change keyword matching system in LLVM lex…

    …er (#1376)
    
    This commit adds memoising singleton methods and switches to using
    `Array#include?` to match against a set of keywords. This reduces memory
    usage and allows for the keywords to be ordered alphabetically. Finally,
    the `addrspacecast` keyword is added.
    pyrmont authored Dec 15, 2019
    Configuration menu
    Copy the full SHA
    c93ca78 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2019

  1. Add FreeFEM lexer (#1356)

    This commit adds a lexer for the FreeFEM language.
    sgarnotel authored and pyrmont committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    2caa1a0 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2019

  1. Add GHC Core lexer (#1377)

    This commit adds a lexer for the GHC Core language.
    supersven authored and pyrmont committed Dec 23, 2019
    Configuration menu
    Copy the full SHA
    78bc930 View commit details
    Browse the repository at this point in the history
  2. Fix comment parsing in Console lexer (#1379)

    The Console lexer would not correctly parse comments if only the
    `comments` option was enabled. This was because of a bug in the way the
    prompt's regular expression pattern worked. This commit fixes that bug
    and adds a series of tests to confirm the behaviour of the lexer is as
    intended.
    pyrmont authored Dec 23, 2019
    Configuration menu
    Copy the full SHA
    bf40c4c View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2020

  1. Add division operator to Rust lexer (#1384)

    The division operator was missing from the list of operators in the Rust
    lexer. This commit adds the operator as well as some visual samples to
    cover operator usage.
    hugopeixoto authored and pyrmont committed Jan 5, 2020
    Configuration menu
    Copy the full SHA
    d342877 View commit details
    Browse the repository at this point in the history
  2. Fix parsing of 'false' as Boolean option value (#1382)

    Rouge allows for options to be passed to a lexer's constructor method.
    The options are parsed from strings and the string 'false' was not being
    converted to the Boolean value `false`. This commit fixes that and also
    adds a rudimentary series of tests to ensure that Boolean options are
    being properly parsed.
    pyrmont authored Jan 5, 2020
    Configuration menu
    Copy the full SHA
    e22ce33 View commit details
    Browse the repository at this point in the history
  3. Add some keyword and key-path syntax to Swift lexer (#1332)

    This commit adds support for the `some` keyword and `\.Type.variable`
    key-path syntax to the Swift lexer.
    AlanQuatermain authored and pyrmont committed Jan 5, 2020
    Configuration menu
    Copy the full SHA
    3ed2f30 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2020

  1. Allow spaces after filter pipes in Jinja lexer (#1385)

    This commit allows for optional spaces after filter pipes in the Jinja lexer.
    shermdog authored and pyrmont committed Jan 7, 2020
    Configuration menu
    Copy the full SHA
    81e3b8d View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2020

  1. Add Objective-C++ lexer (#1378)

    This commit adds a lexer for Objective-C++.
    
    Since Ruby does not support multiple inheritance, the Objective-C rules
    previously defined in the Objective-C lexer are factored out into a
    common module that can be used by both lexers. Accordingly, this commit
    also updates the Objective-C lexer to use this module.
    
    As the common module uses memoised methods (e.g. `at_keywords`) that are
    referred to within rules included in the common module, lexers that use
    the common module need to use `Object#extend` rather than
    `Module#include`. Consequently, the memoised methods are not prefixed
    with `self` as would typically be the case. This is different to other
    factored-out modules intended for reuse in lexers (e.g. the
    `TypescriptCommon` module).
    saagarjha authored and pyrmont committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    7d9f158 View commit details
    Browse the repository at this point in the history
  2. Improve comments in Jinja lexer (#1386)

    This commit improves support for comments in Jinja files. Previously,
    multiline comments would contain error tokens if the commented text
    contained the `{` character. This commit also adds support for
    single-line comments.
    shermdog authored and pyrmont committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    39ec4a4 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2020

  1. Add Starlark support to Python lexer (#1369)

    Starlark is a dialect of Python that is used to configure the Bazel
    build system. This adds file extensions to the Python lexer that are
    used for files written in Starlark.
    zoidyzoidzoid authored and pyrmont committed Jan 12, 2020
    Configuration menu
    Copy the full SHA
    108737b View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2020

  1. Release v3.15.0 (#1390)

    pyrmont authored Jan 14, 2020
    Configuration menu
    Copy the full SHA
    0e6b3a6 View commit details
    Browse the repository at this point in the history
Loading