Merge pull request #1772 from hartman/lua_self

Lua uses self, not this
This commit is contained in:
Harutyun Amirjanyan 2014-01-17 10:43:27 -08:00
commit 5abba7d32c
2 changed files with 4 additions and 4 deletions

View file

@ -201,7 +201,7 @@
["keyword.operator","="], ["keyword.operator","="],
["keyword","function"], ["keyword","function"],
["paren.lparen","("], ["paren.lparen","("],
["identifier","self"], ["variable.language","self"],
["text",", "], ["text",", "],
["identifier","other"], ["identifier","other"],
["paren.rparen",")"] ["paren.rparen",")"]
@ -266,7 +266,7 @@
["text"," "], ["text"," "],
["keyword","return"], ["keyword","return"],
["text"," "], ["text"," "],
["identifier","self"], ["variable.language","self"],
["keyword.operator",":"], ["keyword.operator",":"],
["support.function","format"], ["support.function","format"],
["paren.lparen","("], ["paren.lparen","("],

View file

@ -83,7 +83,7 @@ var LuaHighlightRules = function() {
"constant.library": stdLibaries, "constant.library": stdLibaries,
"constant.language": builtinConstants, "constant.language": builtinConstants,
"invalid.illegal": futureReserved, "invalid.illegal": futureReserved,
"variable.language": "this" "variable.language": "self"
}, "identifier"); }, "identifier");
var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))"; var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))";