rouge
rouge copied to clipboard
A pure Ruby code highlighter that is compatible with Pygments
Added the required files for implementing an OpenSCAD lexer and tested them.
**Name of the lexer**: [powershell](https://github.com/rouge-ruby/rouge/blob/master/lib/rouge/lexers/powershell.rb). **Code sample** A sample of the code that produces the bug. ``` dir C:\, fakepath 2>&1 > .\dir.log .\script.ps1 > script.log &{ Write-Warning "hello" Write-Error...
**Describe the bug** Not sure if this is an actual bug or if it has been reported before. The highlight of GraphQL query will show as error when a value...
**Describe the bug** When I try to format the code, the output is always HTML escaped, although I set the escape flag to false **To Reproduce** Steps to reproduce the...
Updated the ABAP lexer to support more modern keywords and CDS functions/annotations (taken from https://help.sap.com/doc/abapdocu_758_index_htm/7.58/en-US/index.htm?file=abenabap_reference.htm) Also fixed a few false positives
Fix #2176 Nix identifiers can contain `'` and `-`, which are not "word" characters in Ruby regexp. Thus, the pattern `/if\b/` (literal "if" followed by a word boundary) will match...
**Name of the lexer** php Support new features added in PHP 8.x. **TODO** - [ ] enum - #2171 - [x] octal number prefix - #2170 - [ ] asymmetric...
Part of https://github.com/rouge-ruby/rouge/issues/2169 Support enum definition since PHP 8.1. https://www.php.net/manual/en/language.enumerations.basics.php > ```php > enum Suit > { > case Hearts; > case Diamonds; > case Clubs; > case Spades; >...
Part of https://github.com/rouge-ruby/rouge/issues/2169 Support typed class constants introduced since PHP 8.3. https://wiki.php.net/rfc/typed_class_constants ```php class C { const bool CONST_1 = true; public const int CONST_2 = 1; protected const float...
Part of https://github.com/rouge-ruby/rouge/issues/2169 Support asymmetric property visibility since PHP 8.4. https://www.php.net/manual/en/language.oop5.visibility.php#language.oop5.visibility-members-aviz > ```php > class Book > { > public function __construct( > public private(set) string $title, > public protected(set)...