-
Notifications
You must be signed in to change notification settings - Fork 744
Comparing changes
Open a pull request
base repository: rouge-ruby/rouge
base: v3.20.0
head repository: rouge-ruby/rouge
compare: v3.21.0
- 16 commits
- 44 files changed
- 7 contributors
Commits on Jun 19, 2020
-
Fix YARD error when parsing LiveScript lexer (#1541)
A single line if-statement in the LiveScript lexer causes an error when YARD runs over the project. Replacing it with a ternary statement fixes the problem.
Configuration menu - View commit details
-
Copy full SHA for 29ad1ba - Browse repository at this point
Copy the full SHA 29ad1baView commit details -
Allow @ before REM in Batchfile lexer (#1545)
The `@` symbol tells the command interpreter not to show any prompts. This commit special cases it for `rem` so that using `@` also indicates a comment.
Configuration menu - View commit details
-
Copy full SHA for f4aaa8a - Browse repository at this point
Copy the full SHA f4aaa8aView commit details
Commits on Jun 29, 2020
-
Add BrightScript lexer (#1544)
This commit adds a lexer for BrightScript. Co-authored-by: Dom Rowan <rowand@amazon.com> Co-authored-by: Michael Camilleri <mike@inqk.net>
Configuration menu - View commit details
-
Copy full SHA for 16ce5ce - Browse repository at this point
Copy the full SHA 16ce5ceView commit details -
This commit adds a lexer for SSH configuration files. Co-authored-by: Michael Camilleri <mike@inqk.net>
Configuration menu - View commit details
-
Copy full SHA for b33aa4e - Browse repository at this point
Copy the full SHA b33aa4eView commit details -
Fix & selector matching in Sass/SCSS lexer (#1554)
The `&` selector does not match correctly if it is combined with certain characters. This commit fixes the problem by adding a rule matching `&` to the `:content_common` state.
Configuration menu - View commit details
-
Copy full SHA for 32fedc9 - Browse repository at this point
Copy the full SHA 32fedc9View commit details
Commits on Jul 4, 2020
-
Support template parameter packs in C++ lexer (#1555)
The change in #1495 to the way that the `template` keyword caused template parameter packs not to be highlighted correctly. This commit fixes that bug while also introducing a more robust set of rules for highlighting identifiers succeeding the `template` keyword.
Configuration menu - View commit details
-
Copy full SHA for 8a05269 - Browse repository at this point
Copy the full SHA 8a05269View commit details -
Support using grave character to escape characters in PowerShell lexer (
#1551) The ` character escapes characters in PowerShell statements. This commit adds support for it to the `:parameters` state.
Configuration menu - View commit details
-
Copy full SHA for c96bb98 - Browse repository at this point
Copy the full SHA c96bb98View commit details -
Remove docker_ file glob from Docker lexer (#1550)
In addition to adding the `*.Dockerfile` file glob, #1059 added a file glob for `Dockerfile_*` to address #1070. However, as noted by #1539, this causes issues for files that begin with `dockerfile_` but that are not Dockerfiles. Adding the `Dockerfile_*` file glob was an error and this commit removes it. It is a non-standard name and is not recognised by other syntax highlighting libraries (e.g. Pygments, Chroma, Linguist). The correct fix for the issue that precipitated #1070 is to use a `.gitattributes` file.
Configuration menu - View commit details
-
Copy full SHA for 9872cee - Browse repository at this point
Copy the full SHA 9872ceeView commit details -
Fix nesting of raw and verbatim tags in Jinja/Twig lexers (#1552)
The current Jinja lexer ends a `raw` or `verbatim` block when the lexer encounters either `endraw` or `endverbatim`. This behaviour is incorrect. The block should only end with a matching tag. This commit fixes that behaviour.
Configuration menu - View commit details
-
Copy full SHA for a507bd6 - Browse repository at this point
Copy the full SHA a507bd6View commit details -
Improve support for Unicode identifiers in various lexers (#1537)
Most of Rouge's lexers use rules that only match ASCII characters. This is often not strictly correct as many languages support the use of non-ASCII characters in their identifiers. This commit adds support for non-ASCII characters to the CSS, HTML, JavaScript, Julia, XML and YAML lexers. The regular expressions used are more permissive than they should be if they were to be completely correct but this is intentional. Ease of maintenance has been prioritised over syntactic correctness. Co-authored-by: Michael Camilleri <mike@inqk.net>
Configuration menu - View commit details
-
Copy full SHA for 730208c - Browse repository at this point
Copy the full SHA 730208cView commit details
Commits on Jul 5, 2020
-
This commit adds a lexer for Janet. Co-authored-by: Michael Camilleri <mike@inqk.net>
Configuration menu - View commit details
-
Copy full SHA for e870b5e - Browse repository at this point
Copy the full SHA e870b5eView commit details -
Fix character escaping in Perl lexer (#1549)
In single- and double-quoted strings, the Perl lexer currently tokenises `\` as an error if it is not followed by a character in part of a recognised escape sequence. This is a bug. Perl accepts the use of `\` in single- and double-quoted strings even if it is not part of a valid escape sequence. This commit permits the use of `\` in single-quoted and double-quoted strings as well as increasing the range of escape sequences that are recognised in double-quoted strings.
Configuration menu - View commit details
-
Copy full SHA for 9539764 - Browse repository at this point
Copy the full SHA 9539764View commit details -
Fix identifier matching in Rego lexer (#1556)
The Rego lexer matches certain identifiers using `\b`. This will match identifiers that include `_`. This commit replaces these rules with a more robust generic regular expression. In addition, it changes the token used for variable names to `Name`.
Configuration menu - View commit details
-
Copy full SHA for 1863a89 - Browse repository at this point
Copy the full SHA 1863a89View commit details
Commits on Jul 14, 2020
-
Support ? in PowerShell lexer (#1559)
The `?` symbol is an alias for the `Where-Object` in PowerShell. This commit adds support for it to Rouge.
Configuration menu - View commit details
-
Copy full SHA for 43846d2 - Browse repository at this point
Copy the full SHA 43846d2View commit details -
Support fat comma in Perl lexer (#1553)
The `=>` operator (sometimes called the 'fat comma') is an operator in Perl that causes the identifier to the immediate left of the fat comma to be treated as if it were a string. This commit adds support for it using a simple lookahead heuristic.
Configuration menu - View commit details
-
Copy full SHA for 32186d5 - Browse repository at this point
Copy the full SHA 32186d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76497f8 - Browse repository at this point
Copy the full SHA 76497f8View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v3.20.0...v3.21.0