broadinstitute / vim-wdl

Vim syntax highlighting for WDL
20 stars 8 forks source link

Optional types not recognised #3

Open Xophmeister opened 5 years ago

Xophmeister commented 5 years ago

When a type is proceeded with a question mark (i.e., an optional value), the highlighting doesn't recognise this as an identifier definition.

Xophmeister commented 5 years ago

Example of a false-positive:

foo? something

foo isn't a valid type, but the question mark will get highlighted as a type and the following symbol (something, in this case) as an identifier regardless. This is my first dabble into Vim syntax definitions; I don't really get why the contains=wdlType bit isn't being honoured.