IN3D / vim-raml

Vim syntax and language settings for RAML (Now a part of Vim 8 & NeoVim!)
33 stars 0 forks source link

Optional Key Name Highlighting #2

Closed benhamill closed 8 years ago

benhamill commented 8 years ago

In the RAML 1.0rc2 spec, in the section about syntactic sugar, it says you can skip the required facet for a property and instead append a ? to the property's name.

For example, this:

Person:
  properties:
    nick?: string

is equivalent to this:

Person:
  type: object
  properties:
    nick:
      type: string
      required: false

But the syntax highlighting from this plugin seems very confused about this fact and the ? makes the key not colored like other property keys.

benhamill commented 8 years ago

💓