Lua uses self, not this
There is no 'this' in lua. There is however 'self' a predefined parameter when using colon syntax for calling a function. http://www.lua.org/pil/16.html
This commit is contained in:
parent
ff88d5aa8d
commit
ab1b62fbb7
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ var LuaHighlightRules = function() {
|
|||
"constant.library": stdLibaries,
|
||||
"constant.language": builtinConstants,
|
||||
"invalid.illegal": futureReserved,
|
||||
"variable.language": "this"
|
||||
"variable.language": "self"
|
||||
}, "identifier");
|
||||
|
||||
var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue