prettify.lang
Class LangLua

java.lang.Object
  extended by prettify.lang.Lang
      extended by prettify.lang.LangLua

public class LangLua
extends Lang

This is similar to the lang-lua.js in JavaScript Prettify. All comments are adapted from the JavaScript Prettify.

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.

Author:
mikesamuel@gmail.com

Field Summary
 
Fields inherited from class prettify.lang.Lang
extendedLangs, fallthroughStylePatterns, shortcutStylePatterns
 
Constructor Summary
LangLua()
           
 
Method Summary
static java.util.List<java.lang.String> getFileExtensions()
           
 
Methods inherited from class prettify.lang.Lang
getExtendedLangs, getFallthroughStylePatterns, getShortcutStylePatterns, setExtendedLangs, setFallthroughStylePatterns, setShortcutStylePatterns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LangLua

public LangLua()
Method Detail

getFileExtensions

public static java.util.List<java.lang.String> getFileExtensions()