Skip to content

Using commas in type definition string property values breaks syntax highlighting #2

Description

@brianary

This DW script:

%dw 2.0
output application/json
type Money = String {format:"\$###0.00"}
---
{amt: 1200.00 as Money}

displays as:

image

If you add a comma to the format string:

%dw 2.0
output application/json
type Money = String {format:"\$#,##0.00"}
---
{amt: 1200.00 as Money}

displays as:

image

(the comma ends the string, and the closing quote starts a new one that includes the rest of the script)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions