@@ -259,11 +259,11 @@ PRISM_EXPORTED_FUNCTION void pm_dump_json(pm_buffer_t *buffer, const pm_parser_t
259
259
* In order to parse Ruby code, the structures and functions that you're going
260
260
* to want to use and be aware of are:
261
261
*
262
- * * ` pm_parser_t` - the main parser structure
263
- * * `pm_parser_init` - initialize a parser
264
- * * `pm_parse` - parse and return the root node
265
- * * `pm_node_destroy` - deallocate the root node returned by `pm_parse`
266
- * * `pm_parser_free` - free the internal memory of the parser
262
+ * * <code># pm_parser_t</code> - the main parser structure
263
+ * * `pm_parser_init() ` - initialize a parser
264
+ * * `pm_parse() ` - parse and return the root node
265
+ * * `pm_node_destroy() ` - deallocate the root node returned by `pm_parse() `
266
+ * * `pm_parser_free() ` - free the internal memory of the parser
267
267
*
268
268
* Putting all of this together would look something like:
269
269
*
@@ -280,9 +280,9 @@ PRISM_EXPORTED_FUNCTION void pm_dump_json(pm_buffer_t *buffer, const pm_parser_t
280
280
* }
281
281
* ```
282
282
*
283
- * All of the nodes "inherit" from `pm_node_t` by embedding those structures as
283
+ * All of the nodes "inherit" from <code>#pm_parser_t</code> by embedding those structures as
284
284
* their first member. This means you can downcast and upcast any node in the
285
- * tree to a `pm_node_t` .
285
+ * tree to a \ref pm_parser_t "<code>pm_parser_t *</code>" .
286
286
*
287
287
* @section serializing Serializing
288
288
*
@@ -292,10 +292,10 @@ PRISM_EXPORTED_FUNCTION void pm_dump_json(pm_buffer_t *buffer, const pm_parser_t
292
292
* parse Ruby code. The structures and functions that you're going to want to
293
293
* use and be aware of are:
294
294
*
295
- * * ` pm_buffer_t` - a small buffer object that will hold the serialized AST
296
- * * ` pm_buffer_free` - free the memory associated with the buffer
297
- * * ` pm_serialize` - serialize the AST into a buffer
298
- * * ` pm_serialize_parse` - parse and serialize the AST into a buffer
295
+ * * # pm_buffer_t - a small buffer object that will hold the serialized AST
296
+ * * # pm_buffer_free() - free the memory associated with the buffer
297
+ * * # pm_serialize() - serialize the AST into a buffer
298
+ * * # pm_serialize_parse() - parse and serialize the AST into a buffer
299
299
*
300
300
* Putting all of this together would look something like:
301
301
*
@@ -313,7 +313,7 @@ PRISM_EXPORTED_FUNCTION void pm_dump_json(pm_buffer_t *buffer, const pm_parser_t
313
313
* @section inspecting Inspecting
314
314
*
315
315
* Prism provides the ability to inspect the AST by pretty-printing nodes. You
316
- * can do this with the ` pm_prettyprint` function, which you would use like:
316
+ * can do this with the pm_prettyprint() function, which you would use like:
317
317
*
318
318
* ```c
319
319
* void prettyprint(const uint8_t *source, size_t length) {
0 commit comments