Skip to content

Commit

Permalink
Merge pull request #1661 from scallahanCybernet/patch-1
Browse files Browse the repository at this point in the history
Update cffunction.json
  • Loading branch information
pfreitag authored Sep 13, 2024
2 parents 27b068d + fb5bafc commit d781ed2
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions data/en/cffunction.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,23 @@
"title": "Script Syntax",
"description": "",
"code": "public boolean function myFunction(required any myArgument) { \r\n // Some function bits \r\n return true; \r\n }",
"result": ""
"result": "",
"runnable": true
},
{
"title": "Tag Syntax",
"description": "",
"code": "<cffunction access=\"public\" returntype=\"boolean\" name=\"myFunction\"> \r\n <cfargument required=\"true\" type=\"any\" name=\"myArgument\"> \r\n <!--- Some function bits ---> \r\n <cfreturn true> \r\n </cffunction>",
"result": ""
}
"title": "Tag Syntax",
"description": "",
"code": "<cffunction access=\"public\" returntype=\"boolean\" name=\"myFunction\"> \r\n <cfargument required=\"true\" type=\"any\" name=\"myArgument\"> \r\n <!--- Some function bits ---> \r\n <cfreturn true> \r\n </cffunction>",
"result": "",
"runnable": true
},
{
"title": "Script Syntax: Arrow Function",
"description": "Note that as of now, you cannot declare the access or returntype of an arrow function",
"code": "myFunction = (required any Arguments) => {\n return true;\n}",
"result": "",
"runnable": true
}
]

}

0 comments on commit d781ed2

Please sign in to comment.