Elm.tmLanguage icon indicating copy to clipboard operation
Elm.tmLanguage copied to clipboard

Make highlighting of `module` line more permissive

Open evancz opened this issue 8 years ago • 2 comments

One of the changes on the table for 0.17 is the following tweak to module declarations:

-- OLD
module Foo (a, b, c) where

-- NEW
module Foo exposing (a, b, c)

The current syntax highlighting freaks out if there is no where at the end and messes up highlighting for the whole file. Is there any way it can be made more flexible in the lead up to 0.17 just for me? Like is there something I can tweak locally even?

I currently have to do module Whatever exposing (..) -- where to make both Elm and the syntax highlighter happy, which is doable, but I risk checking this kind of weird thing in.

evancz avatar Apr 06 '16 20:04 evancz

OK, thanks for the heads up. I'll change this very soon.

On Thu, Apr 7, 2016 at 4:58 AM, Evan Czaplicki [email protected] wrote:

One of the changes on the table for 0.17 is the following tweak to module declarations:

-- OLDmodule Foo (a, b, c) where -- NEWmodule Foo exposing (a, b, c)

The current syntax highlighting freaks out if there is no where at the end and messes up highlighting for the whole file. Is there any way it can be made more flexible in the lead up to 0.17 just for me? Like is there something I can tweak locally even?

I currently have to do module Whatever exposing (..) -- where to make both Elm and the syntax highlighter happy, which is doable, but I risk checking this kind of weird thing in.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/deadfoxygrandpa/Elm.tmLanguage/issues/99

deadfoxygrandpa avatar Apr 10 '16 17:04 deadfoxygrandpa

module CounterPair exposing (init, update, view) --where Workaround until PR is merged

mordrax avatar May 13 '16 08:05 mordrax