purescript-emacs / purescript-mode

Emacs major mode and related tools for Purescript
20 stars 10 forks source link

Don't highlight top-level-only keywords at different levels #24

Open Hi-Angel opened 1 month ago

Hi-Angel commented 1 month ago

The keywords being modified here only represented keywords when they are at the beginning of a line with optional whitespace.

At different levels these would represent valid record fields or other identifiers.

This was tested by adding the following code to a PureScript file:

type Foo = { type :: Int
           , module :: Int
           , import :: Int
           , data :: Int
           , class :: Int
           , newtype :: Int
           , instance :: Int
           }

…and checking that compilation succeeds.

Hi-Angel commented 1 month ago

upd: added instance.

Hi-Angel commented 2 weeks ago

@kritzcreek , ping?

Hi-Angel commented 1 week ago

ping