improve Lua lexer
See original GitHub issueteest file added. codetree-class-init.zip
questions for who knows Lua. @Artem3213212 @dinkumoil @davidhealey
- file has many “self:mmmm” so maybe hilite word “self”? in which style- keyword (bold black) or std word (purple)?
1b. hilite “self” in all lines?
self:reset()
self.filename = filename
self.lines = {}
-
file has many “function Doc:mmm()” so maybe move all funcs for Doc: to new code tree node “Doc”?
-
Lua allows more “:” chars in func name? eg “Doc:nnn:mmm”, “Doc:aa:bb:cc:dd”?
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Writing lexers in Lua - Google Groups
While not written good lua-lexers can use the c-lexers. This is - a good compromise and a smooth transition. I hope that the...
Read more >LoganDark/lua-lexer: A Lua lexer written in pure Lua. - GitHub
This function only takes one argument, which is the text to lex (a string, obviously). It returns a a list containing every line...
Read more >Lexer for RBX Lua - Community Resources - DevForum | Roblox
There's this awesome lexer for Lua in the Penlight library. ... to generate sequentially internally) but it's better than multiple loops!
Read more >What is the best way to reuse the Lua parser? - Stack Overflow
I've used ANTLR on a couple projects with good results. It will generate a C (ANTLR v3) or C++ (ANTLR v2) parser including...
Read more >Lua Performance Tips
the “optimization” actually improved our code. Once you decide that you really must optimize your Lua code, this text may help you about...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, unnamed or anonymous functions should be invisible in code tree. In your example
nn = function(x) return x end
the function is anonymous, so don’t show it.No, everything seems to be fine. Thank you!