Commits

Georg Brandl  committed 461a6fc

#482: "file:method" is not a literal builtin, but a method of file objects.

  • Participants
  • Parent commits dec83e5

Comments (0)

Files changed (2)

 -----------
 (in development)
 
-- Two fixes to the Lua lexer (#480, #481).
+- Three fixes to the Lua lexer (#480, #481, #482).
 
 
 Version 1.3.1

File pygments/lexers/_luabuiltins.py

            'debug.setmetatable',
            'debug.setupvalue',
            'debug.traceback'],
- 'io': ['file:close',
-        'file:flush',
-        'file:lines',
-        'file:read',
-        'file:seek',
-        'file:setvbuf',
-        'file:write',
-        'io.close',
+ 'io': ['io.close',
         'io.flush',
         'io.input',
         'io.lines',
             return name.startswith('math')
 
         def is_in_io_module(name):
-            return name.startswith('io.') or name.startswith('file:')
+            return name.startswith('io.')
 
         def is_in_os_module(name):
             return name.startswith('os.')