rouge
rouge copied to clipboard
A pure Ruby code highlighter that is compatible with Pygments
This PR adds syntax highlighting support for Rell, a blockchain programming language developed for the Chromia platform. ### What is Rell? Rell is a type-safe, relational programming language designed specifically...
Closes https://github.com/rouge-ruby/rouge/issues/2178 This commit delegates lexing of annotated block strings in Gherkin to the lexer specified by the annotation: | Before | After | :-------------------------:|:-------------------------: | Thanks for maintaining such...
The Gherkin lexer should delegate to other lexers inside a `"""` string literal block annotated with a language identifier (e.g. `"""ruby`), similar to the [JetBrains Gherkin plugin](https://github.com/JetBrains/intellij-plugins/blob/d76751f551f9d73023e9004f86594eafaba8b7d4/cucumber/test/org/jetbrains/plugins/cucumber/injections/GherkinInjectionTest.java). This would make...
**Name of the lexer** Nix **Code sample** ```nix let if' = -1; trueTest = 1; falseTest = 0; in { } ``` https://rouge.jneen.net/v4.6.1/nix/bGV0CiAgaWYnID0gLTE7CiAgdHJ1ZVRlc3QgPSAxOwogIGZhbHNlVGVzdCA9IDA7CmluIHsgfQ **Additional context**
This pull requests adds a lexer for the _High Level Language_ (a.k.a. HLL), a language used in formal verification for railway systems. The specification is available [there](https://hal.science/hal-03294999v1).
**The name of the language** OMG/CORBA IDL Documentation: - https://omniorb.net/omni43/omniORB/omniORB002.html - https://www.omg.org/spec/IDL/About-IDL/ Example: ``` interface Echo { string echoString(in string mesg); }; ``` **Implementation in other libraries** - pygments: https://pygments.org/docs/lexers/#pygments.lexers.c_like.OmgIdlLexer...
Previously, quoted keys would be highlighted as having a syntax error. They are particularly common when dumping a JSON schema as YAML since keys like `$schema`, `$defs` and `$ref` are...
This adds a basic lexer for RISC-V assembly. Like all assembly (as far as I know) there isn't really a formal grammar, and compilers just kind of do whatever, so...
**Tcl** [dingus]: http://rouge.jneen.net/ The lexer only applies to '\*.tcl' but should also apply to '\*.tm' (Tcl module files). It looks like the BUILTINS have been copy/pasted from the docs and...
This PR adds the support for the Veryl language: https://veryl-lang.org . This is necessary for GitLab's syntax highlighting support progressing at https://gitlab.com/gitlab-org/gitlab/-/merge_requests/199076