public class LangLua extends Lang
Registers a language handler for Lua. To use, include prettify.js and this file in your HTML page. Then put your code in an HTML tag like
(my Lua code)I used http://www.lua.org/manual/5.1/manual.html#2.1 Because of the long-bracket concept used in strings and comments, Lua does not have a regular lexical grammar, but luckily it fits within the space of irregular grammars supported by javascript regular expressions.
extendedLangs, fallthroughStylePatterns, shortcutStylePatterns| Constructor and Description |
|---|
LangLua() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getFileExtensions() |
getExtendedLangs, getFallthroughStylePatterns, getShortcutStylePatterns, setExtendedLangs, setFallthroughStylePatterns, setShortcutStylePatternsCopyright © 2015. All rights reserved.