Skip to content

Commit

Permalink
[Lua] Add __close and __name to metatables
Browse files Browse the repository at this point in the history
  • Loading branch information
mbartlett21 committed Feb 6, 2025
1 parent df76b02 commit d83a550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lua/Lua.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ variables:
metamethod: |- # http://lua-users.org/wiki/MetatableEvents
(?x:__(?:
# special
index|newindex|call|tostring|len|i?pairs|gc
index|newindex|call|tostring|len|i?pairs|gc|close
# math operators
|unm|add|sub|mul|i?div|mod|pow|concat
# bitwise operators
Expand All @@ -36,7 +36,7 @@ variables:
|eq|lt|le
){{identifier_break}})
# __metatable and __mode don't use functions
metaproperty: (?:__(?:metatable|mode){{identifier_break}})
metaproperty: (?:__(?:metatable|mode|name){{identifier_break}})

identifier_start: '[A-Za-z_]'
identifier_char: '[A-Za-z0-9_]'
Expand Down

0 comments on commit d83a550

Please sign in to comment.