Swift keywords highlighted in argument labels

Issue #1375 new
Stefan Fochler
created an issue

The implementation of Swift Proposal 0001 allowed using keywords as argument labels, which is widely used in APIs.

Unfortunately, pygments recognized keywords in argument labels and highlights them accordingly, even though it should treat them as bare words.

Example:

let devices = AVCaptureDevice.devices(for: .audio, noHighlight: 42)

The "for" should not be bold and look exactly like "noHighlight".

Comments (0)

  1. Log in to comment