microsoft / TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
Apache License 2.0
1.72k stars 235 forks source link

"readonly" not highlighted property when appearing after "private" in constructor() #576

Open bslatkin opened 7 years ago

bslatkin commented 7 years ago

This code:

export class Searcher {
    private selection: Selection;

    constructor(readonly board: Board, private readonly originalSelection: Selection) {
        this.selection = {
            start: this.originalSelection.start,
            focus: this.originalSelection.focus,
            axis: this.originalSelection.axis,
        };
    }

   ...
}

Appears like this in Sublime Text build 3126, macOS 10.11.5, TypeScript plugin v2.0.1:

screen shot 2016-12-18 at 12 31 46 pm

I expect the "readonly" and "private" modifiers to have the same highlighting, as red, not orange.

It appears that the syntax highlighter in GitHub also has this problem (as I file this issue):

screen shot 2016-12-18 at 12 33 29 pm

Should I submit this issue against the TmLanguage definition instead?