"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/plugins/token_add_state_ids.lua" (12 May 2020, 285 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Lua source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 Description="Add internal state IDs behind each token (for debugging)."
    3 
    4 Categories = {"debug" }
    5 
    6 function syntaxUpdate(desc)
    7   function Decorate(token, state)
    8     return token .. ' ('.. string.format("%d",state) .. ')'
    9   end
   10 end
   11 
   12 Plugins={
   13 
   14   { Type="lang", Chunk=syntaxUpdate },
   15 
   16 }