From 2ba3deed4c65345ef7f2b1869f80dd1d81cbcd0f Mon Sep 17 00:00:00 2001 From: Nicolas Cornu Date: Wed, 31 May 2017 09:45:43 +0200 Subject: [PATCH] Add a lua example As the parser does not respect specification of Lua add a example. See https://github.com/apidoc/apidoc-core/pull/63 --- index.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/index.html b/index.html index 1a9f30d..e124657 100644 --- a/index.html +++ b/index.html @@ -38,6 +38,7 @@

apiDoc creates a documentation from API annotations in your source code.

Perl
  • Python
  • Ruby
  • +
  • Lua
  • @@ -137,6 +138,20 @@

    apiDoc creates a documentation from API annotations in your source code.

    + + +
    +
    --[[
    +@api {get} /user/:id Request User information
    +@apiName GetUser
    +@apiGroup User
    +
    +@apiParam {Number} id Users unique ID.
    +
    +@apiSuccess {String} firstname Firstname of the User.
    +@apiSuccess {String} lastname  Lastname of the User.
    +--]]
    +
    @@ -267,6 +282,12 @@

    Preface

    =begin
     This is a comment.
     =end
    + +

    Lua

    +
    --[[
    +This is a comment.
    +--]]
    +