-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Seems to be a mixed bag.
micro 2.0.11 installed from the Debian 12 (Bookworm) repo
Syntax files loaded right from here on the GitHub.
apacheconf.yaml works once I modified the code a little. I use Debian so it's not called httpd anywhere, but that now works 100% of the time. Just changed it to open on all .conf files.
php and py never work on their own, even after playing with the file type regex. I can get both working with "set filetype xxx" but get errors when I do. Both throw:
Error parsing syntax file xxx: interface conversion: interface {} is nil, not []interface {}. Press enter to continue
I get that twice, then it works fine. Just noticed html doesn't auto open as html, but I can set it without errors with set filetype.
Can't figure out what in the .yaml files is different with php and py vs. .conf and .html that throw the errors. And not sure why it struggles so to auto open. I thought it was the errors throwing it off, but html doesn't get the errors but doesn't auto fire.
default does seem to fire as I get http:// url highlighitng on any file I open. I suspect it's reading through the yaml's in the syntax dir and is encounting one that chokes it's reader and it stops reading. But I don't know it's reading in sorted order, as html doesn't work, but json SEEMS to (it's text is colored all one color not white, but it's not what I would call correct json highlighting, and in the case of json setting with 'set filetype json' file type doesn't do anything. Just the {} are white and all other text is beigeish (on my system, I turned on simple color scheme troubleshooting)
Anywho, it's just weird. Some work auto (.conf), most do not. Some will work with 'set filetype' fine, some will work but first throw errors, others don't seem to work at all.
Anyone? Ideas? I'm loving micro... but I need highlighting as that's what I use an editor for 99% of the time.