Skip to content

Protocol method docstrings are not font-locked as docstrings #402

Open
@raxod502

Description

@raxod502

Expected behavior

All docstrings should be shown in the docstring font-lock color (in my color scheme, a darker green than the green used for regular strings).

Actual behavior

This does not work for the docstrings of protocol methods. The docstring for an entire protocol is colored correctly, but the docstrings for the individual protocol methods are not.

Steps to reproduce the problem

You can see the behavior in the following image:

20160807101248

Simply pasting the code into a clj file should produce the same result.

(defprotocol Foo
  "Here is a
  multiline
  docstring."
  (bar [this baz]
    "Here is a
  multiline
  docstring."))

Environment & Version information

clojure-mode version information

clojure-mode (version 5.5.2)

Emacs version

GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
 of 2015-04-10 on builder10-9.porkrind.org

Operating system

OS X El Capitan 10.11.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions