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.27.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.28.0
Choose a head ref
  • 20 commits
  • 39 files changed
  • 16 contributors

Commits on Dec 15, 2021

  1. Release v3.27.0 (#1774)

    Co-authored-by: Drew Blessing <drew@gitlab.com>
    dblessing and Drew Blessing authored Dec 15, 2021
    Configuration menu
    Copy the full SHA
    79468ba View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2021

  1. lexer: c: Highlight #includes as Comment::PreprocFile (#1770)

    When changing https://chrisdown.name over from Pygments to Rouge, one
    quite noticeable change was that `{% highlight c %}` blocks lost the
    delineation between #include statements and the actual include, with
    them all now just being stylised as a comment.
    
    This patch brings back Comment::PreprocFile support for C-like
    languages, as it was with Pygments.
    
    Tested locally by rebuilding chrisdown.name with a gem from this commit,
    and seeing that the Comment::PreprocFile highlighting reappeared.
    cdown authored Dec 27, 2021
    Configuration menu
    Copy the full SHA
    1db8d15 View commit details
    Browse the repository at this point in the history

Commits on Jan 1, 2022

  1. fixes #1760 (#1762)

    vidarh authored Jan 1, 2022
    Configuration menu
    Copy the full SHA
    75fad66 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2022

  1. Support quoted keys for TOML (#1777)

    This commit supports quoted keys in standard key/value pair as well as
    ones inside inline table.
    tancnle authored Jan 6, 2022
    Configuration menu
    Copy the full SHA
    158b6fd View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2022

  1. Add Stan Lexer (#1735)

    * Implement stan lexer.
    
    * Use class methods and clean up formatting.
    
    * Fix scoping issue.
    
    * Fix return type parsing and lint.
    
    * Make sample more complex.
    
    * Add complex literals and fix '|' for conditional probability.
    
    * Add '.stanfunctions' extension and new array declaration syntax.
    
    * Include +/- in complex numbers.
    
    * Make complex regex greedier and expand spec.
    
    * Put complex functions in correct place and fix typo.
    
    * Add Stan to list of supported languages.
    
    * Implement @tancnle's suggestions and fix includes.
    
    * Factor includes into own state.
    
    * Add special highlighting for deprecated comment syntax
    jgaeb authored Jan 7, 2022
    Configuration menu
    Copy the full SHA
    e8297f4 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2022

  1. don't crash if last line of console snippet ends with \ (#1779)

    * don't crash if last line of console snippet ends with \
    
    * simplify line regex for console lexer
    mojavelinux authored Jan 12, 2022
    Configuration menu
    Copy the full SHA
    358d7a7 View commit details
    Browse the repository at this point in the history
  2. Stata lexer added (#1658)

    * Initial stata commit
    
    * Updated stata syntax
    
    * Updated highlighting
    
    * Update stata.rb
    
    * Updated highlighting
    
    * Fixed single line comment issue
    
    * Fixed issue with \n
    
    * Update stata.rb
    
    * Added numeric formats
    
    * Added str1-str2045
    
    * Update stata.rb
    
    * Update stata.rb
    
    * compound doubles added
    
    * More keywords
    
    * Added operators
    
    * Update stata.rb
    
    * Update stata.rb
    
    * Update stata.rb
    
    * Update stata.rb
    
    * Update stata.rb
    
    * Update stata.rb
    
    * Addressed reviewer comments
    
    Added end of line to sample file
    Fixed indentations
    Added reference to Stata manual
    Changed KEYWORD_TYPES and KEYWORDS_RESERVED to use class methods
    
    * Rename methods and vacuum trailing spaces
    
    * Update stata.rb
    
    Co-authored-by: Tan Le <tan.le@hey.com>
    reifjulian and tancnle authored Jan 12, 2022
    Configuration menu
    Copy the full SHA
    6be5a3b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d7fc820 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2022

  1. Fix Visual Test App on Ruby 3.0 (#1696)

    * Add puma as development dependency for Ruby 3.0
    
    Ruby 3.0 no longer ships with a built-in webserver
    
    * Update Gemfile
    
    Co-authored-by: Tan Le <tan.le@hey.com>
    
    Co-authored-by: Tan Le <tan.le@hey.com>
    rkh and tancnle authored Jan 16, 2022
    Configuration menu
    Copy the full SHA
    b92d206 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2022

  1. Rust: update lexer for the latest version of Rust (#1649)

    * Rust: remove constant "nil"
    
    The word "nil" has no special meaning in the latest version of Rust.
    
    * Rust: update keyword list
    
    Added:
    
    They are keywords in the latest version of Rust.
    
    * `abstract`
    * `become`
    * `final`
    * `in`
    * `override`
    * `typeof`
    * `unsized`
    * `virtual`
    
    Removed:
    
    They are *not* keywords in the latest version of Rust.
    
    * `assert`
    * `copy`
    * `drop`
    * `fail`
    * `pure`
    nsfisis authored Jan 18, 2022
    Configuration menu
    Copy the full SHA
    5d45948 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2022

  1. Add lexer for Fluent (#1697)

    rkh authored Jan 20, 2022
    Configuration menu
    Copy the full SHA
    b3ee7ac View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2022

  1. Support Cypher multi-line comments (#1710)

    * resolves #1709 support Cypher multi-line comments
    
    * Remove empty line
    
    * Add newline at the end of the file
    ggrossetie authored Jan 23, 2022
    Configuration menu
    Copy the full SHA
    c39c98a View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2022

  1. Update list of maintainers in README (#1787)

    This commit adds @tancnle as a maintainer. He joined as a maintainer
    from 10 December 2021.
    tancnle authored Jan 24, 2022
    Configuration menu
    Copy the full SHA
    b75a28d View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2022

  1. Configuration menu
    Copy the full SHA
    3542334 View commit details
    Browse the repository at this point in the history
  2. Add HCL file extensions (#1769)

    HCL is used in [Terraform which uses the `.tf` file
    extension](https://www.nomadproject.io/docs/commands/job/run#examples)
    but it is already handled by the [terraform
    lexer](https://github.com/rouge-ruby/rouge/blob/master/lib/rouge/lexers/terraform.rb).
    But HCL is also used by other Hashicorp tools like:
     * [Packer which uses the `.pkr.hcl`
       extension](https://www.nomadproject.io/docs/commands/job/run#examples)
     * [Vault which uses the `.hcl`
       extension](https://www.vaultproject.io/docs/commands/server#command-options)
     * [Consul which uses the `.hcl`
       extension](https://www.consul.io/docs/agent/options#configuration)
     * [Waypoint which uses the `waypoint.hcl`
       file](https://www.waypointproject.io/docs/waypoint-hcl#project-configuration-waypoint-hcl)
     * [Nomad which uses the `.nomad`
       extension](https://www.nomadproject.io/docs/commands/job/run#examples)
       but also [Nomad Packs which uses the `.hcl`
       extension](https://learn.hashicorp.com/tutorials/nomad/nomad-pack-writing-packs#add-a-new-pack)
    
    (in fact the [list of HCL
    Schemas](https://learn.hashicorp.com/tutorials/nomad/nomad-pack-writing-packs#add-a-new-pack)
    seems to be the most comprehensive list of HCL implementations)
    maximd authored Jan 25, 2022
    Configuration menu
    Copy the full SHA
    a2af69c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e06ad14 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2022

  1. lexer: cpp: add keywords and operator introduced in C++20 (#1784)

    Signed-off-by: Kefu Chai <tchaikov@gmail.com>
    tchaikov authored Jan 26, 2022
    Configuration menu
    Copy the full SHA
    c91b3a7 View commit details
    Browse the repository at this point in the history
  2. JSX: Allow dashes in attribute names (#1650)

    Support attributes with names that contain dashes, e.g. ARIA attributes.
    bpl authored Jan 26, 2022
    Configuration menu
    Copy the full SHA
    8229933 View commit details
    Browse the repository at this point in the history
  3. Fix SPARQL unicode names support (fix #1653) (#1654)

    * Fix SPARQL unicode names support
    
    * Update lib/rouge/lexers/sparql.rb
    
    Co-authored-by: Tan Le <tan.le@hey.com>
    
    * Update lib/rouge/lexers/sparql.rb
    
    Co-authored-by: Tan Le <tan.le@hey.com>
    
    Co-authored-by: Tan Le <tan.le@hey.com>
    jakubklimek and tancnle authored Jan 26, 2022
    Configuration menu
    Copy the full SHA
    75fcbff View commit details
    Browse the repository at this point in the history
  4. Release v3.28.0 (#1789)

    tancnle authored Jan 26, 2022
    Configuration menu
    Copy the full SHA
    cb51ad7 View commit details
    Browse the repository at this point in the history
Loading