rouge
rouge copied to clipboard
A pure Ruby code highlighter that is compatible with Pygments
Python2 is EOL for a while now, see https://www.python.org/doc/sunset-python-2/. Thus, update the builtin keywords, function, and exceptions as how they are used by Python 3. See: - https://docs.python.org/3/reference/lexical_analysis.html#keywords - https://docs.python.org/3/library/functions.html...
**Name of the lexer** css **Code sample** ```css @media (width > 100px) { :root { color: red; } } ```  https://rouge.jneen.net/v4.5.1/css/QG1lZGlhICh3aWR0aCA-IDEwMHB4KSB7CiAgICA6cm9vdCB7CiAgICAgICAgY29sb3I6IHJlZDsKICAgIH0KfQoK **Additional context** 2.4.3. Evaluating Media Features in a...
While investigating the performance issue raised in Issue #2057 regarding sed syntax highlighting, I discovered what appears to be a [ReDoS](https://en.wikipedia.org/wiki/ReDoS)-like vulnerability. - fix #2057 The issue seems to result...
**Is your enhancement request related to a problem?** Currently, Rouge does not provide an option to display the programming language name as a header above the code block. This makes...
Rouge.load_lexers passes Pathname objects to Lexer.load_lexer, causing some lexers to get loaded twice
https://picat-lang.org/
**Name of the lexer** *css* `&` nesting selector support **Code sample** ```css body { &:has(span) { background-color: red; } } ``` https://rouge.jneen.net/v4.5.1/css/Ym9keSB7CiAgICY6aGFzKHNwYW4pIHsKICAgICAgYmFja2dyb3VuZC1jb2xvcjogcmVkOwogICB9Cn0K  **Additional context** & nesting selector - CSS:...
**Name of the lexer** TOML **Code sample** A sample of the code that produces the bug. ```toml [target.x86_64-unknown-linux-gnu] rustflags = ["-Ctarget-cpu=native"] ``` https://rouge.jneen.net/v4.5.1/toml/W3RhcmdldC54ODZfNjQtdW5rbm93bi1saW51eC1nbnVdCnJ1c3RmbGFncyA9IFsiLUN0YXJnZXQtY3B1PW5hdGl2ZSJdCg [dingus]: http://rouge.jneen.net/
**Uiua** [Uiua overview](https://aplwiki.com/wiki/Uiua) **Implementation in other libraries** Implementation is [VS Code](https://github.com/uiua-lang/uiua-vscode), [browser](https://github.com/jonathanperret/uiua386color), and [Emacs](https://github.com/crmsnbleyd/uiua-ts-mode). **Additional context** [Uiua's LSP](https://github.com/uiua-lang/uiua/blob/main/src/lsp.rs) [Highlighting of uiua glyps at bottom of docs and general syntax information](https://www.uiua.org/docs)
**Pkl** [Documentation](https://pkl-lang.org/main/current/language-reference/index.html) **Implementation in other libraries** Language support for [IntelliJ](https://pkl-lang.org/intellij/current/index.html), [VS Code](https://pkl-lang.org/vscode/current/index.html) and [Neovim](https://pkl-lang.org/neovim/current/index.html). **Additional context** >Pkl — pronounced Pickle — is a configuration-as-code language with rich validation and tooling....