Coder Social home page Coder Social logo

alpaca-mode's People

Contributors

eddsteel avatar j14159 avatar tjweir avatar tsloughter avatar yurrriq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

alpaca-mode's Issues

Properly handle multi-line comments

Broken implementation:

(,(rx (group "{-") (group (* anything)) (group "-}"))
 (1 font-lock-comment-delimiter-face)
 (2 font-lock-comment-face)
 (3 font-lock-comment-delimiter-face))

Discuss binary fontification

alpaca/test_files/basic_binary.alp:

module basic_binary

export count_one_twos/1,first_three_bits/1, utf8_bins/1, drop_hello/1

count_one_twos bin =
  match bin with
      <<1: size=8, 2: size=8, rest: type=binary>> -> 1 + (count_one_twos rest)
    | _ -> 0

first_three_bits bin =
  match bin with
      <<x: size=1 unit=3 type=int, y: type=binary size=1 unit=5>> -> x
    | _ -> 0

utf8_bins () =
  <<"안녕": type=utf8>>

drop_hello bin =
  match bin with
    <<"hello": type=utf8, rest: type=utf8>> -> rest

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.