Skip to content

YAML whitespace after strings

James Willenbring requested to merge yaml-ws-after-str into develop

Created by: ibaned

@trilinos/teuchos @bathmatt @rppawlo

Description

Enhance the YAML Language to allow white space after quoted scalars (strings).

Motivation and Context

Prior to this change, the following would fail to parse:

  heat capacity ratio: '5.0 / 3.0' # a.k.a gamma

Because the whitespace between the quoted string and the start of the comment wasn't handled by the Language. I'm surprised other applications haven't run into this, but it seems like fairly normal usage and so it needs to be fixed.

How Has This Been Tested?

A custom build of Teuchos passed all tests.

Merge request reports