Code Monkey home page Code Monkey logo

better-language-sml's Introduction

"Better" Standard ML language support for Atom

This package provides the following for Standard ML (SML):

  • Syntax highlighting.
  • Code snippets.

This package was forked from language-sml to fast-track my own readability improvements for SML programmers using Atom.

Syntax Highlighting Features

In addition to basic keyword highlighting, we also provide the following readability improvements:

  • When a structure member is accessed, the structure's name is highlighted.
  • Many entities available in the top-level namespace, such as map are highlighted.
  • Some important punctuation such as |, =>, and ; are also highlighted.
  • Some operators, like div and :: are highlighted.

Screenshot (using the "Fega High Contrast" theme to show all color classes):

screenshot here

Contributing

Contributions are greatly appreciated. Feel free to open pull requests or make suggestions by opening an issue.

Thanks

I'm grateful for patches from:

better-language-sml's People

Contributors

j-baker avatar jakehp avatar jonsterling avatar k4rtik avatar kavon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

better-language-sml's Issues

multi-parameter type decl highlight in sigs

We don't handle something like this inside of a sig ... end:

signature S = sig
   type ('key, 'a) dict
end

We need more sophisticated code to generally handle the syntax of type declarations in SML in order
to intelligently highlight the above.

Function def highlight tick

fun fixup' x = x will not properly highlight the '. It's possible that \w doesn't include _ or 0-9 so you'll want to update that capture group.

`rec` keyword

rec is not recognized as a keyword here:

val rec fib =
   fn 0 => 0
    | 1 => 1
    | n => fib (n - 1) + fib (n - 2)

Would be nice to add it as a pattern val rec so it's not highlighted everywhere rec appears.

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.