IN3D / vim-raml

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

Basic Type Names in String #3

Open benhamill opened 8 years ago

benhamill commented 8 years ago

If I'm defining a type like this:

Person:
  properties:
    age:
      type: integer
      description: |
        The number of years the person has been alive.

The word "number" is highlighted the same as the word "integer" above it, but "number" is just part of a string. If I inline the description (to description: The number of years the person has been alive.), it is also highlighted as if it were the name of a type. If I wrap it in double quotes, it highlights all the words in the description the same.

IN3D commented 8 years ago

@benhamill, thanks for finding all this stuff! This one is something I was actually aware of, but I didn't know how annoying it would be. The longer it's sat, it turns out the answer is very :smile: .

This one looks a little trickier, but I do want to track it down.