LangLlvm

class LangLlvm : Lang

This is similar to the lang-ml.js in JavaScript Prettify.

All comments are adapted from the JavaScript Prettify.

Registers a language handler for LLVM. From https://gist.github.com/ndabas/2850418

To use, include prettify.js and this file in your HTML page. Then put your code in an HTML tag like

(my LLVM code)

The regular expressions were adapted from: https://github.com/hansstimer/llvm.tmbundle/blob/76fedd8f50fd6108b1780c51d79fbe3223de5f34/Syntaxes/LLVM.tmLanguage

http://llvm.org/docs/LangRef.html#constants describes the language grammar.

Author

Nikhil Dabas

Constructors

Link copied to clipboard
fun LangLlvm()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun getFileExtensions(): List<String>