api-blueprint icon indicating copy to clipboard operation
api-blueprint copied to clipboard

Sublime Plugin: Body syntax is not properly highlighted

Open foxx opened this issue 10 years ago • 3 comments

Notice how request body is syntax highlighted but response body is not.

screen shot 2015-07-22 at 12 01 39

foxx avatar Jul 22 '15 11:07 foxx

Yup, seems like this is the problem.

screen shot 2015-07-23 at 8 35 05 am
# API  

## R [/r]
### DO [GET]
+ request A (application/json)
    + body

            {
                "x": 42
            }

+ response 200 (application/json)
    + body

            {
                "x": 42
            }

zdne avatar Jul 23 '15 06:07 zdne

The bug here is that it is looking for either just + Request (application/json) or a number like + Request 123 (application/json). It's not taking into account that there may be a request name.

danielgtaylor avatar Jul 27 '15 14:07 danielgtaylor

The content-types are not getting highlighted in here even though the text is only Request before the content-type.

pksunkara avatar Aug 06 '15 13:08 pksunkara