Skip to content

Commit

Permalink
Avoid accidental changes to legacy lexer.styles table.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitalquark committed Aug 28, 2023
1 parent 0289532 commit e88bbcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lexers/lexer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1924,7 +1924,8 @@ end

M.colors = {} -- legacy
M.styles = setmetatable({}, { -- legacy
__index = function() return setmetatable({}, {__concat = function() return nil end}) end
__index = function() return setmetatable({}, {__concat = function() return nil end}) end,
__newindex = function() end
})
M.property_expanded = setmetatable({}, {__index = function() return '' end}) -- legacy

Expand Down

0 comments on commit e88bbcf

Please sign in to comment.