apiaryio / api-blueprint

API Blueprint
https://apiblueprint.org
MIT License
8.65k stars 2.14k forks source link

Sublime Plugin: Body syntax is not properly highlighted #235

Open foxx opened 9 years ago

foxx commented 9 years ago

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

screen shot 2015-07-22 at 12 01 39

zdne commented 9 years ago

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
            }
danielgtaylor commented 9 years ago

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.

pksunkara commented 9 years ago

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