durkiewicz / elm-plugin

Elm language support plugin for IntelliJ IDEA.
MIT License
136 stars 15 forks source link

Support hex literals #40

Closed bgourlie closed 7 years ago

bgourlie commented 7 years ago

The following is a valid Elm program:

import Html exposing (text)
import List exposing (map)

main =
  text <| toString (map (\a -> a * 2) hexList)

hexList : List Int
hexList = [0xDEAD, 0xBEEF]

xDEAD and xBEEF are tokenized as symbols.

durkiewicz commented 7 years ago

@bgourlie Please have a look at https://github.com/durkiewicz/elm-plugin/issues/42