lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Since you remove comments, you can reuse the Lua lexer.
This has the clear benefit that the lexing will be exactly what Lua does.

To reuse the Lua lexer, consider using my ltokenp

Also can be simplified to 


lua << EOF
  local run = request('lcf.lua_reformat')
  run('$1', '$2')

Thanks for sharing lcf.