Git Product home page Git Product logo

groovy-lambda's Introduction

Groovy Lambda

GroovyLambda VS Code marketplace version

Groovy Lambda is a simple VS Code color theme optimised for Haskell, based on Gruvbox Material Dark.

Supports the TextMate scopes provided by the Language Haskell VS Code extension:

  • disambiguates between data constructors and types in data declarations,
  • visually clear appearance of qualified names,
  • distinguishes different uses of @: type application, record syntax or infix operator,
  • special highlighting for record fields,
  • highlights MagicHash and OverloadedLabels,
  • underlines recognised GHC language extensions.

GroovyLambda example highlighting

Installation

The theme can be installed directly from VS Code: search for Groovy Lambda in the extensions, and install.
See also the its VS Code marketplace page.

Customisation

To change how something is highlighted, proceed as follows:

  • While browsing code containing highlighting you'd like to change, start the TextMate scope inspector as follows:
    • open the VS Code Command Palette (Ctrl+Shift+P),
    • start typing "Inspect Editor Tokens and Scopes" and select this item from the dropdown menu.
  • Click on the code whose highlighting you'd like to change; this will display the TextMate scopes associated to that piece of code. For instance, if in a Haskell source file is given the scope keyword.control.if.haskell.
  • Open your settings.json file:
    • open the VS Code Command Palette (Ctrl+Shift+P),
    • start typing "Open Settings (JSON)" and select this item from the dropdown menu.
  • Make the modifications by editing the value of editor.tokenColorCustomizations in your settings. For instance, to highlight if and then in red and else in blue, one would write:
    "editor.tokenColorCustomizations": {
      "textMateRules": [
        {
          "scope": [ "keyword.control.if", "keyword.control.then" ],
          "settings": {
            "foreground": "#ff0000"
          }
        },
        {
          "scope": "keyword.control.else",
          "settings": {
            "foreground": "#0000ff"
          }
        }
      ]
    }

groovy-lambda's People

Contributors

sheaf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.