Coder Social home page Coder Social logo

octref / language-haskell Goto Github PK

View Code? Open in Web Editor NEW

This project forked from justusadam/language-haskell

0.0 2.0 0.0 1.43 MB

Highlighting support for the Haskell language in visual studio code.

Home Page: https://marketplace.visualstudio.com/items/justusadam.language-haskell

License: BSD 3-Clause "New" or "Revised" License

TypeScript 0.46% Haskell 97.06% Shell 2.12% Makefile 0.36%

language-haskell's Introduction

Haskell Language support

Adapated from to inclue syntaxes/haskell.json in source, so I can use Haskell in Shiki.

Support for the Haskell programming language in Visual Studio Code.

Syntax highlighting

Adds syntax highlighting support for Haskell (.hs and .lhs). This is a (now heavily) modified version of the syntax file from the Haskell TextMate bundle. Additionally there is support for Cabal files (.cabal) via a concoction of my own.

Also adds automatic indentation after where, do, -> etc. and surrounding brackets ([], {} etc)

Screenshot Haskell

Screenshot Cabal

Bugs

If you happen to notice bugs or have suggestions for improvements visit the issue section of the repository.

Themes

This extension provides TextMate scopes for use in syntax highlighting, but the colours displayed depend on the theme being used.
Unfortunately many themes have incomplete support for the different TextMate scopes, and as a result different tokens can end up with identical colours.

For a theme that supports all the scopes provided by this extension, see the Groovy Lambda theme.

Theme authors

I recently realized that I am woefully unaware of whether there are any themes with Haskell-specific rules and how changes to this extension affect such themes. If you are a theme author that wishes to use Haskell specific rules, or are aware of a theme with Haskell specific rules, feel free to get in touch.

With version 3.0.0 some new tm scopes were added, such that now record and GADT definitions can be distinguished. Let me know if there are any questions about the scope assignment in this extension or if there are further scope assigments you'd like to see added.

We now publish an automatically generated, complete list of the textmate scopes used in our grammars. You can find the lists of scopes in the scope-lists directory.

language-haskell's People

Contributors

alanz avatar arkrost avatar dsifford avatar edmundnoble avatar glebec avatar hajinko avatar jbugman avatar justusadam avatar lemourin avatar maqqr avatar masonicboom avatar miguel-fontes avatar mpilgrem avatar octref avatar porges avatar ranjitjhala avatar robrix avatar scott-fleischman avatar sheaf avatar sjorn3 avatar takenobu-hs avatar tchajed avatar vigilans avatar zjhmale avatar

Watchers

 avatar  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.