Closed LuaFan2 closed 3 years ago
@LuaFan2, where did you put this code? If you just want to enable Lua syntax highlighting for .luam
files, then you can add the following to the config:
local luaspec = ide.specs.lua
luaspec.exts[#luaspec.exts+1] = "luaz"
See https://github.com/pkulchenko/ZeroBraneStudio/blob/master/cfg/user-sample.lua#L14. If you want to extend the macros, then see the next line.
For the documentation on adding/registering a spec, see this section: https://studio.zerobrane.com/doc-plugin#registering-a-specification. Let me know if this doesn't address your question.
You can checkout my custom interpreter https://github.com/moteus/zbs-package/blob/master/zbstudio/packages/ujit.lua It supports multiple lexers an run commands
Hello. I made custom interpreter for https://github.com/stevedonovan/LuaMacro (macro preprocessor for Lua) that create .lua file for files with .luam extension on save/run. But I found that syntax highlighting is gone. I tried to return it use copy of lua spec with changes in keywords:
But with it on run I get Lua error related to macro syntax. I can't understand how to fix it and didn't find anything in the documentation that could help me