"Fossies" - the Fresh Open Source Software Archive

Member "wscite/lua.properties" (11 Sep 2020, 10090 Bytes) of package /windows/misc/wscite445.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 # Define SciTE settings for Lua files.
    2 # Lua 5.x highlighting is enabled by default. For other choices,
    3 # including Lua 4 highlighting, see below.
    4 
    5 file.patterns.lua=*.lua
    6 
    7 *source.patterns.lua=$(file.patterns.lua);
    8 
    9 shbang.lua=lua
   10 
   11 filter.lua=Lua (lua)|$(file.patterns.lua)|
   12 
   13 *filter.lua=$(filter.lua)
   14 
   15 lexer.$(file.patterns.lua)=lua
   16 
   17 *language.lua=Lu&a|lua||
   18 
   19 word.chars.lua=$(chars.alpha)$(chars.numeric)$(chars.accented)_%
   20 word.characters.$(file.patterns.lua)=$(word.chars.lua)
   21 
   22 #### Lua 4.0.1
   23 
   24 # Keywords
   25 keywordclass.lua4=\
   26 and break do else elseif \
   27 end for function if in \
   28 local nil not or repeat \
   29 return then until while
   30 
   31 # Basic Functions
   32 keywordclass2.lua4=\
   33 _ALERT assert call collectgarbage copytagmethods \
   34 dofile dostring error foreach foreachi \
   35 gcinfo getglobal getn gettagmethod globals \
   36 newtag next print rawget rawset \
   37 setglobal settag settagmethod sort tag \
   38 tonumber tostring tinsert tremove type \
   39 _VERSION _ERRORMESSAGE
   40 
   41 # String Manipulation & Mathematical Functions
   42 keywordclass3.lua4=\
   43 strbyte strchar strfind strlen strlower \
   44 strrep strsub strupper format gsub \
   45 abs acos asin atan atan2 \
   46 ceil cos deg exp floor \
   47 log log10 max min mod \
   48 rad sin sqrt tan frexp \
   49 ldexp random randomseed PI
   50 
   51 # Input and Output Facilities & System Facilities
   52 keywordclass4.lua4=\
   53 openfile closefile readfrom writeto appendto \
   54 remove rename flush seek tmpname read write \
   55 clock date execute exit getenv setlocale \
   56 _INPUT _OUTPUT _STDIN _STDOUT _STDERR -- file descriptors
   57 
   58 # Debug (not enabled by default)
   59 keywordclass5.lua4=\
   60 getinfo getlocal setlocal setcallhook setlinehook
   61 
   62 #### Lua 5.0.3
   63 
   64 # Keywords
   65 keywordclass.lua50=$(keywordclass.lua4) false true
   66 
   67 # Basic Functions
   68 keywordclass2.lua5=\
   69 assert collectgarbage dofile error _G \
   70 getmetatable ipairs loadfile next pairs \
   71 pcall print rawequal rawget rawset \
   72 setmetatable tonumber tostring type _VERSION \
   73 xpcall string table math coroutine io os debug
   74 
   75 keywordclass2.lua50=$(keywordclass2.lua5) \
   76 getfenv gcinfo loadlib loadstring require \
   77 setfenv unpack _LOADED LUA_PATH _REQUIREDNAME
   78 
   79 # String, Table , Mathematical, Bitwise
   80 keywordclass3.lua5=\
   81 string.byte string.char string.dump string.find string.format \
   82 string.gsub string.len string.lower string.rep string.sub string.upper \
   83 table.concat table.insert table.remove table.sort \
   84 math.abs math.acos math.asin math.atan math.atan2 \
   85 math.ceil math.cos math.deg math.exp math.floor \
   86 math.frexp math.ldexp math.log math.max math.min \
   87 math.pi math.pow math.rad math.random math.randomseed \
   88 math.sin math.sqrt math.tan
   89 
   90 keywordclass3.lua50=$(keywordclass3.lua5) \
   91 string.gfind \
   92 table.foreach table.foreachi table.getn table.setn \
   93 math.mod math.log10
   94 
   95 # Coroutine, Input/Output, System, Package
   96 keywordclass4.lua50=\
   97 coroutine.create coroutine.resume coroutine.status coroutine.wrap coroutine.yield \
   98 io.close io.flush io.input io.lines io.open \
   99 io.output io.read io.tmpfile io.type io.write \
  100 io.stdin io.stdout io.stderr \
  101 os.clock os.date os.difftime os.execute os.exit \
  102 os.getenv os.remove os.rename os.setlocale os.time \
  103 os.tmpname
  104 
  105 # Debug (not enabled by default)
  106 keywordclass5.lua50=\
  107 debug.debug debug.gethook debug.getinfo debug.getlocal debug.getupvalue \
  108 debug.setlocal debug.setupvalue debug.sethook debug.traceback
  109 
  110 #### Lua 5.1.4
  111 
  112 # Keywords
  113 keywordclass.lua51=$(keywordclass.lua50)
  114 
  115 # Basic Functions
  116 keywordclass2.lua51=$(keywordclass2.lua5) \
  117 getfenv load loadstring select \
  118 setfenv unpack package
  119 
  120 # String, Table , Mathematical, Bitwise
  121 keywordclass3.lua51=$(keywordclass3.lua5) \
  122 string.gmatch string.match string.reverse \
  123 table.maxn \
  124 math.cosh math.fmod math.huge math.log10 math.modf \
  125 math.sinh math.tanh
  126 
  127 # Coroutine, Input/Output, System, Package
  128 keywordclass4.package=\
  129 require package.cpath package.loaded \
  130 package.loadlib package.path package.preload
  131 
  132 keywordclass4.lua51=$(keywordclass4.lua50) \
  133 coroutine.running io.popen \
  134 module package.loaders package.seeall \
  135 $(keywordclass4.package)
  136 
  137 # Debug (not enabled by default)
  138 keywordclass5.lua51=$(keywordclass5.lua50) \
  139 debug.getfenv debug.getmetatable debug.getregistry debug.setfenv debug.setmetatable
  140 
  141 #### Lua 5.2.0
  142 
  143 # Keywords
  144 keywordclass.lua52=$(keywordclass.lua50) goto
  145 
  146 # Basic Functions
  147 keywordclass2.lua52=$(keywordclass2.lua5) \
  148 load rawlen select package bit32 _ENV
  149 
  150 # String, Table , Mathematical, Bitwise
  151 keywordclass3.bit32=\
  152 bit32.arshift bit32.band bit32.bnot bit32.bor bit32.btest \
  153 bit32.bxor bit32.extract bit32.replace bit32.lrotate bit32.lshift \
  154 bit32.rrotate bit32.rshift
  155 
  156 keywordclass3.lua52=$(keywordclass3.lua5) \
  157 string.gmatch string.match string.reverse \
  158 table.pack table.unpack \
  159 math.cosh math.fmod math.huge math.modf math.sinh math.tanh \
  160 $(keywordclass3.bit32)
  161 
  162 # Coroutine, Input/Output, System, Package
  163 keywordclass4.lua52=$(keywordclass4.lua50) \
  164 coroutine.running io.popen \
  165 package.config package.searchers package.searchpath \
  166 $(keywordclass4.package)
  167 
  168 # Debug (not enabled by default)
  169 keywordclass5.lua52=$(keywordclass5.lua50) \
  170 debug.getmetatable debug.getregistry debug.setmetatable \
  171 debug.getuservalue debug.setuservalue debug.upvalueid debug.upvaluejoin
  172 
  173 #### Lua 5.3.0
  174 
  175 # Keywords
  176 keywordclass.lua53=$(keywordclass.lua50) goto
  177 
  178 # Basic Functions
  179 keywordclass2.lua53=$(keywordclass2.lua5) \
  180 load rawlen select package utf8 _ENV
  181 
  182 # String, UTF8, Table , Mathematical
  183 keywordclass3.utf8=\
  184 utf8.char utf8.charpattern utf8.codes \
  185 utf8.codepoint utf8.len utf8.offset
  186 
  187 keywordclass3.lua53=\
  188 string.byte string.char string.dump string.find string.format \
  189 string.gmatch string.gsub string.len string.lower string.match \
  190 string.pack string.packsize string.rep \
  191 string.reverse string.sub string.unpack string.upper \
  192 table.concat table.insert table.move table.pack \
  193 table.remove table.sort table.unpack \
  194 math.abs math.acos math.asin math.atan \
  195 math.ceil math.cos math.deg math.exp \
  196 math.floor math.fmod math.huge \
  197 math.log math.max math.maxinteger math.min math.mininteger \
  198 math.modf math.pi math.rad \
  199 math.random math.randomseed math.sin \
  200 math.sqrt math.tan \
  201 math.tointeger math.type math.ult \
  202 $(keywordclass3.utf8)
  203 
  204 # Coroutine, Input/Output, System, Package
  205 keywordclass4.lua53=$(keywordclass4.lua50) \
  206 coroutine.isyieldable coroutine.running io.popen \
  207 package.config package.searchers package.searchpath \
  208 $(keywordclass4.package)
  209 
  210 # Debug (not enabled by default)
  211 keywordclass5.lua53=$(keywordclass5.lua52)
  212 
  213 #### Lua 5.x
  214 
  215 # Keywords
  216 keywordclass.lua5x=$(keywordclass.lua53)
  217 
  218 # Basic Functions
  219 keywordclass2.lua5x=$(keywordclass2.lua5) \
  220 getfenv gcinfo load loadlib loadstring \
  221 require select setfenv unpack \
  222 _LOADED LUA_PATH _REQUIREDNAME \
  223 package rawlen package bit32 utf8 _ENV
  224 
  225 # String, Table , Mathematical, Bitwise
  226 keywordclass3.lua5x=$(keywordclass3.lua5) \
  227 string.gfind string.gmatch string.match string.reverse \
  228 string.pack string.packsize string.unpack \
  229 table.foreach table.foreachi table.getn table.setn \
  230 table.maxn table.pack table.unpack table.move \
  231 math.cosh math.fmod math.huge math.log10 math.modf \
  232 math.mod math.sinh math.tanh math.maxinteger math.mininteger \
  233 math.tointeger math.type math.ult \
  234 $(keywordclass3.bit32) \
  235 $(keywordclass3.utf8)
  236 
  237 # Coroutine, Input/Output, System, Package
  238 keywordclass4.lua5x=$(keywordclass4.lua50) \
  239 coroutine.isyieldable coroutine.running io.popen \
  240 module package.loaders package.seeall \
  241 package.config package.searchers package.searchpath \
  242 $(keywordclass4.package)
  243 
  244 # Debug (not enabled by default)
  245 keywordclass5.lua5x=$(keywordclass5.lua50) \
  246 debug.getfenv debug.getmetatable debug.getregistry debug.setfenv debug.setmetatable \
  247 debug.getuservalue debug.setuservalue debug.upvalueid debug.upvaluejoin
  248 
  249 # Keyword highlighting selection
  250 # Options: lua4, lua50, lua51, lua52, lua53, lua5x (default)
  251 # or enable everything like this: $(keywordclass.lua4)$(keywordclass.lua5x)
  252 keywords.$(file.patterns.lua)=$(keywordclass.lua5x)
  253 keywords2.$(file.patterns.lua)=$(keywordclass2.lua5x)
  254 keywords3.$(file.patterns.lua)=$(keywordclass3.lua5x)
  255 keywords4.$(file.patterns.lua)=$(keywordclass4.lua5x)
  256 
  257 # Add keywords5, 6, 7 & 8 for user-defined libraries
  258 #keywords5.$(file.patterns.lua)=
  259 #keywords6.$(file.patterns.lua)=
  260 #keywords7.$(file.patterns.lua)=
  261 #keywords8.$(file.patterns.lua)=
  262 
  263 #~ statement.indent.$(file.patterns.lua)=5 do else function then
  264 #~ statement.lookback.$(file.patterns.lua)=20
  265 indent.maintain.$(file.patterns.lua)=1
  266 
  267 comment.block.lua=--~
  268 comment.block.at.line.start.lua=1
  269 
  270 # Lua styles
  271 
  272 #Default
  273 style.lua.32=$(font.code.base),fore:#000000
  274 # White space: Visible only in View Whitespace mode (or if it has a back colour)
  275 style.lua.0=fore:#FF0000
  276 # Block comment (Lua 5.0)
  277 style.lua.1=$(colour.code.comment.box),$(font.code.comment.box),back:#D0F0F0,eolfilled
  278 # Line comment
  279 style.lua.2=$(colour.code.comment.line),$(font.code.comment.line)
  280 # Doc comment -- Not used in Lua (yet?)
  281 style.lua.3=$(colour.notused),$(font.notused)
  282 # Number
  283 style.lua.4=$(colour.number)
  284 # Keyword
  285 style.lua.5=$(colour.keyword)
  286 # (Double quoted) String
  287 style.lua.6=$(colour.string)
  288 # Character (Single quoted string)
  289 style.lua.7=$(colour.char)
  290 # Literal string
  291 style.lua.8=$(colour.string),$(font.code.comment.box),back:#E0FFFF
  292 # Preprocessor (obsolete in Lua 4.0 and up)
  293 style.lua.9=$(colour.preproc)
  294 # Operators
  295 style.lua.10=$(colour.operator)
  296 # Identifier (everything else...)
  297 style.lua.11=
  298 # End of line where string is not closed
  299 style.lua.12=back:#E0C0E0,eolfilled
  300 # Other keywords (bozo test colors, but toned down ;)
  301 style.lua.13=$(style.lua.5),back:#F5FFF5
  302 style.lua.14=$(style.lua.5),back:#F5F5FF
  303 style.lua.15=$(style.lua.5),back:#FFF5F5
  304 style.lua.16=$(style.lua.5),back:#FFF5FF
  305 style.lua.17=$(style.lua.5),back:#FFFFF5
  306 style.lua.18=$(style.lua.5),back:#FFA0A0
  307 style.lua.19=$(style.lua.5),back:#FFF5F5
  308 # Labels
  309 style.lua.20=fore:#7F7F00
  310 # Braces are only matched in operator style
  311 braces.lua.style=10
  312 
  313 # compatible with LuaBinaries for Lua 5.1; will work on both platforms.
  314 command.compile.*.lua=luac5.1 -o "$(FileName).luc" "$(FileNameExt)"
  315 # Lua 5.1
  316 command.go.*.lua=lua5.1 "$(FileNameExt)"
  317 # Lua 4.0
  318 #command.go.*.lua=Lua-4.0.exe -c -f "$(FileNameExt)"