HolyLib Wiki

HolyLib:OnTokenizeContent

 table HolyLib:OnTokenizeContent( table tokens, number fileID )

Description

This hook is called while the contents of a Lua file are being processed.
Table entries are sequential - each entry is a table with the following fields:
- bool isSpace
- number type
- string content

This hook is called by the worker thread, and only one lua state can be marked for calling it!

Recently Added

This was recently added in version (0.8 - DEV).

Arguments

1table tokens

The full path to the binary file in which the crash occured in

2number fileID

The fileID of the Lua file (This is the stringtable index in the client_lua_files table)

Returns

1table tokens

Return value can be a new table of tokens, which will be used as the new contents, or return nil for no change