Skip to content

Use preprocessor highlighting from cc-mode #521

Closed
@gracjan

Description

@gracjan

Emacs cc-mode has font-lock definitions for preprocessor. Those include support for #include highlighting with strings, nice coloring for #define, line continuations and other perks. All of this is lacking in current Haskell mode preprocessor highlighing.

haskell-mode should use:

  • (require 'cc-mode)
  • (c-initialize-cc-mode)
  • (font-lock-add-keywords nil c-font-lock-keywords-1)
  • check if other changes are needed
  • check that the above changes only font-lock for preprocessor and nothing else

cc-mode is bundled with Emacs these days so it can be relied upon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions