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.8.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.9.0
Choose a head ref
  • 10 commits
  • 30 files changed
  • 6 contributors

Commits on Aug 9, 2019

  1. Add support for HTTP/2 to HTTP lexer (#1296)

    The HTTP lexer only supports requests where the HTTP version is either
    1.0 or 1.1. This means that HTTP/0.9 and HTTP/2 cause errors to be
    generated. This commit replaces the version checks with general numeric checks.
    pyrmont authored Aug 9, 2019
    Configuration menu
    Copy the full SHA
    1c6df45 View commit details
    Browse the repository at this point in the history
  2. Add new regex flags to JavaScript lexer (#875)

    ES6 added two regex flags to JavaScript's regular expressions: `u` and
    `y`. This commit adds support for lexing these flags correctly.
    Brad authored and pyrmont committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    eca34a1 View commit details
    Browse the repository at this point in the history
  3. Add Haxe lexer (#815)

    This commit adds a lexer for Haxe.
    josuigoa authored and pyrmont committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    669dc1e View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2019

  1. Add HQL lexer and add types to SQL lexer (#880)

    This commit adds a lexer for Hive Query Language (a dialect of SQL). 
    
    In addition, it updates the SQL lexer to move certain keywords to a
    types category and tokenises these keywords with the `Name::Builtin`
    token (this is consistent with the approach of Pygments and Chroma).
    
    For keywords that can be used both in a type specification and as a
    function (e.g. `COLLATE`), the categorisation was based on the most
    common use of the keyword.
    tkluck-booking authored and pyrmont committed Aug 14, 2019
    Configuration menu
    Copy the full SHA
    30e1e8c View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2019

  1. Add support for first-class expressions to Terraform lexer (#1303)

    Terraform 0.12 adds support for first-class expressions. Prior versions
    of Terraform required all non-literal expressions to be included as
    interpolated sequences inside strings.
    
    In addition, the demo and visual samples have been rationalised. This
    will assist in future updates to the Terraform lexer.
    pyrmont authored Aug 15, 2019
    Configuration menu
    Copy the full SHA
    917b39d View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2019

  1. Change method of saving MatLab built-in keywords (#1300)

    To avoid instantiating a large number of strings, Rouge currently saves
    the list of built-in keywords for MatLab to a file that is only read
    when the MatLab lexer is in use. The keywords that are in this file are
    generated by a Rake task that extracts the keywords from the official
    MatLab documentation.
    
    Since the time that the Rake task was created, MathWorks (the creators
    of MatLab) have changed the way this page works such that it requires
    JavaScript to load. This breaks the Rake task.
    
    As an alternative, this commit includes the list of built-in keywords in
    a YAML file. This is consistent with some of the other lexers that have
    a large number of keywords (e.g. Apache lexer). It will, unfortunately,
    require copying and pasting for future updates.
    pyrmont authored Aug 19, 2019
    Configuration menu
    Copy the full SHA
    59624c1 View commit details
    Browse the repository at this point in the history
  2. Fix use of preceding whitespace in comments in Q lexer (#858)

    If there is more than one space before a single-line comment, the Q
    lexer does not tokenise the comment correctly. This commit fixes that
    bug.
    streetster authored and pyrmont committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    05d217d View commit details
    Browse the repository at this point in the history
  3. Fix escaping/interpolating in string and charlist literals in Elixir …

    …lexer (#1308)
    
    The Elixir lexer does not properly handle escaping and interpolating in
    string (`"foo"`) and charlist (`'foo'`) literals.
    
    This PR adds general escaping rules for use in strings as well as adding
    support for escaping and interpolating to charlist literals. It also
    rationalises the states used for string literals. Examples to confirm
    correct behaviour have been added to the visual sample.
    pyrmont authored Aug 19, 2019
    Configuration menu
    Copy the full SHA
    690f9ec View commit details
    Browse the repository at this point in the history
  4. Add EEX lexer (#874)

    This commit adds a lexer for embedded Elixir.
    julp authored and pyrmont committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    1ab68f2 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2019

  1. Release v3.9.0 (#1309)

    pyrmont authored Aug 20, 2019
    Configuration menu
    Copy the full SHA
    8533fea View commit details
    Browse the repository at this point in the history
Loading