"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/inc_luatex.lang" (12 May 2020, 1647 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 Description="Lua (for LuaTeX)"
    3 
    4 Categories = {"script", "document"}
    5 
    6 
    7 Keywords={
    8   { Id=1,
    9     List={"and", "break", "do", "else", "elseif", "end", "false", "for", "function",
   10             "if", "in", "local", "nil", "not", "or", "repeat", "return", "then",
   11             "true", "until", "while"},
   12   },
   13   { Id=2,
   14     List={"number", "string", "function", "userdata", "table", "assert", "call",
   15         "collectgarbage", "copytagmethods", "dofile", "dostring", "error", "foreach",
   16         "foreachi", "getglobal", "getn", "", "gettagmethod", "", "globals", "newtag",
   17         "next", "print", "rawget", "rawset", "setglobal", "settag", "", "settagmethod",
   18         "sort", "tag", "tonumber", "tostring", "tinsert", "tremove", "type", "", "abs",
   19         "", "acos", "", "asin", "", "atan", "", "atan2", "ceil", "cos", "deg", "exp",
   20         "floor", "log", "", "log10", "max", "min", "mod", "rad", "sin", "sqrt", "tan",
   21         "frexp", "ldexp", "random", "randomseed", "openfile", "closefile", "readfrom",
   22         "writeto", "appendto", "remove", "rename", "flush", "seek", "tmpname", "read",
   23         "", "write", "clock", "date", "execute", "exit", "getenv", "setlocale",
   24         "strbyte", "strchar", "strfind", "strlen", "strlower", "strrep", "strsub",
   25         "strupper", "format", "gsub"},
   26   },
   27   { Id=4,
   28     Regex=[[(\w+)\s*\(]],
   29   },
   30 }
   31 
   32 Strings={
   33   Delimiter=[["|']],
   34 }
   35 
   36 IgnoreCase=false
   37 
   38 Comments={
   39 -- this differs from lua.lang
   40   { Block=false,
   41     Delimiter= { [[%]] },
   42   },
   43   { Block=true,
   44     Nested=false,
   45     Delimiter= { [[ \-\-\[\[ ]],[[ \]\] ]],}
   46   }
   47 }
   48 
   49 Operators=[[\(|\)|\{|\}|\[|\]|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\+|\-|\~|\#|\\|\%]]